Merge pull request #410 from bram85/master

Updater: check whether system() is useable.
master
Andrew Dolgov 10 years ago
commit 41fac971c4

@ -63,6 +63,20 @@ class Updater extends Plugin {
putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" . putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" .
PATH_SEPARATOR . "/usr/bin"); PATH_SEPARATOR . "/usr/bin");
array_push($log, "Checking for system() call...");
$disabled = explode(',', ini_get('disable_functions'));
foreach ($disabled as $function) {
if ( trim($function) == 'system' ) {
array_push($log, "Can not execute commands with PHP's system() function.");
$stop = true;
}
}
if ( $stop == true ) {
break;
}
array_push($log, "Checking for tar..."); array_push($log, "Checking for tar...");
$system_rc = 0; $system_rc = 0;

Loading…
Cancel
Save