stripos -> strpos for PHP 4 compatibility

This commit is contained in:
Roland Gruber 2006-11-22 17:23:09 +00:00
parent 40e7927490
commit 3c0c8e4456
1 changed files with 2 additions and 2 deletions

View File

@ -182,10 +182,10 @@ function lamTestLamdaemon($command, $stopTest, $handle, $testText) {
} }
} }
$errOut = @fread($stderr, 100000); $errOut = @fread($stderr, 100000);
if ((stripos($errOut, "sudoers") !== false) || (stripos($errOut, "sorry") !== false)) { if ((strpos(strtolower($errOut), "sudoers") !== false) || (strpos(strtolower($errOut), "sorry") !== false)) {
$return[] = "ERROR," . _("Sudo is not setup correctly!") . "," . str_replace(",", " ", $errOut); $return[] = "ERROR," . _("Sudo is not setup correctly!") . "," . str_replace(",", " ", $errOut);
} }
if ((sizeof($return) == 1) && (stripos($return[0], "error") === false)) { if ((sizeof($return) == 1) && (strpos(strtolower($return[0]), "error") === false)) {
$lamdaemonOk = true; $lamdaemonOk = true;
} }
if ($lamdaemonOk) { if ($lamdaemonOk) {