function getSetting() { $path = $this->_getSettingPath(); if (is_file($path)) { return include CLOUDWIND_SECURITY_SERVICE::escapePath($path); } return $this->getSettingNoCache(); }
function getDefendGeneralOperateService() { static $service = null; if (!$service) { require_once CLOUDWIND_SECURITY_SERVICE::escapePath(CLOUDWIND_VERSION_DIR . '/service/defend.generaloperate.class.php'); $service = new CloudWind_Defend_General_Operate(); } return $service; }
function _getVersionFactory() { static $factory = null; if (!$factory) { require_once CLOUDWIND . '/client/core/public/core.toolkit.class.php'; require_once CLOUDWIND_SECURITY_SERVICE::escapePath(CLOUDWIND . '/version/' . CLOUDWIND_CLIENT_VERSION . '/service/service.factory.class.php'); $factory = new CloudWind_Service_Factory(); } return $factory; }
function postUserDefinedData($typeName) { CloudWind_ipControl(); if (!$typeName) { return false; } $filePath = CLOUDWIND_VERSION_DIR . '/userdefined/' . $typeName . '.userdefined.php'; if (!is_file($filePath)) { return false; } require_once CLOUDWIND . '/client/core/public/core.toolkit.class.php'; require_once CLOUDWIND . '/client/core/public/core.userdefinedbase.class.php'; require_once CLOUDWIND_SECURITY_SERVICE::escapePath($filePath); $className = 'CloudWind_' . ucfirst($typeName) . '_UserDefined'; if (!class_exists($className)) { return false; } $service = new $className(); if (!method_exists($service, 'sync')) { return false; } return $service->sync(); }
function _getVerifySettingPath() { return CLOUDWIND_SECURITY_SERVICE::escapePath(CloudWind_getConfig('g_cachedir') . 'cloudwind_logsettings.php'); }
function CloudWind_unlink($fileName) { return @unlink(CLOUDWIND_SECURITY_SERVICE::escapePath($fileName)); }