2005-02-25 00:41:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/xml.inc");
|
|
|
|
|
|
|
|
xml_header();
|
|
|
|
|
2006-09-06 20:56:55 +00:00
|
|
|
$retval = db_init_xml();
|
|
|
|
if ($retval) xml_error($retval);
|
2005-02-25 00:41:22 +00:00
|
|
|
|
2006-09-06 20:56:55 +00:00
|
|
|
$auth = process_user_text($_GET["account_key"]);
|
2005-02-25 00:41:22 +00:00
|
|
|
|
|
|
|
$user = lookup_user_auth($auth);
|
|
|
|
if (!$user) {
|
2006-09-06 20:56:55 +00:00
|
|
|
xml_error(-136);
|
2005-02-25 00:41:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$name = urlencode($user->name);
|
|
|
|
$country = urlencode($user->country);
|
|
|
|
$postal_code = urlencode($user->postal_code);
|
|
|
|
$url = urlencode($user->url);
|
2008-02-02 15:38:59 +00:00
|
|
|
$weak_auth = weak_auth($user);
|
2005-02-25 00:41:22 +00:00
|
|
|
|
2006-05-01 16:41:27 +00:00
|
|
|
$ret = "<id>$user->id</id>
|
2005-04-05 21:26:41 +00:00
|
|
|
<name>$name</name>
|
2005-02-25 00:41:22 +00:00
|
|
|
<country>$country</country>
|
2008-02-02 15:38:59 +00:00
|
|
|
<weak_auth>$weak_auth</weak_auth>
|
2005-02-25 00:41:22 +00:00
|
|
|
<postal_code>$postal_code</postal_code>
|
|
|
|
<global_prefs>
|
|
|
|
$user->global_prefs
|
|
|
|
</global_prefs>
|
|
|
|
<project_prefs>
|
|
|
|
$user->project_prefs
|
|
|
|
</project_prefs>
|
|
|
|
<url>$url</url>
|
|
|
|
<send_email>$user->send_email</send_email>
|
|
|
|
<show_hosts>$user->show_hosts</show_hosts>
|
2005-03-23 19:25:00 +00:00
|
|
|
<teamid>$user->teamid</teamid>
|
2006-05-01 16:41:27 +00:00
|
|
|
<venue>$user->venue</venue>";
|
|
|
|
|
|
|
|
if ($user->teamid) {
|
|
|
|
$team = lookup_team($user->teamid);
|
|
|
|
if ($team->userid == $user->id) {
|
|
|
|
$ret = $ret . "<teamfounder/>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-02-02 15:38:59 +00:00
|
|
|
echo "<am_get_info_reply>
|
2006-09-06 20:56:55 +00:00
|
|
|
<success/>
|
|
|
|
$ret
|
|
|
|
</am_get_info_reply>
|
|
|
|
";
|
2005-02-25 00:41:22 +00:00
|
|
|
|
|
|
|
?>
|