',
FORM_LEFT_CLASS, $label, FORM_RIGHT_CLASS
@@ -436,7 +466,7 @@ function form_general($label, $item) {
';
if (strlen($label)) {
echo sprintf(
-'
%s
+'
%s
%s
',
FORM_LEFT_CLASS, $label, FORM_RIGHT_CLASS, $item
diff --git a/html/inc/forum_db.inc b/html/inc/forum_db.inc
index ff0b72d649..bae78387c3 100644
--- a/html/inc/forum_db.inc
+++ b/html/inc/forum_db.inc
@@ -320,6 +320,10 @@ class BoincNotify {
$db = BoincDb::get();
return $db->enum_general('BoincNotify', $query);
}
+ function update($clause) {
+ $db = BoincDb::get();
+ return $db->update($this, 'notify', $clause);
+ }
}
define ('NOTIFY_FRIEND_REQ', 1);
diff --git a/html/inc/keywords.inc b/html/inc/keywords.inc
index 85e2b2562a..695f1641a1 100644
--- a/html/inc/keywords.inc
+++ b/html/inc/keywords.inc
@@ -89,6 +89,7 @@ define('KW_CHEMISTRY', 62);
define('KW_GAMES', 63);
define('KW_VIRUS', 64);
define('KW_FRANCE', 65);
+define('KW_CANADA', 66);
$job_keywords = array();
@@ -266,6 +267,9 @@ keyword('KW_OCEANIA', KW_CATEGORY_LOC, 0, 0,
keyword('KW_AMERICAS', KW_CATEGORY_LOC, 0, 0,
'Americas'
);
+ keyword('KW_CANADA', KW_CATEGORY_LOC, 1, KW_AMERICAS,
+ 'Canada'
+ );
keyword('KW_US', KW_CATEGORY_LOC, 1, KW_AMERICAS,
'United States'
);
diff --git a/html/inc/util.inc b/html/inc/util.inc
index 3759c53a2a..eaa8e0faab 100644
--- a/html/inc/util.inc
+++ b/html/inc/util.inc
@@ -182,8 +182,8 @@ function get_logged_in_user($must_be_logged_in=true) {
$authenticator = null;
if (isset($_COOKIE['auth'])) $authenticator = $_COOKIE['auth'];
- $authenticator = BoincDb::escape_string($authenticator);
if ($authenticator) {
+ $authenticator = BoincDb::escape_string($authenticator);
$g_logged_in_user = BoincUser::lookup("authenticator='$authenticator'");
}
if ($must_be_logged_in && !$g_logged_in_user) {
@@ -904,7 +904,7 @@ function button_text($url, $text, $desc=null, $class="btn-success btn-sm") {
}
function show_button($url, $text, $desc=null, $class="btn-success btn-sm") {
- echo button_text($url, $text, $desc=null, $class);
+ echo button_text($url, $text, $desc, $class);
}
// for places with a bunch of buttons, like forum posts
diff --git a/html/project.sample/project.inc b/html/project.sample/project.inc
index d39f1b7313..5588d8e331 100644
--- a/html/project.sample/project.inc
+++ b/html/project.sample/project.inc
@@ -133,7 +133,7 @@ function project_footer($show_return, $show_date, $prefix) {
// If you include any links, prepend URL with $prefix
//
echo '
-
+
©'.gmdate("Y ").COPYRIGHT_HOLDER.'
';
diff --git a/html/user/login_action.php b/html/user/login_action.php
index 633936799f..92380072a7 100644
--- a/html/user/login_action.php
+++ b/html/user/login_action.php
@@ -102,7 +102,7 @@ function login_via_link($id, $t, $h) {
// Intercept next_url if consent has not yet been given
//
- $next_url = intercept_login($user, true, "home.php");
+ $next_url = intercept_login($user, true, USER_HOME);
Header("Location: ".url_base()."$next_url");
}
diff --git a/html/user/mail_passwd.php b/html/user/mail_passwd.php
index fa0fb71455..e3afb36be5 100644
--- a/html/user/mail_passwd.php
+++ b/html/user/mail_passwd.php
@@ -32,11 +32,10 @@ function email_sent_message($email_addr) {
page_head("Email sent");
echo "
+
Instructions for resetting your password have been emailed to $email_addr.
- If the email doesn't arrive in a few minutes,
- your ISP may be blocking it as spam.
- In this case please ask your ISP to not block email from $email_from.
+ If the email doesn't arrive in a few minutes, check your spam folder.
";
}