Test Setup Failed
Push — master ( defeb2...c0e551 )
by Tomasz
11:33
created
web/diag/adminQuery.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * License: see the web/copyright.inc.php file in the file structure or
20 20
  *          <base_url>/copyright.php after deploying the software
21 21
  */
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 $languageInstance = new \core\common\Language();
24 24
 $languageInstance->setTextDomain("diagnostics");
25 25
 $loggerInstance = new \core\common\Logging();
@@ -63,47 +63,47 @@  discard block
 block discarded – undo
63 63
     $select = "<div id='sp_abuse_problem'>
64 64
 <select style='margin-left: 0px;' id='select_sp_problem'>";
65 65
     foreach ($sp_problem as $pname => $pdesc) {
66
-        $select = $select . "<option value='$pname'>$pdesc</option>\n";
66
+        $select = $select."<option value='$pname'>$pdesc</option>\n";
67 67
     }
68
-    $select = $select . "</select></div>";
68
+    $select = $select."</select></div>";
69 69
     $res = "
70 70
 <input type='hidden' name='token' id='token' value=''>
71 71
 <input type='hidden' name='tests_result' id='tests_result' value=''>
72 72
 <table id='sp_questions'>
73 73
     <tr id='sp_problem_selector'>
74
-        <td>" . _("Select your problem") . "</td>
74
+        <td>" . _("Select your problem")."</td>
75 75
         <td>$select</td>
76 76
     </tr>
77 77
     <tr>
78
-        <td>" . _("What is the realm of the IdP in question?") . "</td>
78
+        <td>"._("What is the realm of the IdP in question?")."</td>
79 79
         <td>
80 80
                 <input type='text' name='admin_realm' id='admin_realm' value='$realmFromURL'>
81
-                <button class='diag_button' id='realm_in_db_admin' style='display: none;' accesskey='R' type='button'>" .
82
-                _("Check this realm") .
81
+                <button class='diag_button' id='realm_in_db_admin' style='display: none;' accesskey='R' type='button'>".
82
+                _("Check this realm").
83 83
                 "</button>
84 84
                 <div id='tests_info_area'></div>
85 85
         </td>
86 86
     </tr>
87 87
     <tr id='outer_user_row' class='hidden_row'>
88
-        <td>" . _("Do you prefer to use a specific outer identity for diagnostics test?") . "</td>
88
+        <td>" . _("Do you prefer to use a specific outer identity for diagnostics test?")."</td>
89 89
         <td>  <input type='text' name='outer_user' id='outer_user' value=''><span id='outer_user_realm'></span>
90 90
     </tr>
91 91
     <tr class='hidden_row'>
92
-        <td>" . _("What is the authentication timestamp of the user session in question?") . "</td>
92
+        <td>" . _("What is the authentication timestamp of the user session in question?")."</td>
93 93
         <td><input type='text' id='timestamp' name='timestamp'>
94 94
             <div id='datepicker'></div>
95 95
         </td>
96 96
     </tr>
97 97
     <tr class='hidden_row'>
98
-        <td>" . _("What is the MAC address of the user session in question?") . "</td>
98
+        <td>" . _("What is the MAC address of the user session in question?")."</td>
99 99
         <td><input type='text' id='mac' name='mac'></td>
100 100
     </tr>
101 101
     <tr class='hidden_row'>
102
-        <td>" . _("Additional comments") . "</td>
102
+        <td>" . _("Additional comments")."</td>
103 103
         <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td>
104 104
     </tr>
105 105
     <tr class='hidden_row'>
106
-        <td>" . _("Please specify an email address on which the IdP can contact you") . "</td>
106
+        <td>" . _("Please specify an email address on which the IdP can contact you")."</td>
107 107
         <td><input type='text' id='email' name='email'></td>
108 108
     </tr>
109 109
     <tr>
@@ -111,82 +111,82 @@  discard block
 block discarded – undo
111 111
         <td></td>
112 112
     </tr>
113 113
     <tr class='hidden_row' id='send_query_to_idp'>
114
-        <td>" . _("Now you can send your query") . "</td>
115
-        <td><button type='submit' class='diag_button' id='submit_idp_query' name='go'>" . _("Send") . "</button></td>
114
+        <td>" . _("Now you can send your query")."</td>
115
+        <td><button type='submit' class='diag_button' id='submit_idp_query' name='go'>" . _("Send")."</button></td>
116 116
     </tr>
117 117
  </table>";
118
-    $res = $res . $javascript;
118
+    $res = $res.$javascript;
119 119
 }
120 120
 if ($queryType == 'idp') {
121 121
     $select = "<div id='idp_reported_problem' style='display:;'>
122 122
 <select style='margin-left:0px;' id='select_idp_problem'>";
123 123
     foreach ($idp_problem as $pname => $pdesc) {
124
-        $select = $select . "<option value='$pname'>$pdesc</option>\n";
124
+        $select = $select."<option value='$pname'>$pdesc</option>\n";
125 125
     }
126
-    $select = $select . "</select></div>";
126
+    $select = $select."</select></div>";
127 127
     $res = "
128 128
 <table id='idp_questions'>
129 129
     <tr>
130
-        <td>" . _("Select your problem") . "</td>
130
+        <td>" . _("Select your problem")."</td>
131 131
         <td>$select</td>
132 132
     </tr>
133 133
     <tr>
134
-        <td>" . _("Identify the SP by one of following means") . "</td>
134
+        <td>"._("Identify the SP by one of following means")."</td>
135 135
         <td></td>
136 136
     </tr>
137 137
     <tr id='by_opname'>
138
-        <td>" . _("SP Operator-Name attribute") . "</td>
138
+        <td>" . _("SP Operator-Name attribute")."</td>
139 139
         <td><input type='text' id='opname' name='opname' value=''></td>
140 140
     </tr>
141 141
     <tr id='spmanually'>
142
-        <td>" . _("Select the SP manually:") . "</td>
142
+        <td>" . _("Select the SP manually:")."</td>
143 143
         <td>
144 144
             <div id='select_asp_country'><a href='' id='asp_countries_list'>
145
-            <span id='opnameselect'>" . _("click to select country and organisation") . "</a></span>
145
+            <span id='opnameselect'>" . _("click to select country and organisation")."</a></span>
146 146
             </div>
147 147
             <div id='select_asp_area'></div>
148 148
         </td>
149 149
     </tr>
150 150
     <tr id='asp_desc' style='display: none;'>
151
-        <td>" . _("or") . ' ' . _("at least describe the SP location") . "</td>
151
+        <td>" . _("or").' '._("at least describe the SP location")."</td>
152 152
         <td><input type='text' id='asp_location' name='asp_location' value=''></td>
153 153
     </tr>
154 154
     <tr>
155
-        <td>" . _("What is the outer ID of the user session in question?") . "</td>
155
+        <td>" . _("What is the outer ID of the user session in question?")."</td>
156 156
         <td><input type='text' id='outer_id' name='outer_id' value=''></td>
157 157
     </tr>
158 158
     <tr>
159
-        <td>" . _("What is the authentication timestamp of the user session in question?") . "</td>
159
+        <td>" . _("What is the authentication timestamp of the user session in question?")."</td>
160 160
         <td>
161 161
             <input type='text' id='timestamp' name='timestamp'>
162 162
             <div id='datepicker'></div>
163 163
         </td>
164 164
     </tr>
165 165
     <tr>
166
-        <td>" . _("What is the MAC address of the user session in question?") . "</td>
166
+        <td>" . _("What is the MAC address of the user session in question?")."</td>
167 167
         <td><input type='text' id='mac' name='mac'></td>
168 168
     </tr>
169 169
     <tr>
170
-        <td>" . _("Additional comments about the problem") . "</td>
170
+        <td>" . _("Additional comments about the problem")."</td>
171 171
         <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td>
172 172
     </tr>
173 173
     <tr>
174
-        <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?") . "</td>
174
+        <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?")."</td>
175 175
         <td><textarea id='c_details' name='c_details' cols='60' rows='5'></textarea></td>
176 176
     </tr>
177 177
     <tr>
178
-        <td>" . _("Please specify an email address on which the SP can contact you") . "</td>
178
+        <td>" . _("Please specify an email address on which the SP can contact you")."</td>
179 179
         <td><input type='text' id='email' name='email'></td>
180 180
     </tr>
181 181
     <tr class='hidden_row' id='send_query_to_sp'>
182
-        <td>" . _("Now you can send your query") . "</td>
183
-        <td><button type='submit' class='diag_button' id='submit_sp_query' name='go'>" . _("Send") . "</button></td>
182
+        <td>" . _("Now you can send your query")."</td>
183
+        <td><button type='submit' class='diag_button' id='submit_sp_query' name='go'>" . _("Send")."</button></td>
184 184
     </tr>
185 185
 </table>";
186
-    $res = $res . $javascript;
186
+    $res = $res.$javascript;
187 187
 }
188 188
 if ($queryType == 'idp_send' || $queryType == 'sp_send') {
189
-    include_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
189
+    include_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
190 190
     $cat = new \core\CAT();
191 191
     $returnArray = array();
192 192
     if (count((array) $o) > 0) {
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
             switch ($key) {
196 196
                 case 'realm':
197 197
                     $pos = strpos($value, '@');
198
-                    if ($pos !== FALSE ) {
199
-                        $value = substr($value, $pos+1);
198
+                    if ($pos !== FALSE) {
199
+                        $value = substr($value, $pos + 1);
200 200
                     }
201 201
                 case 'email':
202 202
                     $returnArray[$key] = filter_var($value, FILTER_VALIDATE_EMAIL);
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $mail = \core\common\OutsideComm::mailHandle();
238 238
         $emails = ['[email protected]'];
239 239
         //$emails = explode(',', $returnArray['idpcontact']);
240
-        $mail->FromName = \config\Master::APPEARANCE['productname'] . " Notification System";
240
+        $mail->FromName = \config\Master::APPEARANCE['productname']." Notification System";
241 241
         foreach ($emails as $email) {
242 242
             $mail->addAddress($email);
243 243
         }
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
         } else {
248 248
             $link = 'http://';
249 249
         }
250
-        $link .= $_SERVER['SERVER_NAME'] . \core\CAT::getRootUrlPath() . '/diag/show_realmcheck.php?token=' . $returnArray['token'];
250
+        $link .= $_SERVER['SERVER_NAME'].\core\CAT::getRootUrlPath().'/diag/show_realmcheck.php?token='.$returnArray['token'];
251 251
         $returnArray['testurl'] = $link;
252 252
         $mail->Subject = _('Suspected a technical problem with the IdP');
253
-        $txt = _("We suspect a technical problem with the IdP handling the realm") . ' ' . 
254
-                $returnArray['realm'] . ".\n";
253
+        $txt = _("We suspect a technical problem with the IdP handling the realm").' '. 
254
+                $returnArray['realm'].".\n";
255 255
         $txt .= _("The CAT diagnostic test was run for this realm during reporting.\n");
256 256
         $txt .= _("The overall result was ");
257 257
         if ($returnArray['tests_result'] == 0) {
@@ -259,15 +259,15 @@  discard block
 block discarded – undo
259 259
         } else {
260 260
             $txt .= _("failure");
261 261
         }
262
-        $txt .= ".\n" . _("To see details go to ");
262
+        $txt .= ".\n"._("To see details go to ");
263 263
         $txt .= "$link\n\n";
264
-        $txt .= _("The reported problem details are as follows") . "\n";
265
-        $txt .= _("timestamp") . ": " . $returnArray['timestamp'] . "\n";
266
-        $txt .= _("client MAC address") . ": " . $returnArray['mac'] . "\n";
264
+        $txt .= _("The reported problem details are as follows")."\n";
265
+        $txt .= _("timestamp").": ".$returnArray['timestamp']."\n";
266
+        $txt .= _("client MAC address").": ".$returnArray['mac']."\n";
267 267
         if ($returnArray['freetext']) {
268
-            $txt .= _("additional comments") . ': ' . $returnArray['freetext'] . "\n";
268
+            $txt .= _("additional comments").': '.$returnArray['freetext']."\n";
269 269
         }
270
-        $txt .= "\n" . _("You can contact the incident reporter at") . ' ' . $returnArray['email'];
270
+        $txt .= "\n"._("You can contact the incident reporter at").' '.$returnArray['email'];
271 271
         
272 272
         $mail->Body = $txt;
273 273
         $sent = $mail->send();
Please login to merge, or discard this patch.
web/diag/findRealm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $telepath = new \core\diag\Telepath($givenRealm);
109 109
             $outerUser = $telepath->getOuter();
110 110
         }
111
-        $testsuite = new \core\diag\RADIUSTests($givenRealm, $outerUser . '@' . $givenRealm);
111
+        $testsuite = new \core\diag\RADIUSTests($givenRealm, $outerUser.'@'.$givenRealm);
112 112
        
113 113
         $naptr = $rfc7585suite->relevantNAPTR(); 
114 114
         if ($naptr != \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED && $naptr > 0) {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 $json_data = json_encode($returnArray);
207 207
 
208 208
 if ($token) {
209
-    $loggerInstance->debug(4, 'JSON data written to ' .$jsonDir.'/'.$token);
209
+    $loggerInstance->debug(4, 'JSON data written to '.$jsonDir.'/'.$token);
210 210
     file_put_contents($jsonDir.'/'.$token.'/realm', $json_data);
211 211
 }
212 212
 header("Content-type: application/json; utf-8");
Please login to merge, or discard this patch.
core/AbstractProfile.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
                     // for now (no OpenRoaming client certs available) only run server-side tests
333 333
                     foreach ($listOfIPs as $oneIP) {
334 334
                         $connectionResult = $connectionTests->cApathCheck($oneIP);
335
-                        if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || ( isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) {
335
+                        if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || (isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) {
336 336
                             $allHostsOkay = FALSE;
337 337
                         } else {
338 338
                             $oneHostOkay = TRUE;
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
             // which is different from the outer username we put into installers
487 487
             return $this->getAttributes("internal:checkuser_value")[0]['value']."@".$realm;
488 488
         }
489
-        if (count($this->getAttributes("internal:use_anon_outer")) > 0 && $this->getAttributes("internal:anon_local_value")[0]['value'] != NULL ) {
489
+        if (count($this->getAttributes("internal:use_anon_outer")) > 0 && $this->getAttributes("internal:anon_local_value")[0]['value'] != NULL) {
490 490
             // no special check username, but there is an anon outer ID for
491 491
             // installers - so let's use that one
492 492
             return $this->getAttributes("internal:anon_local_value")[0]['value']."@".$realm;
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
         }
643 643
 
644 644
         $monthlyList = [];
645
-        $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i",  $this->identifier);
645
+        $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i", $this->identifier);
646 646
         while ($statsQuery = mysqli_fetch_object(/** @scrutinizer ignore-type */ $monthly)) {
647 647
             $monthlyList[$statsQuery->device_id] = $statsQuery->downloads_user;
648 648
         }
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
         }        
655 655
         
656 656
         \core\common\Entity::intoThePotatoes();
657
-        ksort($finalarray, SORT_STRING|SORT_FLAG_CASE);
657
+        ksort($finalarray, SORT_STRING | SORT_FLAG_CASE);
658 658
         \core\common\Entity::outOfThePotatoes();
659 659
         return $finalarray;
660 660
     }
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
         $profileStatus = self::CERT_STATUS_NONE;
965 965
         foreach ($rows as $row) {
966 966
             $encodedCert = $row[0];
967
-            $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t']- time();
967
+            $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t'] - time();
968 968
             if ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_critical']) {
969 969
                 $certStatus = self::CERT_STATUS_ERROR;
970 970
             } elseif ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_warning']) {
Please login to merge, or discard this patch.
web/admin/inc/manageDBLink.inc.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 ?>
22 22
 <?php
23
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
23
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
24 24
 
25 25
 $auth = new \web\lib\admin\Authentication();
26 26
 $auth->authenticate();
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 // if we have a pushed close button, submit attributes and send user back to the overview page
37 37
 // if external DB sync is disabled globally, the user never gets to this page. If he came here *anyway* -> send him back immediately.
38
-if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE ) || \config\Master::DB['enforce-external-sync'] == FALSE) {
38
+if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE) || \config\Master::DB['enforce-external-sync'] == FALSE) {
39 39
     header("Location: ../overview_federation.php");
40 40
     exit;
41 41
 }
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
     $cat = new \core\CAT();
93 93
     switch ($my_inst->getExternalDBSyncState()) {
94 94
         case \core\IdP::EXTERNAL_DB_SYNCSTATE_SYNCED:
95
-            printf(_("This %s is linked to the %s database."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>";
96
-            echo "<p>" . sprintf(_("The following information about the IdP is stored in the %s DB and %s DB:"), \config\Master::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>";
97
-            echo "<table><tr><td>" . sprintf(_("Information in <strong>%s Database</strong>"), \config\Master::APPEARANCE['productname']) . "</td><td>" . sprintf(_("Information in <strong>%s Database</strong>"), \config\ConfAssistant::CONSORTIUM['display_name']) . "</td></tr>";
95
+            printf(_("This %s is linked to the %s database."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name'])."</p>";
96
+            echo "<p>".sprintf(_("The following information about the IdP is stored in the %s DB and %s DB:"), \config\Master::APPEARANCE['productname'], \config\ConfAssistant::CONSORTIUM['display_name'])."</p>";
97
+            echo "<table><tr><td>".sprintf(_("Information in <strong>%s Database</strong>"), \config\Master::APPEARANCE['productname'])."</td><td>".sprintf(_("Information in <strong>%s Database</strong>"), \config\ConfAssistant::CONSORTIUM['display_name'])."</td></tr>";
98 98
             echo "<tr><td>";
99 99
             // left-hand side: CAT DB
100 100
             echo "<table>";
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 } else {
107 107
                     $language = \config\Master::LANGUAGES[$name['lang']]['display'] ?? "(unsupported language)";
108 108
                 }
109
-                echo "<tr><td>" . sprintf(_("%s Name (%s)"), $uiElements->nomenclatureParticipant, $language) . "</td><td>" . $name['value'] . "</td></tr>";
109
+                echo "<tr><td>".sprintf(_("%s Name (%s)"), $uiElements->nomenclatureParticipant, $language)."</td><td>".$name['value']."</td></tr>";
110 110
             }
111 111
 
112 112
             $admins = $my_inst->listOwners();
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 if (count($username) == 0) {
118 118
                     $username[0]['value'] = _("Unnamed User");
119 119
                 }
120
-                echo "<tr><td>" . _("Administrator [invited as]") . "</td><td>" . $username[0]['value'] . " [" . $admin['MAIL'] . "]</td></tr>";
120
+                echo "<tr><td>"._("Administrator [invited as]")."</td><td>".$username[0]['value']." [".$admin['MAIL']."]</td></tr>";
121 121
             }
122 122
             echo "</table>";
123 123
             // end of left-hand side
@@ -127,38 +127,38 @@  discard block
 block discarded – undo
127 127
             $externalid = $extIdObject->external_db_id;
128 128
             $ROid = $extIdObject->ROid;
129 129
             if (is_bool($extIdObject)) { // we are in SYNCED state so this cannot happen
130
-                throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the " . $uiElements->nomenclatureParticipant . "!");
130
+                throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the ".$uiElements->nomenclatureParticipant."!");
131 131
             }
132 132
 
133 133
             $extinfo = $cat->getExternalDBEntityDetails($externalid, $ROid);
134 134
 
135 135
             echo "<table>";
136 136
             foreach ($extinfo['names'] as $lang => $name) {
137
-                echo "<tr><td>" . sprintf(_("%s Name (%s)"), $uiElements->nomenclatureParticipant, $lang) . "</td><td>$name</td>";
137
+                echo "<tr><td>".sprintf(_("%s Name (%s)"), $uiElements->nomenclatureParticipant, $lang)."</td><td>$name</td>";
138 138
             }
139 139
             foreach ($extinfo['admins'] as $number => $admin_details) {
140
-                echo "<tr><td>" . _("Administrator email") . "</td><td>" . $admin_details['email'] . "</td></tr>";
140
+                echo "<tr><td>"._("Administrator email")."</td><td>".$admin_details['email']."</td></tr>";
141 141
             }
142 142
             echo "</table>";
143 143
             // end of right-hand side
144 144
             echo "</td></tr></table>";
145
-            echo "<p>" . _("If this mapping is not correct any more, you can remove the link:") . " ";
145
+            echo "<p>"._("If this mapping is not correct any more, you can remove the link:")." ";
146 146
             echo "<form name='form-unlink-inst' action='inc/manageDBLink.inc.php?inst_id=$my_inst->identifier' method='post' accept-charset='UTF-8'>";
147
-            echo "<button type='submit' class='delete' name='submitbutton' id='submit' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Unlink") . "</button></form>";
147
+            echo "<button type='submit' class='delete' name='submitbutton' id='submit' value='".web\lib\common\FormElements::BUTTON_DELETE."'>"._("Unlink")."</button></form>";
148 148
             break;
149 149
         case \core\IdP::EXTERNAL_DB_SYNCSTATE_NOT_SYNCED:
150 150
             $temparray = [];
151
-            printf(_("This %s is not yet linked to the %s database."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name']) . " ";
152
-            echo "<strong>" . _("This means that its profiles are not made available on the user download page.") . "</strong> ";
151
+            printf(_("This %s is not yet linked to the %s database."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name'])." ";
152
+            echo "<strong>"._("This means that its profiles are not made available on the user download page.")."</strong> ";
153 153
             printf(_("You can link it to the %s database below."), \config\ConfAssistant::CONSORTIUM['display_name']);
154 154
             $candidates = $my_inst->getExternalDBSyncCandidates($my_inst->type);
155 155
             echo "<br/><form name='form-link-inst' action='inc/manageDBLink.inc.php?inst_id=$my_inst->identifier' method='post' accept-charset='UTF-8'>";
156
-            printf(_("Please select an entity from the %s DB which corresponds to this CAT %s."), \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureParticipant) . " ";
156
+            printf(_("Please select an entity from the %s DB which corresponds to this CAT %s."), \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureParticipant)." ";
157 157
             if (count($candidates) > 0) {
158 158
                 printf(_("Particularly promising entries (names in CAT and %s DB are a 100%% match) are on top of the list."), \config\ConfAssistant::CONSORTIUM['display_name']);
159 159
             }
160 160
             echo "<table>";
161
-            echo "<tr><th>" . _("Link to this entity?") . "</th><th>" . sprintf(_("%s Name"), $uiElements->nomenclatureParticipant) . "</th><th>" . _("Administrators") . "</th></tr>";
161
+            echo "<tr><th>"._("Link to this entity?")."</th><th>".sprintf(_("%s Name"), $uiElements->nomenclatureParticipant)."</th><th>"._("Administrators")."</th></tr>";
162 162
 
163 163
             foreach ($candidates as $candidate) {
164 164
                 $info = $cat->getExternalDBEntityDetails($candidate, strtoupper($my_inst->federation).'01');
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 }
169 169
                 echo "</td><td>";
170 170
                 foreach ($info['admins'] as $number => $admin_details) {
171
-                    echo "[E-Mail] " . $admin_details['email'] . "<br/>";
171
+                    echo "[E-Mail] ".$admin_details['email']."<br/>";
172 172
                 }
173 173
                 echo "</td></tr>";
174 174
                 $temparray[] = $candidate;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $buffer = "";
181 181
 
182 182
             foreach ($unmappedentities as $v) {
183
-                $buffer .= "<option value='" . $v['ID'] . "'>[ID " . $v['ID'] . "] " . $v['name'] . "</option>";
183
+                $buffer .= "<option value='".$v['ID']."'>[ID ".$v['ID']."] ".$v['name']."</option>";
184 184
             }
185 185
 
186 186
             if ($buffer != "") {
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
             }
192 192
             // issue a big red warning if there are no link candidates at all in the federation
193 193
             if (empty($buffer) && empty($candidates)) {
194
-                echo "<tr><td style='color:#ff0000' colspan='2'>" . sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed) . "</td></tr>";
194
+                echo "<tr><td style='color:#ff0000' colspan='2'>".sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed)."</td></tr>";
195 195
             }
196
-            echo "</table><button type='submit' name='submitbutton' id='submit' value='" . web\lib\common\FormElements::BUTTON_SAVE . "' disabled >" . _("Create Link") . "</button></form>";
196
+            echo "</table><button type='submit' name='submitbutton' id='submit' value='".web\lib\common\FormElements::BUTTON_SAVE."' disabled >"._("Create Link")."</button></form>";
197 197
             break;
198 198
         default:
199 199
     }
Please login to merge, or discard this patch.
web/lib/common/InputValidation.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     private function inputValidationError($customtext)
41 41
     {
42 42
         \core\common\Entity::intoThePotatoes();
43
-        $retval = "<p>" . _("Input validation error: ") . $customtext . "</p>";
43
+        $retval = "<p>"._("Input validation error: ").$customtext."</p>";
44 44
         \core\common\Entity::outOfThePotatoes();
45 45
         return $retval;
46 46
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $postFed = $fedIdentifiers[$correctIndex];
98 98
         $temp = new \core\Federation($postFed);
99 99
         if ($owner === NULL) {
100
-            return [$temp,'readonly'];
100
+            return [$temp, 'readonly'];
101 101
         }
102 102
         $user = new \core\User($owner);        
103 103
         foreach ($temp->listFederationAdmins() as $oneowner) {
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
                 return [$temp, 'fullaccess'];
106 106
             }
107 107
         }
108
-        if ($user->isSuperadmin()|| $user->isSupport()) {
108
+        if ($user->isSuperadmin() || $user->isSupport()) {
109 109
                 $this->loggerInstance->debug(4, "You are the superadmin/support\n");
110
-                return [$temp,'readonly'];                
110
+                return [$temp, 'readonly'];                
111 111
             }
112 112
         throw new Exception($this->inputValidationError(sprintf("User is not %s administrator!", \core\common\Entity::$nomenclature_fed)));
113 113
     }
@@ -168,18 +168,18 @@  discard block
 block discarded – undo
168 168
             }
169 169
             if ($user->isFederationAdmin($temp->federation)) {
170 170
                 $this->loggerInstance->debug(4, "You are fed admin for this IdP\n");
171
-                return [$temp,'readonly'];
171
+                return [$temp, 'readonly'];
172 172
             }
173 173
             if ($user->isSuperadmin() || $user->isSupport()) {
174 174
                 $this->loggerInstance->debug(4, "You are the superadmin/support\n");
175
-                return [$temp,'readonly'];                
175
+                return [$temp, 'readonly'];                
176 176
             }
177 177
             throw new Exception($this->inputValidationError("This IdP identifier is not accessible!"));
178 178
         }
179 179
         if ($claimedFedBinding !== NULL && strtoupper($temp->federation) != strtoupper($claimedFedBinding->tld)) {
180 180
             throw new Exception($this->inputValidationError("This IdP does not belong to the claimed federation!"));
181 181
         }
182
-        return [$temp,'nouser'];
182
+        return [$temp, 'nouser'];
183 183
     }
184 184
 
185 185
     /**
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      * @throws Exception
258 258
      */
259 259
     public function existingExtInstitution($extId, $userEmail = NULL, $ROid = NULL) {
260
-        if ($ROid === NULL || !preg_match('/^[A-Z][A-Z]01$/', $ROid) ) {
260
+        if ($ROid === NULL || !preg_match('/^[A-Z][A-Z]01$/', $ROid)) {
261 261
             throw new Exception("$ROid: No correct federation identifier profided");
262 262
         }
263 263
         if ($userEmail === NULL) {
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
         try {
646 646
             $image->readImageBlob($binary);
647 647
         } catch (\ImagickException $exception) {
648
-            echo "Error" . $exception->getMessage();
648
+            echo "Error".$exception->getMessage();
649 649
             return FALSE;
650 650
         }
651 651
         // image survived the sanity check
Please login to merge, or discard this patch.
core/DBConnection.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -62,24 +62,24 @@  discard block
 block discarded – undo
62 62
             case "EXTERNAL":
63 63
             case "FRONTEND":
64 64
             case "DIAGNOSTICS":
65
-                if (!isset(self::${"instance" . $theDb})) {
65
+                if (!isset(self::${"instance".$theDb})) {
66 66
                     $class = __CLASS__;
67
-                    self::${"instance" . $theDb} = new $class($database);
68
-                    DBConnection::${"instance" . $theDb}->databaseInstance = $theDb;
67
+                    self::${"instance".$theDb} = new $class($database);
68
+                    DBConnection::${"instance".$theDb}->databaseInstance = $theDb;
69 69
                 }
70
-                return self::${"instance" . $theDb};
70
+                return self::${"instance".$theDb};
71 71
             case "RADIUS":
72
-                if (!isset(self::${"instance" . $theDb})) {
72
+                if (!isset(self::${"instance".$theDb})) {
73 73
                     $class = __CLASS__;
74 74
                     foreach (\config\ConfAssistant::DB as $name => $oneRadiusAuthDb) {
75 75
                         $theInstance = new $class($name);
76
-                        self::${"instance" . $theDb}[] = $theInstance;
76
+                        self::${"instance".$theDb}[] = $theInstance;
77 77
                         $theInstance->databaseInstance = $theDb;
78 78
                     }
79 79
                 }
80
-                return self::${"instance" . $theDb};
80
+                return self::${"instance".$theDb};
81 81
             default:
82
-                throw new Exception("This type of database (" . strtoupper($database) . ") is not known!");
82
+                throw new Exception("This type of database (".strtoupper($database).") is not known!");
83 83
         }
84 84
     }
85 85
     
@@ -123,18 +123,18 @@  discard block
 block discarded – undo
123 123
             }
124 124
         }
125 125
         // log exact query to debug log, if log level is at 5
126
-        $this->loggerInstance->debug(5, "DB ATTEMPT: ".$this->databaseInstance .": " . $querystring . "\n");
126
+        $this->loggerInstance->debug(5, "DB ATTEMPT: ".$this->databaseInstance.": ".$querystring."\n");
127 127
         if ($types !== NULL) {
128
-            $this->loggerInstance->debug(5, "Argument type sequence: $types, parameters are: " . /** @scrutinizer ignore-type */ print_r($arguments, true));
128
+            $this->loggerInstance->debug(5, "Argument type sequence: $types, parameters are: "./** @scrutinizer ignore-type */ print_r($arguments, true));
129 129
         }
130 130
 
131 131
         if ($this->connection->connect_error) {
132
-            throw new Exception("ERROR: Cannot send query to $this->databaseInstance database (no connection, error number" . $this->connection->connect_error . ")!");
132
+            throw new Exception("ERROR: Cannot send query to $this->databaseInstance database (no connection, error number".$this->connection->connect_error.")!");
133 133
         }
134 134
         if ($types === NULL) {
135 135
             $result = $this->connection->query($querystring);
136 136
             if ($result === FALSE) {
137
-                throw new Exception("DB: Unable to execute simple statement! Error was --> " . $this->connection->error . " <--");
137
+                throw new Exception("DB: Unable to execute simple statement! Error was --> ".$this->connection->error." <--");
138 138
             }
139 139
         } else {
140 140
             // fancy! prepared statement with dedicated argument list
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 }
151 151
                 $prepResult = $statementObject->prepare($querystring);
152 152
                 if ($prepResult === FALSE) {
153
-                    throw new Exception("DB: Unable to prepare statement! Statement was --> $querystring <--, error was --> " . $statementObject->error . " <--.");
153
+                    throw new Exception("DB: Unable to prepare statement! Statement was --> $querystring <--, error was --> ".$statementObject->error." <--.");
154 154
                 }
155 155
                 $this->preparedStatements[$querystring] = $statementObject;
156 156
             }
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
             array_unshift($localArray, $types);
164 164
             $retval = call_user_func_array([$statementObject, "bind_param"], $localArray);
165 165
             if ($retval === FALSE) {
166
-                throw new Exception("DB: Unable to bind parameters to prepared statement! Argument array was --> " . var_export($localArray, TRUE) . " <--. Error was --> " . $statementObject->error . " <--");
166
+                throw new Exception("DB: Unable to bind parameters to prepared statement! Argument array was --> ".var_export($localArray, TRUE)." <--. Error was --> ".$statementObject->error." <--");
167 167
             }
168 168
             $result = $statementObject->execute();
169 169
             if ($result === FALSE) {
170
-                throw new Exception("DB: Unable to execute prepared statement! Error was --> " . $statementObject->error . " <--");
170
+                throw new Exception("DB: Unable to execute prepared statement! Error was --> ".$statementObject->error." <--");
171 171
             }
172 172
             $selectResult = $statementObject->get_result();
173 173
             if ($selectResult !== FALSE) {
@@ -177,14 +177,14 @@  discard block
 block discarded – undo
177 177
 
178 178
         // all cases where $result could be FALSE have been caught earlier
179 179
         if ($this->connection->errno) {
180
-            throw new Exception("ERROR: Cannot execute query in $this->databaseInstance database - (hopefully escaped) query was '$querystring', errno was " . $this->connection->errno . "!");
180
+            throw new Exception("ERROR: Cannot execute query in $this->databaseInstance database - (hopefully escaped) query was '$querystring', errno was ".$this->connection->errno."!");
181 181
         }
182 182
 
183 183
 
184 184
         if ($isMoreThanSelect || \config\Master::DEBUG_LEVEL == 5) {
185
-            $this->loggerInstance->writeSQLAudit("[DB: " . strtoupper($this->databaseInstance) . "] " . $querystring);
185
+            $this->loggerInstance->writeSQLAudit("[DB: ".strtoupper($this->databaseInstance)."] ".$querystring);
186 186
             if ($types !== NULL) {
187
-                $this->loggerInstance->writeSQLAudit("Argument type sequence: $types, parameters are: " . /** @scrutinizer ignore-type */ print_r($arguments, true));
187
+                $this->loggerInstance->writeSQLAudit("Argument type sequence: $types, parameters are: "./** @scrutinizer ignore-type */ print_r($arguments, true));
188 188
             }
189 189
         }
190 190
         return $result;
@@ -282,14 +282,14 @@  discard block
 block discarded – undo
282 282
         if (isset(\config\Master::DB[$databaseCapitalised])) {
283 283
             $this->connection = new \mysqli(\config\Master::DB[$databaseCapitalised]['host'], \config\Master::DB[$databaseCapitalised]['user'], \config\Master::DB[$databaseCapitalised]['pass'], \config\Master::DB[$databaseCapitalised]['db']);
284 284
             if ($this->connection->connect_error) {
285
-                throw new Exception("ERROR: Unable to connect to $database database! This is a fatal error, giving up (error number " . $this->connection->connect_errno . ").");
285
+                throw new Exception("ERROR: Unable to connect to $database database! This is a fatal error, giving up (error number ".$this->connection->connect_errno.").");
286 286
             }
287 287
             $this->readOnly = \config\Master::DB[$databaseCapitalised]['readonly'];
288 288
             $this->dbName = \config\Master::DB[$databaseCapitalised]['db'];
289 289
         } else { // one of the RADIUS DBs
290 290
             $this->connection = new \mysqli(\config\ConfAssistant::DB[$databaseCapitalised]['host'], \config\ConfAssistant::DB[$databaseCapitalised]['user'], \config\ConfAssistant::DB[$databaseCapitalised]['pass'], \config\ConfAssistant::DB[$databaseCapitalised]['db']);
291 291
             if ($this->connection->connect_error) {
292
-                throw new Exception("ERROR: Unable to connect to $database database! This is a fatal error, giving up (error number " . $this->connection->connect_errno . ").");
292
+                throw new Exception("ERROR: Unable to connect to $database database! This is a fatal error, giving up (error number ".$this->connection->connect_errno.").");
293 293
             }
294 294
             $this->readOnly = \config\ConfAssistant::DB[$databaseCapitalised]['readonly'];
295 295
             $this->dbName = \config\ConfAssistant::DB[$databaseCapitalised]['db'];
Please login to merge, or discard this patch.
core/IdP.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
         $this->name = $this->languageInstance->getLocalisedValue($this->getAttributes('general:instname'));
116 116
         $eligibility = $this->eligibility($instQuery->type);
117 117
         if (in_array(IdP::ELIGIBILITY_IDP, $eligibility) && in_array(IdP::ELIGIBILITY_SP, $eligibility)) {
118
-            $eligType = IdP::TYPE_IDPSP . "";
118
+            $eligType = IdP::TYPE_IDPSP."";
119 119
             $this->type = $eligType;
120 120
         } elseif (in_array(IdP::ELIGIBILITY_IDP, $eligibility)) {
121
-            $eligType = IdP::TYPE_IDP . "";
121
+            $eligType = IdP::TYPE_IDP."";
122 122
         } else {
123
-            $eligType = IdP::TYPE_SP . "";
123
+            $eligType = IdP::TYPE_SP."";
124 124
         }
125 125
         $this->type = $eligType;
126 126
         $this->loggerInstance->debug(4, "--- END Constructing new IdP object $instId ... ---\n");
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function listProfiles(bool $activeOnly = FALSE)
136 136
     {
137
-        $query = "SELECT profile_id FROM profile WHERE inst_id = $this->identifier" . ($activeOnly ? " AND showtime = 1" : "")." ORDER BY preference";
137
+        $query = "SELECT profile_id FROM profile WHERE inst_id = $this->identifier".($activeOnly ? " AND showtime = 1" : "")." ORDER BY preference";
138 138
         $allProfiles = $this->databaseHandle->exec($query);
139 139
         $returnarray = [];
140 140
         // SELECT -> resource, not boolean
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $returnarray[] = $oneProfile;
145 145
         }
146 146
 
147
-        $this->loggerInstance->debug(4, "listProfiles: " . /** @scrutinizer ignore-type */ print_r($returnarray, true));
147
+        $this->loggerInstance->debug(4, "listProfiles: "./** @scrutinizer ignore-type */ print_r($returnarray, true));
148 148
         return $returnarray;
149 149
     }
150 150
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function listDeployments(bool $activeOnly = FALSE)
158 158
     {
159
-        $query = "SELECT deployment_id FROM deployment WHERE inst_id = $this->identifier" . ($activeOnly ? " AND status = " . AbstractDeployment::ACTIVE : "");
159
+        $query = "SELECT deployment_id FROM deployment WHERE inst_id = $this->identifier".($activeOnly ? " AND status = ".AbstractDeployment::ACTIVE : "");
160 160
         $allDeployments = $this->databaseHandle->exec($query);
161 161
         $returnarray = [];
162 162
         // SELECT -> resource, not boolean
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $returnarray[] = new DeploymentManaged($this, $deploymentQuery->deployment_id);
165 165
         }
166 166
 
167
-        $this->loggerInstance->debug(4, "listDeployments: " . /** @scrutinizer ignore-type */ print_r($returnarray, true));
167
+        $this->loggerInstance->debug(4, "listDeployments: "./** @scrutinizer ignore-type */ print_r($returnarray, true));
168 168
         return $returnarray;
169 169
     }
170 170
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $redirectProfileIds = [];
191 191
         $allProfileLevels = $this->databaseHandle->exec("SELECT profile_id, sufficient_config + showtime AS maxlevel FROM profile WHERE inst_id = $this->identifier ORDER BY maxlevel DESC");
192 192
         // SELECT yields a resource, not a boolean
193
-        if ($allProfileLevels->num_rows == 0 ) {
193
+        if ($allProfileLevels->num_rows == 0) {
194 194
             return self::PROFILES_INCOMPLETE;
195 195
         }
196 196
         $allProfilesArray = $allProfileLevels->fetch_all(MYSQLI_ASSOC);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $allProfiles = $this->databaseHandle->exec("SELECT MIN(openroaming) AS maxlevel FROM profile WHERE inst_id = $this->identifier");
219 219
         // SELECT yields a resource, not a boolean
220 220
         while ($res = mysqli_fetch_object(/** @scrutinizer ignore-type */ $allProfiles)) {
221
-            return (is_numeric($res->maxlevel) ? (int)$res->maxlevel : AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO ); // insts without profiles should get a "NO"
221
+            return (is_numeric($res->maxlevel) ? (int) $res->maxlevel : AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO); // insts without profiles should get a "NO"
222 222
         }
223 223
         return AbstractProfile::OVERALL_OPENROAMING_LEVEL_NO;
224 224
     }
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
                 case AbstractProfile::PROFILETYPE_SILVERBULLET:
350 350
                     $theProfile = new ProfileSilverbullet($identifier, $this);
351 351
                     $theProfile->addSupportedEapMethod(new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET), 1);
352
-                    $theProfile->setRealm($this->identifier . "-" . $theProfile->identifier . "." . strtolower($this->federation) . strtolower(\config\ConfAssistant::SILVERBULLET['realm_suffix']));
352
+                    $theProfile->setRealm($this->identifier."-".$theProfile->identifier.".".strtolower($this->federation).strtolower(\config\ConfAssistant::SILVERBULLET['realm_suffix']));
353 353
                     return $theProfile;
354 354
                 default:
355 355
                     throw new Exception("This type of profile is unknown and can not be added.");
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
     public function getExternalDBId()
493 493
     {
494 494
         if (\config\ConfAssistant::CONSORTIUM['name'] == "eduroam" && isset(\config\ConfAssistant::CONSORTIUM['deployment-voodoo']) && \config\ConfAssistant::CONSORTIUM['deployment-voodoo'] == "Operations Team") { // SW: APPROVED
495
-            $idQuery = $this->databaseHandle->exec("SELECT external_db_id, country FROM institution WHERE inst_id = $this->identifier AND external_db_syncstate = " . self::EXTERNAL_DB_SYNCSTATE_SYNCED);
495
+            $idQuery = $this->databaseHandle->exec("SELECT external_db_id, country FROM institution WHERE inst_id = $this->identifier AND external_db_syncstate = ".self::EXTERNAL_DB_SYNCSTATE_SYNCED);
496 496
             // SELECT -> it's a resource, not a boolean
497 497
             if (mysqli_num_rows(/** @scrutinizer ignore-type */ $idQuery) == 0) {
498 498
                 return FALSE;
@@ -560,16 +560,16 @@  discard block
 block discarded – undo
560 560
         }
561 561
         foreach ($baseline as $lang => $value) {
562 562
             if (!key_exists($lang, $newvalues)) {
563
-                $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] DELETED";
563
+                $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] DELETED";
564 564
             } else {
565 565
                 if ($value != $newvalues[$lang]) {
566
-                    $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] CHANGED from '" . $baseline[$lang] . "' to '" . $newvalues[$lang] . "'";
566
+                    $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] CHANGED from '".$baseline[$lang]."' to '".$newvalues[$lang]."'";
567 567
                 }
568 568
             }
569 569
         }
570 570
         foreach ($newvalues as $lang => $value) {
571 571
             if (!key_exists($lang, $baseline)) {
572
-                $retval[IdP::INSTNAME_CHANGED] .= "#[Language " . strtoupper($lang) . "] ADDED as '" . $value . "'";
572
+                $retval[IdP::INSTNAME_CHANGED] .= "#[Language ".strtoupper($lang)."] ADDED as '".$value."'";
573 573
             }
574 574
         }
575 575
         return $retval;
Please login to merge, or discard this patch.
core/ExternalNothing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
      * @return array
134 134
      */
135 135
     
136
-    public function listExternalEntitiesByUserEmail($userEmail){
136
+    public function listExternalEntitiesByUserEmail($userEmail) {
137 137
         return [];
138 138
     }
139 139
 }
140 140
\ No newline at end of file
Please login to merge, or discard this patch.
web/resources/css/cat.css.php 1 patch
Spacing   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 $colour1 = \config\Master::APPEARANCE['colour1'];
24 24
 $colour2 = \config\Master::APPEARANCE['colour2'];
25 25
 // we need to know if we are serving a RTL language so we can flip some heading
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 }
35 35
 
36 36
 body {
37
-    background: <?php echo $colour1;?>;
37
+    background: <?php echo $colour1; ?>;
38 38
     color: #000000;
39 39
     font-family:Verdana, Arial, Helvetica, sans-serif;
40 40
     font-size:11px;
41 41
     height: 100%;
42 42
     margin: 0px;
43 43
     padding: 0px;
44
-    padding-<?php echo $start;?>: 0px;
44
+    padding-<?php echo $start; ?>: 0px;
45 45
     min-width: 700px;
46 46
     font-size: 11px;
47 47
     font-weight: normal;
@@ -57,18 +57,18 @@  discard block
 block discarded – undo
57 57
 }
58 58
 
59 59
 button {
60
-    background: <?php echo $colour2;?>; 
60
+    background: <?php echo $colour2; ?>; 
61 61
     color: #FFFFFF; 
62 62
     min-height: 23px;
63
-    border-<?php echo $start;?>-style: outset; 
64
-    border-<?php echo $start;?>-width: 1px; 
65
-    border-<?php echo $start;?>-color: #8bbacb;
63
+    border-<?php echo $start; ?>-style: outset; 
64
+    border-<?php echo $start; ?>-width: 1px; 
65
+    border-<?php echo $start; ?>-color: #8bbacb;
66 66
     border-top-style: outset; 
67 67
     border-top-width: 1px; 
68 68
     border-top-color: #8bbacb;
69
-    border-<?php echo $end;?>-style: outset; 
70
-    border-<?php echo $end;?>-width: 2px; 
71
-    border-<?php echo $end;?>-color: #043d52;
69
+    border-<?php echo $end; ?>-style: outset; 
70
+    border-<?php echo $end; ?>-width: 2px; 
71
+    border-<?php echo $end; ?>-color: #043d52;
72 72
     border-bottom-style: outset; 
73 73
     border-bottom-width: 2px; 
74 74
     border-bottom-color: #043d52;
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
     background:#095e80;
84 84
     border-style:inset;
85 85
     position: relative;
86
-    <?php echo $start;?>: 3px;
86
+    <?php echo $start; ?>: 3px;
87 87
 }
88 88
 
89 89
 button.pressedDisabled {
90 90
     background:#999;
91 91
     border-style:inset;
92 92
     position: relative;
93
-    <?php echo $start;?>: 3px;
93
+    <?php echo $start; ?>: 3px;
94 94
 }
95 95
 
96 96
 button.delete {
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
     color:#FFF;
103 103
 }
104 104
 .problemdescription {
105
-    padding-<?php echo $start;?>:40px;
105
+    padding-<?php echo $start; ?>:40px;
106 106
     padding-top: 10px;
107 107
     padding-bottom: 10px;
108 108
     background-color: lightyellow;
109 109
 }
110 110
 
111 111
 .problemsolution {
112
-    padding-<?php echo $start;?>:40px;
112
+    padding-<?php echo $start; ?>:40px;
113 113
     padding-top: 10px;
114 114
     padding-bottom: 10px;
115 115
     background-color: lightgreen;
@@ -118,15 +118,15 @@  discard block
 block discarded – undo
118 118
 .use_borders button.alertButton {
119 119
     color: maroon; 
120 120
     background: #bbb; 
121
-    border-<?php echo $start;?>-style: outset; 
122
-    border-<?php echo $start;?>-width: 1px; 
123
-    border-<?php echo $start;?>-color: #eee;
121
+    border-<?php echo $start; ?>-style: outset; 
122
+    border-<?php echo $start; ?>-width: 1px; 
123
+    border-<?php echo $start; ?>-color: #eee;
124 124
     border-top-style: outset; 
125 125
     border-top-width: 1px; 
126 126
     border-top-color: #eee;
127
-    border-<?php echo $end;?>-style: outset; 
128
-    border-<?php echo $end;?>-width: 2px; 
129
-    border-<?php echo $end;?>-color: #444;
127
+    border-<?php echo $end; ?>-style: outset; 
128
+    border-<?php echo $end; ?>-width: 2px; 
129
+    border-<?php echo $end; ?>-color: #444;
130 130
     border-bottom-style: outset; 
131 131
     border-bottom-width: 2px; 
132 132
     border-bottom-color: #444;
@@ -136,15 +136,15 @@  discard block
 block discarded – undo
136 136
 button[disabled] {
137 137
     background: #bababa;
138 138
     color: #6a6a6a;
139
-    border-<?php echo $start;?>-style: inset;
140
-    border-<?php echo $start;?>-width: 1px;
141
-    border-<?php echo $start;?>-color: #dadada;
139
+    border-<?php echo $start; ?>-style: inset;
140
+    border-<?php echo $start; ?>-width: 1px;
141
+    border-<?php echo $start; ?>-color: #dadada;
142 142
     border-top-style: inset;
143 143
     border-top-width: 1px;
144 144
     border-top-color: #dadada;
145
-    border-<?php echo $end;?>-style: outset;
146
-    border-<?php echo $end;?>-width: 2px;
147
-    border-<?php echo $end;?>-color: #dadada;
145
+    border-<?php echo $end; ?>-style: outset;
146
+    border-<?php echo $end; ?>-width: 2px;
147
+    border-<?php echo $end; ?>-color: #dadada;
148 148
     border-bottom-style: outset;
149 149
     border-bottom-width: 2px;
150 150
     border-bottom-color: #dadada;
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 div.profilemodulebuttons {
177 177
     position: inherit;
178 178
     bottom: 5px;
179
-    <?php echo $end;?>: 5px;
180
-    text-align: <?php echo $end;?>;
179
+    <?php echo $end; ?>: 5px;
180
+    text-align: <?php echo $end; ?>;
181 181
 }
182 182
 
183 183
 div.profilebox {
@@ -198,15 +198,15 @@  discard block
 block discarded – undo
198 198
     display: block;
199 199
     position: absolute;
200 200
     top:0;
201
-    <?php echo $end;?>:0;
202
-    padding-<?php echo $end;?>:20px;
201
+    <?php echo $end; ?>:0;
202
+    padding-<?php echo $end; ?>:20px;
203 203
     padding-top:7px;
204 204
 }
205 205
 
206 206
 div.sidebar {
207 207
     display: inline;
208
-    float: <?php echo $end;?>;
209
-    padding-<?php echo $end;?>: 20px;
208
+    float: <?php echo $end; ?>;
209
+    padding-<?php echo $end; ?>: 20px;
210 210
 }
211 211
 div.sidebar a {
212 212
     color: white;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 div.header {
216 216
     height: 54px;
217 217
     background: #FFFFFF;
218
-    padding-<?php echo $start;?>:30px;
218
+    padding-<?php echo $start; ?>:30px;
219 219
     padding-bottom: 10px;
220 220
     color: <?php echo $colour2?>;
221 221
 }
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     top: 54px;
226 226
     bottom: 50px;
227 227
     padding-top: 10px;
228
-    padding-<?php echo $start;?>: 0px;
229
-    padding-<?php echo $end;?>: 0px;
228
+    padding-<?php echo $start; ?>: 0px;
229
+    padding-<?php echo $end; ?>: 0px;
230 230
     width:100%;
231 231
 }
232 232
 
@@ -240,18 +240,18 @@  discard block
 block discarded – undo
240 240
     color: #FFFFFF;
241 241
     min-height:100px;
242 242
     overflow: auto;
243
-    padding-<?php echo $start;?>:20px
243
+    padding-<?php echo $start; ?>:20px
244 244
 }
245 245
 
246 246
 #thirdrow {
247
-    padding-<?php echo $start;?>: 10px;
248
-    padding-<?php echo $end;?>: 10px;
247
+    padding-<?php echo $start; ?>: 10px;
248
+    padding-<?php echo $end; ?>: 10px;
249 249
 }
250 250
 
251 251
 #footer {
252 252
     width: 100%;
253
-    <?php echo $start;?>: 0;
254
-    <?php echo $end;?>: 0;
253
+    <?php echo $start; ?>: 0;
254
+    <?php echo $end; ?>: 0;
255 255
     bottom: 0;
256 256
     position: absolute;
257 257
     background: white;
@@ -277,8 +277,8 @@  discard block
 block discarded – undo
277 277
     height: 100% !important;
278 278
     position: relative;
279 279
     min-width: 1000px;
280
-    margin-<?php echo $start;?>: auto;
281
-    margin-<?php echo $end;?>: auto;
280
+    margin-<?php echo $start; ?>: auto;
281
+    margin-<?php echo $end; ?>: auto;
282 282
 }
283 283
 
284 284
 div.device_info {
@@ -298,8 +298,8 @@  discard block
 block discarded – undo
298 298
     position: fixed;
299 299
     top: 0;
300 300
     bottom: 0;
301
-    <?php echo $start;?>: 0;
302
-    <?php echo $end;?>: 0;
301
+    <?php echo $start; ?>: 0;
302
+    <?php echo $end; ?>: 0;
303 303
     background-color: #000000;
304 304
     opacity: 0.5;
305 305
     z-index: 90;
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     padding: 15px;
327 327
     text-align: start;
328 328
     width: 850px;
329
-    <?php echo $start;?>: 100px;
329
+    <?php echo $start; ?>: 100px;
330 330
     top: 50px;
331 331
     z-index: 100;
332 332
 }
@@ -335,15 +335,15 @@  discard block
 block discarded – undo
335 335
     position: absolute;
336 336
     top: 0;
337 337
     bottom: 0;
338
-    <?php echo $start;?>: 0;
339
-    <?php echo $end;?>: 0;
338
+    <?php echo $start; ?>: 0;
339
+    <?php echo $end; ?>: 0;
340 340
     z-index: 100;
341 341
 }
342 342
 
343 343
 div#msgbox div {
344 344
     position: fixed;
345
-    <?php echo $start;?>: 0;
346
-    <?php echo $end;?>: 0;
345
+    <?php echo $start; ?>: 0;
346
+    <?php echo $end; ?>: 0;
347 347
 }
348 348
 
349 349
 div#msgbox div div.graybox {
@@ -358,13 +358,13 @@  discard block
 block discarded – undo
358 358
 div.graybox img {
359 359
     display: block;
360 360
     cursor: pointer;
361
-    float: <?php echo $end;?>;
361
+    float: <?php echo $end; ?>;
362 362
     margin: 0px 0px 10px 10px;
363 363
 }
364 364
 
365 365
 img.icon {
366
-    float: <?php echo $start;?>;
367
-    margin-<?php echo $end;?>: 5px;
366
+    float: <?php echo $start; ?>;
367
+    margin-<?php echo $end; ?>: 5px;
368 368
     margin-top: 3px;
369 369
 }
370 370
 
@@ -428,15 +428,15 @@  discard block
 block discarded – undo
428 428
 div.ca-summary {
429 429
     border: 1px dotted;
430 430
     background-color: #ccccff;
431
-    border-<?php echo $start;?>: 10px solid;
432
-    border-<?php echo $start;?>-color: green;
431
+    border-<?php echo $start; ?>: 10px solid;
432
+    border-<?php echo $start; ?>-color: green;
433 433
     padding: 2px;
434
-    padding-<?php echo $start;?>: 8px;
434
+    padding-<?php echo $start; ?>: 8px;
435 435
 }
436 436
 
437 437
 span.edu_cat {
438 438
     font-weight: bold;
439
-    color: <?php echo $colour2;?>;
439
+    color: <?php echo $colour2; ?>;
440 440
 }
441 441
 
442 442
 span.tooltip {
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 }
496 496
 
497 497
 table.authrecord td {
498
-    padding-<?php echo $end;?>: 10px;
498
+    padding-<?php echo $end; ?>: 10px;
499 499
 }
500 500
 
501 501
 p.MOTD {
@@ -513,15 +513,15 @@  discard block
 block discarded – undo
513 513
 }
514 514
 
515 515
 .use_borders button {
516
-    border-<?php echo $start;?>-style: outset; 
517
-    border-<?php echo $start;?>-width: 1px; 
518
-    border-<?php echo $start;?>-color: #8bbacb;
516
+    border-<?php echo $start; ?>-style: outset; 
517
+    border-<?php echo $start; ?>-width: 1px; 
518
+    border-<?php echo $start; ?>-color: #8bbacb;
519 519
     border-top-style: outset; 
520 520
     border-top-width: 1px; 
521 521
     border-top-color: #8bbacb;
522
-    border-<?php echo $end;?>-style: outset; 
523
-    border-<?php echo $end;?>-width: 2px; 
524
-    border-<?php echo $end;?>-color: #043d52;
522
+    border-<?php echo $end; ?>-style: outset; 
523
+    border-<?php echo $end; ?>-width: 2px; 
524
+    border-<?php echo $end; ?>-color: #043d52;
525 525
     border-bottom-style: outset; 
526 526
     border-bottom-width: 2px; 
527 527
     border-bottom-color: #043d52;
@@ -544,8 +544,8 @@  discard block
 block discarded – undo
544 544
     border-bottom-style:solid;
545 545
     border-top-width:5px; 
546 546
     border-bottom-width:5px; 
547
-    border-color: <?php echo $colour1;?>; 
548
-    padding-<?php echo $start;?>:30px;
547
+    border-color: <?php echo $colour1; ?>; 
548
+    padding-<?php echo $start; ?>:30px;
549 549
 }
550 550
 
551 551
 .no_borders button.disabledDevice {
@@ -561,13 +561,13 @@  discard block
 block discarded – undo
561 561
 }
562 562
 
563 563
 input {
564
-    margin-<?php echo $end;?>: 5px;
564
+    margin-<?php echo $end; ?>: 5px;
565 565
 
566 566
 }
567 567
 
568 568
 select {
569 569
     vertical-align: middle;
570
-    margin-<?php echo $start;?>: 10px;
570
+    margin-<?php echo $start; ?>: 10px;
571 571
 }
572 572
 
573 573
 td.notapplicable {
@@ -600,8 +600,8 @@  discard block
 block discarded – undo
600 600
 
601 601
 .signin_large {
602 602
     vertical-align: top;
603
-    padding-<?php echo $start;?>:20px;
604
-    padding-<?php echo $end;?>:20px;
603
+    padding-<?php echo $start; ?>:20px;
604
+    padding-<?php echo $end; ?>:20px;
605 605
     color: #bfd5dc;
606 606
     font-size: 20px;
607 607
 }
@@ -614,34 +614,34 @@  discard block
 block discarded – undo
614 614
 }
615 615
 
616 616
 #close_button {
617
-    background: <?php echo $colour2;?>; 
617
+    background: <?php echo $colour2; ?>; 
618 618
     color: #FFFFFF; 
619 619
     height: 23px;
620
-    border-<?php echo $start;?>-style: inset; 
621
-    border-<?php echo $start;?>-width: 1px; 
622
-    border-<?php echo $start;?>-color: #8bbacb;
620
+    border-<?php echo $start; ?>-style: inset; 
621
+    border-<?php echo $start; ?>-width: 1px; 
622
+    border-<?php echo $start; ?>-color: #8bbacb;
623 623
     border-top-style: inset; 
624 624
     border-top-width: 1px; 
625 625
     border-top-color: #8bbacb;
626
-    border-<?php echo $end;?>-style: outset; 
627
-    border-<?php echo $end;?>-width: 2px; 
628
-    border-<?php echo $end;?>-color: #043d52;
626
+    border-<?php echo $end; ?>-style: outset; 
627
+    border-<?php echo $end; ?>-width: 2px; 
628
+    border-<?php echo $end; ?>-color: #043d52;
629 629
     border-bottom-style: outset; 
630 630
     border-bottom-width: 2px; 
631 631
     border-bottom-color: #043d52;
632
-    padding-<?php echo $start;?>: 5px;
633
-    padding-<?php echo $end;?>: 5px;
632
+    padding-<?php echo $start; ?>: 5px;
633
+    padding-<?php echo $end; ?>: 5px;
634 634
     padding-top: 1px;
635 635
     padding-bottom: 1px;
636 636
     position: relative;
637
-    <?php echo $start;?>: 640px;
637
+    <?php echo $start; ?>: 640px;
638 638
     cursor:pointer;
639 639
 }
640 640
 
641 641
 #loading_ico {
642 642
     display: none;
643 643
     position: absolute;
644
-    <?php echo $start;?>: 200px;
644
+    <?php echo $start; ?>: 200px;
645 645
     top: 220px;
646 646
     z-index: 200;
647 647
     text-align: center;
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
     z-index: 100;
656 656
     position: absolute;
657 657
     width: 700px;
658
-    <?php echo $start;?>: 200px;
658
+    <?php echo $start; ?>: 200px;
659 659
     text-align: justify;
660 660
     top: 200px;
661 661
     box-shadow: 5px 5px 5px #666666;
@@ -663,23 +663,23 @@  discard block
 block discarded – undo
663 663
 }
664 664
 
665 665
 #user_info {
666
-    padding-<?php echo $start;?>: 30px; 
666
+    padding-<?php echo $start; ?>: 30px; 
667 667
     font-size: 11px;  
668 668
     font-weight: normal; 
669 669
 }
670 670
 
671 671
 #user_welcome {
672 672
     background: #ffffff;
673
-    padding-<?php echo $start;?>: 30px; 
673
+    padding-<?php echo $start; ?>: 30px; 
674 674
     padding-top: 20px; 
675
-    padding-<?php echo $end;?>: 180px;
675
+    padding-<?php echo $end; ?>: 180px;
676 676
     font-size: 12px;  
677 677
     font-weight: normal; 
678 678
 }
679 679
 
680 680
 #devices {
681 681
     z-index:90;
682
-    padding-<?php echo $start;?>: 30px;
682
+    padding-<?php echo $start; ?>: 30px;
683 683
     font-size: 11px;  
684 684
     font-weight: normal;
685 685
     position: relative;
@@ -687,15 +687,15 @@  discard block
 block discarded – undo
687 687
 
688 688
 #profile_list {
689 689
     width: 30em; 
690
-    padding-<?php echo $start;?>: 10px; 
691
-    padding-<?php echo $end;?>: 0px; 
692
-    background: <?php echo $colour2;?>; 
690
+    padding-<?php echo $start; ?>: 10px; 
691
+    padding-<?php echo $end; ?>: 0px; 
692
+    background: <?php echo $colour2; ?>; 
693 693
     color: white; 
694 694
     box-shadow: 10px 10px 5px #888888;
695 695
 }
696 696
 
697 697
 #profile_redirect {
698
-    padding-<?php echo $start;?>: 30px;
698
+    padding-<?php echo $start; ?>: 30px;
699 699
     padding-top: 20px;
700 700
     font-size: 11px;
701 701
     font-weight: normal;
@@ -705,13 +705,13 @@  discard block
 block discarded – undo
705 705
 }
706 706
 
707 707
 #profiles {
708
-    padding-<?php echo $start;?>: 30px; 
708
+    padding-<?php echo $start; ?>: 30px; 
709 709
     font-size: 11px; 
710 710
     padding-bottom: 10px 
711 711
 }
712 712
 
713 713
 #signin {
714
-    padding-<?php echo $start;?>: 30px;
714
+    padding-<?php echo $start; ?>: 30px;
715 715
     padding-top: 10px;
716 716
 }
717 717
 
@@ -735,8 +735,8 @@  discard block
 block discarded – undo
735 735
     font-size: 14px; 
736 736
     padding-top: 4px; 
737 737
     padding-bottom: 12px; 
738
-    padding-<?php echo $start;?>: 30px; 
739
-    background: <?php echo $colour1;?>; 
738
+    padding-<?php echo $start; ?>: 30px; 
739
+    background: <?php echo $colour1; ?>; 
740 740
     text-align: start; 
741 741
     text-shadow: 10px 10px 5px #888888;
742 742
 }
@@ -746,9 +746,9 @@  discard block
 block discarded – undo
746 746
     border-bottom-style:solid;
747 747
     border-top-width:5px;
748 748
     border-bottom-width:5px;
749
-    border-color: <?php echo $colour1;?>;
750
-    padding-<?php echo $start;?>:30px;
751
-    color: <?php echo $colour2;?>;
749
+    border-color: <?php echo $colour1; ?>;
750
+    padding-<?php echo $start; ?>:30px;
751
+    color: <?php echo $colour2; ?>;
752 752
 }
753 753
 
754 754
 #heading h1 { 
@@ -763,11 +763,11 @@  discard block
 block discarded – undo
763 763
 
764 764
 #welcome {
765 765
     padding: 20px;
766
-    padding-<?php echo $start;?>: 30px;
766
+    padding-<?php echo $start; ?>: 30px;
767 767
     text-align: justify;
768 768
     border-bottom-style:solid;
769 769
     border-bottom-width:5px;
770
-    border-color: <?php echo $colour1;?>;
770
+    border-color: <?php echo $colour1; ?>;
771 771
     font-size: 11px;
772 772
     font-weight: normal;
773 773
 }
@@ -776,14 +776,14 @@  discard block
 block discarded – undo
776 776
 #main_menu_info { 
777 777
                     position: relative;
778 778
                     top: 15px;
779
-                    <?php echo $start;?>: 0px;
780
-                    padding:10px; padding-<?php echo $start;?>:20px; padding-<?php echo $end;?>:20px;
779
+                    <?php echo $start; ?>: 0px;
780
+                    padding:10px; padding-<?php echo $start; ?>:20px; padding-<?php echo $end; ?>:20px;
781 781
                     background: #f0f0f0;
782 782
                     border: 1px solid #dddddd;
783
-                    margin-<?php echo $start;?>: 25px;
784
-                    padding-<?php echo $start;?>: 25px;
785
-                    margin-<?php echo $end;?>: 25px;
786
-                    padding-<?php echo $end;?>: 25px;
783
+                    margin-<?php echo $start; ?>: 25px;
784
+                    padding-<?php echo $start; ?>: 25px;
785
+                    margin-<?php echo $end; ?>: 25px;
786
+                    padding-<?php echo $end; ?>: 25px;
787 787
                     padding-bottom: 10px;
788 788
                     vertical-align: top;
789 789
                     box-shadow: 5px 5px 5px #666666;
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
 
815 815
 #faq {
816 816
     padding: 20px;
817
-    color: <?php echo $colour2;?>;
817
+    color: <?php echo $colour2; ?>;
818 818
     background: #ffffff;
819 819
 }
820 820
 
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
 #idp_logo {
833 833
    display:none;
834 834
    position:absolute;
835
-   <?php echo $end;?>:30px;
835
+   <?php echo $end; ?>:30px;
836 836
    max-height:150px;
837 837
    max-width:150px;
838 838
    padding-top:10px;
@@ -855,18 +855,18 @@  discard block
 block discarded – undo
855 855
 #slides img {
856 856
     position: absolute;
857 857
     top: 145px;
858
-    <?php echo $end;?>: 60px;
858
+    <?php echo $end; ?>: 60px;
859 859
 }
860 860
 
861 861
 #slides span {
862 862
     position: absolute;
863
-    <?php echo $start;?>: 180px;
863
+    <?php echo $start; ?>: 180px;
864 864
     z-index: 20;
865 865
 }
866 866
 
867 867
 #line1 {
868 868
     top:145px;
869
-    color: <?php echo $colour2;?>;
869
+    color: <?php echo $colour2; ?>;
870 870
     font-size:20px;
871 871
 }
872 872
 
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
 
879 879
 #line3 {
880 880
     top:245px;
881
-    <?php echo $start;?>: 200px;
881
+    <?php echo $start; ?>: 200px;
882 882
     color: maroon;
883 883
     font-size:25px;
884 884
 }
@@ -907,16 +907,16 @@  discard block
 block discarded – undo
907 907
     height:100%;
908 908
     border-spacing:0; 
909 909
     border-collapse:collapse;
910
-    padding-<?php echo $start;?>:200px;
910
+    padding-<?php echo $start; ?>:200px;
911 911
     padding-top:10px;
912 912
 }
913 913
 
914 914
 #front_page_leftmenu {
915
-    border-<?php echo $end;?>:solid; 
916
-    border-color: <?php echo $colour1;?>; 
915
+    border-<?php echo $end; ?>:solid; 
916
+    border-color: <?php echo $colour1; ?>; 
917 917
     border-width:5px; 
918 918
     min-height:400px; 
919
-    padding-<?php echo $start;?>: 10px; 
919
+    padding-<?php echo $start; ?>: 10px; 
920 920
     vertical-align:top; 
921 921
     width:110px; 
922 922
     padding-top:30px;
@@ -926,8 +926,8 @@  discard block
 block discarded – undo
926 926
     vertical-align: top;
927 927
     height:280px;
928 928
     background: #fff;
929
-    padding-<?php echo $start;?>: 20px;
930
-    padding-<?php echo $end;?>: 20px;
929
+    padding-<?php echo $start; ?>: 20px;
930
+    padding-<?php echo $end; ?>: 20px;
931 931
 }
932 932
 
933 933
 #user_button_td {
@@ -938,11 +938,11 @@  discard block
 block discarded – undo
938 938
 }
939 939
 
940 940
 a:link {
941
-    color:<?php echo $colour2;?>;
941
+    color:<?php echo $colour2; ?>;
942 942
 }
943 943
 
944 944
 a:visited {
945
-    color:<?php echo $colour2;?>;
945
+    color:<?php echo $colour2; ?>;
946 946
 }
947 947
 
948 948
 a:hover {
@@ -950,7 +950,7 @@  discard block
 block discarded – undo
950 950
 }
951 951
 
952 952
 a:active {
953
-    color:<?php echo $colour2;?>;
953
+    color:<?php echo $colour2; ?>;
954 954
 }
955 955
 
956 956
 .comment {
@@ -981,14 +981,14 @@  discard block
 block discarded – undo
981 981
 table.user_overview th {
982 982
     text-align: start;  
983 983
     background: #f0f0f0;
984
-    padding-<?php echo $start;?>: 4px;
985
-    padding-<?php echo $end;?>: 4px;
984
+    padding-<?php echo $start; ?>: 4px;
985
+    padding-<?php echo $end; ?>: 4px;
986 986
 }
987 987
 
988 988
 table.user_overview td {
989 989
     border-top-style: none;
990
-    padding-<?php echo $start;?>: 4px;
991
-    padding-<?php echo $end;?>: 4px;
990
+    padding-<?php echo $start; ?>: 4px;
991
+    padding-<?php echo $end; ?>: 4px;
992 992
     vertical-align: middle;
993 993
     height: 28px;
994 994
 }
@@ -1005,14 +1005,14 @@  discard block
 block discarded – undo
1005 1005
 .download_button_text {
1006 1006
     width: 380px;
1007 1007
     position:absolute;
1008
-    <?php echo $end;?>: 5px;
1008
+    <?php echo $end; ?>: 5px;
1009 1009
     padding-top:0px;
1010 1010
 }
1011 1011
 
1012 1012
 #download_info {
1013 1013
    background: #f0f0f0;
1014
-   padding-<?php echo $start;?>: 20px;
1015
-   padding-<?php echo $end;?>: 20px;
1014
+   padding-<?php echo $start; ?>: 20px;
1015
+   padding-<?php echo $end; ?>: 20px;
1016 1016
    padding-top:3px;
1017 1017
    padding-bottom:3px;
1018 1018
 }
@@ -1056,7 +1056,7 @@  discard block
 block discarded – undo
1056 1056
 }
1057 1057
 
1058 1058
 .downloads tr td {
1059
-    text-align: <?php echo $end;?>;
1059
+    text-align: <?php echo $end; ?>;
1060 1060
     padding-left: 5px;
1061 1061
     padding-right: 5px;
1062 1062
     border-bottom-style: solid;
@@ -1064,5 +1064,5 @@  discard block
 block discarded – undo
1064 1064
 }
1065 1065
 
1066 1066
 .downloads tr td:first-child {
1067
-    text-align: <?php echo $start;?>;
1067
+    text-align: <?php echo $start; ?>;
1068 1068
 }
1069 1069
\ No newline at end of file
Please login to merge, or discard this patch.