當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageDie函數代碼示例

本文整理匯總了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']);
開發者ID:CodingDK,項目名稱:SourceBans-Fork,代碼行數:31,代碼來源:page.submit.php

示例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');
}
開發者ID:urichalex,項目名稱:sourcebansv1,代碼行數:19,代碼來源:system-functions.php


注:本文中的PageDie函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。