2002-08-12 19:46:52 +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-12 19:46:52 +00:00
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/util.inc");
|
2004-03-26 18:32:57 +00:00
|
|
|
require_once("../inc/countries.inc");
|
2002-08-12 19:46:52 +00:00
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array("tnow", "ttok"));
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2008-10-16 04:02:59 +00:00
|
|
|
check_tokens($user->authenticator);
|
2002-08-12 19:46:52 +00:00
|
|
|
|
2010-02-13 22:52:55 +00:00
|
|
|
page_head(tra("Edit account information"));
|
2003-02-19 20:34:33 +00:00
|
|
|
|
2003-03-06 17:42:49 +00:00
|
|
|
echo "<form method=post action=edit_user_info_action.php>";
|
2008-10-16 04:02:59 +00:00
|
|
|
echo form_tokens($user->authenticator);
|
2003-03-06 17:42:49 +00:00
|
|
|
start_table();
|
2014-10-02 19:15:54 +00:00
|
|
|
row2(tra("Name %1 real name or nickname%2", "<br><p class=\"text-muted\">", "</p>"),
|
2010-09-20 23:59:25 +00:00
|
|
|
"<input name=user_name type=text size=30 value='$user->name'>"
|
2003-03-06 17:42:49 +00:00
|
|
|
);
|
2014-10-02 19:15:54 +00:00
|
|
|
row2(tra("URL %1 of your web page; optional%2", "<br><p class=\"text-muted\">", "</p>"),
|
2010-09-20 23:59:25 +00:00
|
|
|
"http://<input name=url type=text size=50 value='$user->url'>"
|
2003-03-20 02:05:25 +00:00
|
|
|
);
|
2010-02-13 22:52:55 +00:00
|
|
|
row2_init(tra("Country"),
|
2003-03-06 17:42:49 +00:00
|
|
|
"<select name=country>"
|
|
|
|
);
|
2002-12-19 18:08:43 +00:00
|
|
|
print_country_select($user->country);
|
2003-03-06 17:42:49 +00:00
|
|
|
echo "</select></td></tr>\n";
|
2014-10-02 19:15:54 +00:00
|
|
|
row2(tra("Postal (ZIP) code %1 Optional%2", "<br><p class=\"text-muted\">", "</p>"),
|
2010-09-20 23:59:25 +00:00
|
|
|
"<input name=postal_code type=text size=20 value='$user->postal_code'>"
|
2003-03-06 17:42:49 +00:00
|
|
|
);
|
2003-11-28 23:11:22 +00:00
|
|
|
|
2014-10-02 19:15:54 +00:00
|
|
|
row2("", "<input class=\"btn btn-default\" type=submit value='".tra("Update info")."'>");
|
2003-03-06 17:42:49 +00:00
|
|
|
end_table();
|
|
|
|
echo "</form>\n";
|
2002-12-19 18:08:43 +00:00
|
|
|
page_tail();
|
2002-08-12 19:46:52 +00:00
|
|
|
|
|
|
|
?>
|