CRON</title></head> <body> <?php debug("--------------- CRON STARTED -----------------------------------"); // this can be long duty! set_time_limit(18000); // don't garble reply message with warnings in HTML //ini_set("display_errors", 0); //******** Synchronize with network: send new local data and recievie new global data // get sync stamp and increment it $syncStamp = $sotfVars->get('sync_stamp', 0); $syncStamp++; $sotfVars->set('sync_stamp', $syncStamp); // sync with all neighbours $rpc = new rpc_Utils(); $neighbours = sotf_Neighbour::getAll(); if (count($neighbours) > 0) { while (list(, $neighbour) = each($neighbours)) { $neighbour->sync(); } } //********* IMPORT ARRIVED XBMF $dirPath = $config['xbmfInDir']; $dir = dir($dirPath); while ($entry = $dir->read()) { if ($entry != "." && $entry != "..") { $currentFile = $dirPath . "/" . $entry; if (!is_dir($currentFile)) { $XBMF[] = basename($currentFile); } }