#
# File name: applications.php
# Author: Kingsley
# Date: 06/06/2008
# Time: 5:35 AM
#
if(!defined("IN_BGS")){
include("../404.php");
}
switch($_GET["submit"]){
case "true";
//lets get this show on the road!
if($_POST){
switch($_POST["committee"]){
case "tech";
$application = $_POST["Name"]."\n".$_POST["Email"]."\n".$_POST["Age"]."\n".$_POST["DOB"]."\n".$_POST["Country"]."\n".$_POST["timezone"]."\n".$_POST["TimeAvail"]."\n".$_POST["MeetNew"]."\n".$_POST["ExpHardware"]."\n".str_replace("\n","||",$_POST["ExpExplain"])."\n".$_POST["Commun"]."\n".str_replace("\n","||",$_POST["AbuseHandle"])."\n".str_replace("\n","||",$_POST["WhyHelp"])."\n".str_replace("\n","||",$_POST["PrevExp"])."\n".str_replace("\n","||",$_POST["RelatedExp"])."\n".$_POST["Pick1"]." ".$_POST["Pick2"]." ".$_POST["Pick3"];
$committee = addslashes($_POST["committee"]);
$application = addslashes($application);
$id = mysql_num_rows(mysql_query("SELECT * from applications")) + 1;
mysql_query("INSERT INTO applications values ('$id','$committee', '$application', '$time')");
print "Your application has been processed, we will get back to you ASAP. \nThank you.";
mail("support@beyondgaming.org", "New applicant: ".$_POST["Name"], $_POST["Name"]." has applied for the Tech team. Please review this application","From: Do-not-reply@beyondgaming.org");
break;
case "host";
$application = $_POST["Name"]."\n".$_POST["Email"]."\n".$_POST["Age"]."\n".$_POST["DOB"]."\n".$_POST["Country"]."\n".$_POST["timezone"]."\n".$_POST["Nick"]."\n".$_POST["OtherNicks"]."\n".str_replace("\n","",$_POST["HostedOnline"])."\n".$_POST["MeetNew"]."\n".$_POST["Communicate"]."\n".str_replace("\n","||",$_POST["AbuseHandle"])."\n".str_replace("\n","||",$_POST["WhyMember"])."\n".str_replace("\n","||",$_POST["HostRole"])."\n".$_POST["Games"];
$application = addslashes($application);
$committee = addslashes($_POST["committee"]);
$id = mysql_num_rows(mysql_query("SELECT * from applications")) + 1;
mysql_query("INSERT INTO applications values ('$id', '$committee', '$application', '$time')");
print "Your application has been processed, we will get back to you ASAP. Thank you.";
mail("biteme@beyondgaming.org", "New applicant: ".$_POST["Name"],$_POST["Name"]." has applied for the Host team. Please review this application","From: Do-not-reply@beyondgaming.org");
break;
}
}
break;
}
switch($_GET["team"]){
case "MPlus";
if($config["Apps_MPlus"]){
} else {
print "The MPlus applications are not open.";
}
break;
case "Host";
if($config["Apps_Host"]){
?>
**Submitting this application does not mean you have been accepted to the Beyond Gaming Host Committee. You will be notified your results via email.
Once again, all of us at Beyond Gaming thank you for your interest in becoming part of our team.
} else {
?>
Host Applications are currently Closed
}
break;
case "Tech";
if($config["Apps_Tech"]){
if($_SESSION["user"]["name"] == ""){
print "You must login before filling out the application!";
} else {
?>
}
} else {
?>