本文整理匯總了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;