diff --git a/html/inc/notify.inc b/html/inc/notify.inc
index da1c14aad2..dd64c30882 100644
--- a/html/inc/notify.inc
+++ b/html/inc/notify.inc
@@ -23,7 +23,7 @@ function notify_rss_auth($user) {
}
function notify_rss_url($user) {
- return URL_BASE."notify_rss.php?userid=$user->id&auth=".notify_rss_auth($user);
+ return secure_url_base()."notify_rss.php?userid=$user->id&auth=".notify_rss_auth($user);
}
function show_notify_rss_item($notify) {
diff --git a/html/inc/pm.inc b/html/inc/pm.inc
index 62ec0b2006..4f47aeccbf 100644
--- a/html/inc/pm.inc
+++ b/html/inc/pm.inc
@@ -106,10 +106,10 @@ $content
--------------------------
To delete or respond to this message, visit:
-".URL_BASE."pm.php
+".secure_url_base()."pm.php
To change email preferences, visit:
-".URL_BASE."edit_forum_preferences_form.php
+".secure_url_base()."edit_forum_preferences_form.php
Do not reply to this message.
" ;
send_email($to_user, "[".PROJECT."] - private message", $message);
@@ -202,8 +202,8 @@ function pm_rss($notify, &$title, &$msg, &$url) {
return;
}
$title = tra("Private message");
- $msg = "You have received a private message.";
- $url = URL_BASE."pm.php";
+ $msg = "You have received a private message.";
+ $url = secure_url_base()."pm.php";
}
function pm_delete_user($user) {
diff --git a/html/inc/profile.inc b/html/inc/profile.inc
index 9f924e0b6c..ee81a29ffa 100644
--- a/html/inc/profile.inc
+++ b/html/inc/profile.inc
@@ -61,11 +61,11 @@ function profile_thumb_path($userid) {
}
function profile_image_url($userid) {
- return URL_BASE.IMAGE_URL.$userid.'.jpg';
+ return url_base().IMAGE_URL.$userid.'.jpg';
}
function profile_thumb_url($userid) {
- return URL_BASE.IMAGE_URL.$userid.'_sm.jpg';
+ return url_base().IMAGE_URL.$userid.'_sm.jpg';
}
function profile_user_thumb_url($user) {
@@ -182,7 +182,7 @@ function get_profile_summary($profile) {
}
- $summary = "userid."\">".$user->name." ".$description;
+ $summary = "userid."\">".$user->name." ".$description;
return $summary;
}
diff --git a/html/inc/uotd.inc b/html/inc/uotd.inc
index 93ad0046f6..bf0d83bb44 100644
--- a/html/inc/uotd.inc
+++ b/html/inc/uotd.inc
@@ -27,7 +27,7 @@ if (!defined('UOTD_THRESHOLD')) {
function uotd_thumbnail($profile, $user) {
if ($profile->has_picture) {
- return "id\">
id)."\" alt=\"".tra("User profile")."\">";
+ return "id\">
id)."\" alt=\"".tra("User profile")."\">";
} else {
return "";
}
diff --git a/html/inc/user.inc b/html/inc/user.inc
index 45ecd5de19..877b3b0c4d 100644
--- a/html/inc/user.inc
+++ b/html/inc/user.inc
@@ -136,7 +136,7 @@ function show_user_stats_private($user) {
}
$x .= ' · '.tra("Cross-project").'';
row2(tra("Certificate"), $x);
- row2(tra("Stats on your cell phone"), URL_BASE."userw.php?id=$user->id");
+ row2(tra("Stats on your cell phone"), url_base()."userw.php?id=$user->id");
}
function notify_description($notify) {
@@ -228,13 +228,13 @@ function friend_links($user) {
if ($profile && $profile->has_picture) {
$img_url = profile_thumb_url($user->id);
} else {
- $img_url = URL_BASE."img/head_20.png";
+ $img_url = url_base()."img/head_20.png";
}
$title = tra("View the profile of %1", $user->name);
$alt = tra("Profile");
- $x .= ' 
';
+ $x .= ' 
';
}
- $x .= " id."\">".$user->name."";
+ $x .= " id."\">".$user->name."";
if ($user->donated == 1) {
require_once("../project/donations.inc");
$x .= DONATION_LINK;
@@ -253,10 +253,10 @@ function user_links($user, $badge_height=0) {
}
$x = "";
if ($user->has_profile) {
- $img_url = URL_BASE."img/head_20.png";
- $x .= '
';
+ $img_url = url_base()."img/head_20.png";
+ $x .= '
';
}
- $x .= " id."\">".$user->name."";
+ $x .= " id."\">".$user->name."";
if ($user->donated == 1) {
require_once("../project/donations.inc");
$x .= DONATION_LINK;
@@ -285,7 +285,7 @@ function show_community_private($user) {
if (!DISABLE_FORUMS) {
$tot = total_posts($user);
if ($tot) {
- row2(tra("Message boards"), "id\">".tra("%1 posts", $tot)."");
+ row2(tra("Message boards"), "id\">".tra("%1 posts", $tot)."");
}
}
@@ -370,7 +370,7 @@ function show_user_summary_public($user) {
show_credit($user);
if ($user->show_hosts) {
- row2(tra("Computers"), "id\">".tra("View")."");
+ row2(tra("Computers"), "id\">".tra("View")."");
} else {
row2(tra("Computers"), tra("hidden"));
}
@@ -410,14 +410,14 @@ function community_links($clo, $logged_in_user){
if (!DISABLE_TEAMS) {
if ($user->teamid && $team) {
- row2(tra("Team"), "id\">$team->name");
+ row2(tra("Team"), "id\">$team->name");
} else {
row2(tra("Team"), tra("None"));
}
}
if (!DISABLE_FORUMS) {
if ($tot) {
- row2(tra("Message boards"), "id\">".tra("%1 posts", $tot)."");
+ row2(tra("Message boards"), "id\">".tra("%1 posts", $tot)."");
}
}
if ($logged_in_user && $logged_in_user->id != $user->id) {
diff --git a/html/inc/util_ops.inc b/html/inc/util_ops.inc
index 4227d61b2b..93280a8ef6 100644
--- a/html/inc/util_ops.inc
+++ b/html/inc/util_ops.inc
@@ -76,7 +76,7 @@ function c_row2($color, $x, $y) {
function show_profile_link_ops($user) {
if ($user->has_profile) {
row2("Profile",
- "id\">View"
+ "id\">View"
);
}
}
diff --git a/html/ops/badge_admin.php b/html/ops/badge_admin.php
index 6bdb13305e..6bf7b79099 100644
--- a/html/ops/badge_admin.php
+++ b/html/ops/badge_admin.php
@@ -52,7 +52,7 @@ function show_form() {
if (strstr($badge->image_url, "http") == $badge->image_url) {
$y = $badge->image_url;
} else {
- $y = URL_BASE.$badge->image_url;
+ $y = url_base().$badge->image_url;
}
$x = "
";
}
diff --git a/html/ops/error_summary.php b/html/ops/error_summary.php
index fefe0ce3f8..3c1d9d582c 100644
--- a/html/ops/error_summary.php
+++ b/html/ops/error_summary.php
@@ -60,7 +60,7 @@ foreach ($error_codes as $code => $x) {
$j = 0;
foreach ($results as $r) {
if ($j++ >= $nresults_per_code) break;
- echo " id>$r->id
\n";
+ echo " id>$r->id
\n";
}
}
page_tail();
diff --git a/html/ops/failure_result_summary_by_host.php b/html/ops/failure_result_summary_by_host.php
index 04cb982260..079ba8663f 100644
--- a/html/ops/failure_result_summary_by_host.php
+++ b/html/ops/failure_result_summary_by_host.php
@@ -72,7 +72,7 @@ table_header(
while ($res = _mysql_fetch_object($result)) {
table_row(
app_version_desc($res->app_version_id),
- "Host_ID>$res->Host_ID",
+ "Host_ID>$res->Host_ID",
$res->OS_Version, $res->Results_Today,
"Host_ID&app_version_id=$res->app_version_id&server_state=5&outcome=3>$res->error_count"
);
diff --git a/html/ops/index.php b/html/ops/index.php
index aa9c6e0dec..1ca186a2de 100644
--- a/html/ops/index.php
+++ b/html/ops/index.php
@@ -129,11 +129,11 @@ echo "
User management
| ";
row1(tra("User Profile Explorer"));
echo "
- - ".tra("View the %1User Picture Gallery%2.", "", "")."
- - ".tra("Browse profiles %1by country%2.", "", "")."
+ - ".tra("View the %1User Picture Gallery%2.", "", "")."
+ - ".tra("Browse profiles %1by country%2.", "", "")."
- ".tra("Browse profiles %1at random%2, %3at random with pictures%2, or %4at random without pictures%2.", "", "",
"", "")."
";
@@ -105,7 +105,7 @@ function select_profile($cmd) {
shuffle($profiles);
$userid = $profiles[0]->userid;
- header("Location: ".URL_BASE."view_profile.php?userid=$userid");
+ header("Location: ".url_base()."view_profile.php?userid=$userid");
exit();
}
}
diff --git a/html/user/sample_index.php b/html/user/sample_index.php
index 73a91020f1..b42082cdd2 100644
--- a/html/user/sample_index.php
+++ b/html/user/sample_index.php
@@ -139,7 +139,7 @@ function show_nav() {
$stopped = web_stopped();
$rssname = PROJECT . " RSS 2.0" ;
-$rsslink = URL_BASE . "rss_main.php";
+$rsslink = url_base() . "rss_main.php";
header("Content-type: text/html; charset=utf-8");
diff --git a/html/user/team_founder_transfer_action.php b/html/user/team_founder_transfer_action.php
index 77cdaf1329..051bff04c4 100644
--- a/html/user/team_founder_transfer_action.php
+++ b/html/user/team_founder_transfer_action.php
@@ -45,7 +45,7 @@ function send_founder_transfer_email($team, $user, $founder) {
$subject = "Team founder transfer request";
$body = "Team member ".$user->name." has asked that you
transfer foundership of $team->name.
-Please go [url=".URL_BASE."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
+Please go [url=".secure_url_base()."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
If you do not respond within 60 days, ".$user->name." will
be allowed to become the team founder.
@@ -57,7 +57,7 @@ be allowed to become the team founder.
$body = "Team member ".$user->name." has asked that you
transfer foundership of $team->name in ".PROJECT.".
Please visit
-".URL_BASE."team_change_founder_form.php?teamid=".$team->id."
+".secure_url_base()."team_change_founder_form.php?teamid=".$team->id."
to grant or decline the request.
If you do not respond within 60 days, ".$user->name." will
@@ -118,7 +118,7 @@ case "finalize_transfer":
if ($user->id == $team->ping_user && transfer_ok($team, $now)) {
page_head(tra("Assumed foundership of %1", $team->name));
$team->update("userid=$user->id, ping_user=0, ping_time=0");
- echo tra("Congratulations, you are now the founder of team %1. Go to %2Your Account page%3 to find the Team Admin options.", $team->name, "", "");
+ echo tra("Congratulations, you are now the founder of team %1. Go to %2Your Account page%3 to find the Team Admin options.", $team->name, "", "");
} else {
error_page(tra("Foundership request not allowed now"));
}
diff --git a/html/user/uotd_gadget.php b/html/user/uotd_gadget.php
index caedd9b04a..2da343ff0a 100644
--- a/html/user/uotd_gadget.php
+++ b/html/user/uotd_gadget.php
@@ -33,7 +33,7 @@ echo "
computing project ".PROJECT."\"
height=\"100\"
/>
-
+
";
|