function getSiteScale() { $setting = $this->getPlatformSettings(); if ($setting['sitescale'] == 101) { return true; } require_once CLOUDWIND_VERSION_DIR . '/service/service.factory.class.php'; $factory = new CloudWind_Service_Factory(); $threadService = $factory->getSearchThreadService(); $count = $threadService->countThreadsNum(); return $count >= (isset($setting['sitelimit']) ? $setting['sitelimit'] : 0) ? true : false; }
function getPostVerifyService() { static $service = null; if (!$service) { require_once CLOUDWIND_VERSION_DIR . '/service/service.factory.class.php'; $factory = new CloudWind_Service_Factory(); $service = $factory->getDefendPostVerifyService(); } return $service; }
function resetCloudwind() { require_once CLOUDWIND_VERSION_DIR . '/service/service.factory.class.php'; $factory = new CloudWind_Service_Factory(); $platformResetService = $factory->getPlatformResetService(); return $platformResetService->resetCloudWind(); }