<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
if(!db()){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getdberror();
echo "</body>";
echo "</html>";
exit();
}
$show = $_GET["show"];
$hits = $_GET["hits"];
$page = $_GET["page"];
$uid = getuid_hits($hits);
$uip = getip();
$ubr = $_SERVER['HTTP_USER_AGENT'];
cleardata();
addvisitor();
if(isipbanned($uip,$ubr)){
if(!isshield(getuid_hits($hits))){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getipbanned($uip, $ubr);
echo "</body>";
echo "</html>";
exit();
}
}
if(($show != "") && ($show != "terms")){
$uid = getuid_hits($hits);
if((islogged($hits)==false)||($uid==0)){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getsesexplog();
echo "</body>";
echo "</html>";
exit();
}
}
if((isbanned($uid))&&($uid != '0')){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getbanned($uid);
echo "</body>";
echo "</html>";
exit();
}
if($show=="newtopic")
{
$fid = $_POST["fid"];
$ntitle = $_POST["ntitle"];
$tpctxt = $_POST["tpctxt"];
if(!canaccess(getuid_hits($hits), $fid))
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>New Topic</b>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "You Don't Have A Permission To View The Contents Of This Forum</div>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Created New Topic","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>New Topic</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$crdate = time();
//$uid = getuid_hits($hits);
$texst = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_topics WHERE name LIKE '".$ntitle."' AND fid='".$fid."'"));
if($texst[0]==0)
{
$res = false;
$ltopic = mysql_fetch_array(mysql_query("SELECT crdate FROM mx_topics WHERE authorid='".$uid."' ORDER BY crdate DESC LIMIT 1"));
$antiflood = time()-$ltopic[0];
if($antiflood>80)
{
if((trim($ntitle)!="")||(trim($tpctxt)!=""))
{
$textt = strtoupper($ntitle);
$res = mysql_query("INSERT INTO mx_topics (name, fid, authorid, text, crdate, lastpost) VALUES ('$textt', '$fid', '$uid', '$tpctxt', '$crdate', '$crdate')");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT posts, plusses, posts2 FROM mx_users WHERE id='".$uid."'"));
$ups = $usts[0]+1;
$upl = $usts[1]+5;
$upsl = $usts[2]+1;
mysql_query("UPDATE mx_users SET posts='".$ups."', plusses='".$upl."', posts2='".$upsl."' WHERE id='".$uid."'");
$tnm = htmlspecialchars($ntitle);
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Topic <b>$tnm</b> Created Successfully<br/>+5 Plusses";
$tid = mysql_fetch_array(mysql_query("SELECT id FROM mx_topics WHERE name='".$ntitle."' AND fid='".$fid."'"));
echo "<a href=\"index.php?show=viewtpc&hits=$hits&tid=$tid[0]\">";
echo "View Topic</a>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Creating New Thread";
}
}else{
$af = $topic_af -$antiflood;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Antiflood Control: $af";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Topic Name already Exist";
}
}
$fname = getfname($fid);
echo "</div><a href=\"index.php?show=viewfrm&hits=$hits&fid=$fid\">";
echo "$fname</a>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="post")
{
$tid = $_POST["tid"];
$tfid = mysql_fetch_array(mysql_query("SELECT fid FROM mx_topics WHERE id='".$tid."'"));
if(!canaccess(getuid_hits($hits), $tfid[0]))
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Posting</b>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "You Don't Have A Permission To View The Contents Of This Forum</div>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Posted A Reply","");
$repid = $_POST["repid"];
$reptxt = $_POST["reptxt"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Posting</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits))){
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$crdate = time();
$fid = getfid($tid);
//$uid = getuid_hits($hits);
$res = false;
$closed = mysql_fetch_array(mysql_query("SELECT closed FROM mx_topics WHERE id='".$tid."'"));
if(($closed[0]!='1')||(ismod($uid)))
{
$lpost = mysql_fetch_array(mysql_query("SELECT dtpost FROM mx_posts WHERE uid='".$uid."' ORDER BY dtpost DESC LIMIT 1"));
if(isdonator(getuid_hits($hits)))
{
$post_aff = 70-50;
}else if(isspecial(getuid_hits($hits)))
{
$post_aff = 70-30;
}else{
$post_aff = 70;
}
$antiflood = time()-$lpost[0];
if($antiflood>$post_aff)
{
if(strlen($reptxt)<15)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Posting Text Must Exceed 15 Words!";
}else{
$freep = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_posts WHERE text='".$reptxt."' AND tid='".$tid."' AND uid='".$uid."'"));
if($freep[0]>1)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Can't Post<br/><br/>";
echo "Thank You For Your Free Post Or Flooding!<br/>As A Result Of Your Stupid Action:<br/>1. You are MUTE!";
$bantime = time() + (3*24*60*60);
mysql_query("INSERT INTO mx_penalties SET uid='".$uid."', penalty='0', exid='1', timeto='".$bantime."', pnreas='Mute: Flooding Or Make Free Posting'");
}else{
if(trim($reptxt)!="")
{
$res = mysql_query("INSERT INTO mx_posts (text, tid, uid, dtpost) VALUES ('$reptxt', '$tid', '$uid', '$crdate')");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT posts, plusses, posts2 FROM mx_users WHERE id='".$uid."'"));
$ups = $usts[0]+1;
$upl = $usts[1]+3;
$upsl = $usts[2]+1;
mysql_query("UPDATE mx_users SET posts='".$ups."', plusses='".$upl."', posts2='".$upsl."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_topics SET lastpost='".$crdate."' WHERE id='".$tid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully<br/>+3 Plusses";
echo "<br/><br/><a href=\"index.php?show=viewtpc&hits=$hits&tid=$tid&go=last\">";
echo "View Topic</a>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
}
}
}
}else{
$af = $post_aff -$antiflood;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Antiflood Control: $af";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Topic is closed for posting";
}
}
$fname = getfname($fid);
echo "</div><a href=\"index.php?show=viewfrm&hits=$hits&fid=$fid\">";
echo "$fname</a>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="rep")
{
$post = $_GET["post"];
$topic = $_GET["topic"];
addonline(getuid_hits($hits),"Give Reputation","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
if($topic != "")
{
$tinfons = mysql_fetch_array(mysql_query("SELECT name, authorid FROM mx_topics WHERE id='".$topic."'"));
$saporep = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_urep WHERE gbowner='".$topic."' AND gbsigner='".$uid."' AND gbid='".$topic."'"));
if($saporep[0]>0)
{
echo "<br/><img src=\"images/notok.gif\" alt=\"X\"/>You Already Rep This Topic ! !";
}else if($tinfons[1] == "$uid")
{
echo "<br/><img src=\"images/notok.gif\" alt=\"X\"/>You Can't Rep Your Topic ! !";
}else{
$rep = mysql_fetch_array(mysql_query("SELECT rep FROM mx_users WHERE id='".$tinfons[1]."'"));
$ups = $rep[0]+1;
mysql_query("UPDATE mx_users SET rep='".$ups."' WHERE id='".$tinfons[1]."'");
$tinfo2 = mysql_fetch_array(mysql_query("SELECT name from mx_topics WHERE id='".$topic."'"));
$crdate = time();
mysql_query("INSERT INTO mx_urep SET gbowner='".$topic."', gbsigner='".$uid."', dtime='".$crdate."', gbid='".$topic."'");
echo "<br/><img src=\"images/ok.gif\" alt=\"O\"/>Topic Rep Successful ! !";
}
}else if(($post != "")&&($topic != ""))
{
$tinfons = mysql_fetch_array(mysql_query("SELECT uid from mx_posts WHERE tid='".$topic."'"));
$saporep = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_urep WHERE gbowner='".$topic."' AND gbsigner='".$uid."' AND gbpid='".$post."'"));
if($saporep[0]>0)
{
echo "<br/><img src=\"images/notok.gif\" alt=\"X\"/>You Already Rep This Posting ! !";
}else{
$rep = mysql_fetch_array(mysql_query("SELECT rep FROM mx_users WHERE id='".$tinfons[0]."'"));
$ups = $rep[0]+1;
mysql_query("UPDATE mx_users SET rep='".$ups."' WHERE id='".$tinfons[0]."'");
$tinfo2 = mysql_fetch_array(mysql_query("SELECT name from mx_topics WHERE id='".$topic."'"));
$crdate = time();
mysql_query("INSERT INTO mx_urep SET gbowner='".$topic."', gbsigner='".$uid."', dtime='".$crdate."', gbpid='".$post."'");
echo "<br/><img src=\"images/ok.gif\" alt=\"O\"/>Posting Rep Successful";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Rep !";
}
}
echo "<br/><br/><a href=\"index.php?show=viewtpc&hits=$hits&tid=$topic&go=last\">";
echo "Back to Topic</a>";
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="post2")
{
$tid = $_POST["tid"];
$tfid = mysql_fetch_array(mysql_query("SELECT fid FROM mx_topics WHERE id='".$tid."'"));
if(!canaccess(getuid_hits($hits), $tfid[0]))
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
echo "You Don't Have A Permission To View The Contents Of This Forum";
echo "</p>";
echo footerweb($hits);
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Quote Posting","");
$postext = $_POST["postext"];
$reptxt = $_POST["reptxt"];
$repid = $_POST["repid"];
$who = $_POST["who"];
$uid = getuid_hits($hits);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits))){
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$crdate = time();
$fid = getfid($tid);
$res = false;
if($repid == "$uid")
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Can't Quote Your Posting!";
}else{
$closed = mysql_fetch_array(mysql_query("SELECT closed FROM mx_topics WHERE id='".$tid."'"));
if(($closed[0]!='1')||(ismod($uid)))
{
$lpost = mysql_fetch_array(mysql_query("SELECT dtpost FROM mx_posts WHERE uid='".$uid."' ORDER BY dtpost DESC LIMIT 1"));
if(isdonator(getuid_hits($hits)))
{
$post_aff = 70-50;
}else if(isspecial(getuid_hits($hits)))
{
$post_aff = 70-30;
}else{
$post_aff = 70;
}
$antiflood = time()-$lpost[0];
if($antiflood>$post_aff)
{
if(strlen($reptxt)<15)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Posting Text Must Exceed 15 Words!";
}else{
$freep = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_posts WHERE text='".$reptxt."' AND tid='".$tid."' AND uid='".$uid."'"));
if($freep[0]>1)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Can't Post<br/><br/>";
echo "Thank You For Your Free Post Or Flooding!<br/>As A Result Of Your Stupid Action:<br/>1. You are MUTE!";
$bantime = time() + (3*24*60*60);
mysql_query("INSERT INTO mx_penalties SET uid='".$uid."', penalty='0', exid='1', timeto='".$bantime."', pnreas='Mute: Flooding Or Make Free Posting'");
}else{
if(trim($reptxt)!="")
{
$res = mysql_query("INSERT INTO mx_posts SET text='".$reptxt."', tid='".$tid."', uid='".$uid."', who='".$who."', dtpost='".$crdate."', text2='".$postext."'");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT posts, plusses, posts2 FROM mx_users WHERE id='".$uid."'"));
$ups = $usts[0]+1;
$upsl = $usts[2]+1;
$upl = $usts[1]+3;
mysql_query("UPDATE mx_users SET posts='".$ups."', plusses='".$upl."', posts2='".$upsl."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_topics SET lastpost='".$crdate."' WHERE id='".$tid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Posting Quote Successfully<br/>+3 Plusses";
echo "<br/><br/><a href=\"index.php?show=viewtpc&hits=$hits&tid=$tid&go=last\">";
echo "View Topic</a>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
}
}
}
}else{
$af = $post_aff -$antiflood;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Antiflood Control: $af";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Topic is closed for posting";
}
}
}
$fname = getfname($fid);
echo "<br/><br/><a href=\"index.php?show=viewfrm&hits=$hits&fid=$fid\">";
echo "$fname</a>";
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="qpost")
{
$tid = $_POST["tid"];
$tfid = mysql_fetch_array(mysql_query("SELECT fid FROM mx_topics WHERE id='".$tid."'"));
if(!canaccess(getuid_hits($hits), $tfid[0]))
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
echo "You Don't Have A Permission To View The Contents Of This Forum";
echo "</p>";
echo footerweb($hits);
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Posted A reply","");
$ptext = $_POST["ptext"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$crdate = time();
$fid = getfid($tid);
//$uid = getuid_hits($hits);
$res = false;
$closed = mysql_fetch_array(mysql_query("SELECT closed FROM mx_topics WHERE id='".$tid."'"));
if(($closed[0]!='1')||(ismod($uid)))
{
$lpost = mysql_fetch_array(mysql_query("SELECT dtpost FROM mx_posts WHERE uid='".$uid."' ORDER BY dtpost DESC LIMIT 1"));
if(isdonator(getuid_hits($hits)))
{
$post_aff = 70-50;
}else if(isspecial(getuid_hits($hits)))
{
$post_aff = 70-30;
}else{
$post_aff = 70;
}
$antiflood = time()-$lpost[0];
if($antiflood>$post_aff)
{
if(trim($ptext)!="")
{
$res = mysql_query("INSERT INTO mx_posts SET text='".$ptext."', tid='".$tid."', uid='".$uid."', dtpost='".$crdate."'");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT posts, plusses, posts2 FROM mx_users WHERE id='".$uid."'"));
$ups = $usts[0]+1;
$upsl = $usts[2]+1;
$upl = $usts[1]+1;
mysql_query("UPDATE mx_users SET posts='".$ups."', plusses='".$upl."', posts2='".$upsl."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_topics SET lastpost='".$crdate."' WHERE id='".$tid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
echo "<br/><br/><a href=\"index.php?show=viewtpc&hits=$hits&tid=$tid&go=last\">";
echo "View Topic</a>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
}
}else{
$af = $post_aff -$antiflood;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Antiflood Control: $af";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Topic is closed for posting";
}
$fname = getfname($fid);
echo "<br/><br/><a href=\"index.php?show=viewfrm&hits=$hits&fid=$fid\">";
echo "$fname</a>";
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Select Avatar
else if($show=="upavg")
{
addonline(getuid_hits($hits),"Updating Avatar","");
$avsrc = $_GET["avsrc"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET avatar='".$avsrc."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Avatar Selected";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="midi")
{
addonline(getuid_hits($hits),"Updating Profile Music","");
$id = $_GET["id"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Song</b>";
echo "<div class=\"box_sub\" align=\"center\">";
$midi = mysql_fetch_array(mysql_query("SELECT filename FROM mx_uploads WHERE id='".$id."'"));
$ext = getext($midi[0]);
if($ext=="mid" or $ext=="midi")
{
$res = mysql_query("UPDATE mx_users SET midi='".$id."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Song Selected";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Unsupported song!";
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="upavg2")
{
addonline(getuid_hits($hits),"Updating Background Image","");
$avsrc = $_GET["avsrc"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET background='".$avsrc."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Background Image Selected";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="upavg3")
{
addonline(getuid_hits($hits),"Remove Background Image","");
$avsrc = "";
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$res = mysql_query("UPDATE mx_users SET background='".$avsrc."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Background Image Remove Successful";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Select Avatar
else if($show=="upuicon")
{
addonline(getuid_hits($hits),"Updating Nick Icon","");
$avid = $_GET["avid"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(getplusses(getuid_hits($hits))<100)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Not Enough Plusses";
}else{
$usicon = mysql_fetch_array(mysql_query("SELECT avlink FROM mx_uicons WHERE id='".$avid."'"));
$icont = $usicon[0];
$res = mysql_query("UPDATE mx_users SET uicon='".$icont."' WHERE id='".$uid."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-100;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Icon Selected";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="delfbb")
{
$who = $_GET["who"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM mx_bbud WHERE uid='".$who."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Member removed from Best Buddies List";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Share plusses
else if($show=="sharepl")
{
addonline(getuid_hits($hits),"Sharring Plusses","");
$who = $_GET["who"];
$tfgp = $_POST["tfgp"];
$reason = $_POST["reason"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Share Plusses\">";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You<br/>";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg<br/>";
}else{
if(isrobber($tfgp,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$uid = getuid_hits($hits);
$sub = "Share Plusses ! !";
$shtxt = "You Have Recieve $tfg Plusses From ".getnick_uid($uid)." With The Reason $reason Thank You.";
$psf = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$pst = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$who."'"));
if($psf[0]>=$ptg){
$psf = $psf[0]-$tfgp;
$pst = $pst[0]+$tfgp;
$res = mysql_query("UPDATE mx_users SET plusses='".$pst."' WHERE id='".$who."'");
if($res)
{
mysql_query("UPDATE mx_users SET plusses='".$psf."' WHERE id='".$uid."'");
mysql_query("INSERT INTO mx_private SET text='".$shtxt."', byuid='1', touid='".$who."', autopm='1', sub='".$sub."', timesent='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to give";
}
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="tradep")
{
addonline(getuid_hits($hits),"Trade Plusses","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Point!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT plusses, gplus FROM mx_users WHERE id='".$uid."'"));
if($gpsf[0]>=$ptg)
{
$gpsf = $gpsf[0]-$ptg;
$gpsb = $gpst[1]+$ptg*2;
$gpsc = 10*$gpsb/100;
$gpst = $gpsb-$gpsc;
$res = mysql_query("UPDATE mx_users SET gplus='".$gpst."', plusses='".$gpsf."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Plusses Trade Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to Trade";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="tradeg")
{
addonline(getuid_hits($hits),"Trade GPoints","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Point!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT plusses, gplus FROM mx_users WHERE id='".$uid."'"));
if($gpsf[1]>=$ptg)
{
$gpsfu = $gpsf[1]-$ptg;
$gpstu = $gpsf[0]+$ptg/2;
$gpsc = 10*$gpstu/100;
$gpst = $gpstu-$gpsc;
$res = mysql_query("UPDATE mx_users SET gplus='".$gpsfu."', plusses='".$gpst."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Game Point Trade Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Game Point to Trade";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Bank Deposit
else if($show=="deposit")
{
addonline(getuid_hits($hits),"Deposit Plusses","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT bank FROM mx_users WHERE id='".$uid."'"));
if($gpsf[0]>=$ptg)
{
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE mx_users SET bank='".$gpst."', plusses='".$gpsf."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Credit Deposit Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to Deposit";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="depositg")
{
addonline(getuid_hits($hits),"Deposit Game Points","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT gplus FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT gbank FROM mx_users WHERE id='".$uid."'"));
if($gpsf[0]>=$ptg)
{
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE mx_users SET gbank='".$gpst."', gplus='".$gpsf."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Game Points Deposit Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Game Points to Deposit";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Bank Withdraw
else if($show=="wdraw")
{
addonline(getuid_hits($hits),"Withdraw Plusses","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT bank FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
if($gpsf[0]>=$ptg)
{
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE mx_users SET plusses='".$gpst."', bank='".$gpsf."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Plusses withdrawed Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to withdraw";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="wdrawg")
{
addonline(getuid_hits($hits),"Withdraw Game Points","");
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Bank Pl\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT gbank FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT gplus FROM mx_users WHERE id='".$uid."'"));
if($gpsf[0]>=$ptg)
{
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE mx_users SET gplus='".$gpst."', gbank='".$gpsf."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Game Points withdrawed Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Games Points to withdraw";
}
}
echo "</p>";
echo footerweb($hits);
echo "</body>";
}
else if ($show=="uadd")
{
addonline(getuid_hits($hits),"My Address","");
$ucon = $_POST["ucon"];
$ucit = $_POST["ucit"];
$ustr = $_POST["ustr"];
$utzn = $_POST["utzn"];
$uphn = $_POST["uphn"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"My Address\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_xinfo WHERE uid='".$uid."'"));
if($exs[0]>0)
{
$res = mysql_query("UPDATE mx_xinfo SET country='".$ucon."', city='".$ucit."', street='".$ustr."', timezone='".$utzn."', phoneno='".$uphn."' WHERE uid='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Address Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}else{
$res = mysql_query("INSERT INTO mx_xinfo SET uid='".$uid."', country='".$ucon."', city='".$ucit."', street='".$ustr."', timezone='".$utzn."', phoneno='".$uphn."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Address Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}
echo "<a href=\"index.php?show=uxset&hits=$hits\">";
echo "Extended Settings</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="gcp")
{
addonline(getuid_hits($hits),"Moderating Group Member","");
$clid = $_GET["clid"];
$who = $_GET["who"];
$giv = $_POST["giv"];
$pnt = $_POST["pnt"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Moderate Member\">";
echo "<p align=\"center\">";
$whnick = getnick_uid($who);
echo "<b>$whnick</b>";
echo "</p>";
echo "<p>";
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubmembers WHERE uid='".$who."' AND clid=".$clid.""));
$cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs WHERE owner='".$uid."' AND id=".$clid.""));
if($exs[0]>0 && $cow[0]>0)
{
$mpt = mysql_fetch_array(mysql_query("SELECT points FROM mx_clubmembers WHERE uid='".$who."' AND clid='".$clid."'"));
if($giv=="1")
{
$pnt = $mpt[0]+$pnt;
}else{
$pnt = $mpt[0]-$pnt;
if($pnt<0)$pnt=0;
}
$res = mysql_query("UPDATE mx_clubmembers SET points='".$pnt."' WHERE uid='".$who."' AND clid='".$clid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Group points updated successfully!";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!";
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="gpl")
{
addonline(getuid_hits($hits),"Moderating Group Member","");
$clid = $_GET["clid"];
$who = $_GET["who"];
$pnt = $_POST["pnt"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Moderate Member\">";
echo "<p align=\"center\">";
$whnick = getnick_uid($who);
echo "<b>$whnick</b>";
echo "</p>";
echo "<p>";
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Because people misused the plusses thing, groups owners cant give plusses anymore";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if ($show=="upre")
{
addonline(getuid_hits($hits),"Preferences","");
$usds = $_POST["usds"];
$usds = str_replace('"', "", $usds);
$usds = str_replace("'", "", $usds);
$ubon = $_POST["ubon"];
$usxp = $_POST["usxp"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Preferences\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_xinfo WHERE uid='".$uid."'"));
if($exs[0]>0)
{
$res = mysql_query("UPDATE mx_xinfo SET sitedscr='".$usds."', budsonly='".$ubon."', sexpre='".$usxp."' WHERE uid='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Preferences Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}else{
$res = mysql_query("INSERT INTO mx_xinfo SET uid='".$uid."', sitedscr='".$usds."', budsonly='".$ubon."', sexpre='".$usxp."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Preferences Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}
echo "<a href=\"index.php?show=uxset&hits=$hits\">";
echo "Extended Settings</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if ($show=="gmset")
{
addonline(getuid_hits($hits),"G-Mail Settings","");
$ugun = $_POST["ugun"];
$ugpw = $_POST["ugpw"];
$ugch = $_POST["ugch"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"G-Mail Settings\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_xinfo WHERE uid='".$uid."'"));
if($exs[0]>0)
{
$res = mysql_query("UPDATE mx_xinfo SET gmailun='".$ugun."', gmailpw='".$ugpw."', gmailchk='".$ugch."', gmaillch='".time()."' WHERE uid='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Gmail Settings Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}else{
$res = mysql_query("INSERT INTO mx_xinfo SET uid='".$uid."', gmailun='".$ugun."', gmailpw='".$ugpw."', gmailchk='".$ugch."', gmaillch='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>G-Mail Settings Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}
echo "<a href=\"index.php?show=uxset&hits=$hits\">";
echo "Extended Settings</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if ($show=="uper")
{
addonline(getuid_hits($hits),"Personality","");
$uhig = $_POST["uhig"];
$uwgt = $_POST["uwgt"];
$urln = $_POST["urln"];
$ueor = $_POST["ueor"];
$ueys = $_POST["ueys"];
$uher = $_POST["uher"];
$upro = $_POST["upro"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Personality\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_xinfo WHERE uid='".$uid."'"));
if($exs[0]>0)
{
$res = mysql_query("UPDATE mx_xinfo SET height='".$uhig."', weight='".$uwgt."', realname='".$urln."', eyescolor='".$ueys."', profession='".$upro."', racerel='".$ueor."',hairtype='".$uher."' WHERE uid='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Personal Info Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}else{
$res = mysql_query("INSERT INTO mx_xinfo SET uid='".$uid."', height='".$uhig."', weight='".$uwgt."', realname='".$urln."', eyescolor='".$ueys."', profession='".$upro."', racerel='".$ueor."',hairtype='".$uher."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Personal Info Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}
echo "<a href=\"index.php?show=uxset&hits=$hits\">";
echo "Extended Settings</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if ($show=="umin")
{
addonline(getuid_hits($hits),"More about me","");
$ulik = $_POST["ulik"];
$ulik = str_replace('"', "", $ulik);
$ulik = str_replace("'", "", $ulik);
$udlk = $_POST["udlk"];
$udlk = str_replace('"', "", $udlk);
$udlk = str_replace("'", "", $udlk);
$ubht = $_POST["ubht"];
$ubht = str_replace('"', "", $ubht);
$ubht = str_replace("'", "", $ubht);
$ught = $_POST["ught"];
$ught = str_replace('"', "", $ught);
$ught = str_replace("'", "", $ught);
$ufsp = $_POST["ufsp"];
$ufsp = str_replace('"', "", $ufsp);
$ufsp = str_replace("'", "", $ufsp);
$ufmc = $_POST["ufmc"];
$ufmc = str_replace('"', "", $ufmc);
$ufmc = str_replace("'", "", $ufmc);
$umtx = $_POST["umtx"];
$umtx = str_replace('"', "", $umtx);
$umtx = str_replace("'", "", $umtx);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"More about me\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_xinfo WHERE uid='".$uid."'"));
if($exs[0]>0)
{
$res = mysql_query("UPDATE mx_xinfo SET likes='".$ulik."', deslikes='".$udlk."', habitsb='".$ubht."', habitsg='".$ught."', favsport='".$ufsp."', favmusic='".$ufmc."',moretext='".$umtx."' WHERE uid='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Info Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}else{
$res = mysql_query("INSERT INTO mx_xinfo SET uid='".$uid."', likes='".$ulik."', deslikes='".$udlk."', habitsb='".$ubht."', habitsg='".$ught."', favsport='".$ufsp."', favmusic='".$ufmc."',moretext='".$umtx."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Info Updated Successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"O\"/>Database Error!<br/><br/>";
}
}
echo "<a href=\"index.php?show=uxset&hits=$hits\">";
echo "Extended Settings</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="mkroom")
{
addonline(getuid_hits($hits),"Creating Chatroom","");
$rname = mysql_escape_string($_POST["rname"]);
$rpass = trim($_POST["rpass"]);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"viewforum\" title=\"Create room\">";
echo "<p align=\"center\">";
if ($rpass=="")
{
$cns = 1;
}else{
$cns = 0;
}
$prooms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_rooms WHERE static='0'"));
if($prooms[0]<10)
{
$res = mysql_query("INSERT INTO mx_rooms SET name='".$rname."', pass='".$rpass."', censord='".$cns."', static='0', lastmsg='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Room created successfully<br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error!<br/><br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>There's already 10 users rooms<br/><br/>";
}
echo "<a href=\"index.php?show=uchat&hits=$hits\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="signgb")
{
$who = $_POST["who"];
if(!cansigngb(getuid_hits($hits), $who))
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Sign Testimonial</b>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "You cant Sign this user Testimonials</div>";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a></div>";
include("wapv.php");
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Signing a Testimonials","");
$msgtxt = $_POST["msgtxt"];
$rate = $_POST["rate"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Sign Testimonial</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if($rate>5){
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>What Are U Doing? No Value $rate In Ratting.. Muehehe.</b>";
}else if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$crdate = time();
$uid = getuid_hits($hits);
$res = false;
if(trim($msgtxt)!="")
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_gbook SET gbowner='".$_POST["who"]."', gbsigner='".$uid."', rate='".$rate."', urate='".$rate."', dtime='".$crdate."', gbmsg='".$msgtxt."'");
}
if($res)
{
$ratua = mysql_fetch_array(mysql_query("SELECT rateu FROM mx_users WHERE id='".$_POST["who"]."'"));
$total = $ratua[0]+$rate;
mysql_query("UPDATE mx_users SET rateu='".$total."' WHERE id='".$_POST["who"]."'");
$sub = "Testimonials Alert!";
$msg = "[testi=$who]Your Testimonials[/testi] Has Been Sign By ".getnick_uid($uid)." And He/She Give You $rate Rating.[br/][small][i]p.s: this is an automated pm[/i][/small]";
$who = $_POST["who"];
autopm($msg, $who, $sub);
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Testimonials Add Successfully<br/>+1 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Add Testimonials";
}
}
echo "</div>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="poke")
{
$who = $_GET["who"];
addonline(getuid_hits($hits),"Poke Friends","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Poke Friend</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$uid = getuid_hits($hits);
if(budres($uid, $who)==2)
{
$sub = "Poke Alert!";
$msg = ".poke. -haha- Your Got Poke From Your Friends ".getnick_uid($uid).", Click [poke=$uid]Here[/poke] To Revange ".getnick_uid($uid)." Back .lol.";
autopm($msg, $who, $sub);
echo "<img src=\"images/ok.gif\" alt=\"O\"/>User Poke Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Send Poke";
}
}
echo "</div>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="addcom")
{
addonline(getuid_hits($hits),"Comment User Wall","");
$text = $_POST["text"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Add Comment</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$texts = parsepm($text, $hits);
$nos = substr_count($texts,"<img src=");
if($nos>2)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Only Two Smilies Allowed!";
}else{
$crdate = time();
$uid = getuid_hits($hits);
$res = false;
if(trim($text)!="")
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO statuscomment SET refid='".$_GET["id"]."', who='".$uid."', sent='".$crdate."', text='".$text."'");
$timer = mysql_fetch_array(mysql_query("SELECT user FROM status WHERE id='".$_GET["id"]."'"));
if($uid!=$timer[0]){
$res = mysql_query("INSERT INTO notification SET refid='".$_GET["id"]."', who='".$uid."', sent='".$crdate."', stat='1', uid='".$timer[0]."'");
}
}
}
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Comment Add Successfully<br/>+1 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Add Comment";
}
}
echo "</div>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="upstatus")
{
$pmtext = $_POST["pmtext"];
addonline(getuid_hits($hits),"Updating Status","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Status</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$text = parsepm($pmtext, $hits);
$nos = substr_count($text,"<img src=");
if($nos>2)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Only Two Smilies Allowed!";
}else{
$crdate = time();
$uid = getuid_hits($hits);
$res = false;
if(trim($pmtext)!="")
{
$res = mysql_query("INSERT INTO status SET user='".$uid."', text='".$pmtext."', sent='".$crdate."'");
}
}
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Status Update Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Updating Status";
}
}
echo "</div>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="votepl")
{
//$uid = getuid_hits($hits);
$plid = $_GET["plid"];
$ans = $_GET["ans"];
addonline(getuid_hits($hits),"Voting A Poll","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Poll Voting\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Vote Poll</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$voted = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_presults WHERE uid='".$uid."' AND pid='".$plid."'"));
if($voted[0]==0)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+2;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_presults SET uid='".$uid."', pid='".$plid."', ans='".$ans."'");
if($res)
{
mysql_query("INSERT INTO mx_spool SET gbowner='".$plid."', gbsigner='".$uid."', type='".$ans."', dtime='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Thanx for your voting><br/>+2 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You already voted for this poll";
}
}
echo "</div><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="dlpoll")
{
//$uid = getuid_hits($hits);
addonline(getuid_hits($hits),"Deleting Poll","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Delete Poll\">";
echo "<p align=\"center\">";
$pid = mysql_fetch_array(mysql_query("SELECT pollid FROM mx_users WHERE id='".$uid."'"));
$res = mysql_query("UPDATE mx_users SET pollid='0' WHERE id='".$uid."'");
if($res)
{
$res = mysql_query("DELETE FROM mx_presults WHERE pid='".$pid[0]."'");
$res = mysql_query("DELETE FROM mx_spool WHERE gbowner='".$pid[0]."'");
$res = mysql_query("DELETE FROM mx_pp_pres WHERE pid='".$pid[0]."'");
$res = mysql_query("DELETE FROM mx_polls WHERE id='".$pid[0]."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Poll Deleted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="delan")
{
//$uid = getuid_hits($hits);
addonline(getuid_hits($hits),"Deleting Announcement","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Delete Announcement\">";
$clid = $_GET["clid"];
$anid = $_GET["anid"];
$uid = getuid_hits($hits);
echo "<p align=\"center\">";
$pid = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_announcements WHERE id='".$anid."' AND clid='".$clid."'"));
if(($uid==$pid[0])&&($exs[0]>0))
{
$res = mysql_query("DELETE FROM mx_announcements WHERE id='".$anid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Announcement Deleted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Yo can't delete this announcement!";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="dlcl")
{
//$uid = getuid_hits($hits);
addonline(getuid_hits($hits),"Deleting Group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
$clid = $_GET["clid"];
$uid = getuid_hits($hits);
echo "<p align=\"center\">";
$pid = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
if($uid==$pid[0])
{
$res = deleteClub($clid);
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+2000;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Group Deleted<br/>+2000 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Yo can't delete this group!";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="dltpl")
{
//$uid = getuid_hits($hits);
$tid = $_GET["tid"];
addonline(getuid_hits($hits),"Deleting Poll","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Delete Poll\">";
echo "<p align=\"center\">";
$pid = mysql_fetch_array(mysql_query("SELECT pollid FROM mx_topics WHERE id='".$tid."'"));
$res = mysql_query("UPDATE mx_topics SET pollid='0' WHERE id='".$tid."'");
if($res)
{
$res = mysql_query("DELETE FROM mx_presults WHERE pid='".$pid[0]."'");
$res = mysql_query("DELETE FROM mx_polls WHERE id='".$pid[0]."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Poll Deleted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="reqjc")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
addonline(getuid_hits($hits),"Joining A Group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$uid = getuid_hits($hits);
$isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'"));
if($isin[0]==0){
$res = mysql_query("INSERT INTO mx_clubmembers SET uid='".$uid."', clid='".$clid."', accepted='0', points='0', joined='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Request sent! the group owner should accept your request";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You already in this group or request sent and waiting for acception";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="unjc")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
addonline(getuid_hits($hits),"Unjoining Group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'"));
if($isin[0]>0){
$res = mysql_query("DELETE FROM mx_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Unjoined Group successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You're not a member of this group!";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="acm")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
$who = $_GET["who"];
addonline(getuid_hits($hits),"Adding a member to Group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Add Member\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$cowner = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
if($cowner[0]==$uid){
$res = mysql_query("UPDATE mx_clubmembers SET accepted='1' WHERE clid='".$clid."' AND uid='".$who."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Member added to your group";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>This group ain't yours";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="accall")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
addonline(getuid_hits($hits),"Adding a member to group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Add Member\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$cowner = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
if($cowner[0]==$uid){
$res = mysql_query("UPDATE mx_clubmembers SET accepted='1' WHERE clid='".$clid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>All Members Accepted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>This group ain't yours";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="denall")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
addonline(getuid_hits($hits),"Adding a member to group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Add Member\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$cowner = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
if($cowner[0]==$uid){
$res = mysql_query("DELETE FROM mx_clubmembers WHERE accepted='0' AND clid='".$clid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>All Members Denied";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>This group ain't yours";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="dcm")
{
//$uid = getuid_hits($hits);
$clid = $_GET["clid"];
$who = $_GET["who"];
addonline(getuid_hits($hits),"Deleting a member from group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Delete Member\">";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
$cowner = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
if($cowner[0]==$uid){
$res = mysql_query("DELETE FROM mx_clubmembers WHERE clid='".$clid."' AND uid='".$who."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Member deleted from your group";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>This group ain't yours";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="crpoll")
{
addonline(getuid_hits($hits),"Creating Poll","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Create Poll\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
if(getplusses(getuid_hits($hits))>=50)
{
$pid = mysql_fetch_array(mysql_query("SELECT pollid FROM mx_users WHERE id='".$uid."'"));
if($pid[0] == 0)
{
$pques = $_POST["pques"];
$opt1 = $_POST["opt1"];
$opt2 = $_POST["opt2"];
$opt3 = $_POST["opt3"];
$opt4 = $_POST["opt4"];
$opt5 = $_POST["opt5"];
if((trim($pques)!="")&&(trim($opt1)!="")&&(trim($opt2)!=""))
{
$pex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_polls WHERE pqst LIKE '".$pques."'"));
if($pex[0]==0)
{
$res = mysql_query("INSERT INTO mx_polls SET pqst='".$pques."', opt1='".$opt1."', opt2='".$opt2."', opt3='".$opt3."', opt4='".$opt4."', opt5='".$opt5."', pdt='".time()."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+5;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$pollid = mysql_fetch_array(mysql_query("SELECT id FROM mx_polls WHERE pqst='".$pques."' "));
mysql_query("UPDATE mx_users SET pollid='".$pollid[0]."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Your poll created successfully<br/>+5 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Eroor!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>There's already a poll with the same question";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>The poll must have a question, and at least 2 options";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You already have a poll";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You should have at least 50 plusses to create a poll";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="pltpc")
{
$tid = $_GET["tid"];
addonline(getuid_hits($hits),"Creating Poll","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Create Poll\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
if((getplusses(getuid_hits($hits))>=500)||ismod($uid))
{
$pid = mysql_fetch_array(mysql_query("SELECT pollid FROM mx_topics WHERE id='".$tid."'"));
if($pid[0] == 0)
{
$pques = $_POST["pques"];
$opt1 = $_POST["opt1"];
$opt2 = $_POST["opt2"];
$opt3 = $_POST["opt3"];
$opt4 = $_POST["opt4"];
$opt5 = $_POST["opt5"];
if((trim($pques)!="")&&(trim($opt1)!="")&&(trim($opt2)!=""))
{
$pex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_polls WHERE pqst LIKE '".$pques."'"));
if($pex[0]==0)
{
$res = mysql_query("INSERT INTO mx_polls SET pqst='".$pques."', opt1='".$opt1."', opt2='".$opt2."', opt3='".$opt3."', opt4='".$opt4."', opt5='".$opt5."', pdt='".time()."'");
if($res)
{
$pollid = mysql_fetch_array(mysql_query("SELECT id FROM mx_polls WHERE pqst='".$pques."' "));
mysql_query("UPDATE mx_topics SET pollid='".$pollid[0]."' WHERE id='".$tid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Your poll created successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Eroor!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>There's already a poll with the same question";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>The poll must have a question, and at least 2 options";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>This Topic Already Have A poll";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You should have at least 500 plusses to create a poll";
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="addblg")
{
if(!getplusses(getuid_hits($hits))>50)
{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
echo "Only 50+ plusses can add blogs<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_hits($hits),"Adding a blog","");
$btitle = $_POST["btitle"];
$msgtxt = $_POST["msgtxt"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$crdate = time();
//$uid = getuid_hits($hits);
$res = false;
if((trim($msgtxt)!="")&&(trim($btitle)!=""))
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+5;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_blogs SET bowner='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT blog FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET blog='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully<br/>+5 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="addvlt")
{
addonline(getuid_hits($hits),"Adding a Vault Item","");
$viname = $_POST["viname"];
$vilink = $_POST["vilink"];
$viinfo = $_POST["viinfo"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$crdate = time();
$res = false;
$ext = getext($vilink);
if($ext=="mp3" or $ext=="wav" or $ext=="amr" or $ext=="Mp3" or $ext=="Wav" or $ext=="Amr" or $ext=="MP3" or $ext=="WAV" or $ext=="AMR") {
$type = 0;
}
else if ($ext=="avi" or $ext=="3gp" or $ext=="mp4" or $ext=="Avi" or $ext=="3GP" or $ext=="Mp4" or $ext=="AVI" or $ext=="3Gp" or $ext=="MP4") {
$type = 1;
}
else if ($ext=="jpg" or $ext=="gif" or $ext=="png" or $ext=="jpeg" or $ext=="bmp" or $ext=="Jpg" or $ext=="Gif" or $ext=="Png" or $ext=="Jpeg" or $ext=="Bmp" or $ext=="JPG" or $ext=="GIF" or $ext=="PNG" or $ext=="JPEG" or $ext=="BMP") {
$type = 2;
}
else if ($ext=="zip" or $ext=="rar" or $ext=="Zip" or $ext=="Rar" or $ext=="ZIP" or $ext=="RAR")
{
$type = 3;
}
else if ($ext=="jar" or $ext=="jad" or $ext=="Jar" or $ext=="Jad" or $ext=="JAR" or $ext=="JAD") {
$type = 4;
}
else if ($ext=="sisx" or $ext=="sis" or $ext=="Sisx" or $ext=="Sis" or $ext=="SISX" or $ext=="SIS")
{
$type = 5;
}
else{
$type = 6;
}
if((trim($vilink)!="")&&(trim($viname)!=""))
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+3;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', itemurl='".$vilink."', type='".$type."', info='".$viinfo."'");
}
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully<br/>+3 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Update profile
else if($show=="invisible")
{
addonline(getuid_hits($hits),"Main Menu","");
$act = $_GET["act"];
$acts = ($act=="dis" ? 0 : 1);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
if((isspecial(getuid_hits($hits)))||(isheadown(getuid_hits($hits)))||(isowner(getuid_hits($hits))))
{
$res = mysql_query("UPDATE mx_users SET visible='".$acts."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Invisible Updated Successfully!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Invisible<br/>";
}
}else{
echo "You Can't Use This Tool!<br/>";
}
echo "<br/><br/>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="like")
{
addonline(getuid_hits($hits),"Like User Status","");
$do = $_GET["do"];
$refid = $_GET["id"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if($do=="like")
{
$vb = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE refid='".$refid."' AND who='".$uid."'"));
if($vb[0]==0)
{
$res = mysql_query("INSERT INTO statuslike SET who='".$uid."', refid='".$refid."', sent='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Status Like Successfully!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Status Like Error<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You already like this status!<br/>";
}
}else{
$res = mysql_query("DELETE FROM statuslike WHERE refid='".$refid."' AND who='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Status Unlike Successfully!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Status Unlike Error<br/>";
}
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="forumm")
{
$cid = $_GET["cid"];
addonline(getuid_hits($hits),"Updating Forum Message","");
$bmsg = $_POST["bmsg"];
$id = $_POST["id"];
$id2 = $_POST["id2"];
$id3 = $_POST["id3"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
if(isowner(getuid_hits($hits))){
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_fcats SET about='".$bmsg."', moderate='".$id."', moderate2='".$id2."', moderate3='".$id3."' WHERE id='".$cid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Forum Message Updated Successfully<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Message<br/>";
}
echo "<br/>";
}else{
echo "<p align=\"center\">";
echo "You Are Not A Founder!";
echo "</p>";
}
echo "<a href=\"index.php?show=forum&hits=$hits\">";
echo "Forum</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="ratel")
{
addonline(getuid_hits($hits),"Lyrics - Rating","");
$brate = $_POST["brate"];
$bid = $_GET["bid"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Lyrics - Rating\">";
echo "<p align=\"center\">";
$vb = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_lrate WHERE uid='".$uid."' AND blogid='".$bid."'"));
if($vb[0]==0)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+3;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_lrate SET uid='".$uid."', blogid='".$bid."', brate='".$brate."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Lyric Rated Successfully<br/>+3 Plusses<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You have Rated This Lyric Before<br/>";
}
echo "<br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delly")
{
$bid = $_GET["bid"];
addonline(getuid_hits($hits),"Lyrics - Deleting","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Lyrics - Deleting\">";
echo "<p align=\"center\">";
if(candelly(getuid_hits($hits), $bid))
{
$res = mysql_query("DELETE FROM mx_lyrics WHERE id='".$bid."'");
if($res)
{
mysql_query("DELETE FROM mx_lrate WHERE blogid='".$bid."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Lyric Delete Successful.";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Can't delete This Lyric";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="addlrc")
{
$type = $_POST["type"];
$btitle = $_POST["btitle"];
$atitle = $_POST["atitle"];
$msgtxt = $_POST["msgtxt"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Lyrics - Add Lyric\">";
echo "<p align=\"center\">";
$crdate = time();
$res = false;
if(strlen($btitle)<6)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Song Title Must Exceed 5 Words!";
}else if(strlen($atitle)<6)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Artist/Band Name Must Exceed 5 Words!";
}else if(strlen($msgtxt)<50)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Lyric Must Exceed 50 Words!";
}else{
if((trim($msgtxt)!="")&&(trim($btitle)!=""))
{
$res = mysql_query("INSERT INTO mx_lyrics SET bowner='".$uid."', bname='".$btitle."', aname='".$atitle."', bgdate='".$crdate."', btext='".$msgtxt."', type='".$type."'");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT lyric FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET lyric='".$upl."' WHERE id='".$uid."'");
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upls = $usts[0]+3;
mysql_query("UPDATE mx_users SET plusses='".$upls."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Lyric Add Successfully<br/>+3 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Create Lyric";
}
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////shout
else if($show=="shout")
{
$shtxt = $_POST["shtxt"];
addonline(getuid_hits($hits),"Shouting","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Shout\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Add Shout</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$tm = time();
$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM mx_shouts WHERE shouter='".$uid."'"));
$shoutfl = $lastshout[0]+18;
if($shoutfl<$tm)
{
if(!isblocked($shtxt,$uid))
{
$text = parsepm($shtxt, $hits);
$nos = substr_count($text,"<img src=");
if($nos>2)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Only Two Smilies Allowed!";
}else if(getshtoken(getuid_hits($hits))<1)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Shout Token Already Finish";
}else if(strlen($shtxt)<10)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Shout Text Must Exceed 10 Words!";
}else{
$shtxt = $shtxt;
//$uid = getuid_hits($hits);
$shtm = time();
if(isspam($shtxt))
{
$res = mysql_query("INSERT INTO mx_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."', reported='1'");
}else{
$res = mysql_query("INSERT INTO mx_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
}
if($res)
{
$shts = mysql_fetch_array(mysql_query("SELECT shouts FROM mx_users WHERE id='".$uid."'"));
$shtse = mysql_fetch_array(mysql_query("SELECT shouts2 FROM mx_users WHERE id='".$uid."'"));
$shtup = $shts[0]+1;
$shtsup = $shtse[0]+1;
mysql_query("UPDATE mx_users SET shouts='".$shtup."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_users SET shouts2='".$shtsup."' WHERE id='".$uid."'");
$Hour = date("G");
if(!isdonator($uid))
{
$usts = mysql_fetch_array(mysql_query("SELECT shtoken FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-1;
mysql_query("UPDATE mx_users SET shtoken='".$upl."' WHERE id='".$uid."'");
}
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully<br/>";
if(isdonator($uid))
{
echo "Free Shout ! No Token Subtract !<br/>";
}else{
echo "Shout Token Left $upl<br/>";
}
echo "<br/>".parsepm($shtxt, $hits)."";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
}
}else{
$bantime = time() + (3*24*60*60);
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Can't Shout!<br/><br/>";
echo "You just shout a link to one of the crapiest sites on earth<br/> The members of these sites spam here a lot, so go to that site and stay there if you don't like it here<br/> as a result of your stupid show:<br/>1. you have lost your sheild<br/>2. you have lost all your plusses<br/>3. You are BANNED!";
mysql_query("INSERT INTO mx_penalties SET uid='".$uid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'");
mysql_query("UPDATE mx_users SET shield='0' WHERE id='".$uid."'");
mysql_query("INSERT INTO mx_private SET text='".$shtxt."', autopm='1', byuid='".$uid."', touid='2', timesent='".$shtm."'");
}
}else{
$rema = $shoutfl - $tm;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Flood Control: $rema Seconds";
}
}
echo "</div><a href=\"lists.php?show=shouts&hits=$hits\">Back To ShoutBox</a>";
echo "</div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="cshout")
{
$shtxt = $_POST["shtxt"];
$club = $_GET["club"];
addonline(getuid_hits($hits),"Shouting In Group","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubmembers WHERE (uid='".$uid."' AND clid=".$club.") AND accepted='1'"));
if(($exs[0]>0)||(ismod($uid)))
{
$tm = time();
$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM mx_shouts WHERE shouter='".$uid."'"));
$shoutfl = $lastshout[0]+18;
if($shoutfl<$tm)
{
if(!isblocked($shtxt,$uid))
{
$text = parsepm($shtxt, $hits);
$nos = substr_count($text,"<img src=");
if($nos>2)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Only Two Smilies Allowed!";
}else if(getshtoken(getuid_hits($hits))<1)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Shout Token Already Finish";
}else if(strlen($shtxt)<10)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Shout Text Must Exceed 10 Words!";
}else{
$shtxt = $shtxt;
//$uid = getuid_hits($hits);
$shtm = time();
if(isspam($shtxt))
{
$res = mysql_query("INSERT INTO mx_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."', club='".$club."', reported='1'");
}else{
$res = mysql_query("INSERT INTO mx_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."', club='".$club."'");
}
if($res)
{
$shts = mysql_fetch_array(mysql_query("SELECT shouts FROM mx_users WHERE id='".$uid."'"));
$shtse = mysql_fetch_array(mysql_query("SELECT shouts2 FROM mx_users WHERE id='".$uid."'"));
$shtup = $shts[0]+1;
$shtsup = $shtse[0]+1;
mysql_query("UPDATE mx_users SET shouts='".$shtup."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_users SET shouts2='".$shtsup."' WHERE id='".$uid."'");
$usts = mysql_fetch_array(mysql_query("SELECT shtoken FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-1;
mysql_query("UPDATE mx_users SET shtoken='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully<br/>";
echo "Shout Token Left $upl<br/><br/>".parsepm($shtxt, $hits)."";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
}
}else{
$bantime = time() + (3*24*60*60);
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Can't Shout!<br/><br/>";
echo "You just shout a link to one of the crapiest sites on earth<br/> The members of these sites spam here a lot, so go to that site and stay there if you don't like it here<br/> as a result of your stupid show:<br/>1. you have lost your sheild<br/>2. you have lost all your plusses<br/>3. You are BANNED!";
mysql_query("INSERT INTO mx_penalties SET uid='".$uid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'");
mysql_query("UPDATE mx_users SET shield='0' WHERE id='".$uid."'");
mysql_query("INSERT INTO mx_private SET text='".$shtxt."', autopm='1', byuid='".$uid."', touid='2', timesent='".$shtm."'");
}
}else{
$rema = $shoutfl - $tm;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Flood Control: $rema Seconds";
}
}else{
echo "You Not This Group Member!!";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "<br/>";
echo "<a href=\"lists.php?show=cshouts&hits=$hits&club=$club\">Back To Group Shout Box</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="addbm")
{
$tid = $_GET["tid"];
addonline(getuid_hits($hits),"Add Bookmarks","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Add Bookmarks\">";
echo "<p align=\"center\">";
echo "<b>Add Bookmark</b><br/><br/>";
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_book WHERE tid='".$tid."' AND uid='".$uid."'"));
if($noi[0]>'0')
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>This Topic Already Bookmark!!";
}else{
$shtm = time();
$res = mysql_query("INSERT INTO mx_book SET tid='".$tid."', uid='".$uid."', date='".$shtm."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Bookmark Added Successfully!";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
}
echo "<br/><br/><a href=\"index.php?show=book&hits=$hits\">My Bookmark</a><br/>";
echo "<img src=\"images/forum.png\" alt=\"»\"/> <a href=\"index.php?show=forum&hits=$hits\">Forums</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////shout
else if($show=="shoutroom")
{
$shtxt = $_POST["shtxt"];
addonline(getuid_hits($hits),"Shouting","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Shout\">";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM mx_shouts WHERE shouter='".$uid."'"));
$shoutfl = $lastshout[0]+18;
if($shoutfl<$tm)
{
if(!isblocked($shtxt,$uid))
{
$text = parsepm($shtxt, $hits);
$nos = substr_count($text,"<img src=");
if($nos>2)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Only Two Smilies Allowed!";
}else if(getshtoken(getuid_hits($hits))<1)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Shout Token Already Finish";
}else if(strlen($shtxt)<10)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Shout Text Must Exceed 10 Words!";
}else{
$shtxt = $shtxt;
//$uid = getuid_hits($hits);
$shtm = time();
$res = mysql_query("INSERT INTO mx_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
if($res)
{
$shts = mysql_fetch_array(mysql_query("SELECT shouts FROM mx_users WHERE id='".$uid."'"));
$shtse = mysql_fetch_array(mysql_query("SELECT shouts2 FROM mx_users WHERE id='".$uid."'"));
$shtup = $shts[0]+1;
$shtsup = $shtse[0]+1;
mysql_query("UPDATE mx_users SET shouts='".$shtup."' WHERE id='".$uid."'");
mysql_query("UPDATE mx_users SET shouts2='".$shtsup."' WHERE id='".$uid."'");
$usts = mysql_fetch_array(mysql_query("SELECT shtoken FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-1;
mysql_query("UPDATE mx_users SET shtoken='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully<br/>";
echo "Shout Token Left $upl<br/><br/>".parsepm($shtxt, $hits)."";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
}
}else{
$bantime = time() + (3*24*60*60);
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Can't Shout!<br/><br/>";
echo "You just shout a link to one of the crapiest sites on earth<br/> The members of these sites spam here a lot, so go to that site and stay there if you don't like it here<br/> as a result of your stupid show:<br/>1. you have lost your sheild<br/>2. you have lost all your plusses<br/>3. You are BANNED!";
mysql_query("INSERT INTO mx_penalties SET uid='".$uid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'");
mysql_query("UPDATE mx_users SET shield='0' WHERE id='".$uid."'");
mysql_query("INSERT INTO mx_private SET text='".$shtxt."', autopm='1', byuid='".$uid."', touid='2', timesent='".$shtm."'");
}
}else{
$rema = $shoutfl - $tm;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Flood Control: $rema Seconds";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "<br/>";
echo "<a href=\"lists.php?show=shouts&hits=$hits\">Back To ShoutBox</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Announce
else if($show=="annc")
{
$antx = $_POST["antx"];
$clid = $_GET["clid"];
addonline(getuid_hits($hits),"Announcing","");
$cow = mysql_fetch_array(mysql_query("SELECT owner FROM mx_clubs WHERE id='".$clid."'"));
$uid = getuid_hits($hits);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Announce\">";
echo "<p align=\"center\">";
if($cow[0]!=$uid)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>This is not your group!";
}else{
$shtxt = $shtxt;
//$uid = getuid_hits($hits);
$shtm = time();
$res = mysql_query("INSERT INTO mx_announcements SET antext='".$antx."', clid='".$clid."', antime='".$shtm."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Announcement Added!";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="rateb")
{
$brate = $_POST["brate"];
$bid = $_GET["bid"];
addonline(getuid_hits($hits),"Rating a blog","");
//$uid = getuid_hits($hits);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$vb = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_brate WHERE uid='".$uid."' AND blogid='".$bid."'"));
if($vb[0]==0)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]+3;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO mx_brate SET uid='".$uid."', blogid='".$bid."', brate='".$brate."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Blog rated successfully<br/>+3 Plusses<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You have rated this blog before<br/>";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfgb")
{
$mid = $_GET["mid"];
addonline(getuid_hits($hits),"Deleting Testimonials","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(candelgb(getuid_hits($hits), $mid))
{
$res = mysql_query("DELETE FROM mx_gbook WHERE id='".$mid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Message Deleted From Testimonials<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this message";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfw")
{
$mid = $_GET["mid"];
addonline(getuid_hits($hits),"Deleting Wall Post","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if(candelw(getuid_hits($hits), $mid))
{
$res = mysql_query("DELETE FROM status WHERE id='".$mid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Post Deleted From Wall<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this message";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfwc")
{
$midd = $_GET["midd"];
$mid = $_GET["mid"];
addonline(getuid_hits($hits),"Deleting Comment","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(candelwc(getuid_hits($hits), $mid, $midd))
{
$res = mysql_query("DELETE FROM statuscomment WHERE id='".$mid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Comment Deleted Successful<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this comment";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delbm")
{
$bmid = $_GET["bmid"];
addonline(getuid_hits($hits),"Deleting Bookmark","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
echo "<b>Delete Bookmark</b><br/><br/>";
$uid = getuid_hits($hits);
if(candelbm($bmid,$uid))
{
$res = mysql_query("DELETE FROM mx_book WHERE id='".$bmid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Bookmark Deleted From Lists<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't Delete This Bookmark";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=book&hits=$hits\">Bookmarks</a><br/>";
echo "<img src=\"images/forum.png\" alt=\"»\"/> <a href=\"index.php?show=forum&hits=$hits\">Forums</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delvlt")
{
$vid = $_GET["vid"];
addonline(getuid_hits($hits),"Deleting Vault Item","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM mx_vault WHERE id='".$vid."'"));
if(ismod(getuid_hits($hits))||getuid_hits($hits)==$itemowner[0])
{
$res = mysql_query("DELETE FROM mx_vault WHERE id='".$vid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Item Deleted From Vault<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this item";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfs")
{
$vid = $_GET["vid"];
addonline(getuid_hits($hits),"Deleting File Share Item","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM mx_uploads WHERE id='".$vid."'"));
if(ismod(getuid_hits($hits))||getuid_hits($hits)==$itemowner[0])
{
$link = mysql_fetch_array(mysql_query("SELECT filename FROM mx_uploads WHERE id='".$vid."'"));
$ext = getext($link[0]);
$res = unlink("fshare/$ext/$link[0]");
$res = mysql_query("DELETE FROM mx_uploads WHERE id='".$vid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Item Deleted From File Share<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this item";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfc")
{
$cmtid = $_GET["cmtid"];
addonline(getuid_hits($hits),"Deleting File Share Comment","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(candelcm(getuid_hits($hits), $cmtid))
{
$res = mysql_query("DELETE FROM mx_upload_comment WHERE id='".$cmtid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Comment Deleted From File Share";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this comment";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delfr")
{
$cmtid = $_GET["cmtid"];
addonline(getuid_hits($hits),"Deleting File Share Request","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(candelrq(getuid_hits($hits), $cmtid))
{
$res = mysql_query("DELETE FROM mx_upload_request WHERE id='".$cmtid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Request Deleted From Request Lists";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this request";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="delbl")
{
$bid = $_GET["bid"];
addonline(getuid_hits($hits),"Deleting A Blog","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(candelbl(getuid_hits($hits), $bid))
{
$res = mysql_query("DELETE FROM mx_blogs WHERE id='".$bid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Blog Deleted<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You can't delete this blog";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="rpost")
{
$pid = $_GET["pid"];
addonline(getuid_hits($hits),"Reporting Post","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM mx_posts WHERE id='".$pid."'"));
if($pinfo[0]=="0")
{
$str = mysql_query("UPDATE mx_posts SET reported='1' WHERE id='".$pid."' ");
if($str)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Post reported to mods successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't report post at the moment";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>This Post is already reported";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="rtpc")
{
$tid = $_GET["tid"];
addonline(getuid_hits($hits),"Reporting Topic","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
$pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM mx_topics WHERE id='".$tid."'"));
if($pinfo[0]=="0")
{
$str = mysql_query("UPDATE mx_topics SET reported='1' WHERE id='".$tid."' ");
if($str)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Topic reported to mods successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't report topic at the moment";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>This Topic is already reported";
}
echo "<br/><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p></body>";
}
else if($show=="bud")
{
$todo = $_GET["todo"];
$who = $_GET["who"];
addonline(getuid_hits($hits),"Adding/Removing Buddy","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Adding / Remove Buddy</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
//$uid = getuid_hits($hits);
$unick = getnick_uid($uid);
$tnick = getnick_uid($who);
if($todo=="add")
{
if(budres($uid,$who)!=3){
if(arebuds($uid,$who))
{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>$tnick is already your buddy";
}else if(budres($uid, $who)==0)
{
$res = mysql_query("INSERT INTO mx_buddies SET uid='".$uid."', tid='".$who."', reqdt='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>A request has been sent to $tnick";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You can't add $tnick to your buddy list";
}
}
else if(budres($uid, $who)==1)
{
$res = mysql_query("UPDATE mx_buddies SET agreed='1' WHERE uid='".$who."' AND tid='".$uid."'");
if($res)
{
$sub = "Friend Alert!";
$msg = "Your Friend Request Has Been Accept By [pro5=$uid]".getnick_uid($uid)."[/pro5]";
autopm($msg, $who, $sub);
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$tnick Added to your buddy list successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You can't add $tnick to your buddy list";
}
}
else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You can't add $tnick to your buddy list";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You can't add $tnick to your buddy list";
}
}else if($todo="del")
{
$res= mysql_query("DELETE FROM mx_buddies WHERE (uid='".$uid."' AND tid='".$who."') OR (uid='".$who."' AND tid='".$uid."')");
if($res)
{
$sub = "Friend Alert!";
$msg = "Your Friend [pro5=$uid]".getnick_uid($uid)."[/pro5] Has Been Delete You From Her/His Buddy List.";
autopm($msg, $who, $sub);
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$tnick removed from your buddy list";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>can't remove $tnick from your buddy list";
}
}
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
//////////////////////////////////////////Update buddy message
else if($show=="upbmsg")
{
addonline(getuid_hits($hits),"Updating Buddy message","");
$bmsg = $_POST["bmsg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Buddy Message</b>";
echo "<div class=\"box_sub\" align=\"center\">";
$res = mysql_query("UPDATE mx_users SET budmsg='".$_POST["bmsg"]."' WHERE id='".getuid_hits($hits)."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Buddy message updated successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>can't update your buddy message";
}
echo "</div>";
echo "<a href=\"lists.php?show=buds&hits=$hits\">";
echo "Buddies List</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
//////////////////////////////////////////Update online message
else if($show=="upcmmsg")
{
addonline(getuid_hits($hits),"Updating Online Message","");
$bmsg = $_POST["bmsg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Online Message</b>";
echo "<div class=\"box_sub\" align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET cmmsg='".$_POST["bmsg"]."' WHERE id='".getuid_hits($hits)."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Online Message Updated Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Online Message";
}
echo "</div>";
echo "<a href=\"index.php?show=online&hits=$hits\">";
echo "Online List</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
//////////////////////////////////////////Staff Update online message
else if($show=="supcmmsg")
{
$who = $_GET["who"];
$user = getnick_uid($who);
addonline(getuid_hits($hits),"Updating Online Message","");
$bmsg = $_POST["bmsg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Online Message</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(isadmin(getuid_hits($hits))){
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET cmmsg='".$bmsg."' WHERE id='".$who."'");
if($res)
{
mysql_query("INSERT INTO mx_mlog SET action='Online Msg', details='<b>".getnick_uid(getuid_hits($hits))."</b> Edited $user Online Msg', actdt='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$user Online Message Updated Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Online Message";
}
}else{
echo "You Are Not An Admin!";
}
echo "</div><a href=\"index.php?show=online&hits=$hits\">";
echo "Online List</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
//////////////////////////////////////////Staff Update forum message
else if($show=="supfrmmsg")
{
$who = $_GET["who"];
$user = getnick_uid($who);
addonline(getuid_hits($hits),"Updating Forum Message","");
$fmsg = $_POST["fmsg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
if(isadmin(getuid_hits($hits))){
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET frmmsg='".$fmsg."' WHERE id='".$who."'");
if($res)
{
mysql_query("INSERT INTO mx_mlog SET action='Forum Msg', details='<b>".getnick_uid(getuid_hits($hits))."</b> Edited $user Forum Msg', actdt='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$user Forum Message Updated Successfully<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Forum Message<br/>";
}
echo "<br/>";
}else{
echo "<p align=\"center\">";
echo "You Are Not An Admin!";
echo "</p>";
}
echo "<a href=\"index.php?show=forum&hits=$hits\">";
echo "Forum</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Update forum message
else if($show=="upfrmmsg")
{
addonline(getuid_hits($hits),"Updating Forum Message","");
$fmsg = $_POST["fmsg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET frmmsg='".$fmsg."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Forum Message Updated Successfully<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Forum Message<br/>";
}
echo "<br/>";
echo "<a href=\"index.php?show=forum&hits=$hits\">";
echo "Forum</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Select Avatar
else if($show=="upav")
{
addonline(getuid_hits($hits),"Updating Avatar","");
$avid = $_GET["avid"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$avlnk = mysql_fetch_array(mysql_query("SELECT avlink FROM mx_avatars WHERE id='".$avid."'"));
$res = mysql_query("UPDATE mx_users SET avatar='".$avlnk[0]."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Avatar Selected<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
echo "<br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Select Avatar
else if($show=="upcm")
{
addonline(getuid_hits($hits),"Updating Chatmood","");
$cmid = $_GET["cmid"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
//$uid = getuid_hits($hits);
$res = mysql_query("UPDATE mx_users SET chmood='".$cmid."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Mood Selected<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
echo "<br/>";
echo "<a href=\"index.php?show=chat&hits=$hits\">";
echo "Chatrooms</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////////////////////////////Give GPs
else if($show=="givegp")
{
addonline(getuid_hits($hits),"Giving Game Plusses","");
$who = $_GET["who"];
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(isrobber($ptg,$uid))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Cant Stole Any Plusses!!</b><br/>";
}else{
$gpsf = mysql_fetch_array(mysql_query("SELECT gplus FROM mx_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT gplus FROM mx_users WHERE id='".$who."'"));
if($gpsf[0]>=$ptg){
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE mx_users SET gplus='".$gpst."' WHERE id='".$who."'");
if($res)
{
$res = mysql_query("UPDATE mx_users SET gplus='".$gpsf."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Game Plusses Share Successfully<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough GPs to give<br/>";
}
}
echo "<br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
//////////////////// add club
else if($show=="addcl")
{
addonline(getuid_hits($hits),"Adding Group","");
$clnm = trim($_POST["clnm"]);
$clnm = str_replace("$", "", $clnm);
$clds = trim($_POST["clds"]);
$clds = str_replace("$", "", $clds);
$clrl = trim($_POST["clrl"]);
$clrl = str_replace("$", "", $clrl);
$cllg = trim($_POST["cllg"]);
$cllg = str_replace("$", "", $cllg);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
if(getplusses($uid)>=3000)
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs WHERE owner='".$uid."'"));
if($noi[0]<1)
{
if(($clnm=="")||($clds=="")||($clrl==""))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Please be sure to fill, group name, description and rules";
}else{
$nmex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs WHERE name LIKE '".$clnm."'"));
if($nmex[0]>0)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Group Name Already exist";
}else{
$res = mysql_query("INSERT INTO mx_clubs SET name='".$clnm."', owner='".$uid."', description='".$clds."', rules='".$clrl."', logo='".$cllg."', plusses='0', created='".time()."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-3000;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
$clid = mysql_fetch_array(mysql_query("SELECT id FROM mx_clubs WHERE owner='".$uid."' AND name='".$clnm."'"));
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Congratulations! you have your own group, your own rules, shoutbox, forum board, chatroom, announcements board<br/>-3000 Plusses";
mysql_query("INSERT INTO mx_clubmembers SET uid='".$uid."', clid='".$clid[0]."', accepted='1', points='50', joined='".time()."'");
//$ups = getplusses($uid);
//$ups += 5;
//mysql_query("UPDATE mx_users SET plusses='".$ups."' WHERE id='".$uid."'");
$fnm = $clnm;
$cnm = $clnm;
mysql_query("INSERT INTO mx_forums SET name='".$fnm."', position='0', cid='0', clubid='".$clid[0]."'");
mysql_query("INSERT INTO mx_rooms SET name='".$cnm."', pass='', static='1', mage='0', chposts='0', perms='0', censord='0', freaky='0', lastmsg='".time()."', clubid='".$clid[0]."'");
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error!";
}
}
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You already have a groups";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You cant add groups";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="editcl")
{
$club = $_GET["club"];
addonline(getuid_hits($hits),"Editing Group","");
$clnm = trim($_POST["clnm"]);
$clnm = str_replace("$", "", $clnm);
$clds = trim($_POST["clds"]);
$clds = str_replace("$", "", $clds);
$clrl = trim($_POST["clrl"]);
$clrl = str_replace("$", "", $clrl);
$cllg = trim($_POST["cllg"]);
$cllg = str_replace("$", "", $cllg);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$uid = getuid_hits($hits);
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs WHERE owner='".$uid."' AND id='".$club."'"));
if($noi[0]>0)
{
if(getplusses($uid)>=1000)
{
if(($clnm=="")||($clds=="")||($clrl==""))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Please be sure to fill, group name, description and rules";
}else{
$nmex = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs WHERE name LIKE '".$clnm."'"));
if($nmex[0]>0)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Group Name Already exist";
}else{
$res = mysql_query("UPDATE mx_clubs SET name='".$clnm."', owner='".$uid."', description='".$clds."', rules='".$clrl."', logo='".$cllg."' WHERE id='".$club."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$uid."'"));
$upl = $usts[0]-1000;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Congratulations! Your Group Has Been Edit!<br/>-1000 Plusses";
$fnm = $clnm;
$cnm = $clnm;
mysql_query("UPDATE mx_forums SET name='".$fnm."', position='0', cid='0', clubid='".$club."'");
mysql_query("UPDATE mx_rooms SET name='".$cnm."', pass='', static='1', mage='0', chposts='0', perms='0', censord='0', freaky='0', clubid='".$club."'");
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error!";
}
}
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Have Not Enouge Plusses";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>You Not Group Owner";
}
}
echo "<br/><br/><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
/////////////////////////////Add remove from ignoire list
else if($show=="ign")
{
addonline(getuid_hits($hits),"Updating ignore list","");
$todo = $_GET["todo"];
$who = $_GET["who"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"RemiXchaT.CoM\">";
echo "<p align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You<br/>";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg<br/>";
}else{
//$uid = getuid_hits($hits);
$tnick = getnick_uid($who);
if($todo=="add")
{
if(ignoreres($uid, $who)==1)
{
$res= mysql_query("INSERT INTO mx_ignore SET name='".$uid."', target='".$who."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$tnick was added successfully to your ignore list<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Database<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>You can't Add $tnick to your ignore list<br/>";
}
}else if($todo="del")
{
if(ignoreres($uid, $who)==2)
{
$res= mysql_query("DELETE FROM mx_ignore WHERE name='".$uid."' AND target='".$who."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>$tnick was deleted successfully from your ignore list<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error Updating Database<br/>";
}
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>$tnick is not ignored by you<br/>";
}
}
}
echo "<br/><a href=\"lists.php?show=ignl&hits=$hits\">";
echo "Ignore List</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
include("wapv.php");
echo "</p>";
echo "</body>";
}
else if($show=="uprof")
{
addonline(getuid_hits($hits),"Updating Profile","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Profile</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$kawen = mysql_fetch_array(mysql_query("SELECT who, partner, accept FROM mx_marital WHERE partner='".$uid."' OR who ='".$uid."'"));
if($kawen[2]==1)
{
$semail = $_POST["semail"];
$usite = $_POST["usite"];
$ubday = $_POST["ubday"];
$uloc = $_POST["uloc"];
$usig = $_POST["usig"];
$usex = $_POST["usex"];
$status = $_POST["status"];
$state = $_POST["state"];
$happy = $_POST["happy"];
$rmsg = $_POST["rmsg"];
$crn = $_POST["crn"];
$pview = $_POST["pview"];
$res = mysql_query("UPDATE mx_users SET email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', fmsg='".$rmsg."', bcrew='".$crn."', pview='".$pview."', happy='".$happy."', state='".$state."' WHERE id='".getuid_hits($hits)."'");
}else if($savat=="")
{
$semail = $_POST["semail"];
$usite = $_POST["usite"];
$ubday = $_POST["ubday"];
$uloc = $_POST["uloc"];
$usig = $_POST["usig"];
$usex = $_POST["usex"];
$status = $_POST["status"];
$state = $_POST["state"];
$happy = $_POST["happy"];
$rmsg = $_POST["rmsg"];
$crn = $_POST["crn"];
$pview = $_POST["pview"];
$res = mysql_query("UPDATE mx_users SET email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', fmsg='".$rmsg."', bcrew='".$crn."', pview='".$pview."', happy='".$happy."', status='".$status."', state='".$state."' WHERE id='".getuid_hits($hits)."'");
}else{
$semail = $_POST["semail"];
$usite = $_POST["usite"];
$ubday = $_POST["ubday"];
$uloc = $_POST["uloc"];
$usig = $_POST["usig"];
$usex = $_POST["usex"];
$status = $_POST["status"];
$state = $_POST["state"];
$happy = $_POST["happy"];
$rmsg = $_POST["rmsg"];
$crn = $_POST["crn"];
$pview = $_POST["pview"];
$res = mysql_query("UPDATE mx_users SET email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', fmsg='".$rmsg."', bcrew='".$crn."', pview='".$pview."', happy='".$happy."', status='".$status."', state='".$state."' WHERE id='".getuid_hits($hits)."'");
}
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".getuid_hits($hits)."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".getuid_hits($hits)."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your profile was updated successfully<br/>+1 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your profile";
}
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="upwd")
{
addonline(getuid_hits($hits),"Updating Password","");
$opwd = clean($_POST["opwd"]);
$npwd = clean($_POST["npwd"]);
$cpwd = clean($_POST["cpwd"]);
$pwd = mysql_fetch_array(mysql_query("SELECT pass FROM mx_users WHERE id='".$uid."'"));
$epwd = md5($opwd);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Change Password</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if($npwd!=$cpwd)
{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Your Password And Confirm Password Doesn't Match<br/>";
}else if($epwd!=$pwd[0]){
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Your Old Password Is Incorrect<br/>";
}else if((strlen($npwd)<5) || (strlen($npwd)>15)){
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Your Password Should Be Between 5 And 15 Characters<br/>";
}else{
$pwd = md5($npwd);
$res = mysql_query("UPDATE mx_users SET pass='".$pwd."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your password was updated successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your password";
}
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="updisplay")
{
addonline(getuid_hits($hits),"Updating Display","");
$logo = $_POST["logo"];
$pstyle = $_POST["pstyle"];
$box = $_POST["box"];
$shoutrep = $_POST["shoutrep"];
$smilies = $_POST["smilies"];
$icon = $_POST["icon"];
$boxs = $_POST["boxs"];
$timer = $_POST["timer"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Display</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$res = mysql_query("UPDATE mx_users SET logo='".$logo."', box='".$box."', pstyle='".$pstyle."', icon='".$icon."', boxs='".$boxs."', timer='".$timer."', shoutrep='".$shoutrep."', hvia='".$smilies."', theme='".$_POST["theme"]."', ctext='".$_POST["ctext"]."', cname='".$_POST["cname"]."' WHERE id='".getuid_hits($hits)."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".getuid_hits($hits)."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".getuid_hits($hits)."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your Display was updated successfully<br/>+1 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your display";
}
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
else if($show=="upcustom")
{
addonline(getuid_hits($hits),"Updating Custom Theme","");
$theme = $_POST["theme"];
$cssboxbb = $_POST["cssboxbb"];
$cssboxbt = $_POST["cssboxbt"];
$cssbox = $_POST["cssbox"];
$csscen = $_POST["csscen"];
$cssfont = $_POST["cssfont"];
$cssback = $_POST["cssback"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Custom</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(valid(getuid_hits($hits)))
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";
}else if(istrashed(getuid_hits($hits)))
{
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM mx_penalties WHERE uid='".getuid_hits($hits)."' AND penalty='0'"));
$remain = $banto[0]-time();
$rmsg = gettimemsg($remain);
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>You Has Been Mute!!</b><br/><br/>Remain: $rmsg";
}else{
$res = mysql_query("UPDATE mx_users SET cssbackground='".$cssback."', cssfont='".$cssfont."', csscen='".$csscen."', cssbox='".$cssbox."', cssboxbt='".$cssboxbt."', cssboxbb='".$cssboxbb."', theme='".$_POST["theme"]."' WHERE id='".getuid_hits($hits)."'");
if($res)
{
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".getuid_hits($hits)."'"));
$upl = $usts[0]+1;
mysql_query("UPDATE mx_users SET plusses='".$upl."' WHERE id='".getuid_hits($hits)."'");
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your Custom theme updated successfully<br/>+1 Plusses";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating custom theme";
}
}
echo "</div></div>";
echo footerweb($hits);
echo "</body>";
}
else{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getpagerror();
echo "</body>";
}
?>
</html>