View file adminrequest.php

File size: 3.18Kb
<?php
define('WCS',true);
include('./core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");


////////////////////////////////////////MAIN PAGE
if($action=="main")
{
addonline(getuid_sid($sid),"Requesting to be Admin","");
$nick=getnick_sid($sid);
echo head_tag(getnick_sid($sid)."@Admin Request",1,getnick_sid($sid));

$title="<b>Admin Request</b>";
  $main.= "<p align=\"center\">";
  $main.= "Do you think you have what it takes to be admin?</p>";
  $main.="<p align=\"center\">";
  $main.= "If so click the link below to send a request to the owner</p>";
  $main.="<p align=\"center\">";

    $main.= "<p align=\"center\">";
    //$main.="REQUEST AN ADMIN JOB<br/>";

    $main.="</p>"; 
    $main.="<p align=\"center\">";
    $main.= "<form action=\"adminrequest.php?action=admin&amp;sid=$sid&amp;whoid=$uid\" method=\"post\">";

    $main.= "<center><input type=\"Submit\" Name=\"Submit\" Value=\"Send Request\"></center></form>";
    $main.= "</p>";    

  $main.= "<p align=\"center\">";
$L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
exit;
}

else if($action=="admin")
{
addonline(getuid_sid($sid),"Requesting Admin","");
$nick=getnick_sid($sid);
echo head_tag(getnick_sid($sid)."@Requesting Admin",1,getnick_sid($sid));

$title="<b>Admin Request</b>";
  $main.= "<p align=\"center\">";

    $ownid[0]=1;
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
  $message = $_POST["message"];
  $message3 = "AUTOMATED PM[br/][br/]".$nick." has requested to be site admin, please contact them directly regarding this matter";


    //mysql_query("INSERT INTO ibwf_private SET text='".$message3."', byuid='".$uid."', touid='".$ownid[0]."', unread='1', timesent='".time()."'");


   autopm($message3, $ownid[0]);


	$main.="<br/>You have requested an admin job, The site owner will contact you as soon as possible regarding your request<br/>";

$L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
exit;
}
?>


</html>