diff options
author | b1galez <b1galez@fbcee277-3294-991b-8290-beb7048acdd6> | 2010-10-02 09:23:56 +0000 |
---|---|---|
committer | b1galez <b1galez@fbcee277-3294-991b-8290-beb7048acdd6> | 2010-10-02 09:23:56 +0000 |
commit | 1b8150580f834192929b0c9fbbabec98570e4088 (patch) | |
tree | 5097709c708fa667ce8792edc206bf59d1900d2d /yubiserve-config.php | |
parent | Initial directory structure. (diff) | |
download | yubico-yubiserve-1b8150580f834192929b0c9fbbabec98570e4088.tar.gz yubico-yubiserve-1b8150580f834192929b0c9fbbabec98570e4088.tar.bz2 yubico-yubiserve-1b8150580f834192929b0c9fbbabec98570e4088.zip |
Version 1.0
git-svn-id: http://yubico-yubiserve.googlecode.com/svn/trunk@3 fbcee277-3294-991b-8290-beb7048acdd6
Diffstat (limited to 'yubiserve-config.php')
-rw-r--r-- | yubiserve-config.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/yubiserve-config.php b/yubiserve-config.php new file mode 100644 index 0000000..b5654c2 --- /dev/null +++ b/yubiserve-config.php @@ -0,0 +1,28 @@ +<?php +/* + +Written by Alessio Periloso <nospam *at* periloso.it> +Version 1.0: 21/05/2010 + +Licensed under GPL License (see LICENSE file) + +*/ + +$filename = 'yubikeys.sqlite'; + + + +if (!extension_loaded('mcrypt')) { + die("mcrypt not loaded!"); +} + +$logfacility = LOG_LOCAL0; +openlog("yubiserve", LOG_PID, $logfacility) + or die("ERR Syslog open error\n"); + +if (!($db = new SQLiteDatabase($filename))) { + syslog(LOG_INFO, "Cannot access database"); + die("Cannot access database"); +} + +?> |