Passed
Push — master ( 9a1f50...27884e )
by Tomasz
04:03
created
web/skins/eduroam2016/user/js/cat_js.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -206,13 +206,13 @@  discard block
 block discarded – undo
206 206
        if(j.local_url !== undefined && j.local_url) 
207 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
 
@@ -476,13 +476,13 @@  discard block
 block discarded – undo
476 476
    "overlay":true,"cookie":true,"type":false,
477 477
    "country":true,"location":true,
478 478
    "title":"<?php escaped_echo($cat->nomenclature_inst) ?>",
479
-   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>",
480
-   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>",
481
-   "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'])); ?>",
479
+   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>",
480
+   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>",
481
+   "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'])); ?>",
482 482
    "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>",
483 483
    "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>",
484 484
    "textAllCountries": "<?php escaped_echo(_("all countries")) ?>",
485
-   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>",
485
+   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>",
486 486
    "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>",
487 487
    "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>",
488 488
    "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>",
Please login to merge, or discard this patch.