View file wap/redirect.php

File size: 3Kb
<?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();
  }

 $url = $_GET["url"];

  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>Redirect Url</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{
 echo "<meta http-equiv=\"refresh\" content=\"6; url=$url\">";
 echo "<img src=\"images/5down.gif\" alt=\"5secs\"/><br/>";
 echo "<form action=\"redirect.php?hits=$hits\" method=\"get\">";
 echo "<input type=\"text\" name=\"url\" value=\"$url\"/><br/>";
 echo "<input type=\"submit\" name=\"submit\" value=\"Edit\"/></form><br/>";
 echo "* Redirect in 5 seconds.";
 }
 echo "</div>";
      echo "<img src=\"images/home.gif\" alt=\"&#187;\"/><a href=\"index.php?show=main&amp;hits=$hits\">Home</a></div>";
 include("wapv.php");
      echo "</body>";
?>
</html>