本文整理汇总了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');