2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/user.inc");
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array());
|
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
page_head(tra("Forgot your account info?"));
|
2007-11-20 00:23:02 +00:00
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
echo "<h3>"
|
|
|
|
.tra("1) If you know your account's email address, and you can receive email there:")."</h3><p>"
|
|
|
|
.tra("Enter the email address below, and click OK. You will be sent email instructions for resetting your password.");
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2011-07-31 03:37:28 +00:00
|
|
|
$master_url = parse_config(get_config(), "<master_url>");
|
|
|
|
$x = strstr($master_url, "//");
|
|
|
|
$x = substr($x, 2);
|
|
|
|
$x = rtrim($x, "/");
|
|
|
|
$x = str_replace("/", "_", $x);
|
|
|
|
$account_file = "account_$x.xml";
|
|
|
|
|
2005-04-15 18:43:53 +00:00
|
|
|
start_table();
|
2007-11-20 00:23:02 +00:00
|
|
|
echo "<form method=post action=mail_passwd.php>\n";
|
2011-08-25 22:12:48 +00:00
|
|
|
row2(tra("Email address"),"<input type=\"text\" size=40 name=email_addr>");
|
|
|
|
row2("", "<input type=submit value=\"".tra("OK")."\">");
|
2007-11-20 00:23:02 +00:00
|
|
|
echo "</form>";
|
|
|
|
end_table();
|
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
echo "<p><h3>"
|
|
|
|
.tra("2) If you forgot your account's email address, or you can't receive email there:")."</h3>"
|
|
|
|
.tra("If you have run BOINC under this account, you can still access it. Here's how:")."
|
2007-11-20 00:23:02 +00:00
|
|
|
|
|
|
|
<ul>
|
2011-08-25 22:12:48 +00:00
|
|
|
<li> ".tra("Go to the BOINC data directory on your computer (on Windows this is usually <b>C:\\Documents and Settings\All Users\Application Data\BOINC</b> or <b>C:\\Program Files\BOINC</b>.")."
|
|
|
|
<li> ".tra("Find your account file for this project; it will be named <b>%1</b>.", $account_file)."
|
|
|
|
<li> ".tra("Open the file in a text editor like Notepad. You'll see something like")."
|
2007-11-20 00:23:02 +00:00
|
|
|
<pre>
|
|
|
|
<account>
|
2011-08-31 17:14:51 +00:00
|
|
|
<master_url>".MASTER_URL."/</master_url>
|
2007-11-20 00:23:02 +00:00
|
|
|
<authenticator>8b8496fdd26df7dc0423ecd43c09a56b</authenticator>
|
2011-08-31 17:14:51 +00:00
|
|
|
<project_name>".PROJECT."</project_name>
|
2007-11-20 00:23:02 +00:00
|
|
|
...
|
|
|
|
</account>
|
|
|
|
</pre>
|
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
<li> ".tra("Select and Copy the string between %1 and %2 (%3 in the above example).", "<authenticator>", "</authenticator>", "<b>8b8496fdd26df7dc0423ecd43c09a56b</b>")."
|
2007-11-20 00:23:02 +00:00
|
|
|
|
2011-08-25 22:12:48 +00:00
|
|
|
<li> ".tra("Paste the string into the field below, and click OK.")."
|
|
|
|
<li> ".tra("You will now be logged in to your account; update the email and password of your account.")."
|
2007-11-20 00:23:02 +00:00
|
|
|
</ul>
|
2005-04-15 18:43:53 +00:00
|
|
|
";
|
2007-11-20 00:23:02 +00:00
|
|
|
start_table();
|
|
|
|
|
|
|
|
echo "<form action=login_action.php method=post>\n";
|
2011-08-25 22:12:48 +00:00
|
|
|
row2(tra("Log in with authenticator"), "<input type=\"text\" name=authenticator size=40>");
|
|
|
|
row2(tra("Stay logged in on this computer"),
|
2007-11-26 00:51:00 +00:00
|
|
|
"<input type=checkbox name=send_cookie checked>"
|
|
|
|
);
|
2011-08-25 22:12:48 +00:00
|
|
|
row2("", "<input type=submit value=\"".tra("OK")."\">");
|
2007-11-20 00:23:02 +00:00
|
|
|
echo "</form>";
|
|
|
|
|
|
|
|
end_table();
|
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
|
|
|
|
page_tail();
|
|
|
|
|
|
|
|
?>
|