*** empty log message ***

svn path=/trunk/boinc/; revision=3005
This commit is contained in:
Rom Walton 2004-02-24 04:05:13 +00:00
parent 098b56b3a3
commit 39c5f3c8b6
6 changed files with 45 additions and 17 deletions

View File

@ -10117,11 +10117,32 @@ Jeff Feb 19 2004
Rom Feb 23 2004
- Removed stackwalkers exception description so duplicate information is not logged.
api/win/
stackwalker.cpp
api/win/
stackwalker.cpp
Karl 2004-02-23
- cookbook changes
doc/
project_cookbook.php
Rom Feb 23 2004
- New projects were failing to be able to make profiles. Added a bunch of defines
to project.inc that are now required.
- Updated the schema.sql file to include columns that are now required.
- Changed URL handling to include URL_BASE before quite a few relative links.
Basically PROFILE_PATH was being used for URL generation instead of URL_BASE +
IMAGE_URL|PROFILE_URL.
db/
schema.sql
html/inc/
forum.inc
gallery.inc
html/project.sample/
project.inc
user/
profile_menu.php

View File

@ -273,6 +273,9 @@ create table profile (
recommend integer not null,
reject integer not null,
posts integer not null,
hide_email integer,
uotd_time integer,
verification integer,
primary key (userid)
);

View File

@ -297,7 +297,7 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS
<p style=\"font-weight:bold\">
";
echo user_links($user, "../");
echo user_links($user, URL_BASE);
echo "
</p>

View File

@ -78,7 +78,7 @@ function build_picture_pages($width, $height) {
"<td class=bordered align=\"center\"><a href=\""
. URL_BASE . "view_profile.php?userid="
. $userIds[$count] . "\"><img src=\""
. IMAGE_URL . $userIds[$count] . '_sm.jpg'
. URL_BASE . IMAGE_URL . $userIds[$count] . '_sm.jpg'
. "\"></a></td>"
);
$count++;
@ -102,7 +102,7 @@ function build_picture_pages($width, $height) {
}
//echo "<br><br><a href=\"" .PROFILE_PATH . "user_gallery_1.html\">Go to the first generated page.</a>";
//echo "<br><br><a href=\"" . URL_BASE . PROFILE_URL . "user_gallery_1.html\">Go to the first generated page.</a>";
}
// Creates pages grouping user profiles by country. Filenames are of the
@ -159,7 +159,7 @@ function build_country_pages() {
build_country_summary_page($countryMembers);
//echo "<br><a href=\"" . PROFILE_PATH . "profile_country.html\">View Summary Page</a>";
//echo "<br><a href=\"" . URL_BASE . PROFILE_URL . "profile_country.html\">View Summary Page</a>";
//echo "<br><br>Done";
}
@ -284,7 +284,7 @@ function build_alpha_summary_page($characters) {
foreach ($alphabet as $character) {
if (in_array($character, $characters)) {
fwrite($descriptor, "<a href=" . PROFILE_PATH . "profile_" . $character . "_1.html>$character</a>&nbsp;");
fwrite($descriptor, "<a href=" . URL_BASE . PROFILE_URL . "profile_" . $character . "_1.html>$character</a>&nbsp;");
unset($characters[$character]);
} else {
fwrite($descriptor, "$character ");
@ -293,7 +293,7 @@ function build_alpha_summary_page($characters) {
// Link to the 'Other' page if necessary.
if (!empty($characters)) {
fwrite($descriptor, "<a href=" . PROFILE_PATH . "profile_other_1.html>Other</a>&nbsp;");
fwrite($descriptor, "<a href=" . URL_BASE . PROFILE_URL . "profile_other_1.html>Other</a>&nbsp;");
}
fclose($descriptor);
}
@ -304,7 +304,7 @@ function generate_uod_page($profile, $user) {
if ($profile->has_picture) {
fwrite($descriptor,
"<a href=view_profile?userid=$user->id><img align=left src=" . IMAGE_URL . $user->id . "_sm.jpg></a>"
"<a href=view_profile?userid=$user->id><img align=left src=" . URL_BASE . IMAGE_URL . $user->id . "_sm.jpg></a>"
);
}
$x = user_links($user);

View File

@ -8,13 +8,17 @@
require_once("../inc/util.inc");
define("PROJECT", "Test Project");
define("MASTER_URL", "http://boinc.berkeley.edu/");
define("MASTER_URL", "");
define("URL_BASE", "");
define('IMAGE_PATH', '../user_profile/images/');
define('PROFILE_PATH', '../user_profile/');
define('LANGUAGE_FILE', 'languages.txt');
define('STYLESHEET', 'white.css');
define('COPYRIGHT_HOLDER', 'Test Group');
define("IMAGE_PATH", "../user_profile/images/");
define("IMAGE_URL", "user_profile/images/");
define("PROFILE_PATH", "../user_profile/");
define("PROFILE_URL", "user_profile/");
define("LANGUAGE_FILE", "languages.txt");
define("STYLESHEET", "white.css");
define("COPYRIGHT_HOLDER", "Test Group");
define("SYS_ADMIN_EMAIL", "");
function project_intro() {
echo"

View File

@ -40,8 +40,8 @@ rowify("<br>");
row1("User Profile Explorer");
echo "<tr><td>
<ul>
<li>View the <a href=" . PROFILE_URL . "user_gallery_1.html>User Picture Gallery</a>.
<li>Browse profiles <a href=" . PROFILE_URL . "profile_country.html>by country</a>.
<li>View the <a href=" . URL_BASE . "user_gallery_1.html>User Picture Gallery</a>.
<li>Browse profiles <a href=" . URL_BASE . "profile_country.html>by country</a>.
<li>Browse profiles <a href=" . $_SERVER['PHP_SELF'] . "?cmd=rand&pic=-1>at random</a>,
<a href=" . $_SERVER['PHP_SELF'] . "?cmd=rand&pic=1>at random with pictures</a>, or
<a href=" . $_SERVER['PHP_SELF'] . "?cmd=rand&pic=0>at random without pictures</a>.