load($BasesXml); $bases = $basesDom->getElementsByTagName("dataCenter"); foreach ($bases as $base) { if ($base->hasAttribute('isSimulation')) { $class = $base->getAttribute('xml:id'); echo PHP_EOL.$class.PHP_EOL; $center = new $class(); if ($center->monitor()) { $center->makeArgumentsList(); //copy PlotSettings if exists if (file_exists(DATAPATH."SimuTemplate/".$center->plotSettings)) copy(DATAPATH."SimuTemplate/".$center->plotSettings, RemoteData.$center->baseID.'/'.$center->plotSettings); } else { print_r("Attention : $class service is down"); } } } ?>