'1', 'sLastExecution' => date('Y-m-d H:i:s')))); } $WS = ''; $argsx = ''; $sDate = ''; for($i=1; $iread()) { if (($sObject != '.') && ($sObject != '..')) { if (is_dir(PATH_DB . $sObject)) { if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) { $cws++; system("php -f \"".dirname(__FILE__).PATH_SEP."cron_single.php\" $sObject \"$sDate\" $argsx", $retval); } } } } } else { $cws = 1; system("php -f \"".dirname(__FILE__).PATH_SEP."cron_single.php\" $WS \"$sDate\" $argsx", $retval); } eprintln("Finished $cws workspaces processed.");