diff --git a/checkin_notes b/checkin_notes
index 823ec8e2af..e26a58344c 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -9971,3 +9971,28 @@ David Feb 8 2004
tools_work.php
validate.php
web_site.php (removed)
+
+David Feb 9 2004
+ - Scheduler: when last work request was too recent,
+ send request_delay to tell client to wait
+ - code that generates user profile gallery pages (inc/gallery.inc)
+ has a nightmare of hardwired URL and path names.
+ I unraveled things enough to make them work again.
+ Should revisit at some point.
+ - page_tail() wasn't working when writing to files
+
+ html/
+ inc/
+ gallery.inc
+ profile.inc
+ util.inc
+ ops/
+ gallery.inc (removed)
+ project.sample/
+ project.inc
+ user/
+ debug.php
+ profile_menu.php
+ project.inc.sample
+ sched/
+ handle_request.C
diff --git a/html/inc/gallery.inc b/html/inc/gallery.inc
index 0becedd7f5..b3a53eab5b 100644
--- a/html/inc/gallery.inc
+++ b/html/inc/gallery.inc
@@ -56,7 +56,7 @@ function build_picture_pages($width, $height) {
$count = 0;
for ($page = 1; $page <= $numPages; $page++) {
- $file = "../html_user/" . PROFILE_PATH . "user_gallery_" . $page . ".html";
+ $file = PROFILE_PATH . "user_gallery_" . $page . ".html";
$descriptor = fopen($file, "w");
page_head("User Picture Gallery: Page $page of $numPages", null, $descriptor);
@@ -77,8 +77,8 @@ function build_picture_pages($width, $height) {
fwrite($descriptor,
"
| "
);
$count++;
@@ -96,13 +96,13 @@ function build_picture_pages($width, $height) {
write_page_links("user_gallery", $page, $numPages, $descriptor);
- page_tail($descriptor);
+ page_tail(false, $descriptor);
fclose($descriptor);
}
- //echo "
Go to the first generated page.";
+ //echo "
Go to the first generated page.";
}
// Creates pages grouping user profiles by country. Filenames are of the
@@ -147,11 +147,11 @@ function build_country_pages() {
foreach ($countries as $country) {
$baseFileName = "profile_country_" . get_legal_filename($country);
- $filePath = "../html_user/" . PROFILE_PATH;
+ $filePath = PROFILE_PATH;
build_profile_pages(
$countryMembers[$country],
"User Profiles from $country", $country, 5, 2,
- $filePath, $baseFileName, "../html_user/"
+ $filePath, $baseFileName, "../html/"
);
}
@@ -159,7 +159,7 @@ function build_country_pages() {
build_country_summary_page($countryMembers);
- //echo "
View Summary Page";
+ //echo "
View Summary Page";
//echo "
Done";
}
@@ -194,7 +194,7 @@ function build_alpha_pages() {
foreach ($letters as $letter) {
// NOTE: Array indexing is case sensitive.
- $filePath = "../html_user/" . PROFILE_PATH;
+ $filePath = PROFILE_PATH;
if (in_array($letter, $alphabet)) {
build_profile_pages(
$members[$letter],
@@ -242,7 +242,7 @@ function build_profile_pages($members, $pageHead, $pageTitle, $rowsPerPage, $col
write_page_links($baseFileName, $page, $numPages, $descriptor);
- page_tail($descriptor);
+ page_tail(false, $descriptor);
fclose($descriptor);
}
@@ -251,7 +251,7 @@ function build_profile_pages($members, $pageHead, $pageTitle, $rowsPerPage, $col
function build_country_summary_page($countryMembers) {
$countries = array_keys($countryMembers);
- $filename = "../html_user/" . PROFILE_PATH . "profile_country.html";
+ $filename = PROFILE_PATH . "profile_country.html";
$descriptor = fopen($filename, "w");
page_head("User Profiles by Country", null, $descriptor);
@@ -271,7 +271,7 @@ function build_country_summary_page($countryMembers) {
}
fwrite($descriptor, "");
- page_tail($descriptor);
+ page_tail(false, $descriptor);
fclose($descriptor);
}
@@ -279,7 +279,7 @@ function build_country_summary_page($countryMembers) {
function build_alpha_summary_page($characters) {
global $alphabet;
- $filename = "../html_user/profile_alpha.html";
+ $filename = PROFILE_PATH."profile_alpha.html";
$descriptor = fopen($filename, "w");
foreach ($alphabet as $character) {
@@ -299,12 +299,12 @@ function build_alpha_summary_page($characters) {
}
function generate_uod_page($profile, $user) {
- $filename = "../html_user/uotd.html";
+ $filename = PROFILE_PATH."uotd.html";
$descriptor = fopen($filename, "w");
if ($profile->has_picture) {
fwrite($descriptor,
- "id>"
+ "id>"
);
}
$x = user_links($user);
diff --git a/html/inc/profile.inc b/html/inc/profile.inc
index b596af1d21..2e0c3aad8b 100644
--- a/html/inc/profile.inc
+++ b/html/inc/profile.inc
@@ -104,7 +104,7 @@ function show_picture_option() {
-
+ |
Delete
|
You have previously uploaded a picture of yourself
@@ -380,7 +380,7 @@ function show_user_table(
$profile = mysql_fetch_assoc($result);
if ($profile['has_picture']) {
- write_fd($descriptor, "");
+ write_fd($descriptor, "");
} else {
write_fd($descriptor, " ");
@@ -486,8 +486,8 @@ function show_profile_summary($user, $profile_info, $can_edit, $verify_mode) {
// Only display an image if the user has uploaded one;
if ($profile_info['has_picture']) {
- //echo "id , '.jpg' . "\">id , '_sm.jpg' . "\">\n";
- echo " id , '.jpg' . "\">\n";
+ //echo "id , '.jpg' . "\">id , '_sm.jpg' . "\">\n";
+ echo " id , '.jpg' . "\">\n";
}
echo "
diff --git a/html/inc/util.inc b/html/inc/util.inc
index a59b2d6050..efa9b028b6 100644
--- a/html/inc/util.inc
+++ b/html/inc/util.inc
@@ -134,15 +134,15 @@ function page_head($title, $user=null, $fd=null, $styleSheet=null) {
project_banner($user, $fd);
}
-function page_tail($is_main=false) {
- echo "
";
+function page_tail($is_main=false, $fd=null) {
+ write_fd($fd, "
");
if (!$is_main) {
- echo "Return to ".PROJECT." main page \n";
+ write_fd($fd, "Return to ".PROJECT." main page \n");
}
// put your copyright notice etc. here
- echo "
Copyright © 2004 ".COPYRIGHT_HOLDER."\n | |