|
@@ -38,7 +38,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
if (type === 'idp' || type === 'sp') { |
|
39
|
39
|
shtml = '<table><tbody><tr id="row_'+type+'_country"></tr>'; |
|
40
|
40
|
shtml = shtml + '<tr id="row_'+type+'_institution" style="visibility: collapse;">'; |
|
41
|
|
- shtml = shtml + '<td>' + <?php echo '"' . _("Select institiution:") . '"'; ?> + '</td><td></td></tr>'; |
|
|
41
|
+ shtml = shtml + '<td>' + <?php echo '"'._("Select institiution:").'"'; ?> + '</td><td></td></tr>'; |
|
42
|
42
|
if (type === 'idp') { |
|
43
|
43
|
shtml = shtml + '<tr id="row_idp_realm"></tr>'; |
|
44
|
44
|
} |
|
@@ -64,7 +64,7 @@ discard block |
|
|
block discarded – undo |
|
64
|
64
|
var options = ''; |
|
65
|
65
|
var selecthead = ''; |
|
66
|
66
|
if (type1 === 'sp' || type1 === 'idp') { |
|
67
|
|
- selecthead = <?php echo '"<td>' . _("Select country or region:") . ' </td>"'; ?>; |
|
|
67
|
+ selecthead = <?php echo '"<td>'._("Select country or region:").' </td>"'; ?>; |
|
68
|
68
|
selecthead = selecthead + '<td>\n'; |
|
69
|
69
|
} |
|
70
|
70
|
var select = '<select id="' + type1 + '_country" name="' + type1 + '_country" style="margin-left:0px; width:400px;">'; |
|
@@ -72,7 +72,7 @@ discard block |
|
|
block discarded – undo |
|
72
|
72
|
options = ($('#'+type2+'_country').html()); |
|
73
|
73
|
countryAddSelect(selecthead, select + options + '</select>', type1); |
|
74
|
74
|
} else { |
|
75
|
|
- var comment = <?php echo '"<br><br>' . _("Fetching country/region list") . '..."'; ?>; |
|
|
75
|
+ var comment = <?php echo '"<br><br>'._("Fetching country/region list").'..."'; ?>; |
|
76
|
76
|
inProgress(1, comment); |
|
77
|
77
|
$.ajax({ |
|
78
|
78
|
url: "findRealm.php", |
|
@@ -109,7 +109,7 @@ discard block |
|
|
block discarded – undo |
|
109
|
109
|
return false; |
|
110
|
110
|
} |
|
111
|
111
|
function testSociopath(realm, answer) { |
|
112
|
|
- var comment = <?php echo '"' . _("Testing realm") . '..."'; ?>; |
|
|
112
|
+ var comment = <?php echo '"'._("Testing realm").'..."'; ?>; |
|
113
|
113
|
inProgress(1, comment); |
|
114
|
114
|
if ($('#tested_realm').length == 0) { |
|
115
|
115
|
$('<input>').attr({ |
|
@@ -133,9 +133,9 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
query = '<input type="hidden" id="tested_realm" value="' + realm + '">'; |
|
134
|
134
|
} |
|
135
|
135
|
query = query + '<div id="current_query">'+data['TEXT']+'</div>'; |
|
136
|
|
- query = query + '<div><button class="diag_button" id="answer_yes">' + <?php echo '"' . _("Yes") . '"'; ?> + '</button>'; |
|
137
|
|
- query = query + '<button style="margin-left:20px;" class="diag_button" id="answer_no">' + <?php echo '"' . _("No") . '"'; ?> + '</button>'; |
|
138
|
|
- query = query + '<button style="margin-left:20px;" class="diag_button" id="answer_noidea">' + <?php echo '"' . _("I don't know") . '"'; ?> + '</button></div>'; |
|
|
136
|
+ query = query + '<div><button class="diag_button" id="answer_yes">' + <?php echo '"'._("Yes").'"'; ?> + '</button>'; |
|
|
137
|
+ query = query + '<button style="margin-left:20px;" class="diag_button" id="answer_no">' + <?php echo '"'._("No").'"'; ?> + '</button>'; |
|
|
138
|
+ query = query + '<button style="margin-left:20px;" class="diag_button" id="answer_noidea">' + <?php echo '"'._("I don't know").'"'; ?> + '</button></div>'; |
|
139
|
139
|
$('#sociopath_queries').html(query); |
|
140
|
140
|
$('#sociopath_query_area').show(); |
|
141
|
141
|
} |
|
@@ -166,55 +166,55 @@ discard block |
|
|
block discarded – undo |
|
166
|
166
|
}); |
|
167
|
167
|
} |
|
168
|
168
|
function finalVerdict(realm, verdict) { |
|
169
|
|
- var title = <?php echo '"' . _("Diagnostic tests results for selected realm") . '"'; ?>; |
|
|
169
|
+ var title = <?php echo '"'._("Diagnostic tests results for selected realm").'"'; ?>; |
|
170
|
170
|
result = '<div class="padding">'; |
|
171
|
171
|
result = result + '<div><h3>'; |
|
172
|
|
- result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm; |
|
|
172
|
+ result = result + <?php echo '"'._("The result for tested realm:").' "'; ?> + realm; |
|
173
|
173
|
result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">'; |
|
174
|
|
- result = result + <?php echo '"' . _("The system identified") . '" '; ?> + ' '; |
|
|
174
|
+ result = result + <?php echo '"'._("The system identified").'" '; ?> + ' '; |
|
175
|
175
|
result = result + Object.keys(verdict).length + ' '; |
|
176
|
|
- result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>'; |
|
177
|
|
- result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>; |
|
|
176
|
+ result = result + <?php echo '"'._("suspected areas which potentially can cause a problem.").'"'; ?> + '<br>'; |
|
|
177
|
+ result = result + <?php echo '"'._("Next to the problem description we show a speculated probability of this event.").'"'; ?>; |
|
178
|
178
|
result = result + '</div><div style="padding: 5px;"><table>'; |
|
179
|
179
|
k = 1; |
|
180
|
180
|
for (key in verdict) { |
|
181
|
181
|
result = result + '<tr><td>' + k + '.</td>'; |
|
182
|
182
|
k = k + 1; |
|
183
|
183
|
if (key === 'INFRA_DEVICE') { |
|
184
|
|
- result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>'; |
|
|
184
|
+ result = result + '<td>' + <?php echo '"'._("Your device configuration is broken").'"'; ?> + '</td>'; |
|
185
|
185
|
} |
|
186
|
186
|
if (key === 'INFRA_SP_80211') { |
|
187
|
|
- result = result + '<td>' + <?php echo '"' . _("The Wi-Fi network in your vicinity has quality issues") . '"'; ?> + '</td>'; |
|
|
187
|
+ result = result + '<td>' + <?php echo '"'._("The Wi-Fi network in your vicinity has quality issues").'"'; ?> + '</td>'; |
|
188
|
188
|
} |
|
189
|
189
|
if (key === 'INFRA_SP_LAN') { |
|
190
|
|
- result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>'; |
|
|
190
|
+ result = result + '<td>' + <?php echo '"'._("The network environment around you is broken").'"'; ?> + '</td>'; |
|
191
|
191
|
} |
|
192
|
192
|
if (key === 'INFRA_SP_RADIUS') { |
|
193
|
|
- result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your service provider is the source of the problem") . '"'; ?> + '</td>'; |
|
|
193
|
+ result = result + '<td>' + <?php echo '"'._("The RADIUS server of your service provider is the source of the problem").'"'; ?> + '</td>'; |
|
194
|
194
|
} |
|
195
|
195
|
if (key === 'INFRA_IDP_AUTHBACKEND') { |
|
196
|
|
- result = result + '<td>' + <?php echo '"' . _("The RADIUS server in your home institution is currently unable to authenticate you") . '"'; ?> + '</td>'; |
|
|
196
|
+ result = result + '<td>' + <?php echo '"'._("The RADIUS server in your home institution is currently unable to authenticate you").'"'; ?> + '</td>'; |
|
197
|
197
|
} |
|
198
|
198
|
if (key === 'INFRA_NRO_SP') { |
|
199
|
|
- result = result + '<td>' + <?php echo '"' . _("The national server in the country/region you are visiting is not functioning correctly") . '"'; ?> + '</td>'; |
|
|
199
|
+ result = result + '<td>' + <?php echo '"'._("The national server in the country/region you are visiting is not functioning correctly").'"'; ?> + '</td>'; |
|
200
|
200
|
} |
|
201
|
201
|
if (key === 'INFRA_LINK_ETLR_NRO_SP') { |
|
202
|
|
- 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>'; |
|
|
202
|
+ 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>'; |
|
203
|
203
|
} |
|
204
|
204
|
if (key === 'INFRA_LINK_ETLR_NRO_IdP') { |
|
205
|
|
- result = result + '<td>' + <?php echo '"' . _("The link between the national server of your home country/region and the top-level server is broken") . '"'; ?> + '</td>'; |
|
|
205
|
+ result = result + '<td>' + <?php echo '"'._("The link between the national server of your home country/region and the top-level server is broken").'"'; ?> + '</td>'; |
|
206
|
206
|
} |
|
207
|
207
|
if (key === 'INFRA_ETLR') { |
|
208
|
|
- result = result + '<td>' + <?php echo '"' . _("The communication to the top-level server is down") . '"'; ?> + '</td>'; |
|
|
208
|
+ result = result + '<td>' + <?php echo '"'._("The communication to the top-level server is down").'"'; ?> + '</td>'; |
|
209
|
209
|
} |
|
210
|
210
|
if (key === 'INFRA_NRO_IdP') { |
|
211
|
|
- result = result + '<td>' + <?php echo '"' . _("The national server in your home country/region is not functioning properly.") . '"'; ?> + '</td>'; |
|
|
211
|
+ result = result + '<td>' + <?php echo '"'._("The national server in your home country/region is not functioning properly.").'"'; ?> + '</td>'; |
|
212
|
212
|
} |
|
213
|
213
|
if (key === 'INFRA_IdP_RADIUS') { |
|
214
|
|
- result = result + '<td>' + <?php echo '"' . _("The RADIUS server of your home institution is the source of the problem") . '"'; ?> + '</td>'; |
|
|
214
|
+ result = result + '<td>' + <?php echo '"'._("The RADIUS server of your home institution is the source of the problem").'"'; ?> + '</td>'; |
|
215
|
215
|
} |
|
216
|
216
|
if (key === 'INFRA_NONEXISTENTREALM') { |
|
217
|
|
- result = result + '<td>' + <?php echo '"' . _("This realm does not exist") . '"'; ?> + '</td>'; |
|
|
217
|
+ result = result + '<td>' + <?php echo '"'._("This realm does not exist").'"'; ?> + '</td>'; |
|
218
|
218
|
} |
|
219
|
219
|
result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>"; |
|
220
|
220
|
} |
|
@@ -292,8 +292,8 @@ discard block |
|
|
block discarded – undo |
|
292
|
292
|
function runConnectionTests(data, realm, token, wherefrom) { |
|
293
|
293
|
dynamic_req = null; |
|
294
|
294
|
udp_req = null; |
|
295
|
|
- var running = <?php echo '"<img style=\'vertical-align:middle\' src=' . "'../resources/images/icons/loading51.gif' width='24' height='24'/><i>" . _('Running connectivity tests for this realm') . '...</i>"'; ?>; |
|
296
|
|
- var testresult = "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"' . _("New tests results are available, click to see") . '"'; ?> + '</a>'; |
|
|
295
|
+ var running = <?php echo '"<img style=\'vertical-align:middle\' src='."'../resources/images/icons/loading51.gif' width='24' height='24'/><i>"._('Running connectivity tests for this realm').'...</i>"'; ?>; |
|
|
296
|
+ var testresult = "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"'._("New tests results are available, click to see").'"'; ?> + '</a>'; |
|
297
|
297
|
if (wherefrom == 'diag') { |
|
298
|
298
|
$('#tests_info_area').css('color', 'black'); |
|
299
|
299
|
$('#tests_info_area').html(running); |
|
@@ -420,7 +420,7 @@ discard block |
|
|
block discarded – undo |
|
420
|
420
|
return requests; |
|
421
|
421
|
} |
|
422
|
422
|
function show_tests_result(token, level) { |
|
423
|
|
- $('#tests_info_area').html(global_info[level] + ': ' + "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"' . _("See details") . '"'; ?> + '</a>'); |
|
|
423
|
+ $('#tests_info_area').html(global_info[level] + ': ' + "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"'._("See details").'"'; ?> + '</a>'); |
|
424
|
424
|
if (level > 0) { |
|
425
|
425
|
$('#tests_info_area').css('color', 'red'); |
|
426
|
426
|
$('#tests_result').val('1'); |
|
@@ -428,9 +428,9 @@ discard block |
|
|
block discarded – undo |
|
428
|
428
|
$('#tests_info_area').css('color', 'black'); |
|
429
|
429
|
$('#tests_result').val('0'); |
|
430
|
430
|
} |
|
431
|
|
- var info = global_info[level] + ': ' + "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"' . _("See details") . '"'; ?> + '</a>'; |
|
|
431
|
+ var info = global_info[level] + ': ' + "<a target='_blank' href='show_realmcheck.php?token=" + token + "'>" + <?php echo '"'._("See details").'"'; ?> + '</a>'; |
|
432
|
432
|
if (level == 0) { |
|
433
|
|
- info = info + '<br>' + <?php echo "'" . _("If you still want to report a problem, fill fields bellow.") . "'";?>; |
|
|
433
|
+ info = info + '<br>' + <?php echo "'"._("If you still want to report a problem, fill fields bellow.")."'"; ?>; |
|
434
|
434
|
} |
|
435
|
435
|
$('#tests_info_area').html(info); |
|
436
|
436
|
|