2005-08-09 18:46:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// RPC handler for account lookup
|
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/email.inc");
|
|
|
|
require_once("../inc/xml.inc");
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
xml_header();
|
|
|
|
|
|
|
|
$email_addr = get_str("email_addr");
|
|
|
|
$passwd_hash = process_user_text(get_str("passwd_hash"));
|
|
|
|
|
|
|
|
$user = lookup_user_email_addr($email_addr);
|
2005-08-16 20:48:21 +00:00
|
|
|
if (!$user || $user->passwd_hash != $passwd_hash) {
|
2005-08-10 18:56:35 +00:00
|
|
|
echo "<account_out>\n";
|
2005-08-09 18:46:53 +00:00
|
|
|
echo "<error_num>-161</error_num>\n";
|
2005-08-10 18:56:35 +00:00
|
|
|
echo "</account_out>\n";
|
2005-08-16 20:48:21 +00:00
|
|
|
} else {
|
|
|
|
echo "<account_out>\n";
|
|
|
|
echo "<authenticator>$user->authenticator</authenticator>\n";
|
|
|
|
echo "</account_out>\n";
|
2005-08-09 18:46:53 +00:00
|
|
|
}
|
2005-08-10 08:55:57 +00:00
|
|
|
|
2005-08-09 18:46:53 +00:00
|
|
|
?>
|
|
|
|
|