2005-02-25 00:41:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/xml.inc");
|
|
|
|
|
|
|
|
$auth = process_user_text($_GET["account_key"]);
|
|
|
|
|
|
|
|
xml_header();
|
|
|
|
|
|
|
|
function reply($x) {
|
|
|
|
echo "<am_get_info_reply>
|
|
|
|
$x
|
|
|
|
</am_get_info_reply>
|
|
|
|
";
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
function error($x) {
|
|
|
|
reply("<error>$x</error>");
|
|
|
|
}
|
|
|
|
|
|
|
|
function success($x) {
|
|
|
|
reply("<success/>\n$x");
|
|
|
|
}
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
$user = lookup_user_auth($auth);
|
|
|
|
if (!$user) {
|
|
|
|
error("no such user");
|
|
|
|
}
|
|
|
|
|
|
|
|
$name = urlencode($user->name);
|
|
|
|
$country = urlencode($user->country);
|
|
|
|
$postal_code = urlencode($user->postal_code);
|
|
|
|
$url = urlencode($user->url);
|
|
|
|
|
|
|
|
success(
|
|
|
|
"<name>$name</name>
|
|
|
|
<country>$country</country>
|
|
|
|
<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>
|
2005-02-25 00:41:22 +00:00
|
|
|
");
|
|
|
|
|
|
|
|
?>
|