added check for session.auto_start

This commit is contained in:
Roland Gruber 2006-07-29 09:18:53 +00:00
parent ea9c41db3c
commit eb444a636d
1 changed files with 5 additions and 1 deletions

View File

@ -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 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\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 "<br>";
}
}