Umbau der Statistik Ausgabe (each enfernt)
Optimierungen
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (PHP_SAPI != 'cli') exit();
|
||||
define('PICONTROL', true);
|
||||
const PICONTROL = true;
|
||||
|
||||
$doNotCheckForAuthentification = true;
|
||||
(include_once realpath(dirname(__FILE__)).'/../init.php') or die('Error: 0x0000');
|
||||
@@ -22,7 +22,7 @@ foreach ($fileArray as $file)
|
||||
{
|
||||
$timeOfFile = str_replace('-', '', substr($file, 0, 2));
|
||||
$rest = date('i', time()) % $timeOfFile;
|
||||
|
||||
|
||||
if (is_numeric($rest) && $rest == 0)
|
||||
{
|
||||
exec('/usr/bin/php -f "'.CRON_PATH.$file.'"');
|
||||
@@ -31,6 +31,5 @@ foreach ($fileArray as $file)
|
||||
}
|
||||
}
|
||||
|
||||
if (trim(exec('dpkg -s php5-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.0-cli | grep Status: ')) || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '')
|
||||
if (trim(exec('dpkg -s php7.0-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '')
|
||||
setConfig('cron:execution.cron', time());
|
||||
?>
|
||||
Reference in New Issue
Block a user