X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=plugins%2Fupdater%2Finit.php;h=6ee018f74d766ec87285a36b69ee76ed8d9aa029;hb=96aba17f013a8457d154a7ba5c85451cfd69d239;hp=69d9b08b2f0404baa8f4ad58da843e3bccf2b3f3;hpb=b509b059f13550e3ac52410d332e0041aa506f20;p=tt-rss.git diff --git a/plugins/updater/init.php b/plugins/updater/init.php index 69d9b08b..6ee018f7 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -63,6 +63,20 @@ class Updater extends Plugin { putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/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..."); $system_rc = 0; @@ -236,6 +250,7 @@ class Updater extends Plugin { CACHE_DIR . "/images", CACHE_DIR . "/js", CACHE_DIR . "/simplepie", + CACHE_DIR . "/upload", ICONS_DIR, LOCK_DIRECTORY); @@ -341,6 +356,10 @@ class Updater extends Plugin { } else { print_notice(__("Your Tiny Tiny RSS installation is up to date.")); + + print "

"; + } print ""; #pane