Test Failed
Branch silverbullet (05f8b4)
by Brook
05:51
created
web/admin/edit_federation_result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 pageheader(sprintf(_("%s: Federation Customisation (submission completed)"), Config::$APPEARANCE['productname']), "FEDERATION");
26 26
 $my_fed = valid_Fed($_GET['fed_id'], $_SESSION['user']);
27 27
 if (isset($_POST['submitbutton'])) {
28
-    if (( $_POST['submitbutton'] == BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go
28
+    if (($_POST['submitbutton'] == BUTTON_SAVE) && isset($_POST['option']) && isset($_POST['value'])) { // here we go
29 29
         $fed_name = $my_fed->identifier;
30 30
         echo "<h1>" . sprintf(_("Submitted attributes for federation '%s'"), $fed_name) . "</h1>";
31 31
         $remaining_attribs = $my_fed->beginflushAttributes();
Please login to merge, or discard this patch.
web/admin/inc/manageAdmins.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 
137 137
         echo "</td>
138 138
               <td>
139
-                <form action='inc/manageAdmins.inc.php?inst_id=" . $my_inst->identifier . "' method='post' " . ( $oneowner['ID'] != $_SESSION['user'] ? "onsubmit='popupRedirectWindow(this); return false;'" : "" ) . " accept-charset='UTF-8'>
139
+                <form action='inc/manageAdmins.inc.php?inst_id=" . $my_inst->identifier . "' method='post' " . ($oneowner['ID'] != $_SESSION['user'] ? "onsubmit='popupRedirectWindow(this); return false;'" : "") . " accept-charset='UTF-8'>
140 140
                 <input type='hidden' name='admin_id' value='" . $oneowner['ID'] . "'></input>
141 141
                 <button type='submit' name='submitbutton' class='delete' value='" . BUTTON_DELETE . "'>" . _("Delete Administrator") . "</button>
142 142
                 </form>
Please login to merge, or discard this patch.
web/user/js/roll.php 1 patch
Indentation   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,13 +68,12 @@
 block discarded – undo
68 68
 
69 69
 <?php
70 70
 /**
71
-  * The OS object holds operating system descriptions
72
-  * @param name is the main title
73
-  * @param subtitle - the subtitle
74
-  * @param path - the path to the scriin-dump image
75
-  * @param signed - if true show information that the module is signed
76
-    
77
-*/
71
+ * The OS object holds operating system descriptions
72
+ * @param name is the main title
73
+ * @param subtitle - the subtitle
74
+ * @param path - the path to the scriin-dump image
75
+ * @param signed - if true show information that the module is signed
76
+ */
78 77
 ?>
79 78
 
80 79
 function OS(name, subtitle, path, signed) {
Please login to merge, or discard this patch.
web/user/js/cat_js.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 }
332 332
 
333 333
 <?php if(isset($_REQUEST['idp']) && $_REQUEST['idp']) { 
334
-      print "front_page = 0;\n";
334
+        print "front_page = 0;\n";
335 335
 } ?>
336 336
 
337 337
 function showTOU(){
@@ -469,9 +469,9 @@  discard block
 block discarded – undo
469 469
     $p_id = (isset($_REQUEST['profile']) && $_REQUEST['profile']) ? $_REQUEST['profile'] : 0; 
470 470
     if(! is_numeric($p_id))
471 471
         exit;
472
-   print 'listProfiles('.$_REQUEST['idp'].','.$p_id.');';
472
+    print 'listProfiles('.$_REQUEST['idp'].','.$p_id.');';
473 473
 }
474
- ?>
474
+    ?>
475 475
 
476 476
 $(".signin").click(function(event){
477 477
      pressedButton = $(this);
@@ -532,12 +532,12 @@  discard block
 block discarded – undo
532 532
         });
533 533
 DiscoJuice.Constants.Countries = {
534 534
 <?php 
535
-  $C = $Gui->printCountryList(1);
536
-     $ret = '';
537
-   foreach ($C as $key => $val) {
535
+    $C = $Gui->printCountryList(1);
536
+        $ret = '';
537
+    foreach ($C as $key => $val) {
538 538
     $ret .= "'$key': \"$val\",";
539
-   }
540
-   echo substr($ret, 0, -1);
539
+    }
540
+    echo substr($ret, 0, -1);
541 541
 ?>
542 542
         };
543 543
 
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     result = j.status;
58 58
     if(! result) {
59 59
       alert("<?php echo _("no matching data found")?>");
60
-      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
60
+      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
61 61
     }
62 62
     j = j.data;
63 63
     n = j.length;
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
          $("#profile_desc").text('');
186 186
        }
187 187
        if(j.local_url !== undefined && j.local_url) 
188
-         txt = txt+'<tr><td><?php echo _("WWW:");?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
188
+         txt = txt+'<tr><td><?php echo _("WWW:"); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
189 189
        if(j.local_email !== undefined && j.local_email) 
190
-         txt = txt+'<tr><td><?php echo _("email:");?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
190
+         txt = txt+'<tr><td><?php echo _("email:"); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
191 191
        if(j.local_phone !== undefined && j.local_phone) 
192
-         txt = txt+'<tr><td><?php echo _("tel:");?></td><td>'+j.local_phone+'</td></tr>';
192
+         txt = txt+'<tr><td><?php echo _("tel:"); ?></td><td>'+j.local_phone+'</td></tr>';
193 193
        if(txt) 
194 194
          txt = "<table><tr><th colspan='2'><?php echo _("If you encounter problems, then you can obtain direct assistance from you home organisation at:"); ?></th></tr>"+txt+'</table>';
195 195
         else 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
219 219
           $("#"+v.id+",#g_"+v.id).click(function(event){
220 220
             i_div = $("#info_"+$(this).attr('id'));
221
-            t = "<?php echo _("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab.")?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php echo _("Continue");?></a></span>";
221
+            t = "<?php echo _("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab.")?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php echo _("Continue"); ?></a></span>";
222 222
             i_div.html(t);
223 223
             $(".redirect_link").click(function(event) {
224 224
                i_div.hide();
@@ -226,13 +226,13 @@  discard block
 block discarded – undo
226 226
                
227 227
           });
228 228
         } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) {
229
-          var continue_text = "<?php echo _("Continue");?>";
229
+          var continue_text = "<?php echo _("Continue"); ?>";
230 230
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
231 231
           $("#"+v.id+",#g_"+v.id).click(function(event){
232 232
             i_div = $("#info_"+$(this).attr('id'));
233 233
             if(v.status > 0) {
234 234
               t = "<?php echo _("This device cannot be configured with settings provided by your institution")?>";
235
-              continue_text = "<?php echo _("Close");?>";
235
+              continue_text = "<?php echo _("Close"); ?>";
236 236
             } else {
237 237
             t = i_div.html();
238 238
             if(v.message != '0') {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     return(Math.round(windowWidth/2));
331 331
 }
332 332
 
333
-<?php if(isset($_REQUEST['idp']) && $_REQUEST['idp']) { 
333
+<?php if (isset($_REQUEST['idp']) && $_REQUEST['idp']) { 
334 334
       print "front_page = 0;\n";
335 335
 } ?>
336 336
 
@@ -369,10 +369,10 @@  discard block
 block discarded – undo
369 369
     $("#download_info a").attr('href',download_link);
370 370
     $('#download_info').show();
371 371
     if( generateTimer > 0 ) {
372
-       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link",generateTimer);
372
+       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link",generateTimer);
373 373
     }
374 374
     else {
375
-       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link;
375
+       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link;
376 376
     }
377 377
   }
378 378
 }
@@ -463,15 +463,15 @@  discard block
 block discarded – undo
463 463
   $(window).resize(set_front_page);
464 464
   resetDevices();
465 465
  <?php 
466
-if(isset($_REQUEST['idp']) && $_REQUEST['idp']) { 
467
-    if(! is_numeric($_REQUEST['idp'])) {
466
+if (isset($_REQUEST['idp']) && $_REQUEST['idp']) { 
467
+    if (!is_numeric($_REQUEST['idp'])) {
468 468
         exit;
469 469
     }
470 470
     $p_id = (isset($_REQUEST['profile']) && $_REQUEST['profile']) ? $_REQUEST['profile'] : 0; 
471
-    if(! is_numeric($p_id)) {
471
+    if (!is_numeric($p_id)) {
472 472
         exit;
473 473
     }
474
-   print 'listProfiles('.$_REQUEST['idp'].','.$p_id.');';
474
+   print 'listProfiles(' . $_REQUEST['idp'] . ',' . $p_id . ');';
475 475
 }
476 476
  ?>
477 477
 
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
    "title":"<?php echo _("Home institution") ?>",
500 500
    "subtitle":"<?php echo _("Select your <strong>institution<\/strong>") ?>",
501 501
    "textHelp": "<?php echo _("Help, my institution is not on the list") ?>",
502
-   "textHelpMore": "<?php echo sprintf(_("This system relies on information supplied by local %s administrators. If your institution is not on the list, then nag them to add information to the %s database."),CONFIG['CONSORTIUM']['name'],CONFIG['APPEARANCE']['productname']); ?>",
502
+   "textHelpMore": "<?php echo sprintf(_("This system relies on information supplied by local %s administrators. If your institution is not on the list, then nag them to add information to the %s database."), CONFIG['CONSORTIUM']['name'], CONFIG['APPEARANCE']['productname']); ?>",
503 503
    "textLocateMe": "<?php echo _("Locate me more accurately using HTML5 Geo-Location") ?>",
504 504
    "textShowProviders": "<?php echo _("Show institutions in") ?>",
505 505
    "textAllCountries": "<?php echo _("all countries") ?>",
Please login to merge, or discard this patch.
web/user/cat_back.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 // extract request parameters; action is mandatory
18 18
 if(!isset($_REQUEST['action']))
19
-   exit;
19
+    exit;
20 20
 
21 21
 $action  = $_REQUEST['action'];
22 22
 $id      = ( isset($_REQUEST['id'])      ? $_REQUEST['id']      : FALSE );
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@  discard block
 block discarded – undo
10 10
  *
11 11
  * @package UserAPI
12 12
  */
13
-include(dirname(dirname(dirname(__FILE__)))."/config/_config.php");
13
+include(dirname(dirname(dirname(__FILE__))) . "/config/_config.php");
14 14
 include_once("UserAPI.php");
15 15
 include_once("Logging.php");
16 16
 $API = new UserAPI();
17 17
 
18 18
 // extract request parameters; action is mandatory
19
-if(!isset($_REQUEST['action'])) {
19
+if (!isset($_REQUEST['action'])) {
20 20
    exit;
21 21
 }
22 22
 
23 23
 $action  = $_REQUEST['action'];
24
-$id      = ( isset($_REQUEST['id'])      ? $_REQUEST['id']      : FALSE );
25
-$lang    = ( isset($_REQUEST['lang'])    ? $_REQUEST['lang']    : FALSE );
26
-$profile = ( isset($_REQUEST['profile']) ? $_REQUEST['profile'] : FALSE );
27
-$disco   = ( isset($_REQUEST['disco'])   ? $_REQUEST['disco']   : FALSE );
28
-$sort    = ( isset($_REQUEST['sort'])    ? $_REQUEST['sort']    : 0 );
29
-$generatedfor      = ( isset($_REQUEST['generatedfor'])      ? $_REQUEST['generatedfor']      : 'user' );
24
+$id      = (isset($_REQUEST['id']) ? $_REQUEST['id'] : FALSE);
25
+$lang    = (isset($_REQUEST['lang']) ? $_REQUEST['lang'] : FALSE);
26
+$profile = (isset($_REQUEST['profile']) ? $_REQUEST['profile'] : FALSE);
27
+$disco   = (isset($_REQUEST['disco']) ? $_REQUEST['disco'] : FALSE);
28
+$sort    = (isset($_REQUEST['sort']) ? $_REQUEST['sort'] : 0);
29
+$generatedfor = (isset($_REQUEST['generatedfor']) ? $_REQUEST['generatedfor'] : 'user');
30 30
     
31 31
 $loggerInstance = new Logging();
32
-$loggerInstance->debug(4,"cat_back action: ".$action.':'.$id.':'.$lang.':'.$profile.':'.$disco."\n");
32
+$loggerInstance->debug(4, "cat_back action: " . $action . ':' . $id . ':' . $lang . ':' . $profile . ':' . $disco . "\n");
33 33
 
34 34
 switch ($action) {
35 35
     case 'listLanguages':
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if ($id === FALSE) {
49 49
             exit;
50 50
         }
51
-        $API->JSON_listProfiles($id,$sort);
51
+        $API->JSON_listProfiles($id, $sort);
52 52
         break;
53 53
     case 'listDevices':
54 54
         $API->JSON_listDevices($id);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         if ($id === FALSE || $profile === FALSE) { 
64 64
             exit;
65 65
         }
66
-        $API->downloadInstaller($id, $profile,$generatedfor);
66
+        $API->downloadInstaller($id, $profile, $generatedfor);
67 67
         break;
68 68
     case 'profileAttributes': // needs $id set
69 69
         if ($id === FALSE) { 
Please login to merge, or discard this patch.
web/download.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 $p = new Profile($profile_id);
43 43
 
44 44
 if(!$p->institution || $p->institution !== $inst_id) {
45
-  header("HTTP/1.0 404 Not Found");
46
-  return;
45
+    header("HTTP/1.0 404 Not Found");
46
+    return;
47 47
 }
48 48
 
49 49
 // now we generate the installer
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  * @package UserGUI
14 14
  */
15 15
 
16
-include(dirname(dirname(__FILE__))."/config/_config.php");
16
+include(dirname(dirname(__FILE__)) . "/config/_config.php");
17 17
 require_once("UserAPI.php");
18 18
 require_once("Logging.php");
19 19
 require_once('ProfileFactory.php');
@@ -30,24 +30,24 @@  discard block
 block discarded – undo
30 30
 
31 31
 
32 32
 if ($generated_for != "admin" && $generated_for != "user") {
33
-    $loggerInstance->debug(2,"Invalid downloads triggered (neither for admin nor user???)");
33
+    $loggerInstance->debug(2, "Invalid downloads triggered (neither for admin nor user???)");
34 34
     print("Invalid downloads triggered (neither for admin nor user???)");
35 35
     exit(1);
36 36
 }
37 37
 
38 38
 //print_r($_REQUEST);
39 39
 
40
-$loggerInstance->debug(4,"download: profile:$profile_id; inst:$instId; device:$device\n");
40
+$loggerInstance->debug(4, "download: profile:$profile_id; inst:$instId; device:$device\n");
41 41
 
42 42
 // first block will test if the user input was valid.
43 43
 
44 44
 $p = ProfileFactory::instantiate($profile_id);
45 45
 
46
-if(!$p->institution || $p->institution !== $instId) {
46
+if (!$p->institution || $p->institution !== $instId) {
47 47
   header("HTTP/1.0 404 Not Found");
48 48
   return;
49 49
 }
50 50
 
51 51
 // now we generate the installer
52 52
 
53
-$Gui->downloadInstaller($device,$profile_id, $generated_for);
54 53
\ No newline at end of file
54
+$Gui->downloadInstaller($device, $profile_id, $generated_for);
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
web/diag/action_userdiag.php 1 patch
Braces   +23 added lines, -16 removed lines patch added patch discarded remove patch
@@ -67,10 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
 function mainpage_url() {
69 69
     $main_url = valid_host($_SERVER['HTTP_HOST']);
70
-    if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
71
-        $main_url = "https://" . $main_url;
72
-    else
73
-        $main_url = "http://" . $main_url;
70
+    if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
71
+            $main_url = "https://" . $main_url;
72
+    } else {
73
+            $main_url = "http://" . $main_url;
74
+    }
74 75
     $main_url .= substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], "/diag/"));
75 76
     return $main_url;
76 77
 }
@@ -135,8 +136,9 @@  discard block
 block discarded – undo
135 136
                     array_multisort($name, SORT_ASC, SORT_LOCALE_STRING, $displaylist);
136 137
                     setlocale(LC_ALL, $current_locale);
137 138
 
138
-                    foreach ($displaylist as $id => $oneinst)
139
-                        echo "<option id='" . $id . "' value='" . $oneinst['realmlist'] . "'>" . $oneinst['name'] . "</option>";
139
+                    foreach ($displaylist as $id => $oneinst) {
140
+                                            echo "<option id='" . $id . "' value='" . $oneinst['realmlist'] . "'>" . $oneinst['name'] . "</option>";
141
+                    }
140 142
                     ?>
141 143
                 </select>
142 144
                 <button type='submit' class='submit'><?php echo _("Submit Information"); ?></button>
@@ -197,10 +199,12 @@  discard block
 block discarded – undo
197 199
                 $checkresult[$number] = $check['instance']->UDP_reachability($number, FALSE, FALSE);
198 200
                 if ($checkresult[$number] == RETVAL_CONVERSATION_REJECT) { // so now things work?!
199 201
                     // either a packet size or Operator-Name problem!
200
-                    if ($check['instance']->UDP_reachability($number, TRUE, FALSE) != RETVAL_CONVERSATION_REJECT)
201
-                        $realmproblems[] = ["REALM" => $check['realm'], "STATUS" => "OPERATOR-NAME", "FROM" => $probe['display_name'], "DETAIL" => ""];
202
-                    if ($check['instance']->UDP_reachability($number, FALSE, TRUE) != RETVAL_CONVERSATION_REJECT)
203
-                        $realmproblems[] = ["REALM" => $check['realm'], "STATUS" => "PACKETSIZE", "FROM" => $probe['display_name'], "DETAIL" => ""];
202
+                    if ($check['instance']->UDP_reachability($number, TRUE, FALSE) != RETVAL_CONVERSATION_REJECT) {
203
+                                            $realmproblems[] = ["REALM" => $check['realm'], "STATUS" => "OPERATOR-NAME", "FROM" => $probe['display_name'], "DETAIL" => ""];
204
+                    }
205
+                    if ($check['instance']->UDP_reachability($number, FALSE, TRUE) != RETVAL_CONVERSATION_REJECT) {
206
+                                            $realmproblems[] = ["REALM" => $check['realm'], "STATUS" => "PACKETSIZE", "FROM" => $probe['display_name'], "DETAIL" => ""];
207
+                    }
204 208
                 } else { // still no response or immediate reject
205 209
                     // if this is a CAT realm with anon ID set, we can't be seeing an NPS ignorance problem
206 210
                     // and consequently, the realm has actual issues
@@ -234,12 +238,13 @@  discard block
 block discarded – undo
234 238
 // re-write check history with that extra knowledge
235 239
     $copycat = $realmproblems;
236 240
 
237
-    foreach ($realmproblems as &$problem)
238
-        if ($problem['STATUS'] == "REALM_POSSIBLY_NPS")
241
+    foreach ($realmproblems as &$problem) {
242
+            if ($problem['STATUS'] == "REALM_POSSIBLY_NPS")
239 243
             foreach ($copycat as $otherproblem)
240 244
                 if ($problem['REALM'] == $otherproblem['REALM'] && $problem['FROM'] != $otherproblem['FROM'] && $otherproblem['STATUS'] != "REALM_POSSIBLY_NPS")
241 245
                     if ($otherproblem['STATUS'] == "REACHABLE") { // worked elsewhere, but not on this probe:
242 246
                         $problem['STATUS'] = "REALM_DOWN";
247
+    }
243 248
                     } else { // inherit other problem; in any case not an NPS problem
244 249
                         $problem['STATUS'] = $otherproblem['STATUS'];
245 250
                     }
@@ -249,11 +254,12 @@  discard block
 block discarded – undo
249 254
 
250 255
     $copycat = $realmproblems;
251 256
 
252
-    foreach ($realmproblems as &$problem)
253
-        if ($problem['STATUS'] == "REALM_DOWN")
257
+    foreach ($realmproblems as &$problem) {
258
+            if ($problem['STATUS'] == "REALM_DOWN")
254 259
             foreach ($copycat as $otherproblem)
255 260
                 if ($problem['REALM'] == $otherproblem['REALM'] && $problem['FROM'] != $otherproblem['FROM'] && $otherproblem['STATUS'] == "REACHABLE")
256 261
                     $problem['STATUS'] = "INFRASTRUCTURE";
262
+    }
257 263
     unset($problem);
258 264
 
259 265
 // finally, extract all certprobs we got from the reachability checks; merge from all
@@ -264,8 +270,9 @@  discard block
 block discarded – undo
264 270
     foreach ($checks as $check) {
265 271
         $instance = $check['instance'];
266 272
         $resultset = $instance->UDP_reachability_result;
267
-        foreach ($resultset as $result)
268
-            $all_certprobs = array_merge($all_certprobs, $result['cert_oddities']);
273
+        foreach ($resultset as $result) {
274
+                    $all_certprobs = array_merge($all_certprobs, $result['cert_oddities']);
275
+        }
269 276
     }
270 277
     echo "<pre>";
271 278
     print_r($realmproblems);
Please login to merge, or discard this patch.
web/resources/css/cat.css.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 }
10 10
 
11 11
 body {
12
-    background: <?php echo $colour1;?>;
12
+    background: <?php echo $colour1; ?>;
13 13
     font-family:Verdana, Arial, Helvetica, sans-serif;
14 14
     font-size:11px;
15 15
     height: 100%;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 }
24 24
 
25 25
 button {
26
-    background: <?php echo $colour2;?>; 
26
+    background: <?php echo $colour2; ?>; 
27 27
     color: #FFFFFF; 
28 28
     min-height: 23px;
29 29
     border-left-style: outset; 
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
     border-bottom-style:solid;
206 206
     border-top-width:5px; 
207 207
     border-bottom-width:5px; 
208
-    border-color: <?php echo $colour1;?>;
208
+    border-color: <?php echo $colour1; ?>;
209 209
     padding-left:30px;
210
-    color: <?php echo $colour2;?>;
210
+    color: <?php echo $colour2; ?>;
211 211
 }
212 212
 
213 213
 div.pagecontent {
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 
401 401
 span.edu_cat {
402 402
     font-weight: bold;
403
-    color: <?php echo $colour2;?>;
403
+    color: <?php echo $colour2; ?>;
404 404
 }
405 405
 
406 406
 span.tooltip {
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
     border-bottom-style:solid;
514 514
     border-top-width:5px; 
515 515
     border-bottom-width:5px; 
516
-    border-color: <?php echo $colour1;?>; 
516
+    border-color: <?php echo $colour1; ?>; 
517 517
     padding-left:30px;
518 518
 }
519 519
 
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 }
568 568
 
569 569
 span.redirect_link {
570
-    background: <?php echo $colour2;?>; color: #FFFFFF; height: 23px;
570
+    background: <?php echo $colour2; ?>; color: #FFFFFF; height: 23px;
571 571
     border-left-style: inset; border-left-width: 1px; border-left-color: #8bbacb;
572 572
     border-top-style: inset; border-top-width: 1px; border-top-color: #8bbacb;
573 573
     border-right-style: outset; border-right-width: 2px; border-right-color: #043d52;
@@ -614,7 +614,7 @@  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 620
     border-left-style: inset; 
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
     width: 30em; 
696 696
     padding-left: 10px; 
697 697
     padding-right: 0px; 
698
-    background: <?php echo $colour2;?>; 
698
+    background: <?php echo $colour2; ?>; 
699 699
     color: white; 
700 700
     box-shadow: 10px 10px 5px #888888;
701 701
 }
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
     width: 30em; 
705 705
     padding-left: 10px; 
706 706
     padding-right: 00px; 
707
-    background: <?php echo $colour2;?>; 
707
+    background: <?php echo $colour2; ?>; 
708 708
     color: #FFFFFF; 
709 709
     box-shadow: 10px 10px 5px #888888;
710 710
 }
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
     padding-top: 4px; 
760 760
     padding-bottom: 12px; 
761 761
     padding-left: 30px; 
762
-    background: <?php echo $colour1;?>; 
762
+    background: <?php echo $colour1; ?>; 
763 763
     text-align: left; 
764 764
     text-shadow: 10px 10px 5px #888888;
765 765
 }
@@ -769,9 +769,9 @@  discard block
 block discarded – undo
769 769
     border-bottom-style:solid;
770 770
     border-top-width:5px;
771 771
     border-bottom-width:5px;
772
-    border-color: <?php echo $colour1;?>;
772
+    border-color: <?php echo $colour1; ?>;
773 773
     padding-left:30px;
774
-    color: <?php echo $colour2;?>;
774
+    color: <?php echo $colour2; ?>;
775 775
 }
776 776
 
777 777
 #heading h1 { 
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
     text-align: justify;
791 791
     border-bottom-style:solid;
792 792
     border-bottom-width:5px;
793
-    border-color: <?php echo $colour1;?>;
793
+    border-color: <?php echo $colour1; ?>;
794 794
     font-size: 11px;
795 795
     font-weight: normal;
796 796
 }
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
 
839 839
 #faq {
840 840
     padding: 20px;
841
-    color: <?php echo $colour2;?>;
841
+    color: <?php echo $colour2; ?>;
842 842
     background: #ffffff;
843 843
 }
844 844
 
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
 
892 892
 #line1 {
893 893
     top:145px;
894
-    color: <?php echo $colour2;?>;
894
+    color: <?php echo $colour2; ?>;
895 895
     font-size:20px;
896 896
 }
897 897
 
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
 
947 947
 #menu_column {
948 948
     border-right:solid;
949
-    border-color: <?php echo $colour1;?>;
949
+    border-color: <?php echo $colour1; ?>;
950 950
     border-width:5px;
951 951
     min-height:400px;
952 952
     padding-left: 10px;
@@ -957,7 +957,7 @@  discard block
 block discarded – undo
957 957
 
958 958
 #front_page_leftmenu {
959 959
     border-right:solid; 
960
-    border-color: <?php echo $colour1;?>; 
960
+    border-color: <?php echo $colour1; ?>; 
961 961
     border-width:5px; 
962 962
     min-height:400px; 
963 963
     padding-left: 10px; 
@@ -986,11 +986,11 @@  discard block
 block discarded – undo
986 986
 }
987 987
 
988 988
 a:link {
989
-    color:<?php echo $colour2;?>;
989
+    color:<?php echo $colour2; ?>;
990 990
 }
991 991
 
992 992
 a:visited {
993
-    color:<?php echo $colour2;?>;
993
+    color:<?php echo $colour2; ?>;
994 994
 }
995 995
 
996 996
 a:hover {
@@ -998,7 +998,7 @@  discard block
 block discarded – undo
998 998
 }
999 999
 
1000 1000
 a:active {
1001
-    color:<?php echo $colour2;?>;
1001
+    color:<?php echo $colour2; ?>;
1002 1002
 }
1003 1003
 
1004 1004
 .comment {
Please login to merge, or discard this patch.
web/resources/css/cat-basic.css.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
    font-size:25px;
22 22
    font-size:5vw;
23 23
    width: 100%;
24
-   background: <?php echo $colour2;?>;
24
+   background: <?php echo $colour2; ?>;
25 25
    color: #ffffff;
26 26
 }
27 27
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
    font-size:25px;
49 49
    font-size:5vw;
50 50
    width: 100%;
51
-   background: <?php echo $colour2;?>;
51
+   background: <?php echo $colour2; ?>;
52 52
    color: #ffffff;
53 53
    border-radius:10px ; 
54 54
    border-radius:2vw ; 
Please login to merge, or discard this patch.