user_lang ; define('SESSuserid' , $param_nom->userid); define('SESSrights' , $param_nom->rights); define('SESSlogin' , $param_nom->username); define('SESSid', 0); load_user_param(); $messages = new XMLlist("$include_path/messages/$lang.xml", 0); $messages->analyser(); $msg = $messages->table; //Inclusion/initialisation du système de plugins require_once $class_path.'/plugins.class.php'; $plugins = plugins::get_instance(); //Inclusion/initialisation du système d'évenements ! require_once $class_path.'/event/events_handler.class.php'; $evth = events_handler::get_instance(); $evth->discover(); $requires = $evth->get_requires(); for($i=0 ; $iconnectors_out_sources_connectornum; $daconn = instantiate_connecteur_out($connectors_out_sources_connectornum); if ($daconn) { $source_object = $daconn->instantiate_source_class($connectors_out_source_id); } else { $source_object= NULL; } $es=new external_services(); $array_functions = array(); foreach ($source_object->config["exported_functions"] as $exported_function) { $array_functions[] = $exported_function["group"]."_".$exported_function["name"]; } $proxy=$es->get_proxy($PMBuserid,$array_functions); if (file_exists($base_path."/admin/planificateur/catalog_subst.xml")) { $filename = $base_path."/admin/planificateur/catalog_subst.xml"; } else { $filename = $base_path."/admin/planificateur/catalog.xml"; } $xml=file_get_contents($filename); $param=_parser_text_no_function_($xml,"CATALOG"); foreach ($param["ACTION"] as $anitem) { if($type_tache == $anitem["ID"]) { scheduler_log::open('scheduler_'.$anitem["NAME"].'_task_'.$id_tache.'.log'); require_once($base_path."/admin/planificateur/".$anitem["PATH"]."/".$anitem["NAME"].".class.php"); $obj_type = new $anitem["NAME"]($id_tache); $obj_type->setEsProxy($proxy); $obj_type->execute(); $scheduler_planning = new scheduler_planning($id_planificateur); $scheduler_planning->checkParams(); } } } if ($argv[1] && $argv[2] && $argv[3] && $argv[4] && $argv[5]) { run_task($argv[1], $argv[2], $argv[3], $argv[4], $argv[5]); }