本文整理匯總了PHP中PageDie函數的典型用法代碼示例。如果您正苦於以下問題:PHP PageDie函數的具體用法?PHP PageDie怎麽用?PHP PageDie使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了PageDie函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CreateRedBox
* @version 1.0.0
* @copyright SourceBans (C)2007 SteamFriends.com. All rights reserved.
* @package SourceBans
* @link http://www.sourcebans.net
*
* @version $Id: page.submit.php 253 2009-03-31 12:51:01Z peace-maker $
* =============================================================================
*/
global $userbank, $ui, $theme;
if (!defined("IN_SB")) {
echo "You should not be here. Only follow links!";
die;
}
if ($GLOBALS['config']['config.enablesubmit'] != "1") {
CreateRedBox("Error", "This page is disabled. You should not be here.");
PageDie();
}
if (!isset($_POST['subban']) || $_POST['subban'] != 1) {
$SteamID = "";
$BanIP = "";
$PlayerName = "";
$BanReason = "";
$SubmitterName = "";
$Email = "";
$SID = -1;
} else {
$SteamID = trim(htmlspecialchars($_POST['SteamID']));
$BanIP = trim(htmlspecialchars($_POST['BanIP']));
$PlayerName = htmlspecialchars($_POST['PlayerName']);
$BanReason = htmlspecialchars($_POST['BanReason']);
$SubmitterName = htmlspecialchars($_POST['SubmitName']);
示例2: BuildContHeader
/**
* Displays the content header
*
* @return noreturn
*/
function BuildContHeader()
{
global $theme, $userbank;
if (isset($_GET['p']) && $_GET['p'] == "admin" && !$userbank->is_admin()) {
echo "You dont have admin. Be gone!";
RedirectJS('index.php?p=login');
PageDie();
}
if (!isset($_GET['s']) && isset($GLOBALS['pagetitle'])) {
$page = "<b>" . $GLOBALS['pagetitle'] . "</b>";
}
$theme->assign('main_title', isset($page) ? $page : '');
$theme->display('content_header.tpl');
}