@@ -19,10 +19,10 @@ |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
23 | 23 | $realm = filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING); |
24 | -$visited = filter_input(INPUT_GET,'visited', FILTER_SANITIZE_STRING); |
|
25 | -$nro = filter_input(INPUT_GET,'nro', FILTER_SANITIZE_STRING); |
|
24 | +$visited = filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING); |
|
25 | +$nro = filter_input(INPUT_GET, 'nro', FILTER_SANITIZE_STRING); |
|
26 | 26 | CAT_session_start(); |
27 | 27 | $languageObject = new core\common\Language(); |
28 | 28 | $languageObject->setTextDomain("diagonstics"); |
@@ -42,8 +42,8 @@ |
||
42 | 42 | $auth->authenticate(); |
43 | 43 | } |
44 | 44 | if (isset($_SESSION['admin_diag_auth'])) { |
45 | - $admin = 1; |
|
46 | - unset($_SESSION['admin_diag_auth']); |
|
45 | + $admin = 1; |
|
46 | + unset($_SESSION['admin_diag_auth']); |
|
47 | 47 | } |
48 | 48 | $Gui = new \web\lib\user\Gui(); |
49 | 49 | $skinObject = new \web\lib\user\Skinjob($_REQUEST['skin'] ?? $_SESSION['skin'] ?? $fedskin[0] ?? CONFIG['APPEARANCE']['skins'][0]); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | $admin = filter_input(INPUT_GET, 'admin', FILTER_VALIDATE_INT); |
24 | 24 | $auth = new \web\lib\admin\Authentication(); |
25 | 25 | $isauth = 0; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | unset($q_el[$idx]); |
34 | 34 | $q_r = preg_replace("/\?.*/", "", $_SERVER['REQUEST_URI']); |
35 | 35 | if (count($q_el)) { |
36 | - $q_r = $q_r . '?' . implode('&', $q_el); |
|
36 | + $q_r = $q_r.'?'.implode('&', $q_el); |
|
37 | 37 | } |
38 | 38 | $_SERVER['REQUEST_URI'] = $q_r; |
39 | 39 | } |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | $auth->authenticate(); |
43 | 43 | } |
44 | 44 | if (isset($_SESSION['admin_diag_auth'])) { |
45 | - $admin = 1; |
|
45 | + $admin = 1; |
|
46 | 46 | unset($_SESSION['admin_diag_auth']); |
47 | 47 | } |
48 | 48 | $Gui = new \web\lib\user\Gui(); |
49 | 49 | $skinObject = new \web\lib\user\Skinjob($_REQUEST['skin'] ?? $_SESSION['skin'] ?? $fedskin[0] ?? CONFIG['APPEARANCE']['skins'][0]); |
50 | -require "../skins/" . $skinObject->skin . "/diag/diag.php"; |
|
50 | +require "../skins/".$skinObject->skin."/diag/diag.php"; |
|
51 | 51 | |
52 | 52 |
@@ -156,7 +156,7 @@ |
||
156 | 156 | echo "0\">"; |
157 | 157 | echo _("This service is for authenticated admins only.") . '<br>'; |
158 | 158 | echo "<a href=\"diag.php?admin=1\">" . |
159 | - _("eduroam® admin access is needed") . "</a>"; |
|
159 | + _("eduroam® admin access is needed") . "</a>"; |
|
160 | 160 | } |
161 | 161 | ?> |
162 | 162 | </div> |
@@ -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> |
@@ -78,12 +78,12 @@ discard block |
||
78 | 78 | </div> |
79 | 79 | <div id="main_body"> |
80 | 80 | <div id="user_page"> |
81 | - <?php echo $divs->divPagetitle(_("Diagnostics site") . " (<span style='color:red'>beta</span>)", ""); ?> |
|
81 | + <?php echo $divs->divPagetitle(_("Diagnostics site")." (<span style='color:red'>beta</span>)", ""); ?> |
|
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", |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | return false; |
252 | 252 | } |
253 | 253 | function testSociopath(realm, answer) { |
254 | - var comment = <?php echo '"' . _("Testing realm") . '..."'; ?>; |
|
254 | + var comment = <?php echo '"'._("Testing realm").'..."'; ?>; |
|
255 | 255 | inProgress(1, comment); |
256 | 256 | if ($('#tested_realm').length == 0) { |
257 | 257 | $('<input>').attr({ |
@@ -275,9 +275,9 @@ discard block |
||
275 | 275 | query = '<input type="hidden" id="tested_realm" value="' + realm + '">'; |
276 | 276 | } |
277 | 277 | query = query + '<div id="current_query">'+data['TEXT']+'</div>'; |
278 | - query = query + '<div><button id="answer_yes">' + <?php echo '"' . _("Yes") . '"'; ?> + '</button>'; |
|
279 | - query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"' . _("No") . '"'; ?> + '</button>'; |
|
280 | - query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"' . _("I don't know") . '"'; ?> + '</button></div>'; |
|
278 | + query = query + '<div><button id="answer_yes">' + <?php echo '"'._("Yes").'"'; ?> + '</button>'; |
|
279 | + query = query + '<button style="margin-left:20px;" id="answer_no">' + <?php echo '"'._("No").'"'; ?> + '</button>'; |
|
280 | + query = query + '<button style="margin-left:20px;" id="answer_noidea">' + <?php echo '"'._("I don't know").'"'; ?> + '</button></div>'; |
|
281 | 281 | $('#sociopath_queries').html(query); |
282 | 282 | $('#sociopath_query_area').show(); |
283 | 283 | } |
@@ -308,55 +308,55 @@ discard block |
||
308 | 308 | }); |
309 | 309 | } |
310 | 310 | function finalVerdict(realm, verdict) { |
311 | - var title = <?php echo '"' . _("Diagnostic tests results for selected realm") . '"'; ?>; |
|
311 | + var title = <?php echo '"'._("Diagnostic tests results for selected realm").'"'; ?>; |
|
312 | 312 | result = '<div class="padding">'; |
313 | 313 | result = result + '<div><h3>'; |
314 | - result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm; |
|
314 | + result = result + <?php echo '"'._("The result for tested realm:").' "'; ?> + realm; |
|
315 | 315 | result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">'; |
316 | - result = result + <?php echo '"' . _("The system identified") . '" '; ?> + ' '; |
|
316 | + result = result + <?php echo '"'._("The system identified").'" '; ?> + ' '; |
|
317 | 317 | result = result + Object.keys(verdict).length + ' '; |
318 | - result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>'; |
|
319 | - result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>; |
|
318 | + result = result + <?php echo '"'._("suspected areas which potentially can cause a problem.").'"'; ?> + '<br>'; |
|
319 | + result = result + <?php echo '"'._("Next to the problem description we show a speculated probability of this event.").'"'; ?>; |
|
320 | 320 | result = result + '</div><div style="padding: 5px;"><table>'; |
321 | 321 | k = 1; |
322 | 322 | for (key in verdict) { |
323 | 323 | result = result + '<tr><td>' + k + '.</td>'; |
324 | 324 | k = k + 1; |
325 | 325 | if (key === 'INFRA_DEVICE') { |
326 | - result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>'; |
|
326 | + result = result + '<td>' + <?php echo '"'._("Your device configuration is broken").'"'; ?> + '</td>'; |
|
327 | 327 | } |
328 | 328 | if (key === 'INFRA_SP_80211') { |
329 | - result = result + '<td>' + <?php echo '"' . _("The Wi-Fi network in your vicinity has quality issues") . '"'; ?> + '</td>'; |
|
329 | + result = result + '<td>' + <?php echo '"'._("The Wi-Fi network in your vicinity has quality issues").'"'; ?> + '</td>'; |
|
330 | 330 | } |
331 | 331 | if (key === 'INFRA_SP_LAN') { |
332 | - result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>'; |
|
332 | + result = result + '<td>' + <?php echo '"'._("The network environment around you is broken").'"'; ?> + '</td>'; |
|
333 | 333 | } |
334 | 334 | if (key === 'INFRA_SP_RADIUS') { |
335 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your service provider is the source of the problem") . '"'; ?> + '</td>'; |
|
335 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your service provider is the source of the problem").'"'; ?> + '</td>'; |
|
336 | 336 | } |
337 | 337 | if (key === 'INFRA_IDP_AUTHBACKEND') { |
338 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server in your home institution is currently unable to authenticate you") . '"'; ?> + '</td>'; |
|
338 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server in your home institution is currently unable to authenticate you").'"'; ?> + '</td>'; |
|
339 | 339 | } |
340 | 340 | if (key === 'INFRA_NRO_SP') { |
341 | - result = result + '<td>' + <?php echo '"' . _("The national server in the country/region you are visiting is not functioning correctly") . '"'; ?> + '</td>'; |
|
341 | + result = result + '<td>' + <?php echo '"'._("The national server in the country/region you are visiting is not functioning correctly").'"'; ?> + '</td>'; |
|
342 | 342 | } |
343 | 343 | if (key === 'INFRA_LINK_ETLR_NRO_SP') { |
344 | - 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>'; |
|
344 | + 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>'; |
|
345 | 345 | } |
346 | 346 | if (key === 'INFRA_LINK_ETLR_NRO_IdP') { |
347 | - result = result + '<td>' + <?php echo '"' . _("The link between the national server of your home country/region and the top-level server is broken") . '"'; ?> + '</td>'; |
|
347 | + result = result + '<td>' + <?php echo '"'._("The link between the national server of your home country/region and the top-level server is broken").'"'; ?> + '</td>'; |
|
348 | 348 | } |
349 | 349 | if (key === 'INFRA_ETLR') { |
350 | - result = result + '<td>' + <?php echo '"' . _("The communication to the top-level server is down") . '"'; ?> + '</td>'; |
|
350 | + result = result + '<td>' + <?php echo '"'._("The communication to the top-level server is down").'"'; ?> + '</td>'; |
|
351 | 351 | } |
352 | 352 | if (key === 'INFRA_NRO_IdP') { |
353 | - result = result + '<td>' + <?php echo '"' . _("The national server in your home country/region is not functioning properly.") . '"'; ?> + '</td>'; |
|
353 | + result = result + '<td>' + <?php echo '"'._("The national server in your home country/region is not functioning properly.").'"'; ?> + '</td>'; |
|
354 | 354 | } |
355 | 355 | if (key === 'INFRA_IdP_RADIUS') { |
356 | - result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your home institution is the source of the problem") . '"'; ?> + '</td>'; |
|
356 | + result = result + '<td>' + <?php echo '"'._("The RADIUS server of your home institution is the source of the problem").'"'; ?> + '</td>'; |
|
357 | 357 | } |
358 | 358 | if (key === 'INFRA_NONEXISTENTREALM') { |
359 | - result = result + '<td>' + <?php echo '"' . _("This realm does not exist") . '"'; ?> + '</td>'; |
|
359 | + result = result + '<td>' + <?php echo '"'._("This realm does not exist").'"'; ?> + '</td>'; |
|
360 | 360 | } |
361 | 361 | result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>"; |
362 | 362 | } |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | return false; |
469 | 469 | }); |
470 | 470 | $(document).on('change', '#idp_country' , function() { |
471 | - var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
471 | + var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>; |
|
472 | 472 | var id = $(this).attr('id'); |
473 | 473 | var k = id.indexOf('_'); |
474 | 474 | var type = id.substr(0,k); |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | var shtml = ''; |
487 | 487 | var select = ''; |
488 | 488 | if (type !== 'asp') { |
489 | - shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>; |
|
489 | + shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>; |
|
490 | 490 | } |
491 | 491 | select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>'; |
492 | 492 | for (var i in institutions) { |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | } else { |
508 | 508 | if (data.status === 0) { |
509 | 509 | inProgress(0); |
510 | - 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 the realm you are interested in.") . '"'; ?>; |
|
510 | + 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 the realm you are interested in.").'"'; ?>; |
|
511 | 511 | alert(msg); |
512 | 512 | $('#select_idp_country').show(); |
513 | 513 | $('#select_idp_area').hide(); |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | }, |
517 | 517 | error:function() { |
518 | 518 | inProgress(0); |
519 | - var msg = <?php echo '"' . _("Can not search in database. You have to provide the realm you are interested in.") . '"'; ?>; |
|
519 | + var msg = <?php echo '"'._("Can not search in database. You have to provide the realm you are interested in.").'"'; ?>; |
|
520 | 520 | alert(msg); |
521 | 521 | $('#select_idp_country').show(); |
522 | 522 | $('#select_idp_area').hide(); |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | return false; |
532 | 532 | }); |
533 | 533 | $(document).on('change', '#sp_country, #asp_country' , function() { |
534 | - var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
534 | + var comment = <?php echo '"'._("Fetching institutions list").'..."'; ?>; |
|
535 | 535 | var id = $(this).attr('id'); |
536 | 536 | var k = id.indexOf('_'); |
537 | 537 | var type = id.substr(0,k); |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | var shtml = ''; |
550 | 550 | var select = ''; |
551 | 551 | if (type !== 'asp') { |
552 | - shtml = <?php echo '"<td>' . _("Select institution:") . '</td><td>"'; ?>; |
|
552 | + shtml = <?php echo '"<td>'._("Select institution:").'</td><td>"'; ?>; |
|
553 | 553 | } |
554 | 554 | select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value=""></option>'; |
555 | 555 | for (var i in hotspots) { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | inProgress(0); |
573 | 573 | var select = '<select id="' + type + '_inst" name="' + type + '_inst" style="margin-left:0px; width:400px;"><option value="">'; |
574 | 574 | var shtml = '<td></td><td>'; |
575 | - select = select + <?php echo '"' . _("Other location") . '"'; ?> + '</option></select></td>'; |
|
575 | + select = select + <?php echo '"'._("Other location").'"'; ?> + '</option></select></td>'; |
|
576 | 576 | if (type !== 'asp') { |
577 | 577 | $('#row_' + type + '_institution').html(''); |
578 | 578 | $('#row_' + type + '_institution').append(shtml + select); |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | $('#start_test_area').hide(); |
607 | 607 | return false; |
608 | 608 | } |
609 | - var comment = <?php echo '"' . _("Fetching realms list") . '..."'; ?>; |
|
609 | + var comment = <?php echo '"'._("Fetching realms list").'..."'; ?>; |
|
610 | 610 | inProgress(1, comment); |
611 | 611 | $.ajax({ |
612 | 612 | url: "findRealm.php", |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | var realms = data.realms; |
619 | 619 | var realmselect = ''; |
620 | 620 | if (realms.length > 1) { |
621 | - realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"'; ?>; |
|
621 | + realmselect = <?php echo '"<td>'._("Check realm(s):").'</td>"'; ?>; |
|
622 | 622 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
623 | 623 | for (var i in realms) { |
624 | 624 | realmselect = realmselect + '<input type="radio" name="realm" '; |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | } |
631 | 631 | realmselect = realmselect + '</span></td>'; |
632 | 632 | } else { |
633 | - realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"'; ?>; |
|
633 | + realmselect = <?php echo '"<td>'._("Realm:").'</td>"'; ?>; |
|
634 | 634 | realmselect = realmselect + '<td>' + "<span style='margin-left: 10px'>"; |
635 | 635 | realmselect = realmselect + realms[0] + '</span>'; |
636 | 636 | realmselect = realmselect + '<input type="hidden" name="realm" value="' + realms[0] + '">'; |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | }); |
686 | 686 | t = 1; |
687 | 687 | } |
688 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
688 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
689 | 689 | inProgress(1, comment); |
690 | 690 | /*waiting(comment);*/ |
691 | 691 | $.ajax({ |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | } |
730 | 730 | }); |
731 | 731 | $('#sp_questions > tbody').append('<tr class="error_row"><td>' + |
732 | - <?php echo '"' . _("Realm is not registered with the eduroam database:") . '"'; ?> + |
|
732 | + <?php echo '"'._("Realm is not registered with the eduroam database:").'"'; ?> + |
|
733 | 733 | '</td><td>' + realm + '</td></tr>'); |
734 | 734 | $('#admin_realm').val(''); |
735 | 735 | } |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | testSociopath('', answer); |
754 | 754 | }); |
755 | 755 | $('#realmtest').click(function(event){ |
756 | - var comment = <?php echo '"<br><br>' . _("Running realm tests") . '..."'; ?>; |
|
756 | + var comment = <?php echo '"<br><br>'._("Running realm tests").'..."'; ?>; |
|
757 | 757 | inProgress(1, comment); |
758 | 758 | $('#start_test_area').hide(); |
759 | 759 | if ($('#select_sp_area').is(':hidden')) { |
@@ -801,13 +801,13 @@ discard block |
||
801 | 801 | reset_footer(); |
802 | 802 | testSociopath(realm, 0); |
803 | 803 | } else { |
804 | - var title = <?php echo '"' . _("Diagnostics results for selected realms") . '"'; ?>; |
|
805 | - result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem occured") . '"'; ?>; |
|
804 | + var title = <?php echo '"'._("Diagnostics results for selected realms").'"'; ?>; |
|
805 | + result = '<div class="padding"><h3>' + <?php echo '"'._("An unknown problem occured").'"'; ?>; |
|
806 | 806 | result = result + '</h3>' |
807 | 807 | if (r.length == 1) { |
808 | - result = result + <?php echo '"' . _("This test includes checking of the following realm") . '"'; ?>; |
|
808 | + result = result + <?php echo '"'._("This test includes checking of the following realm").'"'; ?>; |
|
809 | 809 | } else { |
810 | - result = result + <?php echo '"' . _("This test includes checking of the following realms") . '"'; ?>; |
|
810 | + result = result + <?php echo '"'._("This test includes checking of the following realms").'"'; ?>; |
|
811 | 811 | } |
812 | 812 | result = result + ': ' |
813 | 813 | for (var i=0; i < r.length; i++) { |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | result = result + r[i]; |
818 | 818 | } |
819 | 819 | result = result + '.<br>'; |
820 | - result = result + <?php echo '"' . _("You should report this to") . '"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
820 | + result = result + <?php echo '"'._("You should report this to").'"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
821 | 821 | result = result + '</div>'; |
822 | 822 | $('#after_stage_1').hide(); |
823 | 823 | $('#before_stage_1').show(); |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | }); |
878 | 878 | }); |
879 | 879 | }); |
880 | - var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
880 | + var comment = <?php echo '"'._("Running realm tests").'..."'; ?>; |
|
881 | 881 | inProgress(1, comment); |
882 | 882 | $.ajax({ |
883 | 883 | url: "findRealm.php", |
@@ -948,29 +948,29 @@ discard block |
||
948 | 948 | success:function(data) { |
949 | 949 | if (data.status === 1) { |
950 | 950 | var result = ''; |
951 | - var title = <?php echo '"' . _("eduroam admin report submission") . '"'; ?>; |
|
951 | + var title = <?php echo '"'._("eduroam admin report submission").'"'; ?>; |
|
952 | 952 | result = '<div class="padding">'; |
953 | 953 | if (type == 'idp_send') { |
954 | - result = result + '<h3>'+ <?php echo '"' . _("SP contacting IdP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
954 | + result = result + '<h3>'+ <?php echo '"'._("SP contacting IdP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
955 | 955 | result = result + '<table>'; |
956 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
957 | - result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
958 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
959 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
960 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
961 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
956 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
957 | + result = result + '<tr><td>' + <?php echo '"'._("SP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
958 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email(s)").'"'; ?> + '</td><td>' + data.idpcontact + '</td></tr>'; |
|
959 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
960 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
961 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
962 | 962 | } |
963 | 963 | if (type == 'sp_send') { |
964 | - result = result + '<h3>'+ <?php echo '"' . _("IdP contacting SP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
|
964 | + result = result + '<h3>'+ <?php echo '"'._("IdP contacting SP due to technical problems or abuse").'"'; ?> + '</h3>'; |
|
965 | 965 | result = result + '<table>'; |
966 | - result = result + '<tr><td>' + <?php echo '"' . _("Reason") . '"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
967 | - result = result + '<tr><td>' + <?php echo '"' . _("SP's Operator-Name") . '"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
968 | - result = result + '<tr><td>' + <?php echo '"' . _("User's outer ID") . '"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
969 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email") . '"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
970 | - result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
971 | - result = result + '<tr><td>' + <?php echo '"' . _("Calling-Station-Id") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
972 | - result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
973 | - result = result + '<tr><td>' + <?php echo '"' . _("How to contact the user") . '"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
966 | + result = result + '<tr><td>' + <?php echo '"'._("Reason").'"'; ?> + '</td><td>' + data.reason + '</td></tr>'; |
|
967 | + result = result + '<tr><td>' + <?php echo '"'._("SP's Operator-Name").'"'; ?> + '</td><td>' + data.opname + '</td></tr>'; |
|
968 | + result = result + '<tr><td>' + <?php echo '"'._("User's outer ID").'"'; ?> + '</td><td>' + data.outerid + '</td></tr>'; |
|
969 | + result = result + '<tr><td>' + <?php echo '"'._("IdP email").'"'; ?> + '</td><td>' + data.email + '</td></tr>'; |
|
970 | + result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"'; ?> + '</td><td>' + data.timestamp + '</td></tr>'; |
|
971 | + result = result + '<tr><td>' + <?php echo '"'._("Calling-Station-Id").'"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
972 | + result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"'; ?> +'</td><td>' + data.freetext + '</td></tr>'; |
|
973 | + result = result + '<tr><td>' + <?php echo '"'._("How to contact the user").'"'; ?> +'</td><td>' + data.cdetails + '</td></tr>'; |
|
974 | 974 | } |
975 | 975 | result = result + '</div>'; |
976 | 976 | showInfo(result, title); |
@@ -987,7 +987,7 @@ discard block |
||
987 | 987 | if ($('#mac').val().length > 0) { |
988 | 988 | if ($('#mac').val().length != 17) { |
989 | 989 | $('#mac').addClass('error_input'); |
990 | - $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"'; ?>); |
|
990 | + $('#mac').attr('title', <?php echo '"'._("MAC address is incomplete").'"'; ?>); |
|
991 | 991 | } else { |
992 | 992 | $('#mac').removeClass('error_input'); |
993 | 993 | $('#mac').attr('title', ''); |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | if ($(this).attr('id') == 'email' && $(this).val().length > 0) { |
997 | 997 | if (!isEmail($(this).val())) { |
998 | 998 | $('#email').addClass('error_input'); |
999 | - $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"'; ?>); |
|
999 | + $('#email').attr('title', <?php echo '"'._("Wrong format of email").'"'; ?>); |
|
1000 | 1000 | } else { |
1001 | 1001 | $('#email').removeClass('error_input'); |
1002 | 1002 | $('#email').attr('title', ''); |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | if ($(this).attr('id') == 'outer_id' && $(this).val().length > 0) { |
1006 | 1006 | if (!isEmail($(this).val(), true)) { |
1007 | 1007 | $('#outer_id').addClass('error_input'); |
1008 | - $('#outer_id').attr('title', <?php echo '"' . _("Wrong format of outer ID") . '"'; ?>); |
|
1008 | + $('#outer_id').attr('title', <?php echo '"'._("Wrong format of outer ID").'"'; ?>); |
|
1009 | 1009 | } else { |
1010 | 1010 | $('#outer_id').removeClass('error_input'); |
1011 | 1011 | $('#outer_id').attr('title', ''); |
@@ -1014,7 +1014,7 @@ discard block |
||
1014 | 1014 | if ($(this).attr('id') == 'opname' && $('#opname').val().length > 0) { |
1015 | 1015 | if (!isOperatorName($(this).val())) { |
1016 | 1016 | $('#opname').addClass('error_input'); |
1017 | - $('#opname').attr('title', <?php echo '"' . _("Wrong string given as OperatorName") . '"'; ?>); |
|
1017 | + $('#opname').attr('title', <?php echo '"'._("Wrong string given as OperatorName").'"'; ?>); |
|
1018 | 1018 | $('#spmanually').show(); |
1019 | 1019 | } else { |
1020 | 1020 | $('#opname').removeClass('error_input'); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | case "core\User": |
127 | 127 | return $this->userName; |
128 | 128 | default: |
129 | - throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - " . get_class($this) . "!"); |
|
129 | + throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - ".get_class($this)."!"); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @return array list of row id's of file-based attributes which weren't deleted |
163 | 163 | */ |
164 | 164 | public function beginFlushAttributes($extracondition = "") { |
165 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
165 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
166 | 166 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND option_name NOT LIKE '%_file' $extracondition"); |
167 | 167 | $this->updateFreshness(); |
168 | 168 | $execFlush = $this->databaseHandle->exec("SELECT row FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier $extracondition"); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * @return void |
182 | 182 | */ |
183 | 183 | public function commitFlushAttributes(array $tobedeleted) { |
184 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
184 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
185 | 185 | foreach (array_keys($tobedeleted) as $row) { |
186 | 186 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND row = $row"); |
187 | 187 | $this->updateFreshness(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | public function addAttribute($attrName, $attrLang, $attrValue) { |
209 | 209 | $relevantId = $this->getRelevantIdentifier(); |
210 | 210 | $identifierType = (is_int($relevantId) ? "i" : "s"); |
211 | - $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType . "sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
211 | + $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType."sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
212 | 212 | $this->updateFreshness(); |
213 | 213 | } |
214 | 214 |
@@ -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 |
@@ -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"> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | ?> |
22 | 22 | <?php |
23 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
23 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
24 | 24 | |
25 | 25 | $auth = new \web\lib\admin\Authentication(); |
26 | 26 | $uiElements = new \web\lib\admin\UIElements(); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | <?php |
58 | 58 | echo sprintf(_("On this page, you can add a new %s to your %s. Please fill out the form below to send out an email invitation to the new %s administrator."), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed, $uiElements->nomenclatureInst); |
59 | 59 | if (CONFIG['DB']['enforce-external-sync']) { |
60 | - echo "<p>" . sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst) . "</p>"; |
|
61 | - echo "<p>" . sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>"; |
|
60 | + echo "<p>".sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclatureInst)."</p>"; |
|
61 | + echo "<p>".sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureInst, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</p>"; |
|
62 | 62 | } |
63 | 63 | ?> |
64 | 64 | <hr/> |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | <?php |
69 | 69 | if (CONFIG['DB']['enforce-external-sync']) { |
70 | 70 | echo "<tr><td> |
71 | - <input type='radio' name='creation' value='existing'>" . _("Existing IdP:") . "</input> |
|
71 | + <input type='radio' name='creation' value='existing'>" . _("Existing IdP:")."</input> |
|
72 | 72 | </td>"; |
73 | 73 | |
74 | 74 | echo "<td colspan='2'> |
75 | 75 | <select id='externals' name='externals' onchange='document.sendinvite.creation[0].checked=true; document.sendinvite.mailaddr.value=this.options[this.selectedIndex].id;'> |
76 | - <option value='FREETEXT'>" . _("--- select IdP here ---") . "</option>"; |
|
76 | + <option value='FREETEXT'>" . _("--- select IdP here ---")."</option>"; |
|
77 | 77 | |
78 | 78 | foreach ($feds as $fed_value) { |
79 | 79 | $thefed = new \core\Federation(strtoupper($fed_value['value'])); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $entities = $thefed->listExternalEntities(TRUE, \core\Federation::EDUROAM_DB_TYPE_IDP); |
83 | 83 | |
84 | 84 | foreach ($entities as $v) { |
85 | - echo "<option id='" . $v['contactlist'] . "' value='" . $v['ID'] . "'>[" . $fed_value['value'] . "] " . $v['name'] . "</option>"; |
|
85 | + echo "<option id='".$v['contactlist']."' value='".$v['ID']."'>[".$fed_value['value']."] ".$v['name']."</option>"; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 |