@@ -79,7 +79,7 @@ |
||
79 | 79 | $class = empty($menuItem['class']) ? '' : ' class="' . $menuItem['class'] . '"'; |
80 | 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 | } |
@@ -89,18 +89,18 @@ discard block |
||
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 |
||
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> |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | if(j.local_phone !== undefined && j.local_phone) |
213 | 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 |
||
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) |
@@ -252,7 +252,7 @@ discard block |
||
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))?>"; |
|
255 | + t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>"; |
|
256 | 256 | continue_text = "<?php escaped_echo(_("Close")); ?>"; |
257 | 257 | } else { |
258 | 258 | t = i_div.html(); |
@@ -322,7 +322,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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"))?>", |
@@ -187,7 +187,7 @@ |
||
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 | 192 | color: <?php echo $colour2; ?>; |
193 | 193 | } |