* @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']);
/** * 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'); }