Passed
Push — master ( e491a2...15ec75 )
by Tomasz
03:40
created
web/skins/eduroam2016/Menu.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
      * the values of the array can be either a simple string which is passed to user/cat_info.php
14 14
      * as the title argument or an two element array - the first element of this array will be
15 15
      * the title and the second is a style specification applied to the given menu item
16
+     * @param string $visibility
16 17
      */
17 18
     public function __construct($visibility = 'all', $selectedLang) {
18 19
         $langsArray = [];
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@  discard block
 block discarded – undo
24 24
             }
25 25
         }
26 26
         $this->menu = [['id'=>'start',
27
-     'text'=>_("Start page"),
28
-     'visibility' => 'index'],
27
+        'text'=>_("Start page"),
28
+        'visibility' => 'index'],
29 29
     ['id'=>'about',
30
-     'text'=>_("About"),'link'=>'','submenu'=>[
30
+        'text'=>_("About"),'link'=>'','submenu'=>[
31 31
             ['text'=>sprintf(_("About %s"), CONFIG['APPEARANCE']['productname']),
32
-             'catInfo'=>['about_cat',sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]],
32
+                'catInfo'=>['about_cat',sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]],
33 33
             ['text'=>sprintf(_("About %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
34
-             'link'=>CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']],
34
+                'link'=>CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']],
35 35
         ]],
36 36
     ['id'=>'lang',
37
-     'text'=>_("Language"), 'submenu'=>$langsArray,],
37
+        'text'=>_("Language"), 'submenu'=>$langsArray,],
38 38
     ['id'=>'help',
39
-     'text'=>_("Help"), 'submenu'=>[
39
+        'text'=>_("Help"), 'submenu'=>[
40 40
             ['text'=>_("My institution is not listed"), 'catInfo'=>['idp_not_listed',_("FAQ")], 'visibility'=>'index'],
41 41
             ['text'=>_("My device is not listed"), 'catInfo'=>['device_not_listed',_("FAQ")], 'visibility'=>'index'],
42 42
             ['text'=>_("SB help item"),'visibility'=>'sb'],
@@ -45,24 +45,24 @@  discard block
 block discarded – undo
45 45
             ['text'=>_("Contact"), 'catInfo'=>['contact',_("FAQ")]],
46 46
         ]],
47 47
     ['id'=>'manage',
48
-     'text'=>_("Manage"),'submenu'=>[
48
+        'text'=>_("Manage"),'submenu'=>[
49 49
             ['text'=>sprintf(_("%s admin access"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
50
-             'catInfo'=>['admin',sprintf(_("%s admin:<br>manage your IdP"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])]],
50
+                'catInfo'=>['admin',sprintf(_("%s admin:<br>manage your IdP"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])]],
51 51
             ['text'=>_("Become a CAT developer"),
52
-             'catInfo'=>['develop',_("Become a CAT developer")]],
52
+                'catInfo'=>['develop',_("Become a CAT developer")]],
53 53
             ['text'=>_("Documentation")],
54 54
         ],
55
-     'visibility' => 'index'],
55
+        'visibility' => 'index'],
56 56
     ['id'=>'tou',
57
-     'text'=>_("Terms of use"), 'catInfo'=>['tou','TOU']],
57
+        'text'=>_("Terms of use"), 'catInfo'=>['tou','TOU']],
58 58
     ];
59 59
         $this->visibility = $visibility;
60 60
     }
61 61
     public function printMenu($menu = NULL, $id=NULL) {
62 62
         $menu = $menu ?? $this->menu;
63
-     if(count($menu) == 0) {
64
-          return;
65
-     }
63
+        if(count($menu) == 0) {
64
+            return;
65
+        }
66 66
         $out = "\n<ul>\n";
67 67
         foreach ($menu as $menuItem) {
68 68
             $itemVisibility = $menuItem['visibility'] ?? 'all';
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
79 79
                 $out .= $this->printMenu($submenu,$iD);
80 80
                 $out .= "</li>\n";
81
-             }
81
+                }
82 82
         }
83 83
         $out .= '</ul>';
84 84
         return($out);
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,49 +18,49 @@  discard block
 block discarded – undo
18 18
         $langsArray = [];
19 19
         foreach (CONFIG['LANGUAGES'] as $lang => $value) {
20 20
             if ($lang == $selectedLang) {
21
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")', 'class'=>'selected-lang'];
21
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")', 'class'=>'selected-lang'];
22 22
             } else {
23
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")'];
23
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")'];
24 24
             }
25 25
         }
26 26
         $this->menu = [['id'=>'start',
27 27
      'text'=>_("Start page"),
28 28
      'visibility' => 'index'],
29 29
     ['id'=>'about',
30
-     'text'=>_("About"),'link'=>'','submenu'=>[
30
+     'text'=>_("About"), 'link'=>'', 'submenu'=>[
31 31
             ['text'=>sprintf(_("About %s"), CONFIG['APPEARANCE']['productname']),
32
-             'catInfo'=>['about_cat',sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]],
32
+             'catInfo'=>['about_cat', sprintf(_("About %s"), CONFIG['APPEARANCE']['productname'])]],
33 33
             ['text'=>sprintf(_("About %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
34 34
              'link'=>CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']],
35 35
         ]],
36 36
     ['id'=>'lang',
37
-     'text'=>_("Language"), 'submenu'=>$langsArray,],
37
+     'text'=>_("Language"), 'submenu'=>$langsArray, ],
38 38
     ['id'=>'help',
39 39
      'text'=>_("Help"), 'submenu'=>[
40
-            ['text'=>_("My institution is not listed"), 'catInfo'=>['idp_not_listed',_("FAQ")], 'visibility'=>'index'],
41
-            ['text'=>_("My device is not listed"), 'catInfo'=>['device_not_listed',_("FAQ")], 'visibility'=>'index'],
42
-            ['text'=>_("SB help item"),'visibility'=>'sb'],
43
-            ['text'=>_("What is eduroam"), 'catInfo'=>['what_is_eduroam',_("FAQ")]],
44
-            ['text'=>_("FAQ"), 'catInfo'=>['faq',_("FAQ")]],
45
-            ['text'=>_("Contact"), 'catInfo'=>['contact',_("FAQ")]],
40
+            ['text'=>_("My institution is not listed"), 'catInfo'=>['idp_not_listed', _("FAQ")], 'visibility'=>'index'],
41
+            ['text'=>_("My device is not listed"), 'catInfo'=>['device_not_listed', _("FAQ")], 'visibility'=>'index'],
42
+            ['text'=>_("SB help item"), 'visibility'=>'sb'],
43
+            ['text'=>_("What is eduroam"), 'catInfo'=>['what_is_eduroam', _("FAQ")]],
44
+            ['text'=>_("FAQ"), 'catInfo'=>['faq', _("FAQ")]],
45
+            ['text'=>_("Contact"), 'catInfo'=>['contact', _("FAQ")]],
46 46
         ]],
47 47
     ['id'=>'manage',
48
-     'text'=>_("Manage"),'submenu'=>[
49
-            ['text'=>sprintf(_("%s admin access"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
50
-             'catInfo'=>['admin',sprintf(_("%s admin:<br>manage your IdP"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])]],
48
+     'text'=>_("Manage"), 'submenu'=>[
49
+            ['text'=>sprintf(_("%s admin access"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']),
50
+             'catInfo'=>['admin', sprintf(_("%s admin:<br>manage your IdP"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])]],
51 51
             ['text'=>_("Become a CAT developer"),
52
-             'catInfo'=>['develop',_("Become a CAT developer")]],
52
+             'catInfo'=>['develop', _("Become a CAT developer")]],
53 53
             ['text'=>_("Documentation")],
54 54
         ],
55 55
      'visibility' => 'index'],
56 56
     ['id'=>'tou',
57
-     'text'=>_("Terms of use"), 'catInfo'=>['tou','TOU']],
57
+     'text'=>_("Terms of use"), 'catInfo'=>['tou', 'TOU']],
58 58
     ];
59 59
         $this->visibility = $visibility;
60 60
     }
61
-    public function printMenu($menu = NULL, $id=NULL) {
61
+    public function printMenu($menu = NULL, $id = NULL) {
62 62
         $menu = $menu ?? $this->menu;
63
-     if(count($menu) == 0) {
63
+     if (count($menu) == 0) {
64 64
           return;
65 65
      }
66 66
         $out = "\n<ul>\n";
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
                 $iD = $menuItem['id'] ?? $id;
71 71
                 $catInfo = NULL;
72 72
                 if (!empty($menuItem['catInfo'])) {
73
-                    $catInfo = 'javascript:infoCAT("'.$iD.'", "'.$menuItem['catInfo'][0].'","'.$menuItem['catInfo'][1].'")';
73
+                    $catInfo = 'javascript:infoCAT("' . $iD . '", "' . $menuItem['catInfo'][0] . '","' . $menuItem['catInfo'][1] . '")';
74 74
                 }
75 75
                 $link = $catInfo ?? $menuItem['link'] ?? '';
76
-                $class = empty($menuItem['class']) ? '' : ' class="'.$menuItem['class'].'"';
77
-                $submenu  = $menuItem['submenu'] ?? [];
76
+                $class = empty($menuItem['class']) ? '' : ' class="' . $menuItem['class'] . '"';
77
+                $submenu = $menuItem['submenu'] ?? [];
78 78
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
79
-                $out .= $this->printMenu($submenu,$iD);
79
+                $out .= $this->printMenu($submenu, $iD);
80 80
                 $out .= "</li>\n";
81 81
              }
82 82
         }
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
         return($out);
85 85
     }
86 86
 
87
-    private function printMenuItem($itemText,$itemLink = '',$itemClass = '') {
88
-        return "<li><a href='" . $itemLink . "'".$itemClass.'>' . $itemText . "</a>";
87
+    private function printMenuItem($itemText, $itemLink = '', $itemClass = '') {
88
+        return "<li><a href='" . $itemLink . "'" . $itemClass . '>' . $itemText . "</a>";
89 89
     }
90 90
     
91 91
 
Please login to merge, or discard this patch.
web/user/sb_download.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,5 +71,5 @@
 block discarded – undo
71 71
         throw new Exception("Unable to find our accountstatus.php page.");
72 72
     }
73 73
 //    print $accountPageUrl;
74
-  header("Location: ../accountstatus/accountstatus.php?token=" . $cleanToken . "&errorcode=GENERATOR_CONSUMED");
74
+    header("Location: ../accountstatus/accountstatus.php?token=" . $cleanToken . "&errorcode=GENERATOR_CONSUMED");
75 75
 }
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/cat_info.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 switch ($page) {
33 33
     case 'about' :
34 34
        require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php");
35
-       $out = "<div>$out</div>";
36
-       break;
35
+        $out = "<div>$out</div>";
36
+        break;
37 37
     case 'tou':
38 38
         require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/tou.inc.php");
39 39
         $out = "no_title<div>
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
             case 'what_is_eduroam' :
60 60
                 $out = "no_title<div><h1>" . _("Help") . "</h1>";
61 61
                 foreach ($Faq as $faqItem) {
62
-                   if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) {
63
-                       $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
64
-                       $out .= "" . $faqItem['text'] . "</div>\n";
65
-                   }
62
+                    if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) {
63
+                        $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
64
+                        $out .= "" . $faqItem['text'] . "</div>\n";
65
+                    }
66 66
                 }
67 67
                 $out .= "</div>";
68 68
                 break;
69 69
             case 'faq':
70 70
                 $out = "no_title<div><h1>" . _("Frequently Asked Questions") . "</h1>";
71 71
                 foreach ($Faq as $faqItem) {
72
-                   $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
73
-                   $out .= "" . $faqItem['text'] . "</div>\n";
72
+                    $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n";
73
+                    $out .= "" . $faqItem['text'] . "</div>\n";
74 74
                 }
75 75
                 $out .= "</div>";
76 76
                 break;
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
                     $out .= "<input id='mail' name='mail' type='text'/><button onclick='window.location.replace(\"[email protected]\"; return false;'>" . _("Get IdP Reminder") . "</button>";
99 99
                 }
100 100
                 break;
101
-       }
102
-       break;
101
+        }
102
+        break;
103 103
     default:
104 104
         break;
105 105
 }
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/js/cat_js.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 ?>
11 11
 <?php 
12 12
 function escaped_echo($s) {
13
-   echo preg_replace('/"/','&quot;',$s);
13
+    echo preg_replace('/"/','&quot;',$s);
14 14
 }
15 15
 
16 16
 $langObject = new \core\common\Language();
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $idpId = filter_input(INPUT_GET, 'idp', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'idp', FILTER_VALIDATE_INT);
20 20
 $profileId = filter_input(INPUT_GET, 'profile', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'profile', FILTER_VALIDATE_INT);
21 21
 $skinObject = $Gui->skinObject;
22
- ?>
22
+    ?>
23 23
 var n;
24 24
 var profile;
25 25
 // var device_button_bg ="#0a698e";
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 }
353 353
 
354 354
 <?php if($idpId) { 
355
-      print "front_page = 0;\n";
355
+        print "front_page = 0;\n";
356 356
 } ?>
357 357
 
358 358
 function showTOU(){
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 if ($profileId) {
435 435
     print "listProfiles($idpId,$profileId);";
436 436
 }
437
- ?>
437
+    ?>
438 438
 
439 439
 $(".signin").click(function(event){
440 440
      event.preventDefault();
@@ -517,12 +517,12 @@  discard block
 block discarded – undo
517 517
         });
518 518
 DiscoJuice.Constants.Countries = {
519 519
 <?php 
520
-  $C = $Gui->printCountryList(1);
521
-     $ret = '';
522
-   foreach ($C as $key => $val) {
520
+    $C = $Gui->printCountryList(1);
521
+        $ret = '';
522
+    foreach ($C as $key => $val) {
523 523
     $ret .= "'$key': \"$val\",";
524
-   }
525
-   echo substr($ret, 0, -1);
524
+    }
525
+    echo substr($ret, 0, -1);
526 526
 ?>
527 527
         };
528 528
 }
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 ?>
11 11
 <?php 
12 12
 function escaped_echo($s) {
13
-   echo preg_replace('/"/','&quot;',$s);
13
+   echo preg_replace('/"/', '&quot;', $s);
14 14
 }
15 15
 
16 16
 $langObject = new \core\common\Language();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     result = j.status;
76 76
     if(! result) {
77 77
       alert("<?php escaped_echo(_("no matching data found"))?>");
78
-      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
78
+      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
79 79
     }
80 80
     j = j.data;
81 81
     n = j.length;
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
        j1 = $.parseJSON(data);
193 193
        result = j1.status;
194 194
        if(! result) {
195
-            alert("<?php escaped_echo( _("no matching data found"))?>");
196
-            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
195
+            alert("<?php escaped_echo(_("no matching data found"))?>");
196
+            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
197 197
        }
198 198
        j = j1.data;
199 199
        if(j.description !== undefined && j.description) {
@@ -204,15 +204,15 @@  discard block
 block discarded – undo
204 204
          $("#profile_desc").text('');
205 205
        }
206 206
        if(j.local_url !== undefined && j.local_url) 
207
-         txt = txt+'<tr><td><?php escaped_echo(_("WWW:"));?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
207
+         txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
208 208
        if(j.local_email !== undefined && j.local_email) 
209
-         txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
209
+         txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
210 210
        if(j.local_phone !== undefined && j.local_phone) 
211
-         txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>';
211
+         txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>';
212 212
        if(txt) 
213
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
213
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
214 214
         else 
215
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst)); ?>.</th></tr></table>";
215
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst)); ?>.</th></tr></table>";
216 216
       $("#user_info").html(txt);
217 217
       $("#user_info").show();
218 218
       resetDevices();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
           $("#g_"+v.id).addClass('alertButton');
226 226
           $("#cross_icon_"+v.id).show();
227 227
           $("#"+v.id).addClass('disabledDevice');
228
-          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>");
228
+          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>");
229 229
           $("#info_b_"+v.id+",#g_info_b_"+v.id).hide();
230 230
         } else  {
231 231
           if(v.status == -1)
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
238 238
           $("#"+v.id+",#g_"+v.id).click(function(event){
239 239
             i_div = $("#info_"+$(this).attr('id'));
240
-            t = "<?php escaped_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 escaped_echo(_("Continue"));?></a></span>";
240
+            t = "<?php escaped_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 escaped_echo(_("Continue")); ?></a></span>";
241 241
             i_div.html(t);
242 242
             $(".redirect_link").click(function(event) {
243 243
                i_div.hide();
@@ -245,13 +245,13 @@  discard block
 block discarded – undo
245 245
                
246 246
           });
247 247
         } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) {
248
-          var continue_text = "<?php escaped_echo(_("Continue"));?>";
248
+          var continue_text = "<?php escaped_echo(_("Continue")); ?>";
249 249
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
250 250
           $("#"+v.id+",#g_"+v.id).click(function(event){
251 251
             i_div = $("#info_"+$(this).attr('id'));
252 252
             if(v.status > 0) {
253
-              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>";
254
-              continue_text = "<?php escaped_echo(_("Close"));?>";
253
+              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>";
254
+              continue_text = "<?php escaped_echo(_("Close")); ?>";
255 255
             } else {
256 256
             t = i_div.html();
257 257
             if(v.message != '0') {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
   }
307 307
 
308 308
   function infoCAT(k,subK,title) {
309
-      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE","user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) {
309
+      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) {
310 310
     if(data.substring(0,8) == 'no_title') {
311 311
        data = data.substring(8,data.length);
312 312
     } else {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
    $("#loading_ico").css('left',x+'px');
330 330
    $("#loading_ico").attr('src','resources/images/icons/loading9.gif');
331 331
    $("#loading_ico").show();
332
-   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE","admin/overview_user.php")?>?lang="+lang);
332
+   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE", "admin/overview_user.php")?>?lang="+lang);
333 333
 }
334 334
 
335 335
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     return(Math.round(windowWidth/2));
352 352
 }
353 353
 
354
-<?php if($idpId) { 
354
+<?php if ($idpId) { 
355 355
       print "front_page = 0;\n";
356 356
 } ?>
357 357
 
@@ -390,10 +390,10 @@  discard block
 block discarded – undo
390 390
     $("#download_info a").attr('href',download_link);
391 391
     $('#download_info').show();
392 392
     if( generateTimer > 0 ) {
393
-       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link",generateTimer);
393
+       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link",generateTimer);
394 394
     }
395 395
     else {
396
-       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link;
396
+       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link;
397 397
     }
398 398
   }
399 399
 }
@@ -475,13 +475,13 @@  discard block
 block discarded – undo
475 475
    "overlay":true,"cookie":true,"type":false,
476 476
    "country":true,"location":true,
477 477
    "title":"<?php escaped_echo($cat->nomenclature_inst) ?>",
478
-   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>",
479
-   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>",
480
-   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
478
+   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>",
479
+   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>",
480
+   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
481 481
    "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>",
482 482
    "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>",
483 483
    "textAllCountries": "<?php escaped_echo(_("all countries")) ?>",
484
-   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>",
484
+   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>",
485 485
    "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>",
486 486
    "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>",
487 487
    "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>",
Please login to merge, or discard this patch.
web/skins/eduroam2016/Divs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             <img id='logo_img' src='" . $this->Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png") . "' alt='Consortium Logo'/>
40 40
             <span>Configuration Assistant Tool</span>
41 41
         </div>
42
-        <div id='motd'>" . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp' ) . "</div>
42
+        <div id='motd'>" . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp') . "</div>
43 43
         <img id='hamburger' src='" . $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/menu.png") . "' alt='Menu'/>
44 44
         <div id='menu_top'>
45 45
 ";
Please login to merge, or discard this patch.
web/skins/eduroam2016/resources/css/cat.css.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 }
20 20
 
21 21
 body {
22
-    background: <?php echo $colour1;?>;
22
+    background: <?php echo $colour1; ?>;
23 23
     color: #000000;
24 24
     font-family:"Open Sans", Helvetica, sans-serif;
25 25
     font-size:12px;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 button {
36
-    background: <?php echo $colour2;?>; 
36
+    background: <?php echo $colour2; ?>; 
37 37
     color: #FFFFFF; 
38 38
     min-height: 23px;
39 39
     border-left-style: outset; 
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     border-bottom-style:solid;
188 188
     border-top-width:5px; 
189 189
     border-bottom-width:5px; 
190
-    border-color: <?php echo $colour1;?>;
190
+    border-color: <?php echo $colour1; ?>;
191 191
     padding-left:30px;
192
-    color: <?php echo $colour2;?>;
192
+    color: <?php echo $colour2; ?>;
193 193
 }
194 194
 
195 195
 div.pagecontent {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 
383 383
 span.edu_cat {
384 384
     font-weight: bold;
385
-    color: <?php echo $colour2;?>;
385
+    color: <?php echo $colour2; ?>;
386 386
 }
387 387
 
388 388
 span.tooltip {
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     border-bottom-style:solid;
496 496
     border-top-width:5px; 
497 497
     border-bottom-width:5px; 
498
-    border-color: <?php echo $colour1;?>; 
498
+    border-color: <?php echo $colour1; ?>; 
499 499
     padding-left:30px;
500 500
 }
501 501
 
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 }
550 550
 
551 551
 span.redirect_link {
552
-    background: <?php echo $colour2;?>; color: #FFFFFF; height: 23px;
552
+    background: <?php echo $colour2; ?>; color: #FFFFFF; height: 23px;
553 553
     border-left-style: inset; border-left-width: 1px; border-left-color: #8bbacb;
554 554
     border-top-style: inset; border-top-width: 1px; border-top-color: #8bbacb;
555 555
     border-right-style: outset; border-right-width: 2px; border-right-color: #043d52;
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
     width: 30em; 
620 620
     padding-left: 10px; 
621 621
     padding-right: 00px; 
622
-    background: <?php echo $colour2;?>; 
622
+    background: <?php echo $colour2; ?>; 
623 623
     color: #FFFFFF; 
624 624
     box-shadow: 10px 10px 5px #888888;
625 625
 }
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
 //    border-bottom-width:5px;
670 670
     border-color: #e7e7e7;
671 671
     padding-left:30px;
672
-    color: <?php echo $colour2;?>;
672
+    color: <?php echo $colour2; ?>;
673 673
 }
674 674
 
675 675
 #headingx h1 { 
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
     text-align: justify;
689 689
     border-bottom-style:solid;
690 690
     border-bottom-width:5px;
691
-    border-color: <?php echo $colour1;?>;
691
+    border-color: <?php echo $colour1; ?>;
692 692
     font-size: 12px;
693 693
     font-weight: normal;
694 694
 }
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
 
698 698
 #faq {
699 699
     padding: 20px;
700
-    color: <?php echo $colour2;?>;
700
+    color: <?php echo $colour2; ?>;
701 701
     background: #ffffff;
702 702
 }
703 703
 
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
 
738 738
 #menu_column {
739 739
     border-right:solid;
740
-    border-color: <?php echo $colour1;?>;
740
+    border-color: <?php echo $colour1; ?>;
741 741
     border-width:5px;
742 742
     min-height:400px;
743 743
     padding-left: 10px;
@@ -755,11 +755,11 @@  discard block
 block discarded – undo
755 755
 }
756 756
 
757 757
 a:link {
758
-    color:<?php echo $colour2;?>;
758
+    color:<?php echo $colour2; ?>;
759 759
 }
760 760
 
761 761
 a:visited {
762
-    color:<?php echo $colour2;?>;
762
+    color:<?php echo $colour2; ?>;
763 763
 }
764 764
 
765 765
 a:hover {
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
 }
768 768
 
769 769
 a:active {
770
-    color:<?php echo $colour2;?>;
770
+    color:<?php echo $colour2; ?>;
771 771
 }
772 772
 
773 773
 .comment {
Please login to merge, or discard this patch.
web/skins/eduroam2016/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 
20 20
 <!-- JQuery -->
21
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script>
22
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script>
21
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script>
22
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script>
23
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script>
24 24
 <!-- JQuery -->
25 25
 
26 26
 <script type="text/javascript">
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 include("user/js/cat_js.php");
48 48
 ?>
49 49
     var loading_ico = new Image();
50
-    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>";
50
+    loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>";
51 51
 </script>
52 52
 <?php $Gui->langObject->setTextDomain("web_user"); ?>
53 53
 <!-- DiscoJuice -->
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 <script type="text/javascript">
56 56
     var lang = "<?php echo($Gui->langObject->getLang()) ?>";
57 57
 </script>
58
-<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" />
58
+<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" />
59 59
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
60
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
60
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
61 61
 </head>
62 62
 <body>
63 63
 <div id="wrap">
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
     <?php echo $divs->div_heading($visibility); ?>
66 66
     <div id="main_page">
67 67
         <div id="loading_ico">
68
-          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/>
68
+          <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/>
69 69
         </div>
70 70
         <div id="info_overlay"> <!-- device info -->
71 71
             <div id="info_window"></div>
72
-            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
72
+            <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
73 73
         </div>
74 74
         <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
75
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
75
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
76 76
           <div id="main_menu_content"></div>
77 77
         </div>
78 78
         <div id="main_body">
Please login to merge, or discard this patch.
web/skins/classic/user/js/cat_js.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
 <?php 
12 12
 $cat = new core\CAT();
13 13
 function escaped_echo($s) {
14
-   echo preg_replace('/"/','&quot;',$s);
14
+    echo preg_replace('/"/','&quot;',$s);
15 15
 }
16 16
 
17 17
 $langObject = new \core\common\Language();
18 18
 $langObject->setTextDomain('web_user');
19 19
 $idpId = filter_input(INPUT_GET, 'idp', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'idp', FILTER_VALIDATE_INT);
20 20
 $profileId = filter_input(INPUT_GET, 'profile', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'profile', FILTER_VALIDATE_INT);
21
- ?>
21
+    ?>
22 22
 var n;
23 23
 var profile;
24 24
 var generateTimer;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 }
354 354
 
355 355
 <?php if($idpId) { 
356
-      print "front_page = 0;\n";
356
+        print "front_page = 0;\n";
357 357
 } ?>
358 358
 
359 359
 function showTOU(){
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 if ($profileId) {
488 488
     print "listProfiles($idpId,$profileId);";
489 489
 }
490
- ?>
490
+    ?>
491 491
 
492 492
 $(".signin").click(function(event){
493 493
      pressedButton = $(this);
@@ -548,12 +548,12 @@  discard block
 block discarded – undo
548 548
         });
549 549
 DiscoJuice.Constants.Countries = {
550 550
 <?php 
551
-  $C = $Gui->printCountryList(1);
552
-     $ret = '';
553
-   foreach ($C as $key => $val) {
551
+    $C = $Gui->printCountryList(1);
552
+        $ret = '';
553
+    foreach ($C as $key => $val) {
554 554
     $ret .= "'$key': \"$val\",";
555
-   }
556
-   echo substr($ret, 0, -1);
555
+    }
556
+    echo substr($ret, 0, -1);
557 557
 ?>
558 558
         };
559 559
 
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 <?php 
12 12
 $cat = new core\CAT();
13 13
 function escaped_echo($s) {
14
-   echo preg_replace('/"/','&quot;',$s);
14
+   echo preg_replace('/"/', '&quot;', $s);
15 15
 }
16 16
 
17 17
 $langObject = new \core\common\Language();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     result = j.status;
71 71
     if(! result) {
72 72
       alert("<?php escaped_echo(_("no matching data found"))?>");
73
-      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
73
+      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
74 74
     }
75 75
     j = j.data;
76 76
     n = j.length;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     inst_name = j[0].idp_name;
79 79
     logo = j[0].logo;
80 80
     $("#inst_name").val(inst_name);
81
-    $("#inst_name_span").html("<?php escaped_echo(sprintf(_("Selected %s:"),$cat->nomenclature_inst))?> <strong>"+inst_name+"</strong>");
81
+    $("#inst_name_span").html("<?php escaped_echo(sprintf(_("Selected %s:"), $cat->nomenclature_inst))?> <strong>"+inst_name+"</strong>");
82 82
     $(".inst_name").text(inst_name);
83 83
     $("#user_page").show();
84 84
     $("#institution_name").show();
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
        j1 = $.parseJSON(data);
192 192
        result = j1.status;
193 193
        if(! result) {
194
-            alert("<?php escaped_echo( _("no matching data found"))?>");
195
-            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
194
+            alert("<?php escaped_echo(_("no matching data found"))?>");
195
+            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
196 196
        }
197 197
        j = j1.data;
198 198
        if(j.description !== undefined && j.description) {
@@ -203,15 +203,15 @@  discard block
 block discarded – undo
203 203
          $("#profile_desc").text('');
204 204
        }
205 205
        if(j.local_url !== undefined && j.local_url) 
206
-         txt = txt+'<tr><td><?php escaped_echo(_("WWW:"));?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
206
+         txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
207 207
        if(j.local_email !== undefined && j.local_email) 
208
-         txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
208
+         txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
209 209
        if(j.local_phone !== undefined && j.local_phone) 
210
-         txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>';
210
+         txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>';
211 211
        if(txt) 
212
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
212
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
213 213
         else 
214
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst)); ?>.</th></tr></table>";
214
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst)); ?>.</th></tr></table>";
215 215
       $("#user_info").html(txt);
216 216
       $("#user_info").show();
217 217
       if(j.silverbullet) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
           $("#g_"+v.id).addClass('alertButton');
230 230
           $("#cross_icon_"+v.id).show();
231 231
           $("#"+v.id).addClass('disabledDevice');
232
-          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>");
232
+          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>");
233 233
           $("#info_b_"+v.id+",#g_info_b_"+v.id).hide();
234 234
         } else  {
235 235
           if(v.status == -1)
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
242 242
           $("#"+v.id+",#g_"+v.id).click(function(event){
243 243
             i_div = $("#info_"+$(this).attr('id'));
244
-            t = "<?php escaped_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 escaped_echo(_("Continue"));?></a></span>";
244
+            t = "<?php escaped_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 escaped_echo(_("Continue")); ?></a></span>";
245 245
             i_div.html(t);
246 246
             $(".redirect_link").click(function(event) {
247 247
                i_div.hide();
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
                
250 250
           });
251 251
         } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) {
252
-          var continue_text = "<?php escaped_echo(_("Continue"));?>";
252
+          var continue_text = "<?php escaped_echo(_("Continue")); ?>";
253 253
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
254 254
           $("#"+v.id+",#g_"+v.id).click(function(event){
255 255
             i_div = $("#info_"+$(this).attr('id'));
256 256
             if(v.status > 0) {
257
-              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>";
258
-              continue_text = "<?php escaped_echo(_("Close"));?>";
257
+              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>";
258
+              continue_text = "<?php escaped_echo(_("Close")); ?>";
259 259
             } else {
260 260
             t = i_div.html();
261 261
             if(v.message != '0') {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
   }
313 313
 
314 314
   function infoCAT(k,title) {
315
-      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php");?>', {page: k, lang: lang}, function(data) {
315
+      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php"); ?>', {page: k, lang: lang}, function(data) {
316 316
     if(data.substring(0,8) == 'no_title') {
317 317
        data = data.substring(8,data.length);
318 318
     } else {
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
    $("#loading_ico").css('left',x+'px');
332 332
    $("#loading_ico").attr('src','resources/images/icons/loading9.gif');
333 333
    $("#loading_ico").show();
334
-   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE","admin/overview_user.php");?>?lang="+lang);
334
+   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE", "admin/overview_user.php"); ?>?lang="+lang);
335 335
 }
336 336
 
337 337
 /* Get horizontal center of the Browser Window */
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     return(Math.round(windowWidth/2));
353 353
 }
354 354
 
355
-<?php if($idpId) { 
355
+<?php if ($idpId) { 
356 356
       print "front_page = 0;\n";
357 357
 } ?>
358 358
 
@@ -390,10 +390,10 @@  discard block
 block discarded – undo
390 390
     $("#download_info a").attr('href',download_link);
391 391
     $('#download_info').show();
392 392
     if( generateTimer > 0 ) {
393
-       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link",generateTimer);
393
+       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link",generateTimer);
394 394
     }
395 395
     else {
396
-       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link;
396
+       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link;
397 397
     }
398 398
   }
399 399
 }
@@ -511,13 +511,13 @@  discard block
 block discarded – undo
511 511
    "overlay":true,"cookie":true,"type":false,
512 512
    "country":true,"location":true,
513 513
    "title":"<?php escaped_echo($cat->nomenclature_inst) ?>",
514
-   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>",
515
-   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>",
516
-   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
514
+   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>",
515
+   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>",
516
+   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
517 517
    "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>",
518
-   "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"),$cat->nomenclature_inst)) ?>",
518
+   "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>",
519 519
    "textAllCountries": "<?php escaped_echo(_("all countries")) ?>",
520
-   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>",
520
+   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>",
521 521
    "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>",
522 522
    "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>",
523 523
    "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>",
Please login to merge, or discard this patch.