From 1b8150580f834192929b0c9fbbabec98570e4088 Mon Sep 17 00:00:00 2001 From: b1galez Date: Sat, 2 Oct 2010 09:23:56 +0000 Subject: Version 1.0 git-svn-id: http://yubico-yubiserve.googlecode.com/svn/trunk@3 fbcee277-3294-991b-8290-beb7048acdd6 --- yubiserve-config.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 yubiserve-config.php (limited to 'yubiserve-config.php') 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 @@ + +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"); +} + +?> -- cgit v1.2.3