当前位置: 首页>>代码示例>>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;未经允许,请勿转载。