本文整理汇总了PHP中GO::getId方法的典型用法代码示例。如果您正苦于以下问题:PHP GO::getId方法的具体用法?PHP GO::getId怎么用?PHP GO::getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GO
的用法示例。
在下文中一共展示了GO::getId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: launchGO
//if(strpos($_SERVER['QUERY_STRING'], '<script') || strpos(urldecode($_SERVER['QUERY_STRING']), '<script'))
// die('Invalid request');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php
echo \GO::config()->product_name;
?>
</title>
<script type="text/javascript">
function launchGO(){
//var win = window.open('', "groupoffice");
var win = window.open('', "<?php
echo \GO::getId();
?>
");
if(win.GO && win.GO.<?php
echo $module;
?>
)
{
win.GO.<?php
echo $module;
?>
.<?php
echo $function;
示例2:
read:10,
create:20,
write:30,
writeAndDelete:40,
manage:50
};
<?php
if (isset(\GO::session()->values['security_token'])) {
echo 'GO.securityToken="' . \GO::session()->values['security_token'] . '";';
}
if (isset($_REQUEST['SET_LANGUAGE']) && preg_match('/[a-z_]/', $_REQUEST['SET_LANGUAGE'])) {
echo 'GO.loginSelectedLanguage="' . $_REQUEST['SET_LANGUAGE'] . '";';
}
if (\GO::user()) {
echo 'window.name="' . \GO::getId() . '";';
} else {
echo 'window.name="groupoffice-login";';
}
?>
</script>
<?php
$cacheFolder = \GO::config()->getCacheFolder();
$extjsLang = \GO::t('extjs_lang');
if ($extjsLang == 'extjs_lang') {
$extjsLang = \GO::language()->getLanguage();
}
$file = 'base-' . md5($extjsLang . \GO::config()->mtime) . '.js';
$path = $cacheFolder->path() . '/' . $file;
if (\GO::config()->debug || !file_exists($path)) {
echo "\n<!-- regenerated script -->\n";