From eb444a636d0f1b21dae2cb5f995ca5eed0ab164a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 29 Jul 2006 09:18:53 +0000 Subject: [PATCH] added check for session.auto_start --- lam/templates/login.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 59766a33..b131593a 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -59,6 +59,10 @@ for ($i = 0; $i < sizeof($writableDirs); $i++) { $criticalErrors[] = array("ERROR", 'The directory %s is not writable for the web server. Please change your file permissions.', '', array($path)); } } +// check session auto start +if (ini_get("session.auto_start") == "1") { + $criticalErrors[] = array("ERROR", "Please deactivate session.auto_start in your php.ini. LAM will not work if it is activated."); +} // stop login if critical errors occured if (sizeof($criticalErrors) > 0) { echo "\n"; @@ -181,7 +185,7 @@ function display_LoginPage($config_object) { $extList = getRequiredExtensions(); for ($i = 0; $i < sizeof($extList); $i++) { if (!extension_loaded($extList[$i])) { - StatusMessage("ERROR", _("A required PHP extension is missing!"), $extList[$i]); + StatusMessage("ERROR", "A required PHP extension is missing!", $extList[$i]); echo "
"; } }