function CloudWind_ipControl() { require_once CLOUDWIND . '/client/platform/service/platform.factory.class.php'; $factory = new CloudWind_Platform_Factory(); $controlService = $factory->getControlService(); if (!$controlService->ipControl()) { return exit('IP Forbidden'); } return true; }
function verifyRouter() { CloudWind_ipControl(); require_once CLOUDWIND . '/client/platform/service/platform.factory.class.php'; $factory = new CloudWind_Platform_Factory(); $service = $factory->getWalkerService(); $result = $service->router(); print_r($result); exit; }
function getPlatformCheckServerService() { static $service = null; if (!$service) { require_once CLOUDWIND . '/client/platform/service/platform.factory.class.php'; $factory = new CloudWind_Platform_Factory(); $service = $factory->getCheckServerService(); } return $service; }