本文整理汇总了PHP中XTemplate::perex方法的典型用法代码示例。如果您正苦于以下问题:PHP XTemplate::perex方法的具体用法?PHP XTemplate::perex怎么用?PHP XTemplate::perex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XTemplate
的用法示例。
在下文中一共展示了XTemplate::perex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$_GET["page"] = "";
}
}
$Cluster_ipv4 = new Cluster_ipv4($xtpl, $db);
$Cluster_ipv6 = new Cluster_ipv6($xtpl, $db);
$_GET["page"] = isset($_GET["page"]) ? $_GET["page"] : false;
$db_ver = $cluster_cfg->get("db_version");
$db_check = $db_ver == DB_VERSION;
$xtpl->assign('DB_VERSION', $db_ver);
if (!$db_check) {
$cluster_cfg->set("maintenance_mode", true);
}
if ($_GET["page"] != "login" && $_GET["page"] != "lang" && $_GET["page"] != "about" && !$_SESSION["is_admin"] && $cluster_cfg->get("maintenance_mode")) {
$request_page = "";
include WWW_ROOT . 'pages/page_index.php';
$xtpl->perex(_("Maintenance mode"), _("vpsAdmin is currently in maintenance mode, any actions are disabled. <br />\n\t\t\t\t\t\t\t\t\t\tThis is usually used during outage to prevent data corruption.<br />\n\t\t\t\t\t\t\t\t\t\tPlease be patient."));
} else {
show_notification();
switch ($_GET["page"]) {
case 'adminvps':
include WWW_ROOT . 'pages/page_adminvps.php';
break;
case 'about':
include WWW_ROOT . 'pages/page_about.php';
break;
case 'login':
include WWW_ROOT . 'pages/page_login.php';
break;
case 'adminm':
include WWW_ROOT . 'pages/page_adminm.php';
break;