当前位置: 首页>>代码示例>>PHP>>正文


PHP CloudWind_getConfig函数代码示例

本文整理汇总了PHP中CloudWind_getConfig函数的典型用法代码示例。如果您正苦于以下问题:PHP CloudWind_getConfig函数的具体用法?PHP CloudWind_getConfig怎么用?PHP CloudWind_getConfig使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了CloudWind_getConfig函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: apply

 function apply($siteurl, $sitename, $bossname, $bossphone, $marksite)
 {
     if (!$siteurl || !$sitename || !$marksite) {
         return false;
     }
     return $this->_sendPost(array('siteurl' => $siteurl, 'sitename' => $sitename, 'charset' => CloudWind_getConfig('g_charset'), 'bossname' => $bossname, 'bossphone' => $bossphone, 'marksite' => $marksite));
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:7,代码来源:platform.apply.class.php

示例2: replace

 function replace($type, $tid, $pid)
 {
     if (!$tid || !$type) {
         return false;
     }
     return $this->_db->query("REPLACE INTO " . $this->_tableName . "(id,type,tid,pid,modified_time) VALUES (null," . CLOUDWIND_SECURITY_SERVICE::sqlEscape($type) . "," . intval($tid) . "," . intval($pid) . "," . CloudWind_getConfig('g_timestamp') . ")");
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:7,代码来源:defend_postverifydb.class.php

示例3: checkSegment

 function checkSegment($startTime, $endTime)
 {
     $startTime = intval($startTime);
     $endTime = intval($endTime);
     $startTime = $startTime > 0 ? $startTime : 0;
     $endTime = $endTime > 0 ? $endTime : CloudWind_getConfig('g_timestamp');
     return array($startTime, $endTime);
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:8,代码来源:search_logsdb.class.php

示例4: _factory

 function _factory($type)
 {
     $factory = $this->_getGeneralFactory();
     if (!$type || !in_array($type, CloudWind_getConfig('search_types'))) {
         exit('forbiden for version type');
     }
     $method = 'getGeneral' . ucfirst($type) . 'Service';
     if (!method_exists($factory, $method)) {
         exit('forbiden for version type');
     }
     return $factory->{$method}();
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:12,代码来源:search.general.class.php

示例5: _convertCharset

 function _convertCharset($text)
 {
     static $charset = null;
     if (!in_array(CloudWind_getConfig('g_charset'), array('utf8', 'utf-8'))) {
         if (!$charset) {
             require_once CLOUDWIND . '/client/core/public/core.factory.class.php';
             $factory = new CloudWind_Core_Factory();
             $charset = $factory->getChineseService(CloudWind_getConfig('g_charset'), 'utf8');
         }
         return $charset->Convert($text);
     }
     return $text;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:13,代码来源:general.tools.class.php

示例6: CloudWind_buildSecutiryCode

function CloudWind_buildSecutiryCode($string, $action = 'ENCODE')
{
    $action != 'ENCODE' && ($string = base64_decode($string));
    $code = '';
    $key = substr(md5(CloudWind_getConfig('yun_hash')), 8, 18);
    $keyLen = strlen($key);
    $strLen = strlen($string);
    for ($i = 0; $i < $strLen; $i++) {
        $k = $i % $keyLen;
        $code .= $string[$i] ^ $key[$k];
    }
    return $action != 'DECODE' ? base64_encode($code) : $code;
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:13,代码来源:core.common.class.php

示例7: __construct

 function __construct()
 {
     if (!isset($this->_service['parse']) || !$this->_service['parse']) {
         $this->_service['parse'] = new CloudWind_Platform_Aggregate_SQLParseExtension();
     }
     if (!isset($this->_service['operate']) || !$this->_service['operate']) {
         $yunModel = CloudWind_getConfig('yun_model');
         $this->_service['operate'] = $yunModel['search_model'] == 100 ? new CloudWind_Platform_Aggregate_OperateLog() : new CloudWind_Platform_Aggregate_SyncOperateLog();
     }
     if ($this->_doubleModel && (!isset($this->_service['operate_normal']) || !isset($this->_service['operate_sync']) || !$this->_service['operate_normal'] || !$this->_service['operate_sync'])) {
         $this->_service['operate_normal'] = new CloudWind_Platform_Aggregate_OperateLog();
         $this->_service['operate_sync'] = new CloudWind_Platform_Aggregate_SyncOperateLog();
     }
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:14,代码来源:search.aggregate.class.php

示例8: syncUser

 function syncUser()
 {
     $yunModel = CloudWind_getConfig('yun_model');
     if (!CloudWind_getConfig('yundefend_shield') || $yunModel['userdefend_model'] != 100) {
         return true;
     }
     $setting = $this->getPlatformSettings();
     $service = $this->getDefendSyncService();
     if (!($data = $service->getUserDefends())) {
         return true;
     }
     $data = $this->_sendPost(array('data' => $data, 'uniqueid' => $setting['uniqueid'], 'identifier' => $setting['identifier']), 'batch');
     return true;
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:14,代码来源:platform.sync.class.php

示例9: userDefend

 function userDefend($operate, $uid, $username, $accesstime, $viewtime, $status = 0, $reason = "", $content = "", $behavior = array(), $expand = array())
 {
     if (0 == CloudWind_getConfig('yundefend_shield') || !($setting = $this->getPlatformSettings()) || $setting['dunstatus'] == 100) {
         return DEFEND_SUCCESS;
     }
     $data = $this->_dataEncode(array('operate' => $operate, 'status' => $status, 'uid' => $uid, 'username' => $username, 'localtime' => $GLOBALS['timestamp'], 'bbsurl' => $GLOBALS['db_bbsurl'], 'bbsname' => $GLOBALS['db_bbsname'], 'charset' => $GLOBALS['db_charset'], 'ip' => CloudWind_getIp(), 'refere' => $_SERVER['REQUEST_URI'], 'useragent' => $_SERVER['HTTP_USER_AGENT'], 'uniqueid' => $setting['uniqueid'], 'identifier' => $setting['identifier'], 'method' => $_SERVER['REQUEST_METHOD'], 'accesstime' => $accesstime, 'viewtime' => $viewtime, 'reason' => $reason, 'content' => $content, 'expand' => $expand, 'behavior' => $behavior, 'version' => WIND_VERSION, 'os' => ''));
     $yunModel = CloudWind_getConfig('yun_model');
     if (isset($yunModel['userdefend_model']) && $yunModel['userdefend_model'] == 100) {
         $defendOperateService = $this->getDefendGeneralOperateService();
         $defendOperateService->insertUserDefend($data);
     } else {
         $this->_sendRequest($this->_buildRequestUrl('user') . '&data=' . $data, '', 5);
     }
     return DEFEND_SUCCESS;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:15,代码来源:defend.general.class.php

示例10: postAudit

 function postAudit($id, $postAudit, $type, $expand)
 {
     if ($postAudit != 100 || CloudWind_getConfig('yundefend_shieldpost') == 0) {
         return DEFEND_SUCCESS;
     }
     switch ($type) {
         case 'thread':
             $this->_postThread($id, $postAudit, $expand);
             break;
         case 'diary':
             $this->_postDiary($id, $postAudit, $expand);
             break;
         case 'reply':
             $this->_postReply($id, $postAudit, $expand);
             break;
         default:
             break;
     }
     return DEFEND_SUCCESS;
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:20,代码来源:defend.generaloperate.class.php

示例11: getHostConnectTime

 function getHostConnectTime($host)
 {
     $time_start = $this->getMicrotime();
     $result = $this->_sendPost($host, 'testsite', array('siteurl' => CloudWind_getConfig('g_bbsurl')));
     $time_end = $this->getMicrotime();
     return number_format($time_end - $time_start, 4);
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:7,代码来源:platform.checkserver.class.php

示例12: proxyEntry

 function proxyEntry()
 {
     print_r($this->getProxyIframe(CloudWind_getConfig('g_charset')));
     exit;
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:5,代码来源:search.entry.php

示例13: getIpLists

 function getIpLists($iplists)
 {
     $iplists = $iplists ? explode("|", $iplists) : CloudWind_getConfig('g_whiteips');
     return array_merge(array('110.75.164.x', '110.75.168.x', '110.75.171.x', '110.75.172.x', '110.75.173.x', '110.75.174.x', '110.75.175.x', '110.75.176.x', '110.75.167.x'), $iplists);
 }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:5,代码来源:platform.control.class.php

示例14: sendUserInfo

 function sendUserInfo($cloud_information)
 {
     if (!CLOUDWIND_SECURITY_SERVICE::isArray($cloud_information) || SCR == 'yi') {
         return false;
     }
     list($operate, $leaveTime, $tid, $fid) = $cloud_information ? $cloud_information : array('', '');
     if (!in_array($operate, array('index', 'read', 'thread')) || $operate == SCR) {
         return false;
     }
     $user = CloudWind::getOnlineUserInfo();
     $viewTime = CloudWind_getConfig('g_timestamp') - $leaveTime ? CloudWind_getConfig('g_timestamp') - $leaveTime : '';
     CloudWind::yunUserDefend('view' . $operate, $user['uid'], $user['username'], $leaveTime, $viewTime, 101, '', '', '', array('uniqueid' => $tid . '-' . $fid));
     return true;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:14,代码来源:cloudwind.class.php

示例15: _getVerifySettingPath

 function _getVerifySettingPath()
 {
     return CLOUDWIND_SECURITY_SERVICE::escapePath(CloudWind_getConfig('g_cachedir') . 'cloudwind_logsettings.php');
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:4,代码来源:platform.verifysetting.class.php


注:本文中的CloudWind_getConfig函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。