makeProxy.php
682 Bytes
<?php
/*
* Executable to make 'base.xml' proxies for IMPEX centers from IMPEX original trees
*/
if (!function_exists('__autoload')) {
function __autoload($class_name) {
require_once $class_name . '.php';
}
}
require_once "../config.php";
if (!defined('SimuTargetsXml')
exit('SimuTargetsXml is not defined in config.php'.PHP_EOL);
if (file_exists(SimuTargetsXml)) unlink(SimuTargetsXml);
$simuBases = array("IPIM", "LATMOS", "FMI_HYBRID", "FMI_GUMICS", "SINP", "LESIA");
foreach ($simuBases as $class)
{
echo PHP_EOL.$class.PHP_EOL;
$center = new $class();
$center->initProxy();
$center->makeProxy();
$center->saveProxy();
}
?>