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();
|
2003-03-21 04:38:55 +00:00
|
|
|
$id = $_GET["userid"];
|
2002-12-06 21:37:30 +00:00
|
|
|
|
|
|
|
$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) {
|
2003-03-17 22:37:49 +00:00
|
|
|
page_head("Account data for $user->name");
|
2003-03-06 17:42:49 +00:00
|
|
|
start_table();
|
2003-03-21 04:38:55 +00:00
|
|
|
show_user_summary_public($user);
|
2003-03-06 17:42:49 +00:00
|
|
|
end_table();
|
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
|
|
|
}
|
|
|
|
?>
|