diff options
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"); +} + +?> |