2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("user.inc");
|
|
|
|
require_once("db.inc");
|
|
|
|
|
2002-12-06 21:37:30 +00:00
|
|
|
init_session();
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
2002-12-06 21:37:30 +00:00
|
|
|
$id = $HTTP_GET_VARS["id"];
|
|
|
|
|
|
|
|
$result = mysql_query("select * from user where id = $id");
|
|
|
|
$user = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
if ($user) {
|
2002-08-08 20:49:09 +00:00
|
|
|
page_head("User stats");
|
2002-12-06 21:37:30 +00:00
|
|
|
show_user_stats($user);
|
2002-11-12 17:01:16 +00:00
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
} else {
|
2002-12-06 21:37:30 +00:00
|
|
|
page_head("Can't find user");
|
|
|
|
echo "There is no account with that id.\n<p>";
|
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
}
|
|
|
|
?>
|