#
# File name: admin.php
# Author: Kingsley
# Date: 06/06/2008
# Time: 5:35 AM
#
$disabled = false;
$maintain = true;
if($disabled){
exit;
}
if(!defined("IN_BGS")){
include("../404.php");
}
define("IN_ADMIN", true);
include("admin/admin_functions.php");
if ($_SESSION["user"]["level"] < 5 || !isset($_SESSION["user"]["name"])){
print "";
}
function TeamToForum($team){
switch($team){
case "Tech";
return "Tech";
break;
case "Member Plus";
return "MPlus";
break;
case "Host";
return "Hosts";
break;
case "Admin";
return "Admins";
break;
case "Development";
return "Development";
break;
case "Security Team";
return "ST";
break;
}
}
$myname = $_SESSION["user"]["name"];
$adminuser = $_SESSION["user"]["name"];
//check who/what they are and react accordingly
if($maintain && $_SESSION["user"]["level"] < 7 && ($_SESSION["committee"]["name"] != "Security Team" || $_SESSION["committee"]["name"] != "Admin")) {
print "
Administration panel is undergoing maintainance";
} else {
if(isset($_SESSION["user"]["name"]) && !isset($_GET["committee"])){
switch($_SESSION["committee"]["tag"]){
case "@MPlus";
?>
Redirecting you to the @MPlus admin page in 2 seconds.
break;
case "@Host";
?>
Redirecting you to the @Host admin page in 2 seconds.
break;
case "@Tech";
?>
Redirecting you to the @Tech admin page in 2 seconds.
break;
case "@Dev";
?>
Redirecting you to the @Dev admin page in 2 seconds.
break;
case "@ST";
?>
Redirecting you to the @ST admin page in 2 seconds.
break;
case "@Admin";
print "Welcome $myname please select which admin panel you would like to access!
";
print "MPlus Committee
Tech Committee
Dev Committee
Host Committee
Security Team Committee
Admin Committee";
break;
} // end Tag case
} // end main if
if(isset($_GET["committee"])){ //check if they're trying to get to a page!
if($maintain) {
print "Administration panel is undergoing maintainance";
}
switch($_GET["committee"]){//select a page
case "MPlus";
include("admin/MPlus.php");
break;
case "Host";
include("admin/Host.php");
break;
case "Tech";
include("admin/Tech.php");
break;
case "Dev";
include("admin/Dev.php");
break;
case "ST";
include("admin/ST.php");
break;
case "Admin";
include("admin/Admin.php");
break;
} // end select page
} // end committiee page
} // end mantainance switch
?>
Admin Panel Version: 3.2.4