File size: 4.57Kb
<?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();
}
if(!isadmin(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 getpagerror();
echo "</body>";
echo "</html>";
exit();
}
if(!isonlinecp(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 getstafflog($hits);
echo "</body>";
echo "</html>";
exit();
}
if($show=="uploader")
{
addonline(getuid_hits($hits),"Uploading Nick Icon","");
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>Upload Nick Icon</b></div>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "Max File Size Is 30Kb</div>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<div class=\"box_sub\" align=\"center\">";
$file = $_FILES['file']['tmp_name'];
$file_name = $_FILES['file']['name'];
$file_size = $_FILES['file']['size'];
$nick = getnick_hits($hits);
$uid = getuid_hits($hits);
if($upload="upload"&&$file_name){
if (!eregi("\.(jpeg|jpg|gif|png)$",$file_name)){
print "Unsuported File extention!!<br/><hr>";
}else{
$file_name = preg_replace(
'/[^a-zA-Z0-9\.\$\%\'\`\-\@\{\}\~\!\#\(\)\&\_\^]/'
,'',str_replace(array(' ','%20','.php'),array('_','_',''),$file_name));
if(strlen($file_name)>53){ print "File Name To Long!!!<br/><hr>";
}else{
$filsize=round($file_size/1024,1);
if (round($filsize)>50.72) {
print "File Over Size!!<br/><hr>";
}else{
if (empty($file)) {
print "No Input File Specified!!!<br/><hr>";
}else{
if(file_exists('$file_name'))
{
echo "Uicon Already Exists</div></div>";
echo footerweb($hits);
print "</body></html>";
exit();
}
copy("$file", "uicon/$file_name") or
die("Couldn't copy file.");
echo "$file_name Has Been Added To Nick Icon<br/><hr>";
$sourc = "uicon/$file_name";
mysql_query("INSERT INTO mx_uicons SET avlink='".$sourc."'");
}
}
}
}
}
?>
<?php
echo "<form action=\"uicon.php?show=uploader&hits=$hits\" method=\"post\" ENCTYPE=\"multipart/form-data\">";
echo "Select Picture<br/><input type=\"file\" name=\"file\" size=\"30\"/><br/>";
echo "<input type=\"submit\" value=\"Upload!\"/></form></div></div>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "Only jpeg|jpg|gif|png File Allowed</div>";
echo footerweb($hits);
}
echo "</body>
</html>";
?>