summaryrefslogtreecommitdiff
path: root/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-01 11:05:20 +0100
committerAndrew Dolgov <[email protected]>2006-10-01 11:05:20 +0100
commitef8be8ea8da90596d321bc25e88c48121715ed18 (patch)
tree72a50c5f16ada4380942824280ed7859527cfa03 /sanity_check.php
parent10b443bd5932dd3b88113b03b4182b3c7f4d49df (diff)
split backend.php into modules, backend cleanups
Diffstat (limited to 'sanity_check.php')
-rw-r--r--sanity_check.php27
1 files changed, 27 insertions, 0 deletions
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 "<b>Fatal Error</b>: $err_msg";
+ exit;
+ }
+
?>