本文整理汇总了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;
}
示例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;
}
示例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");
}
}
示例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;
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例11: __construct
public function __construct($re)
{
if (!is_file(Wind::getRealPath('DATA:install.lock', true))) {
Wind::getComponent('response')->sendRedirect("install.php");
}
parent::__construct($re);
}
示例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'];
}
示例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;
}
示例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);
}
示例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();
}