當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Wind::getRealPath方法代碼示例

本文整理匯總了PHP中Wind::getRealPath方法的典型用法代碼示例。如果您正苦於以下問題:PHP Wind::getRealPath方法的具體用法?PHP Wind::getRealPath怎麽用?PHP Wind::getRealPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Wind的用法示例。


在下文中一共展示了Wind::getRealPath方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getRewriteAddOns

 /**
  * 獲取偽靜態設置的擴展
  *
  * @return mixed
  */
 public function getRewriteAddOns()
 {
     $r = @(include Wind::getRealPath("APPS:rewrite.conf.rewrite.php", true));
     $r || ($r = array());
     $r = PwSimpleHook::getInstance('rewrite_config')->runWithFilters($r);
     return $r;
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:12,代碼來源:PwDomainService.php

示例2: getAppOutPut

 public static function getAppOutPut($collect)
 {
     $data = array();
     $sign = ACloudSysCoreCommon::getSiteSign();
     $data['src'] = $collect->getSrc();
     $data['url'] = ACloudSysCoreCommon::getGlobal('g_siteurl', $_SERVER['SERVER_NAME']);
     $data['sn'] = ACloudSysCoreCommon::getSiteUnique();
     $data['fid'] = $collect->getFid();
     $data['uid'] = $collect->getUid();
     $data['tid'] = $collect->getTid();
     $data[$sign] = ACloudVerCoreApp::getSyncData($sign);
     $data['charset'] = ACloudSysCoreCommon::getGlobal('g_charset', 'gbk');
     $data['username'] = $collect->getUsername();
     $data['title'] = $collect->getTitle();
     $data['_ua'] = ACloudSysCoreCommon::getSiteUserAgent();
     $data['_shr'] = base64_encode(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
     $data['_sqs'] = base64_encode(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
     $data['_ssn'] = base64_encode(isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : '');
     $data['_t'] = ACloudSysCoreCommon::getGlobal('timestamp') + 86400;
     $data['_v'] = rand(1000, 9999);
     require_once Wind::getRealPath("ACLOUD:system.core.ACloudSysCoreHttp");
     $url = sprintf("http://%s/?%s", ACloudSysCoreDefine::ACLOUD_HOST_APP, ACloudSysCoreHttp::httpBuildQuery($data));
     $output = "<script type=\"text/javascript\">(function(d,t){var url=\"{$url}\";var g=d.createElement(t);g.async=1;g.src=url;d.body.insertBefore(g,d.body.firstChild);}(document,\"script\"));</script>";
     return $output;
 }
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:25,代碼來源:ACloudVerCoreApp.php

示例3: __construct

 public function __construct()
 {
     $this->logfile = Wind::getRealPath(Wekit::app()->logFile, true);
     if (!WindFile::isFile($this->logfile)) {
         WindFile::write($this->logfile, "<?php die;?>\n");
     }
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:7,代碼來源:AdminLogService.php

示例4: getVerifyType

 /**
  * 返回驗證碼類型
  *
  * @return array
  */
 public function getVerifyType()
 {
     $conf = Wind::getRealPath('WINDID:service.verify.codetype.verify.php', true);
     $tmp = array('name' => '', 'alias' => '', 'description' => '', 'components' => array());
     $verify = @(include $conf);
     return $verify;
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:12,代碼來源:PwVerifyService.php

示例5: getExtendsList

 /**
  * 獲得擴展列表
  * 
  * @param string $type
  * @return array
  */
 private function getExtendsList($type)
 {
     if ($this->config === null) {
         $this->config = (include Wind::getRealPath('APPS:task.conf.taskExtends.php', true));
     }
     return isset($this->config[$type]) ? $this->config[$type] : array();
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:13,代碼來源:PwTaskExtends.php

示例6: __construct

 /**
  * 初始化安裝程序
  */
 public function __construct()
 {
     $this->_appId = 'L000' . time() . WindUtility::generateRandStr(4);
     $this->_config = @(include Wind::getRealPath(self::CONF_PATH, true));
     $this->tmpPath = Wind::getRealPath($this->getConfig('tmp_dir') . '.' . Pw::getTime(), false);
     $this->tmpInstallLog = Wind::getRealPath($this->getConfig('log_dir'), false);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:10,代碼來源:PwInstallApplication.php

示例7: sendPost

 public static function sendPost($data)
 {
     require_once Wind::getRealPath("ACLOUD:system.core.ACloudSysCoreHttpclient");
     $data = self::httpBuildQuery($data);
     $result = ACloudSysCoreHttpclient::post(self::getCloudApi(), $data);
     return ACloudSysCoreCommon::jsonDecode($result);
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:7,代碼來源:ACloudSysCoreHttp.php

示例8: showErrorMessage

 protected function showErrorMessage($message, $file, $line, $trace, $errorcode)
 {
     list($fileLines, $trace) = $this->crash($file, $line, $trace);
     if (Wind::$isDebug & 2) {
         $log = $message . "\r\n" . $file . ":" . $line . "\r\n";
         foreach ($trace as $key => $value) {
             $log .= $value . "\r\n";
         }
         Wind::getComponent('windLogger')->error($log, 'error', true);
     }
     $message = nl2br($message);
     $errDir = Wind::getRealPath($this->errorDir, false);
     if ($this->isClosed) {
         $errPage = 'close';
     } elseif (is_file($errDir . '/' . $errorcode . '.htm')) {
         $errPage = $errorcode;
     } else {
         $errPage = 'error';
     }
     $title = $this->getResponse()->codeMap($errorcode);
     $title = $title ? $errorcode . ' ' . $title : 'unknowen error';
     $__vars['title'] = ucwords($title);
     $__vars['message'] = $message;
     if (Wind::$isDebug & 1) {
         $__vars['debug']['file'] = $file;
         $__vars['debug']['line'] = $line;
         $__vars['debug']['trace'] = $trace;
         $__vars['debug']['fileLines'] = $fileLines;
     }
     $this->render($__vars, $errorcode, $errDir, $errPage);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:31,代碼來源:WindWebError.php

示例9: getType

 /**
  * 根據請求的mime類型獲得返回內容類型
  *
  * @param string $mime mime類型
  * @return string
  */
 public static function getType($mime)
 {
     if (self::$mimes === null) {
         self::$mimes = @(include Wind::getRealPath('WIND:http.mime.mime.php', true));
     }
     return array_search($mime, self::$mimes);
 }
開發者ID:ccq18,項目名稱:EduSoho,代碼行數:13,代碼來源:WindMimeType.php

示例10: getMethod

 protected function getMethod($operation)
 {
     $config = (include Wind::getRealPath('WINDID:service.base.WindidNotifyConf.php', true));
     $method = isset($config[$operation]['method']) ? $config[$operation]['method'] : '';
     $args = isset($config[$operation]['args']) ? $config[$operation]['args'] : array();
     return array($method, $args);
 }
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:7,代碼來源:IndexController.php

示例11: __construct

 public function __construct($re)
 {
     if (!is_file(Wind::getRealPath('DATA:install.lock', true))) {
         Wind::getComponent('response')->sendRedirect("install.php");
     }
     parent::__construct($re);
 }
開發者ID:ccq18,項目名稱:EduSoho,代碼行數:7,代碼來源:adminBoot.php

示例12: getVersionCustomizedCredit

 public function getVersionCustomizedCredit()
 {
     if (!isset($this->service['VersionCustomizedCredit']) || !$this->service['VersionCustomizedCredit']) {
         require_once Wind::getRealPath('ACLOUD_VER:customized.ACloudVerCustomizedCredit');
         $this->service['VersionCustomizedCredit'] = new ACloudVerCustomizedCredit();
     }
     return $this->service['VersionCustomizedCredit'];
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:8,代碼來源:ACloudVerCustomizedFactory.php

示例13: getConfig

 /**
  * 獲取seo配置
  *
  * @return array
  */
 public function getConfig()
 {
     if ($this->config !== null) {
         return $this->config;
     }
     $this->config = @(include Wind::getRealPath('APPS:seo.conf.seoExtends'));
     $this->config = PwSimpleHook::getInstance('seo_config')->runWithFilters($this->config);
     return $this->config;
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:14,代碼來源:PwSeoExtends.php

示例14: createHttpQuery

 public static function createHttpQuery($params)
 {
     if (!$params || !is_array($params)) {
         return '';
     }
     ksort($params);
     require_once Wind::getRealPath("ACLOUD:system.core.ACloudSysCoreHttp");
     return ACloudSysCoreHttp::httpBuildQuery($params);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:9,代碼來源:ACloudSysCoreOauth.php

示例15: checkAction

 public function checkAction()
 {
     require_once Wind::getRealPath('ACLOUD:aCloud');
     ACloudSysCoreCommon::setGlobal('g_siteurl', PUBLIC_URL);
     ACloudSysCoreCommon::setGlobal('g_sitename', 'phpwind');
     ACloudSysCoreCommon::setGlobal('g_charset', Wind::getApp()->getResponse()->getCharset());
     list($this->BenchService, $operate) = array(ACloudSysCoreCommon::loadSystemClass('administor', 'bench.service'), strtolower($this->getInput("operate")));
     return $operate == 'reset' ? $this->reset() : $this->checkEnvironment();
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:9,代碼來源:ServerController.php


注:本文中的Wind::getRealPath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。