-
Notifications
You must be signed in to change notification settings - Fork 7
/
su_account_settings.php
46 lines (41 loc) · 1.68 KB
/
su_account_settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2017 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/>.
require_once("../inc/util.inc");
require_once("../inc/user.inc");
function su_user_info_private($user) {
$url_tokens = url_tokens($user->authenticator);
$edit = "<font size=-2>".tra("Edit")."</font>";
row2(tra("Screen name"),
$user->name." <a href=edit_user_info_form.php?$url_tokens>$edit</a>");
row2(tra("Email address"), $user->email_addr. " <a href=edit_email_form.php>$edit</a>");
row2(tra("Password"), " <a href=edit_passwd_form.php>$edit</a>");
row2(tra("%1 member since", PROJECT), date_str($user->create_time));
row2(tra("User ID")."<br/><p class=\"small\">".tra("Used in community functions")."</p>", $user->id);
row2(tra("Delete account"),
button_text("delete_account_request.php", tra("Instructions"))
);
}
function main($user) {
page_head(tra("Account settings"));
start_table();
su_user_info_private($user);
end_table();
page_tail();
}
main(get_logged_in_user());
?>