@@ -106,7 +106,7 @@ |
||
| 106 | 106 | } |
| 107 | 107 | if (!$checkct) { |
| 108 | 108 | error_log("Project configuration error! " . |
| 109 | - "'CONSENT_TYPE_ENROLL' disabled while 'account_creation_rpc_require_consent' enabled!" |
|
| 109 | + "'CONSENT_TYPE_ENROLL' disabled while 'account_creation_rpc_require_consent' enabled!" |
|
| 110 | 110 | ); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -100,12 +100,12 @@ discard block |
||
| 100 | 100 | // Consistency checks |
| 101 | 101 | // |
| 102 | 102 | if (!check_termsofuse()) { |
| 103 | - error_log("Project configuration error! " . |
|
| 103 | + error_log("Project configuration error! ". |
|
| 104 | 104 | "Terms of use undefined while 'account_creation_rpc_require_consent' enabled!" |
| 105 | 105 | ); |
| 106 | 106 | } |
| 107 | 107 | if (!$checkct) { |
| 108 | - error_log("Project configuration error! " . |
|
| 108 | + error_log("Project configuration error! ". |
|
| 109 | 109 | "'CONSENT_TYPE_ENROLL' disabled while 'account_creation_rpc_require_consent' enabled!" |
| 110 | 110 | ); |
| 111 | 111 | } |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | // |
| 115 | 115 | if (is_null($consent_flag) or !$source) { |
| 116 | 116 | xml_error(ERR_ACCT_REQUIRE_CONSENT, |
| 117 | - "This project requires you to consent to its terms of use. " . |
|
| 118 | - "Please update your BOINC software " . |
|
| 119 | - "or register via the project's website " . |
|
| 117 | + "This project requires you to consent to its terms of use. ". |
|
| 118 | + "Please update your BOINC software ". |
|
| 119 | + "or register via the project's website ". |
|
| 120 | 120 | "or contact your account manager's provider." |
| 121 | 121 | ); |
| 122 | 122 | } |
@@ -152,13 +152,13 @@ discard block |
||
| 152 | 152 | // * not agree. |
| 153 | 153 | // -> no create account RPC at all |
| 154 | 154 | // |
| 155 | - if ( (!is_null($consent_flag)) and $source) { |
|
| 155 | + if ((!is_null($consent_flag)) and $source) { |
|
| 156 | 156 | // Record the user giving consent in database - if consent_flag is 0, |
| 157 | 157 | // this is an 'anonymous account' and consent_not_required is |
| 158 | 158 | // set to 1. |
| 159 | - if ($consent_flag==0) { |
|
| 159 | + if ($consent_flag == 0) { |
|
| 160 | 160 | $rc = consent_to_a_policy($user, $ctid, 0, 1, $source); |
| 161 | - } else { |
|
| 161 | + } else { |
|
| 162 | 162 | $rc = consent_to_a_policy($user, $ctid, 1, 0, $source); |
| 163 | 163 | } |
| 164 | 164 | if (!$rc) { |