本文整理匯總了PHP中PHPWS_Core::getBaseURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP PHPWS_Core::getBaseURL方法的具體用法?PHP PHPWS_Core::getBaseURL怎麽用?PHP PHPWS_Core::getBaseURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PHPWS_Core
的用法示例。
在下文中一共展示了PHPWS_Core::getBaseURL方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getBase
public static function getBase()
{
return '<base href="' . PHPWS_Core::getBaseURL() . '" />';
}
示例2: dirname
<?php
/**
*
* @author Matthew McNaney <mcnaney at gmail dot com>
* @package Global
* @license http://opensource.org/licenses/lgpl-3.0.html
*/
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
$_SESSION['ck_dir'] = dirname($_SERVER['PHP_SELF']) . '/images/filecabinet/';
$_SESSION['ck_http'] = dirname($_SERVER['PHP_SELF']) . '/images/filecabinet/';
$_SESSION['home_dir'] = PHPWS_HOME_DIR;
$_SESSION['source_dir'] = PHPWS_SOURCE_DIR;
$_SESSION['source_http'] = PHPWS_SOURCE_HTTP . 'javascript/ckeditor/filemanager/';
$_SESSION['logged'] = Current_User::isLogged();
$_SESSION['filecab'] = Current_User::allow('filecabinet');
$_SESSION['base_url'] = PHPWS_Core::getBaseURL();
$default['session_name'] = session_name();
$source_http = PHPWS_SOURCE_HTTP;
$session_name = session_name();
$header = <<<EOF
<script type="text/javascript" src="{$source_http}javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
var source_http = '{$source_http}';
var sn = '{$session_name}';
CKEDITOR.config.customConfig = '{$source_http}javascript/ckeditor/phpws_config.js';
</script>
EOF;
Layout::addJSHeader($header, 'ckeditor-head');