if (file_exists(dirname(__FILE__) . '/utils/mapping.class.php')) { include_once "utils/mapping.class.php"; } if (file_exists(dirname(__FILE__) . '/utils/xml.class.php')) { include_once "utils/xml.class.php"; } if (file_exists(dirname(__FILE__) . '/utils/scheduler.class.php')) { include_once "utils/scheduler.class.php"; } if (file_exists(dirname(__FILE__) . '/utils/forceRequest.class.php')) { include_once "utils/forceRequest.class.php"; } /* Init log default type */ Log::setDefaultType($CONF_default_log); /* Init of scheduler */ Scheduler::initTimer($CONF_WsGetReqList, $CONF_WsPostReqList, $CONF_CachetimeLbl, $CONF_LastrequestLbl); /* Init of forceRequest (used to test only one request) */ ForceRequest::initForceRequest(Scheduler::getWsNameGetList(), Scheduler::getWsNamePostList()); if (ForceRequest::isForcedRequest() && isset($_GET['log'])) { Log::setDefaultType($_GET['log']); } /* * Execute POST requests */ Log::write("###### DO POST REQUESTS ######", "info"); $listPOST = ''; for ($i = 0; $i < sizeof($CONF_WsPostReqList); $i++) { $listPOST .= $i == 0 ? $CONF_WsPostReqList[$i] : ' - ' . $CONF_WsPostReqList[$i]; } Log::write("Webservices to call : " . $listPOST, "info"); include "postSynchCtrl.php";