本文整理汇总了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');
}