File size: 2.95Kb
<?php
session_start();
include ("config.php");
include ("variable.php");
$sitename = "wapapp.org";
$username = $_SESSION['username'];
$url = mysql_real_escape_string($_REQUEST['name']);
$doing = mysql_query("UPDATE users SET doing='Checking Inbox' WHERE username='".$username."'");
//$br = explode("/",$HTTP_USER_AGENT);
//$brs = $br[0];
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
$count = "3";
echo "<head>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\"></link>";
echo "<title>$sitename</title>
</head>";
echo "<body>";
echo "<img src=\"images/logo.gif\" alt=\"!\"/><br/>";
echo "<div>";include("admob.inc.php");echo "</div>";
echo "<b>Date Time:<br/>";
$differencetolocaltime=+4;
$new_U=date("U")+$differencetolocaltime*3600;
$fulllocaldatetime= date("d-m-Y h:i:s A", $new_U);
echo $fulllocaldatetime;
echo "<br/>";
$banned = mysql_fetch_array(mysql_query("SELECT Level_access FROM users WHERE username='".$_SESSION['username']."'"));
if($banned[0]==6)
{
echo "<img src=\"images/lock.gif\" alt=\"lock\"/><br/>";
echo "sorry ".$_SESSION['username']." you have been banned";// you will be unbanned in $bandays days pls come back then<br/>";
}
if(isset($_SESSION['username']))
{
addonline($username);
$time = time();
$timeout = $_SESSION["sessionexp"];
if(isset($_SESSION['sessionexp']))
{
if($time>$timeout)
{
echo "Thanks For Viewing $sitename You Will Be redirected to the index page in 5 seconds";
?><meta http-equiv="refresh" content="5;URL=index.php"><?
exit();
}
}
$idn = $_GET["id"];
mysql_query("DELETE FROM gallery WHERE picowner='$username' AND id='$idn'")
or die(mysql_error());
echo "Image deleted ".$_SESSION['username']."<br/>";
echo "<a href=\"main.php?page=menu\">Home</a><br />";
echo "<a href=\"main.php?page=removepic\">Back</a><br />";
}else{
echo "<img src=\"images/lock.gif\" alt=\"lock\"/><br/>";
echo "<b>sorry</b> you need to login again<br/>";
echo "<a href=\"login.php\" style=\"color:red\">Login</a><br />";
exit();
}
require_once 'geoip.inc';
$gi = geoip_open( 'GeoIP.dat', GEOIP_STANDARD );
$country = geoip_country_code_by_addr( $gi,
$_SERVER['REMOTE_ADDR'] );
$_SESSION['geocountry'] = $country;
$country = strtolower($_SESSION['geocountry']);
if(isset($_SESSION['geocountry']))
{
echo '<img src="flags/'.$country.'.gif" border="0"><br/>';
}else{
echo '<img src="flags/cry.gif" border="0"><br/>';
}
echo "Ip:<br/>";
echo $_SERVER['REMOTE_ADDR'];
echo "<br/>";
echo "Browser:<br/>";
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
echo '<div>©2008 wapapp.org - looony_guy79@hotmail.com.com<br/>
[<a href="main.php?page=about">About us </a>| <a href="main.php?page=terms">Terms & Conditions</a>]</div>';
?>
</html>
</body>
</html>