コード例 #1
0
ファイル: Zone.php プロジェクト: Koulio/OpenZIS
 public static function setupZone($zone)
 {
     if ($zone == '' || $zone == null) {
         ZitLog::writeToErrorLog('[Zone is missing in request]', 'Zone is missing in request', 'Retreive Zone Information');
         echo '<FATAL_ERROR>INVALID ZONE</FATAL_ERROR>';
         exit;
     }
     if (!Zone::checkZoneExist($zone)) {
         ZitLog::writeToErrorLog('[Zone does not exist]', 'Zone does not exist in the system => ' . substr($zone, 0, 30), 'Retreive Zone Information');
         echo '<FATAL_ERROR>INVALID ZONE</FATAL_ERROR>';
         exit;
     } else {
         $_SESSION['ZONE_NAME'] = $zone;
         Zone::getZoneId($zone);
     }
 }