@@ -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({ |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | query = '<input type="hidden" id="tested_realm" value="' + realm + '">'; |
273 | 273 | } |
274 | 274 | query = query + '<div id="current_query">'+data['TEXT']+'</div>'; |
275 | - query = query + '<div><button id="answer_yes">' + <?php echo '"' . _("Yes") . '"'; ?> + '</button>'; |
|
276 | - query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"' . _("No") . '"'; ?> + '</button>'; |
|
277 | - query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"' . _("I don't know") . '"'; ?> + '</button></div>'; |
|
275 | + query = query + '<div><button id="answer_yes">' + <?php echo '"'._("Yes").'"'; ?> + '</button>'; |
|
276 | + query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"'._("No").'"'; ?> + '</button>'; |
|
277 | + query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"'._("I don't know").'"'; ?> + '</button></div>'; |
|
278 | 278 | $('#sociopath_queries').html(query); |
279 | 279 | $('#sociopath_query_area').show(); |
280 | 280 | } |
@@ -305,55 +305,55 @@ discard block |
||
305 | 305 | }); |
306 | 306 | } |
307 | 307 | function finalVerdict(realm, verdict) { |
308 | - var title = <?php echo '"' . _("Diagnostic tests results for selected realm") . '"'; ?>; |
|
308 | + var title = <?php echo '"'._("Diagnostic tests results for selected realm").'"'; ?>; |
|
309 | 309 | result = '<div class="padding">'; |
310 | 310 | result = result + '<div><h3>'; |
311 | - result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm; |
|
311 | + result = result + <?php echo '"'._("The result for tested realm:").' "'; ?> + realm; |
|
312 | 312 | result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">'; |
313 | - result = result + <?php echo '"' . _("The system identified") . '" '; ?> + ' '; |
|
313 | + result = result + <?php echo '"'._("The system identified").'" '; ?> + ' '; |
|
314 | 314 | result = result + Object.keys(verdict).length + ' '; |
315 | - result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>'; |
|
316 | - result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>; |
|
315 | + result = result + <?php echo '"'._("suspected areas which potentially can cause a problem.").'"'; ?> + '<br>'; |
|
316 | + result = result + <?php echo '"'._("Next to the problem description we show a speculated probability of this event.").'"'; ?>; |
|
317 | 317 | result = result + '</div><div style="padding: 5px;"><table>'; |
318 | 318 | k = 1; |
319 | 319 | for (key in verdict) { |
320 | 320 | result = result + '<tr><td>' + k + '.</td>'; |
321 | 321 | k = k + 1; |
322 | 322 | if (key === 'INFRA_DEVICE') { |
323 | - result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>'; |
|
323 | + result = result + '<td>' + <?php echo '"'._("Your device configuration is broken").'"'; ?> + '</td>'; |
|
324 | 324 | } |
325 | 325 | if (key === 'INFRA_SP_80211') { |
326 | - result = result + '<td>' + <?php echo '"' . _("The Wi-Fi network in your vicinity has quality issues") . '"'; ?> + '</td>'; |
|
326 | + result = result + '<td>' + <?php echo '"'._("The Wi-Fi network in your vicinity has quality issues").'"'; ?> + '</td>'; |
|
327 | 327 | } |
328 | 328 | if (key === 'INFRA_SP_LAN') { |
329 | - result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>'; |
|
329 | + result = result + '<td>' + <?php echo '"'._("The network environment around you is broken").'"'; ?> + '</td>'; |
|
330 | 330 | } |
331 | 331 | if (key === 'INFRA_SP_RADIUS') { |
332 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your service provider is the source of the problem") . '"'; ?> + '</td>'; |
|
332 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your service provider is the source of the problem").'"'; ?> + '</td>'; |
|
333 | 333 | } |
334 | 334 | if (key === 'INFRA_IDP_AUTHBACKEND') { |
335 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server in your home institution is currently unable to authenticate you") . '"'; ?> + '</td>'; |
|
335 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server in your home institution is currently unable to authenticate you").'"'; ?> + '</td>'; |
|
336 | 336 | } |
337 | 337 | if (key === 'INFRA_NRO_SP') { |
338 | - result = result + '<td>' + <?php echo '"' . _("The national server in the country/region you are visiting is not functioning correctly") . '"'; ?> + '</td>'; |
|
338 | + result = result + '<td>' + <?php echo '"'._("The national server in the country/region you are visiting is not functioning correctly").'"'; ?> + '</td>'; |
|
339 | 339 | } |
340 | 340 | if (key === 'INFRA_LINK_ETLR_NRO_SP') { |
341 | - 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>'; |
|
341 | + 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 | 342 | } |
343 | 343 | if (key === 'INFRA_LINK_ETLR_NRO_IdP') { |
344 | - result = result + '<td>' + <?php echo '"' . _("The link between the national server of your home country/region and the top-level server is broken") . '"'; ?> + '</td>'; |
|
344 | + 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 | 345 | } |
346 | 346 | if (key === 'INFRA_ETLR') { |
347 | - result = result + '<td>' + <?php echo '"' . _("The communication to the top-level server is down") . '"'; ?> + '</td>'; |
|
347 | + result = result + '<td>' + <?php echo '"'._("The communication to the top-level server is down").'"'; ?> + '</td>'; |
|
348 | 348 | } |
349 | 349 | if (key === 'INFRA_NRO_IdP') { |
350 | - result = result + '<td>' + <?php echo '"' . _("The national server in your home country/region is not functioning properly.") . '"'; ?> + '</td>'; |
|
350 | + result = result + '<td>' + <?php echo '"'._("The national server in your home country/region is not functioning properly.").'"'; ?> + '</td>'; |
|
351 | 351 | } |
352 | 352 | if (key === 'INFRA_IdP_RADIUS') { |
353 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your home institution is the source of the problem") . '"'; ?> + '</td>'; |
|
353 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your home institution is the source of the problem").'"'; ?> + '</td>'; |
|
354 | 354 | } |
355 | 355 | if (key === 'INFRA_NONEXISTENTREALM') { |
356 | - result = result + '<td>' + <?php echo '"' . _("This realm does not exist") . '"'; ?> + '</td>'; |
|
356 | + result = result + '<td>' + <?php echo '"'._("This realm does not exist").'"'; ?> + '</td>'; |
|
357 | 357 | } |
358 | 358 | result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>"; |
359 | 359 | } |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | return false; |
466 | 466 | }); |
467 | 467 | $(document).on('change', '#idp_country' , function() { |
468 | - var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
468 | + var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>; |
|
469 | 469 | var id = $(this).attr('id'); |
470 | 470 | var k = id.indexOf('_'); |
471 | 471 | var type = id.substr(0,k); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | var shtml = ''; |
484 | 484 | var select = ''; |
485 | 485 | if (type !== 'asp') { |
486 | - shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>; |
|
486 | + shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>; |
|
487 | 487 | } |
488 | 488 | select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>'; |
489 | 489 | for (var i in institutions) { |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | } else { |
505 | 505 | if (data.status === 0) { |
506 | 506 | inProgress(0); |
507 | - var msg = <?php echo '"' . _("The database does not contain the information needed to help you in realm selection for this country. You have to provide realm you are interested in.") . '"'; ?>; |
|
507 | + var msg = <?php echo '"'._("The database does not contain the information needed to help you in realm selection for this country. You have to provide realm you are interested in.").'"'; ?>; |
|
508 | 508 | alert(msg); |
509 | 509 | $('#select_idp_country').show(); |
510 | 510 | $('#select_idp_area').hide(); |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | }, |
514 | 514 | error:function() { |
515 | 515 | inProgress(0); |
516 | - var msg = <?php echo '"' . _("Can not search database. You have to provide realm you are interested in.") . '"'; ?>; |
|
516 | + var msg = <?php echo '"'._("Can not search database. You have to provide realm you are interested in.").'"'; ?>; |
|
517 | 517 | alert(msg); |
518 | 518 | $('#select_idp_country').show(); |
519 | 519 | $('#select_idp_area').hide(); |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | return false; |
529 | 529 | }); |
530 | 530 | $(document).on('change', '#sp_country, #asp_country' , function() { |
531 | - var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
531 | + var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>; |
|
532 | 532 | var id = $(this).attr('id'); |
533 | 533 | var k = id.indexOf('_'); |
534 | 534 | var type = id.substr(0,k); |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | var shtml = ''; |
547 | 547 | var select = ''; |
548 | 548 | if (type !== 'asp') { |
549 | - shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>; |
|
549 | + shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>; |
|
550 | 550 | } |
551 | 551 | select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>'; |
552 | 552 | for (var i in hotspots) { |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | inProgress(0); |
570 | 570 | var select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value="">'; |
571 | 571 | var shtml = '<td></td><td>'; |
572 | - select = select + <?php echo '"' . _("Other location") . '"'; ?> + '</option></select></td>'; |
|
572 | + select = select + <?php echo '"'._("Other location").'"'; ?> + '</option></select></td>'; |
|
573 | 573 | if (type !== 'asp') { |
574 | 574 | $('#row_' + type + '_institution').html(''); |
575 | 575 | $('#row_' + type + '_institution').append(shtml + select); |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | $('#start_test_area').hide(); |
604 | 604 | return false; |
605 | 605 | } |
606 | - var comment = <?php echo '"' . _("Fetching realms list") . '..."'; ?>; |
|
606 | + var comment = <?php echo '"'._("Fetching realms list").'..."'; ?>; |
|
607 | 607 | inProgress(1, comment); |
608 | 608 | $.ajax({ |
609 | 609 | url: "findRealm.php", |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | var realms = data.realms; |
616 | 616 | var realmselect = ''; |
617 | 617 | if (realms.length > 1) { |
618 | - realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"'; ?>; |
|
618 | + realmselect = <?php echo '"<td>'._("Check realm(s):").'</td>"'; ?>; |
|
619 | 619 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
620 | 620 | for (var i in realms) { |
621 | 621 | realmselect = realmselect + '<input type="radio" name="realm" '; |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | } |
628 | 628 | realmselect = realmselect + '</span></td>'; |
629 | 629 | } else { |
630 | - realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"'; ?>; |
|
630 | + realmselect = <?php echo '"<td>'._("Realm:").'</td>"'; ?>; |
|
631 | 631 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
632 | 632 | realmselect = realmselect + realms[0] + '</span>'; |
633 | 633 | realmselect = realmselect + '<input type="hidden" name="realm" value="' + realms[0] + '">'; |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | }); |
683 | 683 | t = 1; |
684 | 684 | } |
685 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
685 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
686 | 686 | inProgress(1, comment); |
687 | 687 | /*waiting(comment);*/ |
688 | 688 | $.ajax({ |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | } |
727 | 727 | }); |
728 | 728 | $('#sp_questions > tbody').append('<tr class="error_row"><td>' + |
729 | - <?php echo '"' . _("Realm is not registered with the eduroam database:") . '"'; ?> + |
|
729 | + <?php echo '"'._("Realm is not registered with the eduroam database:").'"'; ?> + |
|
730 | 730 | '</td><td>' + realm + '</td></tr>'); |
731 | 731 | $('#admin_realm').val(''); |
732 | 732 | } |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | testSociopath('', answer); |
751 | 751 | }); |
752 | 752 | $('#realmtest').click(function(event){ |
753 | - var comment = <?php echo '"<br><br>' . _("Running realm tests") . '..."'; ?>; |
|
753 | + var comment = <?php echo '"<br><br>'._("Running realm tests").'..."'; ?>; |
|
754 | 754 | inProgress(1, comment); |
755 | 755 | $('#start_test_area').hide(); |
756 | 756 | if ($('#select_sp_area').is(':hidden')) { |
@@ -798,13 +798,13 @@ discard block |
||
798 | 798 | reset_footer(); |
799 | 799 | testSociopath(realm, 0); |
800 | 800 | } else { |
801 | - var title = <?php echo '"' . _("Diagnostics results for selected realms") . '"'; ?>; |
|
802 | - result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem occured") . '"'; ?>; |
|
801 | + var title = <?php echo '"'._("Diagnostics results for selected realms").'"'; ?>; |
|
802 | + result = '<div class="padding"><h3>' + <?php echo '"'._("An unknown problem occured").'"'; ?>; |
|
803 | 803 | result = result + '</h3>' |
804 | 804 | if (r.length == 1) { |
805 | - result = result + <?php echo '"' . _("This test includes checking of the following realm") . '"'; ?>; |
|
805 | + result = result + <?php echo '"'._("This test includes checking of the following realm").'"'; ?>; |
|
806 | 806 | } else { |
807 | - result = result + <?php echo '"' . _("This test includes checking of the following realms") . '"'; ?>; |
|
807 | + result = result + <?php echo '"'._("This test includes checking of the following realms").'"'; ?>; |
|
808 | 808 | } |
809 | 809 | result = result + ': ' |
810 | 810 | for (var i=0; i < r.length; i++) { |
@@ -814,7 +814,7 @@ discard block |
||
814 | 814 | result = result + r[i]; |
815 | 815 | } |
816 | 816 | result = result + '.<br>'; |
817 | - result = result + <?php echo '"' . _("You should report this to") . '"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
817 | + result = result + <?php echo '"'._("You should report this to").'"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
818 | 818 | result = result + '</div>'; |
819 | 819 | $('#after_stage_1').hide(); |
820 | 820 | $('#before_stage_1').show(); |
@@ -874,7 +874,7 @@ discard block |
||
874 | 874 | }); |
875 | 875 | }); |
876 | 876 | }); |
877 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
877 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
878 | 878 | inProgress(1, comment); |
879 | 879 | $.ajax({ |
880 | 880 | url: "findRealm.php", |
@@ -945,29 +945,29 @@ discard block |
||
945 | 945 | success:function(data) { |
946 | 946 | if (data.status === 1) { |
947 | 947 | var result = ''; |
948 | - var title = <?php echo '"' . _("eduroam admin report submission") . '"'; ?>; |
|
948 | + var title = <?php echo '"'._("eduroam admin report submission").'"'; ?>; |
|
949 | 949 | result = '<div class="padding">'; |
950 | 950 | if (type == 'idp_send') { |
951 | - result = result + '<h3>'+ <?php echo '"' . _("SP contacting IdP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
951 | + result = result + '<h3>'+ <?php echo '"'._("SP contacting IdP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
952 | 952 | result = result + '<table>'; |
953 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
954 | - result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
955 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
956 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
957 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
958 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
953 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
954 | + result = result + '<tr><td>' + <?php echo '"'._("SP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
955 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email(s)").'"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
956 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
957 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
958 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
959 | 959 | } |
960 | 960 | if (type == 'sp_send') { |
961 | - result = result + '<h3>'+ <?php echo '"' . _("IdP contacting SP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
961 | + result = result + '<h3>'+ <?php echo '"'._("IdP contacting SP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
962 | 962 | result = result + '<table>'; |
963 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
964 | - result = result + '<tr><td>' + <?php echo '"' . _("SP's Operator-Name") . '"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
965 | - result = result + '<tr><td>' + <?php echo '"' . _("User's outer ID") . '"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
966 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
967 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
968 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
969 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
970 | - result = result + '<tr><td>' + <?php echo '"' . _("How to contact the user") . '"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
963 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
964 | + result = result + '<tr><td>' + <?php echo '"'._("SP's Operator-Name").'"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
965 | + result = result + '<tr><td>' + <?php echo '"'._("User's outer ID").'"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
966 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
967 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
968 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
969 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
970 | + result = result + '<tr><td>' + <?php echo '"'._("How to contact the user").'"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
971 | 971 | } |
972 | 972 | result = result + '</div>'; |
973 | 973 | showInfo(result, title); |
@@ -984,7 +984,7 @@ discard block |
||
984 | 984 | if ($('#mac').val().length > 0) { |
985 | 985 | if ($('#mac').val().length != 17) { |
986 | 986 | $('#mac').addClass('error_input'); |
987 | - $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"'; ?>); |
|
987 | + $('#mac').attr('title', <?php echo '"'._("MAC address is incomplete").'"'; ?>); |
|
988 | 988 | } else { |
989 | 989 | $('#mac').removeClass('error_input'); |
990 | 990 | $('#mac').attr('title', ''); |
@@ -993,7 +993,7 @@ discard block |
||
993 | 993 | if ($(this).attr('id') == 'email' && $(this).val().length > 0) { |
994 | 994 | if (!isEmail($(this).val())) { |
995 | 995 | $('#email').addClass('error_input'); |
996 | - $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"'; ?>); |
|
996 | + $('#email').attr('title', <?php echo '"'._("Wrong format of email").'"'; ?>); |
|
997 | 997 | } else { |
998 | 998 | $('#email').removeClass('error_input'); |
999 | 999 | $('#email').attr('title', ''); |
@@ -1002,7 +1002,7 @@ discard block |
||
1002 | 1002 | if ($(this).attr('id') == 'outer_id' && $(this).val().length > 0) { |
1003 | 1003 | if (!isEmail($(this).val(), true)) { |
1004 | 1004 | $('#outer_id').addClass('error_input'); |
1005 | - $('#outer_id').attr('title', <?php echo '"' . _("Wrong format of outer ID") . '"'; ?>); |
|
1005 | + $('#outer_id').attr('title', <?php echo '"'._("Wrong format of outer ID").'"'; ?>); |
|
1006 | 1006 | } else { |
1007 | 1007 | $('#outer_id').removeClass('error_input'); |
1008 | 1008 | $('#outer_id').attr('title', ''); |
@@ -1011,7 +1011,7 @@ discard block |
||
1011 | 1011 | if ($(this).attr('id') == 'opname' && $('#opname').val().length > 0) { |
1012 | 1012 | if (!isOperatorName($(this).val())) { |
1013 | 1013 | $('#opname').addClass('error_input'); |
1014 | - $('#opname').attr('title', <?php echo '"' . _("Wrong string given as OperatorName") . '"'; ?>); |
|
1014 | + $('#opname').attr('title', <?php echo '"'._("Wrong string given as OperatorName").'"'; ?>); |
|
1015 | 1015 | $('#spmanually').show(); |
1016 | 1016 | } else { |
1017 | 1017 | $('#opname').removeClass('error_input'); |