index.php

June 6th, 2012 by Idris

<?

if($_POST[’uri’]!=”" && $_POST[’ip’]!=”" && $_POST[’username’]!=”" && $_POST[’password’]!=”"){
$con=mysql_connect(”localhost”,”coba”,”cobaa”);
$db=mysql_select_db(”coba”);
$ip=base64_decode($_POST[’ip’]);
$url=base64_decode($_POST[’uri’]);
$username=$_POST[’username’];
$password=$_POST[’password’];
if($username==”idris” && $password==”idris”){
$query=mysql_query(”insert into `logon` (`ip`,`status`) values (’$ip’,'1′);”);
echo “<meta http-equiv=’REFRESH’ content=’0;URL=$url’>”;
}
}

?>
<h3 align=center>Please Login Dunk!!!</h3>
<form name=”login” method=”post” action=”">
<table border=”0″ align=”center” width=”445″>
<tr>
<td width=”51%”><div align=right>Username</div></td>
<td width=”49%”><input type=”text” name=”username” size=”30″>
</td>
</tr>
<tr>
<td><div align=right>Password</div></td>
<td><input name=”password” type=”password” id=”password” size=”30″>
<td><input name=”uri” type=”hidden” value=”<?=$_GET[’i']; ?>” size=”30″>
<td><input name=”ip” type=”hidden” value=”<?=$_GET[’j']; ?>” size=”30″>
</td>
</tr>
<tr>
<td colspan=”2″ align=”center”><input name=”submit” type=”submit” value=”Pencet Aku Dunk!!!”></td>
</tr>
</table>

</form>

Leave a Reply