.
require_once("../inc/db.inc");
require_once("../inc/xml.inc");
xml_header();
$retval = db_init_xml();
if ($retval) xml_error($retval);
$auth = get_str("account_key");
$user = lookup_user_auth($auth);
if (!$user) {
xml_error(-136);
}
$name = urlencode($user->name);
$country = urlencode($user->country);
$postal_code = urlencode($user->postal_code);
$url = urlencode($user->url);
$weak_auth = weak_auth($user);
$cpid = md5($user->cross_project_id.$user->email_addr);
$ret = "$user->id
$name
$country
$weak_auth
$postal_code
$cpid
$user->has_profile
$user->create_time
$user->global_prefs
$user->project_prefs
$url
$user->send_email
$user->show_hosts
$user->teamid
$user->venue";
if ($user->teamid) {
$team = lookup_team($user->teamid);
if ($team->userid == $user->id) {
$ret = $ret . "\n";
}
}
echo "
$ret
";
?>