mirror of https://github.com/BOINC/boinc.git
parent
3bbc399d5e
commit
ba292f97b2
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
require_once("util.inc");
|
||||
|
||||
db_init();
|
||||
$user = get_logged_in_user();
|
||||
|
||||
page_head("Create a custom signup page");
|
||||
echo "
|
||||
<h2>Create a custom signup page for ".PROJECT."</h2>
|
||||
If you like, you can create a custom signup page
|
||||
for ".PROJECT.".
|
||||
The URL for this page is
|
||||
<br>
|
||||
<pre>
|
||||
".MASTER_URL."create_account_form.php?userid=$user->id
|
||||
</pre>
|
||||
Accounts created through this URL will
|
||||
be initialized similarly to yours.
|
||||
Specifically:
|
||||
<ul>
|
||||
<li> They will belong to the same team as you;
|
||||
<li> They will have the same ".PROJECT." preferences as you.
|
||||
</ul>
|
||||
For example, you can create a team for your school or company,
|
||||
and set up your preferences to show an appropriate logo
|
||||
in the screensaver graphics.
|
||||
Then get your friends and coworkers to register for
|
||||
".PROJECT." through the URL shown above,
|
||||
and they will automatically belong to your team
|
||||
and will see the same screensaver graphics.
|
||||
";
|
||||
?>
|
|
@ -24,7 +24,7 @@ function project_banner($user) {
|
|||
} else {
|
||||
echo "<br>";
|
||||
}
|
||||
echo "</td></tr></table><hr>\n";
|
||||
echo "</td></tr></table><br>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -11,14 +11,14 @@ db_init();
|
|||
|
||||
echo "<p>".PROJECT." participants may form <b>teams</b>.
|
||||
<p>
|
||||
You may belong to at most one team.
|
||||
You may belong to only one team.
|
||||
You can join or quit a team at any time.
|
||||
<p>
|
||||
Each team has a <b>founder</b>, who may
|
||||
<ul>
|
||||
<li> access team members' email addresses.
|
||||
<li> edit the team's name, description, etc.
|
||||
<li> remove members from the team.
|
||||
<li> edit the team's name and description,
|
||||
<li> remove members from the team, and
|
||||
<li> disband a team if it has no members.
|
||||
</ul>
|
||||
<p>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// show dynamic user info (private)
|
||||
//
|
||||
function show_user_stats_private($user) {
|
||||
row1("Your account statistics");
|
||||
row1("Account statistics");
|
||||
row2(PROJECT." member since", time_str($user->create_time));
|
||||
row2("Total credit", $user->total_credit);
|
||||
row2("Recent average credit", $user->expavg_credit);
|
||||
|
@ -25,19 +25,23 @@ function show_user_profile_private($user) {
|
|||
} else {
|
||||
$email_text = "Verification pending";
|
||||
}
|
||||
row1("Your account information");
|
||||
row1("Account information");
|
||||
row2("Email address<br>
|
||||
<font size=-1><a href=edit_email_form.php>Edit</a></font>",
|
||||
$email_text
|
||||
);
|
||||
row2("Name", $user->name);
|
||||
if (strlen($user->url)) {
|
||||
row2("URL", "http://$user->url");
|
||||
} else {
|
||||
row2("URL", "");
|
||||
}
|
||||
row2("Country", $user->country);
|
||||
row2("Postal code", $user->postal_code);
|
||||
row2("", "<a href=edit_user_info_form.php>Edit account info</a>");
|
||||
row1("Your preferences");
|
||||
row2("General", "<a href=prefs.php?subset=global>View/edit</a>");
|
||||
row2(PROJECT, "<a href=prefs.php?subset=project>View/edit</a>");
|
||||
row1("Preferences");
|
||||
row2("General", "<a href=prefs.php?subset=global>View</a>");
|
||||
row2(PROJECT, "<a href=prefs.php?subset=project>View</a>");
|
||||
}
|
||||
|
||||
// show summary of dynamic and static info (public)
|
||||
|
@ -69,7 +73,7 @@ function show_user_summary_public($user) {
|
|||
// it has info that other users aren't supposed to see
|
||||
|
||||
function show_user_page_private($user) {
|
||||
start_table();
|
||||
start_table("width=100%");
|
||||
show_user_profile_private($user);
|
||||
show_user_stats_private($user);
|
||||
end_table();
|
||||
|
@ -77,7 +81,7 @@ function show_user_page_private($user) {
|
|||
}
|
||||
|
||||
function user_table_start() {
|
||||
start_table();
|
||||
start_table("width=100%");
|
||||
echo "
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
|
|
|
@ -94,8 +94,8 @@ function time_str($x) {
|
|||
return strftime("%T %b %e, %Y", $x);
|
||||
}
|
||||
|
||||
function start_table() {
|
||||
echo "<table border=1 cellpadding=5>";
|
||||
function start_table($width="") {
|
||||
echo "<table $width border=1 cellpadding=5>";
|
||||
}
|
||||
|
||||
function end_table() {
|
||||
|
|
Loading…
Reference in New Issue