moprpg/stat.php

28 lines
410 B
PHP
Raw Permalink Normal View History

2017-10-22 18:15:11 -07:00
<?php
include("config.php");
include("includes/statsimage.php");
$char['x']=$_GET['x'];
$char['y']=$_GET['y'];
$u=$char['x'];
$p=$char['y'];
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
2017-10-22 20:39:20 -07:00
while($row = mysql_fetch_array($result)) {
$uid=$row['id'];
$x=$row['x'];
$y=$row['y'];
if(md5($row['password'])!=$p) {
header("Location: index.php");
exit;
2017-10-22 18:15:11 -07:00
}
}
makestatimage($uid);
2017-10-22 20:39:20 -07:00
?>