mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3010
This commit is contained in:
parent
3bb826f0d9
commit
4de206c981
|
@ -10147,3 +10147,12 @@ Rom Feb 23 2004
|
|||
Jeff Feb 25 2004
|
||||
- CVS tagged as seti_boinc_app_release_2_26. This tag is a little late but
|
||||
the sources should be little if any changed.
|
||||
|
||||
David Feb 28 2004
|
||||
- change page_head() so that it doesn't try to find user
|
||||
when being used for offline page generation
|
||||
|
||||
html/inc/
|
||||
gallery.inc
|
||||
host.inc
|
||||
util.inc
|
||||
|
|
|
@ -59,7 +59,7 @@ function build_picture_pages($width, $height) {
|
|||
$file = PROFILE_PATH . "user_gallery_" . $page . ".html";
|
||||
$descriptor = fopen($file, "w");
|
||||
|
||||
page_head("User Picture Gallery: Page $page of $numPages", null, $descriptor);
|
||||
page_head("User Picture Gallery: Page $page of $numPages", null, $descriptor, false);
|
||||
|
||||
fwrite($descriptor,
|
||||
"<h2>User Profile Pictures</h2>Last updated "
|
||||
|
@ -231,7 +231,7 @@ function build_profile_pages($members, $pageHead, $pageTitle, $rowsPerPage, $col
|
|||
$descriptor = fopen($filename, "w");
|
||||
|
||||
$head = $pageHead . ": Page $page of $numPages";
|
||||
page_head($pageHead, null, $descriptor);
|
||||
page_head($pageHead, null, $descriptor, false);
|
||||
|
||||
fwrite($descriptor, "<h2>$pageTitle</h2>\n");
|
||||
fwrite($descriptor, "Last updated " . pretty_time_str(time()) . "<p>\n");
|
||||
|
@ -254,7 +254,7 @@ function build_country_summary_page($countryMembers) {
|
|||
$filename = PROFILE_PATH . "profile_country.html";
|
||||
$descriptor = fopen($filename, "w");
|
||||
|
||||
page_head("User Profiles by Country", null, $descriptor);
|
||||
page_head("User Profiles by Country", null, $descriptor, false);
|
||||
fwrite($descriptor, "<h2>User Profiles by Country</h2>Last updated " . pretty_time_str(time()) . "<p>");
|
||||
|
||||
fwrite($descriptor, "<table border=0>\n");
|
||||
|
|
|
@ -27,8 +27,9 @@ function show_host($host, $private, $ipprivate) {
|
|||
row2("IP address", "<a href=show_host_detail.php?hostid=$host->id&ipprivate=1>Show IP address</a>");
|
||||
}
|
||||
row2("Domain name", $host->domain_name);
|
||||
$x = $host->timezone/3600;
|
||||
row2("Time zone", "UTC - $x hours");
|
||||
$x = -$host->timezone/3600;
|
||||
if ($x > 0) $x="+$x";
|
||||
row2("Time zone", "UTC $x hours");
|
||||
}
|
||||
if ($private) {
|
||||
row2("Name", $host->domain_name);
|
||||
|
|
|
@ -117,19 +117,15 @@ function write_fd($fd, $str) {
|
|||
}
|
||||
}
|
||||
|
||||
function page_head($title, $user=null, $fd=null, $styleSheet=null) {
|
||||
if ($user == NULL) {
|
||||
function page_head($title, $user=null, $fd=null, $get_user=true) {
|
||||
if ($user == NULL && $get_user) {
|
||||
$user = get_logged_in_user(false);
|
||||
}
|
||||
|
||||
if ($styleSheet == NULL) {
|
||||
$styleSheet = URL_BASE . STYLESHEET;
|
||||
}
|
||||
$styleSheet = URL_BASE . STYLESHEET;
|
||||
|
||||
write_fd($fd, "<html><head><title>$title</title>\n");
|
||||
if ($styleSheet) {
|
||||
write_fd($fd, "<link rel=\"stylesheet\" type=\"text/css\" href=\"$styleSheet\">");
|
||||
}
|
||||
write_fd($fd, "<link rel=stylesheet type=text/css href=\"$styleSheet\">");
|
||||
write_fd($fd, "</head>\n<body bgcolor=ffffff>\n");
|
||||
project_banner($user, $fd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue