本文整理汇总了PHP中XTemplate::logbox方法的典型用法代码示例。如果您正苦于以下问题:PHP XTemplate::logbox方法的具体用法?PHP XTemplate::logbox怎么用?PHP XTemplate::logbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XTemplate
的用法示例。
在下文中一共展示了XTemplate::logbox方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
default:
//include WWW_ROOT.'pages/page_index.php';
include WWW_ROOT . 'pages/page_adminvps.php';
}
if (isset($_SESSION["logged_in"]) && $_SESSION["logged_in"]) {
// 如果是管理员,才显示服务器状态信息
if ($_SESSION[is_admin]) {
$xtpl->menu_add(_("Status"), '?page=status', $_GET["page"] == 'status');
}
$xtpl->menu_add(_("Manage VPS"), '?page=adminvps', $_GET["page"] == 'adminvps');
$xtpl->menu_add(_("Manage Members"), '?page=adminm', $_GET["page"] == 'adminm');
$xtpl->menu_add(_("Manage Networking"), '?page=networking', $_GET["page"] == 'networking');
if ($_SESSION[is_admin]) {
$xtpl->menu_add(_("Manage Cluster"), '?page=cluster', $_GET["page"] == 'cluster');
$xtpl->menu_add(_("Transaction log"), '?page=transactions', $_GET["page"] == 'transactions');
}
// $xtpl->menu_add(_("About vpsAdmin"),'?page=about', ($_GET["page"] == 'about'), true);
// 页面右侧显示任务日志
list_transactions();
$xtpl->assign('AJAX_SCRIPT', ajax_getHTML('ajax.php?page=transactbox', 'transactions', 5000));
} else {
if ($_SESSION[is_admin]) {
$xtpl->menu_add(_("Status"), '?page=status', $_GET["page"] == 'status');
}
// $xtpl->menu_add(_("About vpsAdmin"),'?page=about', ($_GET["page"] == 'about'), true);
}
$xtpl->logbox(isset($_SESSION["logged_in"]) ? $_SESSION["logged_in"] : false, isset($_SESSION["member"]) ? $_SESSION["member"]["m_nick"] : false);
$xtpl->adminbox($cluster_cfg->get("adminbox_content"));
$lang->lang_switcher();
$xtpl->parse('main');
$xtpl->out('main');
示例2: isset
$xtpl->menu_add(_("Backups"), '?page=backup', $_GET["page"] == 'backup');
if (NAS_PUBLIC || $_SESSION["is_admin"]) {
$xtpl->menu_add(_("NAS"), '?page=nas', $_GET["page"] == 'nas');
}
$xtpl->menu_add(_("Networking"), '?page=networking', $_GET["page"] == 'networking');
$xtpl->menu_add(_("Transaction log"), '?page=transactions', $_GET["page"] == 'transactions', true);
}
list_transactions();
} else {
$xtpl->menu_add(_("Status"), '?page=', $_GET["page"] == '');
$xtpl->menu_add(_("About vpsAdmin"), '?page=about', $_GET["page"] == 'about', true);
}
if (!$_SESSION["logged_in"]) {
$_SESSION["access_url"] = $_SERVER["REQUEST_URI"];
}
$xtpl->logbox(isset($_SESSION["logged_in"]) ? $_SESSION["logged_in"] : false, isset($_SESSION["member"]) ? $_SESSION["member"]["m_nick"] : false, isset($_SESSION["is_admin"]) ? $_SESSION["is_admin"] : false, $cluster_cfg->get("maintenance_mode"), !$db_check);
$xtpl->adminbox($cluster_cfg->get("adminbox_content"));
$help = get_helpbox();
if ($help) {
if ($_SESSION["is_admin"]) {
$help["content"] .= '<br><br><a href="?page=cluster&action=helpboxes_edit&id=' . $help["id"] . '" title="' . _("Edit") . '"><img src="template/icons/edit.png" title="' . _("Edit") . '">' . _("Edit help box") . '</a>';
}
$xtpl->helpbox(_("Help"), nl2br($help["content"]));
} else {
if ($_SESSION["is_admin"]) {
$xtpl->helpbox(_("Help"), '<a href="?page=cluster&action=helpboxes_add&help_page=' . $_GET["page"] . '&help_action=' . $_GET["action"] . '" title="' . _("Edit") . '"><img src="template/icons/edit.png" title="' . _("Edit") . '">' . _("Edit help box") . '</a>');
}
}
$lang->lang_switcher();
$xtpl->assign('PAGE_TITLE', $cluster_cfg->get("page_title"));
if (defined('TRACKING_CODE')) {