View file wapirate/top/in.php

File size: 1.42Kb
<?php

echo "<head><title>wapirate.net top sites</title>";

      echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";

echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />

<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>

<meta name=\"description\" content=\"wapirate.net Chatheaven :)\"> 

<meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>";

echo "<body>";



include("func.php");

include("conf.php");

$sid = $_GET["sid"];

connect($dbserver,$dbname,$dbuser,$dbpass);

$sql ="SELECT * FROM sites where id='".$sid."' and banned='0';";



$sites = mysql_fetch_array(mysql_query($sql));



$ip = mysql_fetch_array(mysql_query("SELECT  sid,ip,browser,time FROM sitein WHERE  sid='".$sid."' AND ip='".getip()."' AND browser='".$ubr."' LIMIT 10 "));



if ($ip){} else

{

$hin = $sites[6]+1;

$res = mysql_query("UPDATE sites SET hin='".$hin."',active='".time()."' WHERE id='".$sid."'");

$res2 =mysql_query("INSERT INTO sitein SET sid='".$sid."', ip='".getip()."', browser='".$ubr."',time='".time()."'");

}



?>

<wml>

<card id="main" title="Top Sites" ontimer="index.php">

<timer value="30"/>

<p align="center">

<?php

echo "<img src=\"logo.gif\" alt=\"wapirate.net\"/><br/><br/>";

echo "Welcome to wapirate.net Top Sites<br/>";

echo "<br/><a href=\"index.php\">Continue</a>";





?>

</p>

</body>

</html>