@@ -193,14 +193,14 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | // Check if consent to terms of use has been given. |
| 195 | 195 | // |
| 196 | - $myconsent = FALSE; |
|
| 196 | + $myconsent = false; |
|
| 197 | 197 | list($checkct, $ctid) = check_consent_type(CONSENT_TYPE_ENROLL); |
| 198 | 198 | if ($checkct and check_termsofuse()) { |
| 199 | 199 | $agree = post_str("agree_to_terms_of_use", true); |
| 200 | 200 | if (!$agree) { |
| 201 | 201 | error_page(tra("You have not agreed to our terms of use. Please agree to the terms of use by navigating back to the previous page, in order to create your account")); |
| 202 | 202 | } |
| 203 | - $myconsent = TRUE; |
|
| 203 | + $myconsent = true; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | // see whether the new account should be pre-enrolled in a team, |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $team = BoincTeam::lookup_id($teamid); |
| 212 | 212 | $clone_user = BoincUser::lookup_id($team->userid); |
| 213 | 213 | if (!$clone_user) { |
| 214 | - error_page("User $team->userid not found"); |
|
| 214 | + error_page("user $team->userid not found"); |
|
| 215 | 215 | } |
| 216 | 216 | $project_prefs = $clone_user->project_prefs; |
| 217 | 217 | } else { |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | "userid=$user->id AND consent_type_id=$ctid AND consent_flag=1" |
| 53 | 53 | ); |
| 54 | 54 | if ($consent_result) { |
| 55 | - return TRUE; |
|
| 55 | + return true; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | - return FALSE; |
|
| 58 | + return false; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // Check if a particular consent_type name is available. |
@@ -65,13 +65,13 @@ discard block |
||
| 65 | 65 | // The integer is the consent_type_id- the id from consent_type table. |
| 66 | 66 | // If the boolean is FALSE, the integer returned is -1. |
| 67 | 67 | // |
| 68 | -function check_consent_type($name, $checkenabled=TRUE) { |
|
| 68 | +function check_consent_type($name, $checkenabled=true) { |
|
| 69 | 69 | $name = BoincDb::escape_string($name); |
| 70 | 70 | $ct = BoincConsentType::lookup("shortname = '$name'"); |
| 71 | 71 | if ($ct and ( !$checkenabled or ($ct->enabled)) ) { |
| 72 | - return array(TRUE, $ct->id); |
|
| 72 | + return array(true, $ct->id); |
|
| 73 | 73 | } |
| 74 | - return array(FALSE, -1); |
|
| 74 | + return array(false, -1); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | // When a user uses the Web site to login, this function checks the |