Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }