File size: 6.29Kb
<?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"];
$who = $_GET["who"];
$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();
}
$pwd = $_POST["logpwd"];
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=\"Login Cpanel\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Login Cpanel</b>";
echo "<div class=\"box_sub\" align=\"center\">";
$epwd = md5($pwd);
$nick = getnick_uid($uid);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_users WHERE name='".$nick."' AND passcp='".$epwd."'"));
if($uinf[0]==0)
{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/>Incorrect Password!<br/>";
}else{
$tm = time();
$res = mysql_query("INSERT INTO mx_onlinecp SET userid='".$uid."', actvtime='".$tm."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"*\"/><br/>Cpanel Logged In Successfully!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/>Cpanel Login Error!<br/>";
}
if(ismod($uid))
{
$nrtp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_shop WHERE type='1' AND req='1'"));
$tot = $nrtp[0];
$nrtps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_shop WHERE type='2' AND req='1'"));
$tot += $nrtps[0];
$tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_private WHERE reported='1'"));
$tot += $tnor[0];
$tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_shouts WHERE reported='1'"));
$tot += $tnor[0];
$tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_posts WHERE reported='1'"));
$tot += $tnor[0];
$tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_topics WHERE reported='1'"));
$tot += $tnor[0];
$tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_mlog"));
$tol = $tnol[0];
if($tol+$tot>0)
{
echo "<a href=\"modcp.php?show=main&hits=$hits\">$tot|$tol|$nrtp[0]|$nrtps[0] Mod R/L</a>";
}
}
if(isowner(getuid_hits($hits)))
{
echo "<br/><a href=\"ownercp.php?show=ownercp&hits=$hits\">C.E.O CP</a>";
$hide = mysql_fetch_array(mysql_query("SELECT visible FROM mx_users WHERE id='".$uid."'"));
if($hide[0]=="1")
{
echo "<br/><a href=\"genproc.php?show=invisible&hits=$hits&act=dis\">Invisible Mode</a>";
}else{
echo "<br/><a href=\"genproc.php?show=invisible&hits=$hits&act=enb\">Visible Mode</a>";
}
$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM mx_users WHERE validated='0'"));
if($noi[0]>0)
{
echo "<br/><a href=\"ownercp.php?show=validatelist&hits=$hits\">UnValidate List($noi[0])</a>";
}
}
if(isheadown(getuid_hits($hits)))
{
echo "<br/><a href=\"headadmincpx.php?show=headadmincp&hits=$hits\">Manager CP</a>";
$hide = mysql_fetch_array(mysql_query("SELECT visible FROM mx_users WHERE id='".$uid."'"));
if($hide[0]=="1")
{
echo "<br/><a href=\"genproc.php?show=invisible&hits=$hits&act=dis\">Invisible Mode</a>";
}else{
echo "<br/><a href=\"genproc.php?show=invisible&hits=$hits&act=enb\">Visible Mode</a>";
}
$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM mx_users WHERE validated='0'"));
if($noi[0]>0)
{
echo "<br/><a href=\"headadmincpx.php?show=validatelist&hits=$hits\">UnValidate List($noi[0])</a>";
}
}
if(ismaster(getuid_hits($hits)))
{
echo "<br/><a href=\"headadmincp.php?show=headadmincp&hits=$hits\">Trainee Manager CP</a>";
$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM mx_users WHERE validated='0'"));
if($noi[0]>0)
{
echo "<br/><a href=\"headadmincp.php?show=validatelist&hits=$hits\">UnValidate List($noi[0])</a>";
}
}
if(!isowner(getuid_hits($hits)))
{
if(!isheadown(getuid_hits($hits)))
{
if(!ismaster(getuid_hits($hits)))
{
if(isadmin(getuid_hits($hits)))
{
echo "<br/><a href=\"admincp.php?show=admincp&hits=$hits\">Shift Manager CP</a>";
$noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM mx_users WHERE validated='0'"));
if($noi[0]>0)
{
echo "<br/><a href=\"admincp.php?show=validatelist&hits=$hits\">UnValidate List($noi[0])</a>";
}
}
}
}
}
}
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>";
?>
</html>