Passed
Push — master ( 571c64...967890 )
by Tomasz
06:35 queued 02:36
created
web/skins/modern/user/js/roll.php 2 patches
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.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -129,12 +129,12 @@
 block discarded – undo
129 129
  */
130 130
 ?>
131 131
 
132
-var win8 = new OS('<?php echo _("MS Windows")?>', '<?php echo _("10, 8, 7, Vista") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-win8-english-h234.png")?>",true);
133
-var mac = new OS('<?php echo _("Apple OS X")?>','10.7+',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-mac-english-h234.png")?>",true);
134
-var android = new OS('<?php echo _("Android")?>','<?php echo _("4.3+") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-android-english-h234.png")?>",false);
135
-var iphone = new OS('<?php echo _("Apple iOS devices")?>','<?php echo _("iPhone, iPad, iPod touch") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-iphone-english-h234.png")?>",true);
136
-var linux = new OS('<?php echo _("Linux")?>','<?php echo _("all major distributions") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-linux-english-h234.png")?>",false);
137
-var chromeos = new OS('<?php echo _("Chrome OS")?>','',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES","screenshots/sampleinstaller-chromeos-english-h234.png")?>",false);
132
+var win8 = new OS('<?php echo _("MS Windows")?>', '<?php echo _("10, 8, 7, Vista") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-win8-english-h234.png")?>",true);
133
+var mac = new OS('<?php echo _("Apple OS X")?>','10.7+',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-mac-english-h234.png")?>",true);
134
+var android = new OS('<?php echo _("Android")?>','<?php echo _("4.3+") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-android-english-h234.png")?>",false);
135
+var iphone = new OS('<?php echo _("Apple iOS devices")?>','<?php echo _("iPhone, iPad, iPod touch") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-iphone-english-h234.png")?>",true);
136
+var linux = new OS('<?php echo _("Linux")?>','<?php echo _("all major distributions") ?>',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-linux-english-h234.png")?>",false);
137
+var chromeos = new OS('<?php echo _("Chrome OS")?>','',"<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "screenshots/sampleinstaller-chromeos-english-h234.png")?>",false);
138 138
 
139 139
 
140 140
 
Please login to merge, or discard this patch.
web/skins/modern/user/js/cat_js.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
        if(j.local_url !== undefined && j.local_url) 
209 209
          txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
210 210
        if(j.local_email !== undefined && j.local_email) 
211
-         txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
211
+         txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
212 212
        if(j.local_phone !== undefined && j.local_phone) 
213
-         txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>';
213
+         txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>';
214 214
        if(txt) 
215
-         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>';
215
+         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>';
216 216
         else 
217
-         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>";
217
+         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>";
218 218
       $("#user_info").html(txt);
219 219
       $("#user_info").show();
220 220
       resetDevices();
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
           $("#g_"+v.id).addClass('alertButton');
228 228
           $("#cross_icon_"+v.id).show();
229 229
           $("#"+v.id).addClass('disabledDevice');
230
-          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>");
230
+          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>");
231 231
           $("#info_b_"+v.id+",#g_info_b_"+v.id).hide();
232 232
         } else  {
233 233
           if(v.status == -1)
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
240 240
           $("#"+v.id+",#g_"+v.id).click(function(event){
241 241
             i_div = $("#info_"+$(this).attr('id'));
242
-            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>";
242
+            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>";
243 243
             i_div.html(t);
244 244
             $(".redirect_link").click(function(event) {
245 245
                i_div.hide();
@@ -247,13 +247,13 @@  discard block
 block discarded – undo
247 247
                
248 248
           });
249 249
         } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) {
250
-          var continue_text = "<?php escaped_echo(_("Continue"));?>";
250
+          var continue_text = "<?php escaped_echo(_("Continue")); ?>";
251 251
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
252 252
           $("#"+v.id+",#g_"+v.id).click(function(event){
253 253
             i_div = $("#info_"+$(this).attr('id'));
254 254
             if(v.status > 0) {
255
-              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>";
256
-              continue_text = "<?php escaped_echo(_("Close"));?>";
255
+              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>";
256
+              continue_text = "<?php escaped_echo(_("Close")); ?>";
257 257
             } else {
258 258
             t = i_div.html();
259 259
             if(v.message != '0') {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
   }
323 323
   
324 324
   function infoCAT(k,subK,title) {
325
-      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE","user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) {
325
+      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php")?>', {page: k, subpage: subK, lang: lang}, function(data) {
326 326
           showInfo(data, title)});
327 327
   }
328 328
 
@@ -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
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     return(Math.round(windowWidth/2));
354 354
 }
355 355
 
356
-<?php if($idpId) { 
356
+<?php if ($idpId) { 
357 357
         print "front_page = 0;\n";
358 358
 } ?>
359 359
 
@@ -477,13 +477,13 @@  discard block
 block discarded – undo
477 477
    "overlay":true,"cookie":true,"type":false,
478 478
    "country":true,"location":true,
479 479
    "title":"<?php escaped_echo($cat->nomenclature_inst) ?>",
480
-   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>",
481
-   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>",
482
-   "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'])); ?>",
480
+   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>",
481
+   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>",
482
+   "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'])); ?>",
483 483
    "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>",
484 484
    "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>",
485 485
    "textAllCountries": "<?php escaped_echo(_("all countries")) ?>",
486
-   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>",
486
+   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>",
487 487
    "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>",
488 488
    "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>",
489 489
    "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>",
Please login to merge, or discard this patch.
web/skins/modern/user/cat_info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 $Gui->langObject->setTextDomain("web_user");
29 29
 
30 30
 $page = $_REQUEST['page'];
31
-$subpage= $_REQUEST['subpage'];
31
+$subpage = $_REQUEST['subpage'];
32 32
 switch ($page) {
33 33
     case 'about' :
34 34
         require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php");
Please login to merge, or discard this patch.
web/skins/modern/accountstatus/accountstatus.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
50 50
             <div id="sb_info">
51 51
                 <?php 
52
-             switch ($statusInfo['errorcode']) {
52
+                switch ($statusInfo['errorcode']) {
53 53
                     case "GENERATOR_CONSUMED":
54 54
                         echo $uiElements->boxError(_("You attempted to download an installer that was already downloaded before. Please request a new token from your administrator instead."), _("Attempt to re-use download link"), TRUE) . "<p>";
55 55
                         break;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                         }
148 148
 
149 149
                         echo "<div id='sb_download_message'><p>".sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
150
- //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
150
+    //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
151 151
                         echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
152 152
                         echo "<p style='color:red;'>" . _("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local eduroam administrator.") . "</p>";
153 153
                         echo "<p>" . _("During the installation process, you will be asked for the following import PIN. This only happens once during the installation. You do not have to write down this PIN.") . "</p></div>";
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@  discard block
 block discarded – undo
3 3
 $Gui->defaultPagePrelude();
4 4
 ?>
5 5
 <!-- JQuery -->
6
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js");?>"></script>
7
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate.js");?>"></script>
8
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js");?>"></script>
6
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js"); ?>"></script>
7
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate.js"); ?>"></script>
8
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js"); ?>"></script>
9 9
 <!-- JQuery -->
10 10
 <script type="text/javascript">
11 11
     var recognisedOS = '';
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 var lang = "<?php echo($Gui->langObject->getLang()) ?>";
29 29
 </script>
30 30
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
31
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
31
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
32 32
 
33 33
 </head>
34 34
 <body>
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
     <?php echo $divs->div_heading($visibility); ?>
39 39
     <div id="info_overlay"> <!-- device info -->
40 40
         <div id="info_window"></div>
41
-        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
41
+        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
42 42
     </div>
43 43
     <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
44
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
44
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
45 45
           <div id="main_menu_content"></div>
46 46
     </div>
47 47
     <div id="main_body">
48 48
         <div id="user_page">
49
-            <?php  echo $divs->div_institution(FALSE);?>
49
+            <?php  echo $divs->div_institution(FALSE); ?>
50 50
             <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
51 51
             <div id="sb_info">
52 52
                 <?php 
@@ -89,18 +89,18 @@  discard block
 block discarded – undo
89 89
                             echo "<h3>" . sprintf(_("Your invitation token is valid for %d more device activations (%d have already been used)."), $statusInfo['tokenstatus']['activations_remaining'], $statusInfo['tokenstatus']['activations_total'] - $statusInfo['tokenstatus']['activations_remaining']) . "</h3>";
90 90
                         }
91 91
                         if (!$statusInfo["OS"]) {
92
-                            echo "<p>"._("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.") . "</p>";
92
+                            echo "<p>" . _("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.") . "</p>";
93 93
                             break;
94 94
                         }
95 95
 
96 96
                         $dev = new \core\DeviceFactory($statusInfo['OS']['device']);
97 97
                         $dev->device->calculatePreferredEapType([new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET)]);
98 98
                         if ($dev->device->selectedEap == []) {
99
-                            echo "<p>".sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>";
99
+                            echo "<p>" . sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>";
100 100
                             break;
101 101
                         }
102 102
 
103
-                        echo "<div id='sb_download_message'><p>".sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
103
+                        echo "<div id='sb_download_message'><p>" . sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
104 104
  //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
105 105
                         echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
106 106
                         echo "<p style='color:red;'>" . _("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local eduroam administrator.") . "</p>";
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
             $supportInfo .= '<tr><td>' . ("tel:") . '</td><td><a href="' . $attributes['local_phone'] . '" target="_blank">' . $attributes['local_phone'] . '</a></td></tr>';
153 153
         }
154 154
         if ($supportInfo != '') {
155
-            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst) . "</th></tr>$supportInfo</table>";
155
+            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst) . "</th></tr>$supportInfo</table>";
156 156
         } else {
157
-            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst) . "</th></tr></table>";
157
+            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst) . "</th></tr></table>";
158 158
         }
159 159
 ?>
160 160
     <script>
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     $("#inst_name").val(idpName);
166 166
     $("#inst_name_span").html(idpName);
167 167
     $(".inst_name").text(idpName);
168
-    $("#inst_extra_text").html("<?php escaped_echo(sprintf(_("Your personal %s account status page"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']));?>");
168
+    $("#inst_extra_text").html("<?php escaped_echo(sprintf(_("Your personal %s account status page"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])); ?>");
169 169
         if(logo) {
170 170
     $("#idp_logo").attr("src","<?php echo $skinObject->findResourceUrl("BASE", "user/API.php"); ?>?action=sendLogo&api_version=2&idp="+idpId);
171 171
     $("#idp_logo").show();
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         
181 181
         $("#user_button_sb").click(function(event){
182 182
             event.preventDefault();
183
-            $("#cat_form").attr('action','<?php echo $Gui->skinObject->findResourceUrl("BASE","user/sb_download.php");?>');
183
+            $("#cat_form").attr('action','<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/sb_download.php"); ?>');
184 184
             $("#cat_form").submit();
185 185
         });
186 186
         
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
                 var allArray = new Array();
194 194
                 var statusCount = new Array();
195 195
                 
196
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID;?>] = {color: "#000000", categoryText: "<?php escaped_echo(_("Current login tokens")) ?>", rows: validCerts};
197
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_EXPIRED;?>] = {color: "#999999", categoryText: "<?php escaped_echo(_("Previous login tokens")) ?>", rows: expiredCerts};
198
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_REVOKED;?>] = {color: "#ff0000", categoryText: "<?php escaped_echo(_("Revoked login tokens")) ?>", rows: revokedCerts};
199
-                var headerLine = "<tr><th><?php escaped_echo(_("Pseudonym"));?></th><th><?php escaped_echo(_("Device Type"));?></th><th><?php escaped_echo(_("Serial Number"));?></th><th><?php escaped_echo(_("Issue Date"));?></th><th><?php escaped_echo(_("Expiry Date"));?></th></tr>";
196
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID; ?>] = {color: "#000000", categoryText: "<?php escaped_echo(_("Current login tokens")) ?>", rows: validCerts};
197
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_EXPIRED; ?>] = {color: "#999999", categoryText: "<?php escaped_echo(_("Previous login tokens")) ?>", rows: expiredCerts};
198
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_REVOKED; ?>] = {color: "#ff0000", categoryText: "<?php escaped_echo(_("Revoked login tokens")) ?>", rows: revokedCerts};
199
+                var headerLine = "<tr><th><?php escaped_echo(_("Pseudonym")); ?></th><th><?php escaped_echo(_("Device Type")); ?></th><th><?php escaped_echo(_("Serial Number")); ?></th><th><?php escaped_echo(_("Issue Date")); ?></th><th><?php escaped_echo(_("Expiry Date")); ?></th></tr>";
200 200
                 $.each(allArray, function(index, value) {
201 201
                     if(value !== undefined) {
202 202
                         value.rows.push('<tr style="color:' + value.color + ';"><th class="th1" colspan="5">' + value.categoryText + '</th></tr>');
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                    if (value !== undefined && value.rows.length > 2) {
218 218
                         $.each(value.rows, function(i,line){
219 219
                             if (i > 1) {
220
-                                if (index === <?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID;?>)
220
+                                if (index === <?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID; ?>)
221 221
                                     line = line + '<td class="revoke"><a href="" TITLE="revoke certificate">revoke</a></td></tr>';
222 222
                                 else
223 223
                                     line = line + '</tr>';
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         $("#cert_details").on("click", "td.revoke>a", function(event) {
237 237
             event.preventDefault();
238
-            if (confirm("<?php escaped_echo(_("really revoke this certificate?"));?>"))
238
+            if (confirm("<?php escaped_echo(_("really revoke this certificate?")); ?>"))
239 239
                 alert("deleting - not yet implemented");
240 240
         })
241 241
         loadIdpData();
Please login to merge, or discard this patch.
web/skins/modern/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.
web/skins/modern/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;
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
     width: 30em; 
621 621
     padding-left: 10px; 
622 622
     padding-right: 00px; 
623
-    background: <?php echo $colour2;?>; 
623
+    background: <?php echo $colour2; ?>; 
624 624
     color: #FFFFFF; 
625 625
     box-shadow: 10px 10px 5px #888888;
626 626
 }
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
 //    border-bottom-width:5px;
671 671
     border-color: #e7e7e7;
672 672
     padding-left:30px;
673
-    color: <?php echo $colour2;?>;
673
+    color: <?php echo $colour2; ?>;
674 674
 }
675 675
 
676 676
 #headingx h1 { 
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
     text-align: justify;
690 690
     border-bottom-style:solid;
691 691
     border-bottom-width:5px;
692
-    border-color: <?php echo $colour1;?>;
692
+    border-color: <?php echo $colour1; ?>;
693 693
     font-size: 14px;
694 694
     font-weight: normal;
695 695
 }
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
 
699 699
 #faq {
700 700
     padding: 20px;
701
-    color: <?php echo $colour2;?>;
701
+    color: <?php echo $colour2; ?>;
702 702
     background: #ffffff;
703 703
 }
704 704
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
 
739 739
 #menu_column {
740 740
     border-right:solid;
741
-    border-color: <?php echo $colour1;?>;
741
+    border-color: <?php echo $colour1; ?>;
742 742
     border-width:5px;
743 743
     min-height:400px;
744 744
     padding-left: 10px;
@@ -756,11 +756,11 @@  discard block
 block discarded – undo
756 756
 }
757 757
 
758 758
 a:link {
759
-    color:<?php echo $colour2;?>;
759
+    color:<?php echo $colour2; ?>;
760 760
 }
761 761
 
762 762
 a:visited {
763
-    color:<?php echo $colour2;?>;
763
+    color:<?php echo $colour2; ?>;
764 764
 }
765 765
 
766 766
 a:hover {
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
 }
769 769
 
770 770
 a:active {
771
-    color:<?php echo $colour2;?>;
771
+    color:<?php echo $colour2; ?>;
772 772
 }
773 773
 
774 774
 .comment {
Please login to merge, or discard this patch.
web/skins/modern/index.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,16 +79,16 @@  discard block
 block discarded – undo
79 79
          <?php if (empty($_REQUEST['idp'])) { ?>
80 80
               <div id="front_page">
81 81
                   <?php
82
-                         echo $divs->div_top_welcome();
83
-                         echo $divs->div_roller();
84
-                         echo $divs->div_main_button(); ?>
82
+                            echo $divs->div_top_welcome();
83
+                            echo $divs->div_roller();
84
+                            echo $divs->div_main_button(); ?>
85 85
               </div> <!-- id="front_page" -->
86 86
          <?php } ?>
87 87
             <!-- the user_page div contains all information for a given IdP, i.e. the profile selection (if multiple profiles are defined)
88 88
                  and the device selection (including the automatic OS detection ) -->
89 89
             <div id="user_page">
90 90
             <?php  echo $divs->div_institution();
91
-                   echo $divs->div_profiles(); ?>
91
+                    echo $divs->div_profiles(); ?>
92 92
                 <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
93 93
                 <?php echo $divs->div_user_welcome() ?>
94 94
                 <div id="profile_redirect"> <!-- this is shown when the entire profile is redirected -->
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                         if ($operatingSystem) {
107 107
                             echo $divs->div_guess_os($operatingSystem);
108 108
                         }
109
-                         echo $divs->div_otherinstallers();
109
+                            echo $divs->div_otherinstallers();
110 110
                     ?>
111 111
                 </div> <!-- id="devices" -->
112 112
                 <input type="hidden" name="profile" id="profile_id"/>
Please login to merge, or discard this 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.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.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/modern/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/modern/Menu.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     }
63 63
     public function printMenu($menu = NULL, $id=NULL) {
64 64
         $menu = $menu ?? $this->menu;
65
-     if(count($menu) == 0) {
66
-          return;
67
-     }
65
+        if(count($menu) == 0) {
66
+            return;
67
+        }
68 68
         $out = "\n<ul>\n";
69 69
         foreach ($menu as $menuItem) {
70 70
             $itemVisibility = $menuItem['visibility'] ?? 'all';
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
81 81
                 $out .= $this->printMenu($submenu,$iD);
82 82
                 $out .= "</li>\n";
83
-             }
83
+                }
84 84
         }
85 85
         $out .= '</ul>';
86 86
         return($out);
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
         $langsArray = [];
21 21
         foreach (CONFIG['LANGUAGES'] as $lang => $value) {
22 22
             if ($lang == $selectedLang) {
23
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")', 'class'=>'selected-lang'];
23
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")', 'class'=>'selected-lang'];
24 24
             } else {
25
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")'];
25
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")'];
26 26
             }
27 27
         }
28 28
         $this->menu = [['id' => 'start',
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                         'link' => CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']],
37 37
                 ]],
38 38
             ['id' => 'lang',
39
-                'text' => _("Language"), 'submenu' => $langsArray,],
39
+                'text' => _("Language"), 'submenu' => $langsArray, ],
40 40
             ['id' => 'help',
41 41
                 'text' => _("Help"), 'submenu' => [
42 42
                     ['text' => _("My institution is not listed"), 'catInfo' => ['idp_not_listed', _("FAQ")], 'visibility' => 'index'],
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
         ];
62 62
         $this->visibility = $visibility;
63 63
     }
64
-    public function printMenu($menu = NULL, $id=NULL) {
64
+    public function printMenu($menu = NULL, $id = NULL) {
65 65
         $menu = $menu ?? $this->menu;
66
-     if(count($menu) == 0) {
66
+     if (count($menu) == 0) {
67 67
           return;
68 68
      }
69 69
         $out = "\n<ul>\n";
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
                 $iD = $menuItem['id'] ?? $id;
74 74
                 $catInfo = NULL;
75 75
                 if (!empty($menuItem['catInfo'])) {
76
-                    $catInfo = 'javascript:infoCAT("'.$iD.'", "'.$menuItem['catInfo'][0].'","'.$menuItem['catInfo'][1].'")';
76
+                    $catInfo = 'javascript:infoCAT("' . $iD . '", "' . $menuItem['catInfo'][0] . '","' . $menuItem['catInfo'][1] . '")';
77 77
                 }
78 78
                 $link = $catInfo ?? $menuItem['link'] ?? '';
79
-                $class = empty($menuItem['class']) ? '' : ' class="'.$menuItem['class'].'"';
80
-                $submenu  = $menuItem['submenu'] ?? [];
79
+                $class = empty($menuItem['class']) ? '' : ' class="' . $menuItem['class'] . '"';
80
+                $submenu = $menuItem['submenu'] ?? [];
81 81
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
82
-                $out .= $this->printMenu($submenu,$iD);
82
+                $out .= $this->printMenu($submenu, $iD);
83 83
                 $out .= "</li>\n";
84 84
              }
85 85
         }
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
         return($out);
88 88
     }
89 89
 
90
-    private function printMenuItem($itemText,$itemLink = '',$itemClass = '') {
90
+    private function printMenuItem($itemText, $itemLink = '', $itemClass = '') {
91 91
         
92
-        return "<li><a href='" . $itemLink . "'".$itemClass.'>' . $itemText . "</a>";
92
+        return "<li><a href='" . $itemLink . "'" . $itemClass . '>' . $itemText . "</a>";
93 93
     }
94 94
     
95 95
 
Please login to merge, or discard this patch.