From ef8be8ea8da90596d321bc25e88c48121715ed18 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 1 Oct 2006 11:05:20 +0100 Subject: split backend.php into modules, backend cleanups --- sanity_check.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'sanity_check.php') diff --git a/sanity_check.php b/sanity_check.php index f12053522..638ba1e0f 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -72,4 +72,31 @@ doesn't seem to support CURL functions."; exit; } + + if (!defined('SESSION_EXPIRE_TIME')) { + $err_msg = "config: SESSION_EXPIRE_TIME is undefined"; + } + + if (SESSION_EXPIRE_TIME < 60) { + $err_msg = "config: SESSION_EXPIRE_TIME is too low (less than 60)"; + } + + if (SESSION_EXPIRE_TIME < SESSION_COOKIE_LIFETIME_REMEMBER) { + $err_msg = "config: SESSION_EXPIRE_TIME should be greater or equal to" . + "SESSION_COOKIE_LIFETIME_REMEMBER"; + } + + if (defined('DISABLE_SESSIONS')) { + $err_msg = "config: you have enabled DISABLE_SESSIONS. Please disable this option."; + } + + if (DATABASE_BACKED_SESSIONS && SINGLE_USER_MODE) { + $err_msg = "config: DATABASE_BACKED_SESSIONS is incompatible with SINGLE_USER_MODE"; + } + + if ($err_msg) { + print "Fatal Error: $err_msg"; + exit; + } + ?> -- cgit v1.2.3