示例#1
0
define('ZONE_URL_INDEX', $zoneUrlIndex);
define('SERVER_SOURCE_ID', Zit::getSourceId());
/* Proper Values for SIF_VALIDATE
** 	Y : Validate and Send Error and Log Error
**  N : No Validate and Pass Message
**  W : Validate and Pass Message and Log Error
*/
define('SIF_VALIDATE', 'W');
//global $USERNAME;
if ($config->code->level == 2) {
    ini_set('error_reporting', E_ALL & ~E_STRICT);
} elseif ($config->code->level == 3) {
    ini_set('error_reporting', E_ALL & ~E_STRICT);
} else {
    ini_set('error_reporting', 0);
}
Zone::retrieveZoneSourceId();
define('NODE_NUM', 0);
try {
    if (SifProcessRequest::validateXML($xml)) {
        define('REC_XML', $xml);
        $messageObject = new MessageObject($xml);
        $messageObject->version = SifProcessRequest::retrieveVersion($messageObject);
        SifProcessRequest::processMessage($messageObject);
    } else {
        GeneralError::xmlValidationError($messageObject->xmlStr);
    }
} catch (Zend_Exception $e) {
    ZitLog::writeToErrorLog("[Main Loop]", "Request Xml:\n{$messageObject->xmlStr} \n\n Errors:{$e->getTraceAsString}()", "Main Loop", $_SESSION['ZONE_ID']);
    GeneralError::systemError($messageObject->xmlStr);
}