@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | namespace core; |
34 | 34 | |
35 | -require_once dirname(__DIR__) . "/config/_config.php"; |
|
35 | +require_once dirname(__DIR__)."/config/_config.php"; |
|
36 | 36 | |
37 | 37 | CAT_session_start(); |
38 | 38 | |
@@ -105,19 +105,19 @@ discard block |
||
105 | 105 | parent::__construct(); |
106 | 106 | common\Entity::intoThePotatoes(); |
107 | 107 | |
108 | - $this->CAT_VERSION_STRING = sprintf(_("Unreleased %s Git Revision"),"<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>")."</a>"; |
|
108 | + $this->CAT_VERSION_STRING = sprintf(_("Unreleased %s Git Revision"), "<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>")."</a>"; |
|
109 | 109 | if (CAT::RELEASE_VERSION) { |
110 | - $temp_version = "CAT-" . CAT::VERSION_MAJOR . "." . CAT::VERSION_MINOR; |
|
111 | - $branch = "release_" . CAT::VERSION_MAJOR . "_" . CAT::VERSION_MINOR; |
|
110 | + $temp_version = "CAT-".CAT::VERSION_MAJOR.".".CAT::VERSION_MINOR; |
|
111 | + $branch = "release_".CAT::VERSION_MAJOR."_".CAT::VERSION_MINOR; |
|
112 | 112 | if (CAT::VERSION_PATCH != 0) { |
113 | - $temp_version .= "." . CAT::VERSION_PATCH; |
|
113 | + $temp_version .= ".".CAT::VERSION_PATCH; |
|
114 | 114 | } |
115 | 115 | if (CAT::VERSION_EXTRA != "") { |
116 | - $temp_version .= "-" . CAT::VERSION_EXTRA; |
|
116 | + $temp_version .= "-".CAT::VERSION_EXTRA; |
|
117 | 117 | } |
118 | - $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/" . $branch . "/Changes.md", $temp_version); |
|
118 | + $this->CAT_VERSION_STRING = sprintf(_("Release <a href='%s'>%s</a>"), "https://github.com/GEANT/CAT/tree/".$branch."/Changes.md", $temp_version); |
|
119 | 119 | } |
120 | - $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname'] . " - " . $this->CAT_VERSION_STRING . " © " . CAT::COPYRIGHT_MIN_YEAR . "-" . CAT::COPYRIGHT_MAX_YEAR . " " . CAT::COPYRIGHT_HOLDER . "<br/>on behalf of " . CAT::COPYRIGHT_CONSORTIA . "; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
120 | + $this->CAT_COPYRIGHT = CONFIG['APPEARANCE']['productname']." - ".$this->CAT_VERSION_STRING." © ".CAT::COPYRIGHT_MIN_YEAR."-".CAT::COPYRIGHT_MAX_YEAR." ".CAT::COPYRIGHT_HOLDER."<br/>on behalf of ".CAT::COPYRIGHT_CONSORTIA."; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
121 | 121 | |
122 | 122 | |
123 | 123 | /* Federations are created in DB with bootstrapFederation, and listed via listFederations |
@@ -40,16 +40,16 @@ discard block |
||
40 | 40 | |
41 | 41 | <?php |
42 | 42 | $profile_list_size = 1; |
43 | -require_once dirname(__DIR__) . '/Divs.php'; |
|
43 | +require_once dirname(__DIR__).'/Divs.php'; |
|
44 | 44 | $divs = new Divs($Gui); |
45 | 45 | $visibility = 'index'; |
46 | 46 | $operatingSystem = $Gui->detectOS(); |
47 | 47 | $Gui->loggerInstance->debug(4, $operatingSystem); |
48 | 48 | $uiElements = new web\lib\admin\UIElements(); |
49 | 49 | if ($operatingSystem) { |
50 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
50 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
51 | 51 | } |
52 | -require dirname(__DIR__) . '/user/js/cat_js.php'; |
|
52 | +require dirname(__DIR__).'/user/js/cat_js.php'; |
|
53 | 53 | ?> |
54 | 54 | |
55 | 55 | </script> |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | <?php echo $divs->divPagetitle(_("Diagnostics site"), ""); ?> |
82 | 82 | <div id="user_info" style='padding-top: 10px;'> |
83 | 83 | <div id='diagnostic_choice'> |
84 | - <?php echo _("The diagnostics system will do its best to identify and resolve your problems!") . ' ' . _("Please help the system by answering the questions as precisely as possible.") . "<br/>" . _("Are you a") . ' '; ?> |
|
85 | - <input type='radio' name='diagnostic_usertype' value='0'><?php echo _("end-user") . ' ' . _("or"); ?> |
|
86 | - <input type='radio' name='diagnostic_usertype' value='1' <?php if ($admin == 1) { echo " checked"; } ?> > <?php echo _("eduroam administrator") .'?'; ?> |
|
84 | + <?php echo _("The diagnostics system will do its best to identify and resolve your problems!").' '._("Please help the system by answering the questions as precisely as possible.")."<br/>"._("Are you a").' '; ?> |
|
85 | + <input type='radio' name='diagnostic_usertype' value='0'><?php echo _("end-user").' '._("or"); ?> |
|
86 | + <input type='radio' name='diagnostic_usertype' value='1' <?php if ($admin == 1) { echo " checked"; } ?> > <?php echo _("eduroam administrator").'?'; ?> |
|
87 | 87 | </div> |
88 | 88 | <div id='diagnostic_enduser' style='display: none;'> |
89 | 89 | <h2><?php echo _("Tools for End Users"); ?></h2> |
@@ -93,24 +93,24 @@ discard block |
||
93 | 93 | ?> |
94 | 94 | </p> |
95 | 95 | <?php |
96 | - echo '<div id="before_stage_1"><h3>' . _("The system needs some information on your home institution - issuer of your account") . '</h3>'; |
|
96 | + echo '<div id="before_stage_1"><h3>'._("The system needs some information on your home institution - issuer of your account").'</h3>'; |
|
97 | 97 | echo _("What is the realm part of your user account (the part behind the @ of 'your.username@<b>realm.tld</b>):"); |
98 | 98 | ?> |
99 | 99 | <input type='text' name='user_realm' id='user_realm' value=''> |
100 | 100 | <?php |
101 | - echo '<div id="realm_by_select"><br/>' . _("alternatively") . '<br/>'; |
|
102 | - echo _("You can select your home institution from the following list") . '<br/>'; |
|
101 | + echo '<div id="realm_by_select"><br/>'._("alternatively").'<br/>'; |
|
102 | + echo _("You can select your home institution from the following list").'<br/>'; |
|
103 | 103 | echo '<div id="select_idp_country"><a href="" id="idp_countries_list">'; |
104 | - echo '<span id="realmselect">' . _("Click to select your country/region and organisation") . '</span></a></div>'; |
|
104 | + echo '<span id="realmselect">'._("Click to select your country/region and organisation").'</span></a></div>'; |
|
105 | 105 | ?> |
106 | 106 | <div id="select_idp_area" style="display:none;"> |
107 | 107 | </div> |
108 | 108 | </div> |
109 | 109 | <div id="position_info"> |
110 | 110 | <?php |
111 | - echo '<h3>' . _("Optionally, to improve tests, you can provide information on your current location") . '</h3>'; |
|
111 | + echo '<h3>'._("Optionally, to improve tests, you can provide information on your current location").'</h3>'; |
|
112 | 112 | echo '<div id="select_sp_country"><a href="" id="sp_countries_list">'; |
113 | - echo '<span id="spselect">' . _("Click to select a location in which you have an eduroam problem") . '</span></a></div>'; |
|
113 | + echo '<span id="spselect">'._("Click to select a location in which you have an eduroam problem").'</span></a></div>'; |
|
114 | 114 | ?> |
115 | 115 | <div id="select_sp_area" style="display:none;"> |
116 | 116 | </div> |
@@ -143,9 +143,9 @@ discard block |
||
143 | 143 | echo 'none'; |
144 | 144 | } |
145 | 145 | echo ";'>"; |
146 | - echo '<h3>' . _("Which problem are you reporting?") . '</h3>'; |
|
146 | + echo '<h3>'._("Which problem are you reporting?").'</h3>'; |
|
147 | 147 | echo '<input type="radio" name="problem_type" value="1">'; |
148 | - echo _("SP contacting IdP due to technical problems or abuse") . '<br>'; |
|
148 | + echo _("SP contacting IdP due to technical problems or abuse").'<br>'; |
|
149 | 149 | echo '<input type="radio" name="problem_type" value="2">'; |
150 | 150 | echo _("IdP contacting SP due to technical problems"); |
151 | 151 | echo "<div id='idp_contact_area'></div>"; |
@@ -154,9 +154,9 @@ discard block |
||
154 | 154 | echo "</div>"; |
155 | 155 | } else { |
156 | 156 | echo "0\">"; |
157 | - echo _("This service is for authenticated admins only.") . '<br>'; |
|
158 | - echo "<a href=\"diag.php?admin=1\">" . |
|
159 | - _("eduroam® admin access is needed") . "</a>"; |
|
157 | + echo _("This service is for authenticated admins only.").'<br>'; |
|
158 | + echo "<a href=\"diag.php?admin=1\">". |
|
159 | + _("eduroam® admin access is needed")."</a>"; |
|
160 | 160 | } |
161 | 161 | ?> |
162 | 162 | </div> |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | if (type === 'idp' || type === 'sp') { |
181 | 181 | shtml = '<table><tbody><tr id="row_'+type+'_country"></tr>'; |
182 | 182 | shtml = shtml + '<tr id="row_'+type+'_institution" style="visibility: collapse;">'; |
183 | - shtml = shtml + '<td>' + <?php echo '"' . _("Select institiution:") . '"'; ?> + '</td><td></td></tr>'; |
|
183 | + shtml = shtml + '<td>' + <?php echo '"'._("Select institiution:").'"'; ?> + '</td><td></td></tr>'; |
|
184 | 184 | if (type === 'idp') { |
185 | 185 | shtml = shtml + '<tr id="row_idp_realm"></tr>'; |
186 | 186 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | var options = ''; |
207 | 207 | var selecthead = ''; |
208 | 208 | if (type1 === 'sp' || type1 === 'idp') { |
209 | - selecthead = <?php echo '"<td>' . _("Select country or region:") . ' </td>"'; ?>; |
|
209 | + selecthead = <?php echo '"<td>'._("Select country or region:").' </td>"'; ?>; |
|
210 | 210 | selecthead = selecthead + '<td>\n'; |
211 | 211 | } |
212 | 212 | var select = '<select id="' + type1 + '_country" name="' + type1 + '_country" style="margin-left:0px; width:400px;">'; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | options = ($('#'+type2+'_country').html()); |
215 | 215 | countryAddSelect(selecthead, select + options + '</select>', type1); |
216 | 216 | } else { |
217 | - var comment = <?php echo '"<br><br>' . _("Fetching country/region list") . '..."'; ?>; |
|
217 | + var comment = <?php echo '"<br><br>'._("Fetching country/region list").'..."'; ?>; |
|
218 | 218 | inProgress(1, comment); |
219 | 219 | $.ajax({ |
220 | 220 | url: "findRealm.php", |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | return false; |
249 | 249 | } |
250 | 250 | function testSociopath(realm, answer) { |
251 | - var comment = <?php echo '"' . _("Testing realm") . '..."'; ?>; |
|
251 | + var comment = <?php echo '"'._("Testing realm").'..."'; ?>; |
|
252 | 252 | inProgress(1, comment); |
253 | 253 | if ($('#tested_realm').length == 0) { |
254 | 254 | $('<input>').attr({ |
@@ -273,9 +273,9 @@ discard block |
||
273 | 273 | query = '<input type="hidden" id="tested_realm" value="' + realm + '">'; |
274 | 274 | } |
275 | 275 | query = query + '<div id="current_query">'+data['TEXT']+'</div>'; |
276 | - query = query + '<div><button id="answer_yes">' + <?php echo '"' . _("Yes") . '"'; ?> + '</button>'; |
|
277 | - query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"' . _("No") . '"'; ?> + '</button>'; |
|
278 | - query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"' . _("I don't know") . '"'; ?> + '</button></div>'; |
|
276 | + query = query + '<div><button id="answer_yes">' + <?php echo '"'._("Yes").'"'; ?> + '</button>'; |
|
277 | + query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"'._("No").'"'; ?> + '</button>'; |
|
278 | + query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"'._("I don't know").'"'; ?> + '</button></div>'; |
|
279 | 279 | $('#sociopath_queries').html(query); |
280 | 280 | $('#sociopath_query_area').show(); |
281 | 281 | } |
@@ -306,55 +306,55 @@ discard block |
||
306 | 306 | }); |
307 | 307 | } |
308 | 308 | function finalVerdict(realm, verdict) { |
309 | - var title = <?php echo '"' . _("Diagnostic tests results for selected realm") . '"'; ?>; |
|
309 | + var title = <?php echo '"'._("Diagnostic tests results for selected realm").'"'; ?>; |
|
310 | 310 | result = '<div class="padding">'; |
311 | 311 | result = result + '<div><h3>'; |
312 | - result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm; |
|
312 | + result = result + <?php echo '"'._("The result for tested realm:").' "'; ?> + realm; |
|
313 | 313 | result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">'; |
314 | - result = result + <?php echo '"' . _("The system identified") . '" '; ?> + ' '; |
|
314 | + result = result + <?php echo '"'._("The system identified").'" '; ?> + ' '; |
|
315 | 315 | result = result + Object.keys(verdict).length + ' '; |
316 | - result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>'; |
|
317 | - result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>; |
|
316 | + result = result + <?php echo '"'._("suspected areas which potentially can cause a problem.").'"'; ?> + '<br>'; |
|
317 | + result = result + <?php echo '"'._("Next to the problem description we show a speculated probability of this event.").'"'; ?>; |
|
318 | 318 | result = result + '</div><div style="padding: 5px;"><table>'; |
319 | 319 | k = 1; |
320 | 320 | for (key in verdict) { |
321 | 321 | result = result + '<tr><td>' + k + '.</td>'; |
322 | 322 | k = k + 1; |
323 | 323 | if (key === 'INFRA_DEVICE') { |
324 | - result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>'; |
|
324 | + result = result + '<td>' + <?php echo '"'._("Your device configuration is broken").'"'; ?> + '</td>'; |
|
325 | 325 | } |
326 | 326 | if (key === 'INFRA_SP_80211') { |
327 | - result = result + '<td>' + <?php echo '"' . _("The Wi-Fi network in your vicinity has quality issues") . '"'; ?> + '</td>'; |
|
327 | + result = result + '<td>' + <?php echo '"'._("The Wi-Fi network in your vicinity has quality issues").'"'; ?> + '</td>'; |
|
328 | 328 | } |
329 | 329 | if (key === 'INFRA_SP_LAN') { |
330 | - result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>'; |
|
330 | + result = result + '<td>' + <?php echo '"'._("The network environment around you is broken").'"'; ?> + '</td>'; |
|
331 | 331 | } |
332 | 332 | if (key === 'INFRA_SP_RADIUS') { |
333 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your service provider is the source of the problem") . '"'; ?> + '</td>'; |
|
333 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your service provider is the source of the problem").'"'; ?> + '</td>'; |
|
334 | 334 | } |
335 | 335 | if (key === 'INFRA_IDP_AUTHBACKEND') { |
336 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server in your home institution is currently unable to authenticate you") . '"'; ?> + '</td>'; |
|
336 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server in your home institution is currently unable to authenticate you").'"'; ?> + '</td>'; |
|
337 | 337 | } |
338 | 338 | if (key === 'INFRA_NRO_SP') { |
339 | - result = result + '<td>' + <?php echo '"' . _("The national server in the country/region you are visiting is not functioning correctly") . '"'; ?> + '</td>'; |
|
339 | + result = result + '<td>' + <?php echo '"'._("The national server in the country/region you are visiting is not functioning correctly").'"'; ?> + '</td>'; |
|
340 | 340 | } |
341 | 341 | if (key === 'INFRA_LINK_ETLR_NRO_SP') { |
342 | - result = result + '<td>' + <?php echo '"' . _("The link between the national server of the country/region you are visiting and the top-level server is broken") . '"'; ?> + '</td>'; |
|
342 | + result = result + '<td>' + <?php echo '"'._("The link between the national server of the country/region you are visiting and the top-level server is broken").'"'; ?> + '</td>'; |
|
343 | 343 | } |
344 | 344 | if (key === 'INFRA_LINK_ETLR_NRO_IdP') { |
345 | - result = result + '<td>' + <?php echo '"' . _("The link between the national server of your home country/region and the top-level server is broken") . '"'; ?> + '</td>'; |
|
345 | + result = result + '<td>' + <?php echo '"'._("The link between the national server of your home country/region and the top-level server is broken").'"'; ?> + '</td>'; |
|
346 | 346 | } |
347 | 347 | if (key === 'INFRA_ETLR') { |
348 | - result = result + '<td>' + <?php echo '"' . _("The communication to the top-level server is down") . '"'; ?> + '</td>'; |
|
348 | + result = result + '<td>' + <?php echo '"'._("The communication to the top-level server is down").'"'; ?> + '</td>'; |
|
349 | 349 | } |
350 | 350 | if (key === 'INFRA_NRO_IdP') { |
351 | - result = result + '<td>' + <?php echo '"' . _("The national server in your home country/region is not functioning properly.") . '"'; ?> + '</td>'; |
|
351 | + result = result + '<td>' + <?php echo '"'._("The national server in your home country/region is not functioning properly.").'"'; ?> + '</td>'; |
|
352 | 352 | } |
353 | 353 | if (key === 'INFRA_IdP_RADIUS') { |
354 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your home institution is the source of the problem") . '"'; ?> + '</td>'; |
|
354 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your home institution is the source of the problem").'"'; ?> + '</td>'; |
|
355 | 355 | } |
356 | 356 | if (key === 'INFRA_NONEXISTENTREALM') { |
357 | - result = result + '<td>' + <?php echo '"' . _("This realm does not exist") . '"'; ?> + '</td>'; |
|
357 | + result = result + '<td>' + <?php echo '"'._("This realm does not exist").'"'; ?> + '</td>'; |
|
358 | 358 | } |
359 | 359 | result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>"; |
360 | 360 | } |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | return false; |
467 | 467 | }); |
468 | 468 | $(document).on('change', '#idp_country, #sp_country, #asp_country' , function() { |
469 | - var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
469 | + var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>; |
|
470 | 470 | var id = $(this).attr('id'); |
471 | 471 | var k = id.indexOf('_'); |
472 | 472 | var type = id.substr(0,k); |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | var shtml = ''; |
485 | 485 | var select = ''; |
486 | 486 | if (type !== 'asp') { |
487 | - shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>; |
|
487 | + shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>; |
|
488 | 488 | } |
489 | 489 | select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>'; |
490 | 490 | for (var i in institutions) { |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | $('#start_test_area').hide(); |
525 | 525 | return false; |
526 | 526 | } |
527 | - var comment = <?php echo '"' . _("Fetching realms list") . '..."'; ?>; |
|
527 | + var comment = <?php echo '"'._("Fetching realms list").'..."'; ?>; |
|
528 | 528 | inProgress(1, comment); |
529 | 529 | $.ajax({ |
530 | 530 | url: "findRealm.php", |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | var realms = data.realms; |
537 | 537 | var realmselect = ''; |
538 | 538 | if (realms.length > 1) { |
539 | - realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"'; ?>; |
|
539 | + realmselect = <?php echo '"<td>'._("Check realm(s):").'</td>"'; ?>; |
|
540 | 540 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
541 | 541 | for (var i in realms) { |
542 | 542 | realmselect = realmselect + '<input type="radio" name="realm" '; |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | } |
549 | 549 | realmselect = realmselect + '</span></td>'; |
550 | 550 | } else { |
551 | - realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"'; ?>; |
|
551 | + realmselect = <?php echo '"<td>'._("Realm:").'</td>"'; ?>; |
|
552 | 552 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
553 | 553 | realmselect = realmselect + realms[0] + '</span>'; |
554 | 554 | realmselect = realmselect + '<input type="hidden" name="realm" value="' + realms[0] + '">'; |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | }); |
604 | 604 | t = 1; |
605 | 605 | } |
606 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
606 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
607 | 607 | inProgress(1, comment); |
608 | 608 | /*waiting(comment);*/ |
609 | 609 | $.ajax({ |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | } |
648 | 648 | }); |
649 | 649 | $('#sp_questions > tbody').append('<tr class="error_row"><td>' + |
650 | - <?php echo '"' . _("Realm is not registered with the eduroam database:") . '"'; ?> + |
|
650 | + <?php echo '"'._("Realm is not registered with the eduroam database:").'"'; ?> + |
|
651 | 651 | '</td><td>' + realm + '</td></tr>'); |
652 | 652 | $('#admin_realm').val(''); |
653 | 653 | } |
@@ -671,7 +671,7 @@ discard block |
||
671 | 671 | testSociopath('', answer); |
672 | 672 | }); |
673 | 673 | $('#realmtest').click(function(event){ |
674 | - var comment = <?php echo '"<br><br>' . _("Running realm tests") . '..."'; ?>; |
|
674 | + var comment = <?php echo '"<br><br>'._("Running realm tests").'..."'; ?>; |
|
675 | 675 | inProgress(1, comment); |
676 | 676 | $('#start_test_area').hide(); |
677 | 677 | if ($('#select_sp_area').is(':hidden')) { |
@@ -719,13 +719,13 @@ discard block |
||
719 | 719 | reset_footer(); |
720 | 720 | testSociopath(realm, 0); |
721 | 721 | } else { |
722 | - var title = <?php echo '"' . _("Diagnostics results for selected realms") . '"'; ?>; |
|
723 | - result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem occured") . '"'; ?>; |
|
722 | + var title = <?php echo '"'._("Diagnostics results for selected realms").'"'; ?>; |
|
723 | + result = '<div class="padding"><h3>' + <?php echo '"'._("An unknown problem occured").'"'; ?>; |
|
724 | 724 | result = result + '</h3>' |
725 | 725 | if (r.length == 1) { |
726 | - result = result + <?php echo '"' . _("This test includes checking of the following realm") . '"'; ?>; |
|
726 | + result = result + <?php echo '"'._("This test includes checking of the following realm").'"'; ?>; |
|
727 | 727 | } else { |
728 | - result = result + <?php echo '"' . _("This test includes checking of the following realms") . '"'; ?>; |
|
728 | + result = result + <?php echo '"'._("This test includes checking of the following realms").'"'; ?>; |
|
729 | 729 | } |
730 | 730 | result = result + ': ' |
731 | 731 | for (var i=0; i < r.length; i++) { |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | result = result + r[i]; |
736 | 736 | } |
737 | 737 | result = result + '.<br>'; |
738 | - result = result + <?php echo '"' . _("You should report this to") . '"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
738 | + result = result + <?php echo '"'._("You should report this to").'"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
739 | 739 | result = result + '</div>'; |
740 | 740 | $('#after_stage_1').hide(); |
741 | 741 | $('#before_stage_1').show(); |
@@ -788,7 +788,7 @@ discard block |
||
788 | 788 | }); |
789 | 789 | }); |
790 | 790 | }); |
791 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
791 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
792 | 792 | inProgress(1, comment); |
793 | 793 | $.ajax({ |
794 | 794 | url: "findRealm.php", |
@@ -859,29 +859,29 @@ discard block |
||
859 | 859 | success:function(data) { |
860 | 860 | if (data.status === 1) { |
861 | 861 | var result = ''; |
862 | - var title = <?php echo '"' . _("eduroam admin report submission") . '"'; ?>; |
|
862 | + var title = <?php echo '"'._("eduroam admin report submission").'"'; ?>; |
|
863 | 863 | result = '<div class="padding">'; |
864 | 864 | if (type == 'idp_send') { |
865 | - result = result + '<h3>'+ <?php echo '"' . _("SP contacting IdP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
865 | + result = result + '<h3>'+ <?php echo '"'._("SP contacting IdP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
866 | 866 | result = result + '<table>'; |
867 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
868 | - result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
869 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
870 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
871 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
872 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
867 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
868 | + result = result + '<tr><td>' + <?php echo '"'._("SP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
869 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email(s)").'"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
870 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
871 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
872 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
873 | 873 | } |
874 | 874 | if (type == 'sp_send') { |
875 | - result = result + '<h3>'+ <?php echo '"' . _("IdP contacting SP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
875 | + result = result + '<h3>'+ <?php echo '"'._("IdP contacting SP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
876 | 876 | result = result + '<table>'; |
877 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
878 | - result = result + '<tr><td>' + <?php echo '"' . _("SP's Operator-Name") . '"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
879 | - result = result + '<tr><td>' + <?php echo '"' . _("User's outer ID") . '"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
880 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
881 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
882 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
883 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
884 | - result = result + '<tr><td>' + <?php echo '"' . _("How to contact the user") . '"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
877 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
878 | + result = result + '<tr><td>' + <?php echo '"'._("SP's Operator-Name").'"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
879 | + result = result + '<tr><td>' + <?php echo '"'._("User's outer ID").'"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
880 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
881 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
882 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
883 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
884 | + result = result + '<tr><td>' + <?php echo '"'._("How to contact the user").'"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
885 | 885 | } |
886 | 886 | result = result + '</div>'; |
887 | 887 | showInfo(result, title); |
@@ -898,7 +898,7 @@ discard block |
||
898 | 898 | if ($('#mac').val().length > 0) { |
899 | 899 | if ($('#mac').val().length != 17) { |
900 | 900 | $('#mac').addClass('error_input'); |
901 | - $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"'; ?>); |
|
901 | + $('#mac').attr('title', <?php echo '"'._("MAC address is incomplete").'"'; ?>); |
|
902 | 902 | } else { |
903 | 903 | $('#mac').removeClass('error_input'); |
904 | 904 | $('#mac').attr('title', ''); |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | if ($(this).attr('id') == 'email' && $(this).val().length > 0) { |
908 | 908 | if (!isEmail($(this).val())) { |
909 | 909 | $('#email').addClass('error_input'); |
910 | - $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"'; ?>); |
|
910 | + $('#email').attr('title', <?php echo '"'._("Wrong format of email").'"'; ?>); |
|
911 | 911 | } else { |
912 | 912 | $('#email').removeClass('error_input'); |
913 | 913 | $('#email').attr('title', ''); |
@@ -916,7 +916,7 @@ discard block |
||
916 | 916 | if ($(this).attr('id') == 'outer_id' && $(this).val().length > 0) { |
917 | 917 | if (!isEmail($(this).val(), true)) { |
918 | 918 | $('#outer_id').addClass('error_input'); |
919 | - $('#outer_id').attr('title', <?php echo '"' . _("Wrong format of outer ID") . '"'; ?>); |
|
919 | + $('#outer_id').attr('title', <?php echo '"'._("Wrong format of outer ID").'"'; ?>); |
|
920 | 920 | } else { |
921 | 921 | $('#outer_id').removeClass('error_input'); |
922 | 922 | $('#outer_id').attr('title', ''); |
@@ -925,7 +925,7 @@ discard block |
||
925 | 925 | if ($(this).attr('id') == 'opname' && $('#opname').val().length > 0) { |
926 | 926 | if (!isOperatorName($(this).val())) { |
927 | 927 | $('#opname').addClass('error_input'); |
928 | - $('#opname').attr('title', <?php echo '"' . _("Wrong string given as OperatorName") . '"'; ?>); |
|
928 | + $('#opname').attr('title', <?php echo '"'._("Wrong string given as OperatorName").'"'; ?>); |
|
929 | 929 | $('#spmanually').show(); |
930 | 930 | } else { |
931 | 931 | $('#opname').removeClass('error_input'); |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | $location = $this->Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png"); |
50 | 50 | if ($location !== FALSE) { |
51 | 51 | $retval .= "<div id='cat_logo'> |
52 | - <a href='" . CONFIG_CONFASSISTANT['CONSORTIUM']['homepage'] . "'><img id='logo_img' src='$location' alt='Consortium Logo'/></a> |
|
52 | + <a href='" . CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']."'><img id='logo_img' src='$location' alt='Consortium Logo'/></a> |
|
53 | 53 | <span>Configuration Assistant Tool</span> |
54 | 54 | </div>"; |
55 | 55 | } |
56 | - $retval .= "<div id='motd'>" . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . "</div>"; |
|
56 | + $retval .= "<div id='motd'>".(isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ')."</div>"; |
|
57 | 57 | $loc2 = $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/menu.png"); |
58 | 58 | if ($loc2 !== FALSE) { |
59 | 59 | $retval .= "<img id='hamburger' src='$loc2' alt='Menu'/>"; |
@@ -71,13 +71,13 @@ discard block |
||
71 | 71 | public function divUserWelcome() { |
72 | 72 | $retval = " |
73 | 73 | <div id='user_welcome'> <!-- this information is shown just before the download --> |
74 | - <strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING] . "</strong> |
|
74 | + <strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING]."</strong> |
|
75 | 75 | <p> |
76 | 76 | <span id='download_info'> |
77 | 77 | <!-- the empty href is dynamically exchanged with the actual path by jQuery at runtime --> |
78 | - " . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_DOWNLOAD] . " |
|
78 | + " . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_DOWNLOAD]." |
|
79 | 79 | </span> |
80 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_HEADING] . " |
|
80 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_HEADING]." |
|
81 | 81 | <br/> |
82 | 82 | <br/>"; |
83 | 83 | switch (CONFIG_CONFASSISTANT['CONSORTIUM']['name']) { |
@@ -87,11 +87,11 @@ discard block |
||
87 | 87 | } |
88 | 88 | $retval .= " |
89 | 89 | </p> |
90 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_USAGE] . " |
|
91 | - <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PROBLEMS] . " |
|
90 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_USAGE]." |
|
91 | + <p>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PROBLEMS]." |
|
92 | 92 | </p> |
93 | 93 | <p> |
94 | - <a href='javascript:back_to_downloads()'><strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_BACKTODOWNLOADS] . "</strong></a> |
|
94 | + <a href='javascript:back_to_downloads()'><strong>" . $this->Gui->textTemplates->templates[user\WELCOME_ABOARD_BACKTODOWNLOADS]."</strong></a> |
|
95 | 95 | </p> |
96 | 96 | </div> <!-- id='user_welcomer_page' --> |
97 | 97 | "; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | public function divSilverbullet() { |
102 | 102 | $retval = " |
103 | 103 | <div id='silverbullet'>" |
104 | - . $this->Gui->textTemplates->templates[user\SB_GO_AWAY] . |
|
104 | + . $this->Gui->textTemplates->templates[user\SB_GO_AWAY]. |
|
105 | 105 | "</div> |
106 | 106 | "; |
107 | 107 | return $retval; |
@@ -114,10 +114,10 @@ discard block |
||
114 | 114 | } |
115 | 115 | return " |
116 | 116 | <div id='welcome_top1'> |
117 | - " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_GREET] . " |
|
117 | + " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_GREET]." |
|
118 | 118 | </div> |
119 | 119 | <div id='top_invite'> |
120 | - " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_PURPOSE] . $retval . " |
|
120 | + " . $this->Gui->textTemplates->templates[user\HEADING_TOPLEVEL_PURPOSE].$retval." |
|
121 | 121 | </div>"; |
122 | 122 | } |
123 | 123 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $retval = " |
126 | 126 | <div id='roller'> |
127 | 127 | <div id='slides'> |
128 | - <span id='line1'>" . $this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY] . "</span> |
|
128 | + <span id='line1'>" . $this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY]."</span> |
|
129 | 129 | <span id='line2'></span> |
130 | 130 | <span id='line3'></span> |
131 | 131 | <span id='line4'>"; |
@@ -177,9 +177,9 @@ discard block |
||
177 | 177 | public function divProfiles() { |
178 | 178 | return " |
179 | 179 | <div id='profiles'> <!-- this is the profile selection filled during run time --> |
180 | - <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION] . " |
|
180 | + <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION]." |
|
181 | 181 | </div>" . |
182 | - "<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>" . |
|
182 | + "<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>". |
|
183 | 183 | "</div>"; |
184 | 184 | } |
185 | 185 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | public function divInstitution($selectButton = TRUE) { |
194 | 194 | $retval = "<div id='institution_name'> |
195 | 195 | <span id='inst_name_span'></span> <div id='inst_extra_text'></div><!-- this will be filled with the IdP name -->" . |
196 | - ($selectButton ? "<a id='select_another' class='signin' href=\"\">" . $this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION] . "</a>" : "") . |
|
196 | + ($selectButton ? "<a id='select_another' class='signin' href=\"\">".$this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION]."</a>" : ""). |
|
197 | 197 | "</div>"; |
198 | 198 | $retval .= $this->emptyImage('idp_logo', 'IdP Logo'); |
199 | 199 | return $retval; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | public function divOtherinstallers() { |
208 | 208 | $retval = " |
209 | 209 | <div class='sub_h'> |
210 | - <div id='other_installers'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . " |
|
210 | + <div id='other_installers'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]." |
|
211 | 211 | <table id='device_list' style='padding:0px;'>"; |
212 | 212 | |
213 | 213 | foreach ($this->Gui->listDevices(isset($_REQUEST['hidden']) ? $_REQUEST['hidden'] : 0) as $group => $deviceGroup) { |
@@ -215,18 +215,18 @@ discard block |
||
215 | 215 | $deviceIndex = 0; |
216 | 216 | |
217 | 217 | $imgTag = ""; |
218 | - $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $group . ".png"); |
|
218 | + $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$group.".png"); |
|
219 | 219 | if ($imgLocation !== FALSE) { |
220 | - $imgTag = '<img src="' . $imgLocation . '" alt="' . $group . ' Device" title="' . $group . ' Device">'; |
|
220 | + $imgTag = '<img src="'.$imgLocation.'" alt="'.$group.' Device" title="'.$group.' Device">'; |
|
221 | 221 | } |
222 | - $retval .= '<tbody><tr><td class="vendor" rowspan="' . $groupIndex . '">' . $imgTag . '</td>'; |
|
222 | + $retval .= '<tbody><tr><td class="vendor" rowspan="'.$groupIndex.'">'.$imgTag.'</td>'; |
|
223 | 223 | foreach ($deviceGroup as $d => $D) { |
224 | 224 | if ($deviceIndex) { |
225 | 225 | $retval .= '<tr>'; |
226 | 226 | } |
227 | - $retval .= "<td><button id='" . $d . "'>" . $D['display'] . "</button>" |
|
228 | - . "<div class='device_info' id='info_" . $d . "'></div></td>" |
|
229 | - . "<td><button class='more_info_b' id='info_b_" . $d . "'>i</button></td></tr>\n"; |
|
227 | + $retval .= "<td><button id='".$d."'>".$D['display']."</button>" |
|
228 | + . "<div class='device_info' id='info_".$d."'></div></td>" |
|
229 | + . "<td><button class='more_info_b' id='info_b_".$d."'>i</button></td></tr>\n"; |
|
230 | 230 | $deviceIndex++; |
231 | 231 | } |
232 | 232 | $retval .= "</tbody>"; |
@@ -240,15 +240,15 @@ discard block |
||
240 | 240 | } |
241 | 241 | |
242 | 242 | public function divGuessOs($operatingSystem) { |
243 | - $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $operatingSystem['group'] . ".png"); |
|
243 | + $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$operatingSystem['group'].".png"); |
|
244 | 244 | $vendorstyle = ""; |
245 | 245 | if ($vendorlogo !== FALSE) { |
246 | - $vendorstyle = "style='background-image:url(\"" . $vendorlogo . "\")'"; |
|
246 | + $vendorstyle = "style='background-image:url(\"".$vendorlogo."\")'"; |
|
247 | 247 | } |
248 | 248 | $deleteIcon = $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/delete_32.png"); |
249 | 249 | $deleteImg = ""; |
250 | 250 | if ($deleteIcon !== FALSE) { |
251 | - $deleteImg = "<img id='cross_icon_" . $operatingSystem['device'] . "' src='$deleteIcon' >"; |
|
251 | + $deleteImg = "<img id='cross_icon_".$operatingSystem['device']."' src='$deleteIcon' >"; |
|
252 | 252 | } |
253 | 253 | return " |
254 | 254 | <div class='sub_h' id='guess_os'> |
@@ -256,23 +256,23 @@ discard block |
||
256 | 256 | <table id='browser'> |
257 | 257 | <tr> |
258 | 258 | <td> |
259 | - <button class='large_button guess_os' $vendorstyle id='g_" . $operatingSystem['device'] . "'> |
|
259 | + <button class='large_button guess_os' $vendorstyle id='g_".$operatingSystem['device']."'> |
|
260 | 260 | $deleteImg |
261 | - <div class='download_button_text_1' id='download_button_header_" . $operatingSystem['device'] . "'> " . $this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE] . " |
|
261 | + <div class='download_button_text_1' id='download_button_header_".$operatingSystem['device']."'> ".$this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE]." |
|
262 | 262 | </div> |
263 | 263 | <div class='download_button_text'>" . |
264 | - $operatingSystem['display'] . " |
|
264 | + $operatingSystem['display']." |
|
265 | 265 | </div> |
266 | 266 | </button> |
267 | - <div class='device_info' id='info_g_" . $operatingSystem['device'] . "'></div> |
|
267 | + <div class='device_info' id='info_g_" . $operatingSystem['device']."'></div> |
|
268 | 268 | </td> |
269 | 269 | <td style='vertical-align:top'> |
270 | - <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device'] . "'>i</button> |
|
270 | + <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device']."'>i</button> |
|
271 | 271 | </td> |
272 | 272 | </tr> |
273 | 273 | </table> <!-- id='browser' --> |
274 | 274 | <div class='sub_h'> |
275 | - <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . "</a> |
|
275 | + <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."</a> |
|
276 | 276 | </div> |
277 | 277 | </div> <!-- id='guess_os' -->"; |
278 | 278 | } |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | </td>"; |
289 | 289 | |
290 | 290 | if (!empty(CONFIG['APPEARANCE']['privacy_notice_url'])) { |
291 | - $retval .= "<td><a href='" . CONFIG['APPEARANCE']['privacy_notice_url'] . "'>" . sprintf(_("%s Privacy Notice"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</a></td>"; |
|
291 | + $retval .= "<td><a href='".CONFIG['APPEARANCE']['privacy_notice_url']."'>".sprintf(_("%s Privacy Notice"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</a></td>"; |
|
292 | 292 | } |
293 | 293 | $retval .= "<td>"; |
294 | 294 | if (CONFIG_CONFASSISTANT['CONSORTIUM']['name'] == "eduroam" && isset(CONFIG_CONFASSISTANT['CONSORTIUM']['deployment-voodoo']) && CONFIG_CONFASSISTANT['CONSORTIUM']['deployment-voodoo'] == "Operations Team") { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | <div id="user_page" style="display:block"> |
36 | 36 | <?php echo $divs->divPagetitle("eduroam CAT Copyright and Licensing", ""); ?> |
37 | 37 | <div style="padding:20px"> |
38 | - <?php require dirname(dirname(__DIR__)) . "/copyright.inc.php"; ?> |
|
38 | + <?php require dirname(dirname(__DIR__))."/copyright.inc.php"; ?> |
|
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 | </div> |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | $operatingSystem = $Gui->detectOS(); |
44 | 44 | $Gui->loggerInstance->debug(4, $operatingSystem); |
45 | 45 | if ($operatingSystem) { |
46 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
46 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
47 | 47 | } |
48 | 48 | |
49 | -print 'downloadMessage = "' . $Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
49 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
50 | 50 | //TODO modify this based on OS detection |
51 | 51 | $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ""; |
52 | 52 | if (preg_match('/Android/', $userAgent)) { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | <?php echo $divs->divHeading($visibility); ?> |
76 | 76 | <div id="main_page"> |
77 | 77 | <div id="loading_ico"> |
78 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
78 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
79 | 79 | </div> |
80 | 80 | <div id="info_overlay"> <!-- device info --> |
81 | 81 | <div id="info_window"></div> |
@@ -91,7 +91,7 @@ |
||
91 | 91 | <?php if (empty($_REQUEST['idp'])) { ?> |
92 | 92 | <div id="front_page"> |
93 | 93 | <?php |
94 | - echo $divs->divTopWelcome(); |
|
94 | + echo $divs->divTopWelcome(); |
|
95 | 95 | // echo $divs->div_roller(); |
96 | 96 | // echo $divs->div_main_button(); ?> |
97 | 97 | </div> <!-- id="front_page" --> |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | ?> |
29 | 29 | |
30 | 30 | <!-- JQuery --> |
31 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js") ?>"></script> |
|
32 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
33 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js") ?>"></script> |
|
31 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js") ?>"></script> |
|
32 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js") ?>"></script> |
|
33 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js") ?>"></script> |
|
34 | 34 | <!-- JQuery --> |
35 | 35 | |
36 | 36 | <script type="text/javascript"> |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | $operatingSystem = $Gui->detectOS(); |
45 | 45 | $Gui->loggerInstance->debug(4, $operatingSystem); |
46 | 46 | if ($operatingSystem) { |
47 | - print "recognisedOS = '" . $operatingSystem['device'] . "';\n"; |
|
47 | + print "recognisedOS = '".$operatingSystem['device']."';\n"; |
|
48 | 48 | } |
49 | 49 | |
50 | -print 'downloadMessage = "' . $Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
50 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
51 | 51 | //TODO modify this based on OS detection |
52 | 52 | if (preg_match('/Android/', $_SERVER['HTTP_USER_AGENT'])) { |
53 | 53 | $profile_list_size = 1; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | include("user/js/cat_js.php"); |
59 | 59 | ?> |
60 | 60 | var loading_ico = new Image(); |
61 | - loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>"; |
|
61 | + loading_ico.src = "<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>"; |
|
62 | 62 | </script> |
63 | 63 | <?php $Gui->langObject->setTextDomain("web_user"); ?> |
64 | 64 | <!-- DiscoJuice --> |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | front_page = 0; |
68 | 68 | var lang = "<?php echo($Gui->langObject->getLang()) ?>"; |
69 | 69 | </script> |
70 | -<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","discojuice/css/discojuice.css")?>" /> |
|
70 | +<link rel="stylesheet" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "discojuice/css/discojuice.css")?>" /> |
|
71 | 71 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
72 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
72 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
73 | 73 | </head> |
74 | 74 | <body> |
75 | 75 | <div id="wrap"> |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | <?php echo $divs->divHeading($visibility); ?> |
78 | 78 | <div id="main_page"> |
79 | 79 | <div id="loading_ico"> |
80 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
80 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Authenticating ..."/> |
|
81 | 81 | </div> |
82 | 82 | <div id="info_overlay"> <!-- device info --> |
83 | 83 | <div id="info_window"></div> |
84 | - <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
84 | + <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
85 | 85 | </div> |
86 | 86 | <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu --> |
87 | - <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
87 | + <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
88 | 88 | <div id="main_menu_content"></div> |
89 | 89 | </div> |
90 | 90 | <div id="main_body"> |