@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -927,7 +927,7 @@ discard block |
||
| 927 | 927 | } |
| 928 | 928 | if (isset($certdata['extensions'])) { |
| 929 | 929 | foreach ($certdata['extensions'] as $k => $v) { |
| 930 | -<<<<<<< HEAD |
|
| 930 | +<< << <<< HEAD |
|
| 931 | 931 | ======= |
| 932 | 932 | //error_log('extension '.$k.' '.$certdata['extensions'][$k]); |
| 933 | 933 | >>>>>>> d0ff55e916bc398b201ef1f455c391cd4e2f9ca9 |
@@ -968,7 +968,4 @@ discard block |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -968,7 +968,4 @@ |
||
| 968 | 968 | $ret['cert_oddities'][] = $o; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | - return $ret; |
|
| 972 | - } |
|
| 973 | - |
|
| 974 | -} |
|
| 971 | + return $ret |
|
| 975 | 972 | \ No newline at end of file |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | }); |
| 80 | 80 | }); |
| 81 | 81 | }); |
| 82 | - var comment = <?php echo '"' . _("Running realm tests") . '..."';?>; |
|
| 82 | + var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
| 83 | 83 | inProgress(1, comment); |
| 84 | 84 | $.ajax({ |
| 85 | 85 | url: "findRealm.php", |
@@ -135,15 +135,15 @@ discard block |
||
| 135 | 135 | success:function(data) { |
| 136 | 136 | if (data.status === 1) { |
| 137 | 137 | var result = ''; |
| 138 | - var title = <?php echo '"' . _("eduroam admin report submission") . '"';?>; |
|
| 138 | + var title = <?php echo '"' . _("eduroam admin report submission") . '"'; ?>; |
|
| 139 | 139 | result = '<div class="padding">'; |
| 140 | 140 | result = result + '<h3>'+ <?php echo '"' . _("SP contacting IdP due to technical problems or abuse") . '"'; ?> + '</h3>'; |
| 141 | 141 | result = result + '<table>'; |
| 142 | - result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"';?> +'</td><td>' + data.spcontact + '</td></tr>'; |
|
| 143 | - result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"';?> +'</td><td>' + data.idpcontact + '</td></tr>'; |
|
| 144 | - result = result + '<tr><td>' + <?php echo '"'._("Event's timestamp").'"';?> +'</td><td>' + data.timestamp + '</td></tr>'; |
|
| 145 | - result = result + '<tr><td>' + <?php echo '"'._("Suspected MAC address").'"';?> + '</td><td>' + data.mac + '</td></tr>'; |
|
| 146 | - result = result + '<tr><td>' + <?php echo '"'._("Additional description").'"';?> +'</td><td>' + data.description + '</td></tr>'; |
|
| 142 | + result = result + '<tr><td>' + <?php echo '"' . _("SP email") . '"'; ?> +'</td><td>' + data.spcontact + '</td></tr>'; |
|
| 143 | + result = result + '<tr><td>' + <?php echo '"' . _("IdP email(s)") . '"'; ?> +'</td><td>' + data.idpcontact + '</td></tr>'; |
|
| 144 | + result = result + '<tr><td>' + <?php echo '"' . _("Event's timestamp") . '"'; ?> +'</td><td>' + data.timestamp + '</td></tr>'; |
|
| 145 | + result = result + '<tr><td>' + <?php echo '"' . _("Suspected MAC address") . '"'; ?> + '</td><td>' + data.mac + '</td></tr>'; |
|
| 146 | + result = result + '<tr><td>' + <?php echo '"' . _("Additional description") . '"'; ?> +'</td><td>' + data.description + '</td></tr>'; |
|
| 147 | 147 | result = result + '</div>'; |
| 148 | 148 | showInfo(result, title); |
| 149 | 149 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | if ($('#mac').val().length > 0) { |
| 160 | 160 | if ($('#mac').val().length != 17) { |
| 161 | 161 | $('#mac').addClass('error_input'); |
| 162 | - $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"';?>); |
|
| 162 | + $('#mac').attr('title', <?php echo '"' . _("MAC address is incomplete") . '"'; ?>); |
|
| 163 | 163 | } else { |
| 164 | 164 | $('#mac').removeClass('error_input'); |
| 165 | 165 | $('#mac').attr('title', ''); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | if ($(this).attr('id') == 'email' && $(this).val().length > 0) { |
| 169 | 169 | if (!isEmail($(this).val())) { |
| 170 | 170 | $('#email').addClass('error_input'); |
| 171 | - $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"';?>); |
|
| 171 | + $('#email').attr('title', <?php echo '"' . _("Wrong format of email") . '"'; ?>); |
|
| 172 | 172 | } else { |
| 173 | 173 | $('#email').removeClass('error_input'); |
| 174 | 174 | $('#email').attr('title', ''); |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | </div> |
| 219 | 219 | <table id='sp_questions'> |
| 220 | 220 | <tr> |
| 221 | - <td><?php echo _("What is the realm of the IdP in question?");?></td> |
|
| 221 | + <td><?php echo _("What is the realm of the IdP in question?"); ?></td> |
|
| 222 | 222 | <td> |
| 223 | 223 | <input type='text' name='admin_realm' id='admin_realm' value=''> |
| 224 | 224 | <button id='realm_in_db_admin' accesskey="C" type='button'> |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | echo "0\">"; |
| 119 | 119 | echo _("This service is for authenticated admins only.") . '<br>'; |
| 120 | 120 | echo "<a href=\"javascript:infoCAT('manage', 'admin','administrator eduroam®')\">" . |
| 121 | - _("eduroam® admin access is needed") . "</a>"; |
|
| 121 | + _("eduroam® admin access is needed") . "</a>"; |
|
| 122 | 122 | } |
| 123 | 123 | ?> |
| 124 | 124 | </div> |
@@ -1,26 +1,26 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -function my_nonce($optSalt='') { |
|
| 2 | +function my_nonce($optSalt = '') { |
|
| 3 | 3 | $remote = filter_input(INPUT_SERVER, 'REMOTE_ADDR'); |
| 4 | - return hash_hmac('sha256', session_id().$optSalt, date("YmdG").'1qaz2wsx3edc!QAZ@WSX#EDC'.$remote); |
|
| 4 | + return hash_hmac('sha256', session_id() . $optSalt, date("YmdG") . '1qaz2wsx3edc!QAZ@WSX#EDC' . $remote); |
|
| 5 | 5 | } |
| 6 | 6 | error_reporting(E_ALL | E_STRICT); |
| 7 | 7 | $Gui->defaultPagePrelude(); |
| 8 | 8 | $_SESSION['current_page'] = $_SERVER['SCRIPT_NAME']; |
| 9 | 9 | ?> |
| 10 | 10 | <!-- JQuery --> |
| 11 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js");?>"></script> |
|
| 12 | -<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js");?>"></script> |
|
| 13 | -<script type='text/javascript' src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/Timepicker/jquery-ui-timepicker-addon.js");?>"></script> |
|
| 14 | -<script type='text/javascript' src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/Timepicker/jquery-ui-sliderAccess.js");?>"></script> |
|
| 15 | -<link type="text/css" rel="stylesheet" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui-1.12.1.custom/jquery-ui.css");?>" media="all" /> |
|
| 16 | -<link type="text/css" rel="stylesheet" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/Timepicker/jquery-ui-timepicker-addon.css");?>" media="all" /> |
|
| 11 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js"); ?>"></script> |
|
| 12 | +<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js"); ?>"></script> |
|
| 13 | +<script type='text/javascript' src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/Timepicker/jquery-ui-timepicker-addon.js"); ?>"></script> |
|
| 14 | +<script type='text/javascript' src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/Timepicker/jquery-ui-sliderAccess.js"); ?>"></script> |
|
| 15 | +<link type="text/css" rel="stylesheet" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui-1.12.1.custom/jquery-ui.css"); ?>" media="all" /> |
|
| 16 | +<link type="text/css" rel="stylesheet" href="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/Timepicker/jquery-ui-timepicker-addon.css"); ?>" media="all" /> |
|
| 17 | 17 | <script type="text/javascript"> |
| 18 | 18 | var recognisedOS = ''; |
| 19 | 19 | var downloadMessage; |
| 20 | 20 | var noDisco = 1; |
| 21 | 21 | var sbPage = 1; |
| 22 | 22 | var lang = "<?php echo($Gui->langObject->getLang()) ?>"; |
| 23 | - var dir = "<?php echo dirname(__DIR__);?>"; |
|
| 23 | + var dir = "<?php echo dirname(__DIR__); ?>"; |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | 26 | $profile_list_size = 1; |
@@ -37,28 +37,28 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | </script> |
| 39 | 39 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
| 40 | -<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" /> |
|
| 40 | +<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
|
| 41 | 41 | |
| 42 | 42 | </head> |
| 43 | 43 | <body> |
| 44 | 44 | <div id="main_page"> |
| 45 | 45 | <div id="loading_ico"> |
| 46 | - <span id='load_comment'></span><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/loading51.gif")?>" alt="Loading stuff ..."/> |
|
| 46 | + <span id='load_comment'></span><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif")?>" alt="Loading stuff ..."/> |
|
| 47 | 47 | </div> |
| 48 | 48 | <form id="cat_form" name="cat_form" method="POST" accept-charset="UTF-8" action=""> |
| 49 | - <input name="myNonce" id="myNonce" type="hidden" value="<?php echo my_nonce($_SERVER['SCRIPT_NAME']);?>"> |
|
| 49 | + <input name="myNonce" id="myNonce" type="hidden" value="<?php echo my_nonce($_SERVER['SCRIPT_NAME']); ?>"> |
|
| 50 | 50 | <?php echo $divs->div_heading(); ?> |
| 51 | 51 | <div id="info_overlay"> <!-- device info --> |
| 52 | 52 | <div id="info_window"></div> |
| 53 | - <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 53 | + <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 54 | 54 | </div> |
| 55 | 55 | <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu --> |
| 56 | - <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/> |
|
| 56 | + <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/> |
|
| 57 | 57 | <div id="main_menu_content"></div> |
| 58 | 58 | </div> |
| 59 | 59 | <div id="main_body"> |
| 60 | 60 | <div id="user_page"> |
| 61 | - <?php echo $divs->div_pagetitle(_("Diagnostics site"), _("We will do our best to resolve your problems!<br>Help us and answer precisely to our questions."));?> |
|
| 61 | + <?php echo $divs->div_pagetitle(_("Diagnostics site"), _("We will do our best to resolve your problems!<br>Help us and answer precisely to our questions.")); ?> |
|
| 62 | 62 | <div id="user_info" style='padding-top: 10px;'> |
| 63 | 63 | <div id='diagnostic_choice'> |
| 64 | 64 | <?php echo _("Are you reporting the problem as"); ?> |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | </div> |
| 97 | 97 | <div id="sociopath_query_area" style="margin-top:20px; display:none;"> |
| 98 | 98 | <b> |
| 99 | - <?php echo _("Now we have a few questions..");?> |
|
| 99 | + <?php echo _("Now we have a few questions.."); ?> |
|
| 100 | 100 | </b> |
| 101 | 101 | <div id="sociopath_queries"></div> |
| 102 | 102 | </div> |
@@ -155,13 +155,13 @@ discard block |
||
| 155 | 155 | type2 = 'sp'; |
| 156 | 156 | } |
| 157 | 157 | var options = ''; |
| 158 | - var select = <?php echo '"<td>' . _("Select country:") . ' </td>"';?>; |
|
| 158 | + var select = <?php echo '"<td>' . _("Select country:") . ' </td>"'; ?>; |
|
| 159 | 159 | select = select + '<td><select id="' + type1 + '_country" name="' + type1 + '_country" style="width:400px;">'; |
| 160 | 160 | if ($("#"+type2+"_country").is('select')) { |
| 161 | 161 | options = ($('#'+type2+'_country').html()); |
| 162 | 162 | countryAddSelect(select, options, type1); |
| 163 | 163 | } else { |
| 164 | - var comment = <?php echo '"' . _("Fetching countries list") . '..."';?>; |
|
| 164 | + var comment = <?php echo '"' . _("Fetching countries list") . '..."'; ?>; |
|
| 165 | 165 | inProgress(1, comment); |
| 166 | 166 | $.ajax({ |
| 167 | 167 | url: "findRealm.php", |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | return false; |
| 195 | 195 | } |
| 196 | 196 | function testSociopath(realm, susp, answer) { |
| 197 | - var comment = <?php echo '"'._("Testing realm").'..."';?>; |
|
| 197 | + var comment = <?php echo '"' . _("Testing realm") . '..."'; ?>; |
|
| 198 | 198 | inProgress(1, comment); |
| 199 | 199 | if ($('#tested_realm').length == 0) { |
| 200 | 200 | $('<input>').attr({ |
@@ -246,61 +246,61 @@ discard block |
||
| 246 | 246 | }); |
| 247 | 247 | } |
| 248 | 248 | function finalVerdict(realm, verdict) { |
| 249 | - var title = <?php echo '"' . _("Diagnistic tests results for selected realm") . '"';?>; |
|
| 249 | + var title = <?php echo '"' . _("Diagnistic tests results for selected realm") . '"'; ?>; |
|
| 250 | 250 | result = '<div class="padding">'; |
| 251 | 251 | result = result + '<div><h3>'; |
| 252 | - result = result + <?php echo '"' . _("The result for tested realm:") . ' "';?> + realm; |
|
| 252 | + result = result + <?php echo '"' . _("The result for tested realm:") . ' "'; ?> + realm; |
|
| 253 | 253 | result = result + '</h3></p><div style="padding: 5px;"><div style="padding: 0px;">'; |
| 254 | - result = result + <?php echo '"' . _("We located") . '" ';?> + ' '; |
|
| 254 | + result = result + <?php echo '"' . _("We located") . '" '; ?> + ' '; |
|
| 255 | 255 | result = result + Object.keys(verdict).length + ' '; |
| 256 | - result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"';?> + '<br>'; |
|
| 257 | - result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"';?>; |
|
| 256 | + result = result + <?php echo '"' . _("suspected areas which potentially can cause a problem.") . '"'; ?> + '<br>'; |
|
| 257 | + result = result + <?php echo '"' . _("Next to the problem description we show a speculated probability of this event.") . '"'; ?>; |
|
| 258 | 258 | result = result + '</div><div style="padding: 5px;"><table>'; |
| 259 | 259 | k = 1; |
| 260 | 260 | for (key in verdict) { |
| 261 | 261 | result = result + '<tr><td>' + k + '.</td>'; |
| 262 | 262 | k = k + 1; |
| 263 | 263 | if (key === 'INFRA_DEVICE') { |
| 264 | - result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"';?> + '</td>'; |
|
| 264 | + result = result + '<td>' + <?php echo '"' . _("Your device configuration is broken") . '"'; ?> + '</td>'; |
|
| 265 | 265 | } |
| 266 | 266 | if (key === 'INFRA_SP_80211') { |
| 267 | - result = result + '<td>' + <?php echo '"' . _("WIFI network around you sucks") . '"';?> + '</td>'; |
|
| 267 | + result = result + '<td>' + <?php echo '"' . _("WIFI network around you sucks") . '"'; ?> + '</td>'; |
|
| 268 | 268 | } |
| 269 | 269 | if (key === 'INFRA_SP_LAN') { |
| 270 | - result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"';?> + '</td>'; |
|
| 270 | + result = result + '<td>' + <?php echo '"' . _("The network environment around you is broken") . '"'; ?> + '</td>'; |
|
| 271 | 271 | } |
| 272 | 272 | if (key === 'INFRA_SP_RADIUS') { |
| 273 | - result = result + '<td>' + <?php echo '"' . _("RADIUS server of your service provider has a problem") . '"';?> + '</td>'; |
|
| 273 | + result = result + '<td>' + <?php echo '"' . _("RADIUS server of your service provider has a problem") . '"'; ?> + '</td>'; |
|
| 274 | 274 | } |
| 275 | 275 | if (key === 'INFRA_IDP_AUTHBACKEND') { |
| 276 | - result = result + '<td>' + <?php echo '"' . _("RADIUS server in your home institution has a problem to authenticate users") .'"';?> + '</td>'; |
|
| 276 | + result = result + '<td>' + <?php echo '"' . _("RADIUS server in your home institution has a problem to authenticate users") . '"'; ?> + '</td>'; |
|
| 277 | 277 | } |
| 278 | 278 | if (key === 'INFRA_NRO_SP') { |
| 279 | - result = result + '<td>' + <?php echo '"' . _("The link between your current location and your federation server is broken") .'"';?> + '</td>'; |
|
| 279 | + result = result + '<td>' + <?php echo '"' . _("The link between your current location and your federation server is broken") . '"'; ?> + '</td>'; |
|
| 280 | 280 | } |
| 281 | 281 | if (key === 'INFRA_LINK_ETLR_NRO_SP') { |
| 282 | - result = result + '<td>' + <?php echo '"' . _("The link between your current location, your federation server and top level server is broken") . '"';?> + '</td>'; |
|
| 282 | + result = result + '<td>' + <?php echo '"' . _("The link between your current location, your federation server and top level server is broken") . '"'; ?> + '</td>'; |
|
| 283 | 283 | } |
| 284 | 284 | if (key === 'INFRA_LINK_ETLR_NRO_IdP') { |
| 285 | - result = result + '<td>' + <?php echo '"' . _("The link between your home institution, your federation server and top level server is broken") . '"';?> + '</td>'; |
|
| 285 | + result = result + '<td>' + <?php echo '"' . _("The link between your home institution, your federation server and top level server is broken") . '"'; ?> + '</td>'; |
|
| 286 | 286 | } |
| 287 | 287 | if (key === 'INFRA_ETLR') { |
| 288 | - result = result + '<td>' + <?php echo '"' . _("The communication to top level server is down") . '"';?> + '</td>'; |
|
| 288 | + result = result + '<td>' + <?php echo '"' . _("The communication to top level server is down") . '"'; ?> + '</td>'; |
|
| 289 | 289 | } |
| 290 | 290 | if (key === 'INFRA_ETLR_NRO_IdP') { |
| 291 | - result = result + '<td>' + <?php echo '"' . _("The link between top level server and your federation server is broken") . '"';?> + '</td>'; |
|
| 291 | + result = result + '<td>' + <?php echo '"' . _("The link between top level server and your federation server is broken") . '"'; ?> + '</td>'; |
|
| 292 | 292 | } |
| 293 | 293 | if (key === 'INFRA_ETLR_NRO_SP') { |
| 294 | - result = result + '<td>' + <?php echo '"' . _("The link between top level server and your service provider is broken") . '"';?> + '</td>'; |
|
| 294 | + result = result + '<td>' + <?php echo '"' . _("The link between top level server and your service provider is broken") . '"'; ?> + '</td>'; |
|
| 295 | 295 | } |
| 296 | 296 | if (key === 'INFRA_NRO_IdP') { |
| 297 | - result = result + '<td>' + <?php echo '"' . _("The link between your federation server and your institution server is broken") . '"';?> + '</td>'; |
|
| 297 | + result = result + '<td>' + <?php echo '"' . _("The link between your federation server and your institution server is broken") . '"'; ?> + '</td>'; |
|
| 298 | 298 | } |
| 299 | 299 | if (key === 'INFRA_IdP_RADIUS') { |
| 300 | - result = result + '<td>' + <?php echo '"' . _("RADIUS server of your home institution has a problem").'"';?> + '</td>'; |
|
| 300 | + result = result + '<td>' + <?php echo '"' . _("RADIUS server of your home institution has a problem") . '"'; ?> + '</td>'; |
|
| 301 | 301 | } |
| 302 | 302 | if (key === 'INFRA_NONEXISTENTREALM') { |
| 303 | - result = result + '<td>' + <?php echo '"' . _("Entered realm doesn't exist") . '"';?> + '</td>'; |
|
| 303 | + result = result + '<td>' + <?php echo '"' . _("Entered realm doesn't exist") . '"'; ?> + '</td>'; |
|
| 304 | 304 | } |
| 305 | 305 | result = result + '<td style="padding-left: 5px;">' + (verdict[key] * 100).toFixed(2) + "%</td></tr>"; |
| 306 | 306 | } |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | return false; |
| 348 | 348 | }); |
| 349 | 349 | $(document).on('change', '#idp_country, #sp_country' , function() { |
| 350 | - var comment = <?php echo '"' . _("Fetching institutions list").'..."';?>; |
|
| 350 | + var comment = <?php echo '"' . _("Fetching institutions list") . '..."'; ?>; |
|
| 351 | 351 | var id = $(this).attr('id'); |
| 352 | 352 | var k = id.indexOf('_'); |
| 353 | 353 | var type = id.substr(0,k); |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | if (data.status === 1) { |
| 363 | 363 | inProgress(0); |
| 364 | 364 | var institutions = data.institutions; |
| 365 | - var select = <?php echo '"<td>' . _("Select institution:") . '</td>"';?>; |
|
| 365 | + var select = <?php echo '"<td>' . _("Select institution:") . '</td>"'; ?>; |
|
| 366 | 366 | select = select + '<td><select id="' + type + '_inst" name="' + type + '_inst" style="width:400px;"><option value=""></option>'; |
| 367 | 367 | for (var i in institutions) { |
| 368 | 368 | select = select + '<option value="' + institutions[i].ID + '">' + institutions[i].name + '</option>'; |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | $('#start_test_area').hide(); |
| 395 | 395 | return false; |
| 396 | 396 | } |
| 397 | - var comment = <?php echo '"' . _("Fetching realms list") . '..."';?>; |
|
| 397 | + var comment = <?php echo '"' . _("Fetching realms list") . '..."'; ?>; |
|
| 398 | 398 | inProgress(1, comment); |
| 399 | 399 | $.ajax({ |
| 400 | 400 | url: "findRealm.php", |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | var realms = data.realms; |
| 407 | 407 | var realmselect = ''; |
| 408 | 408 | if (realms.length > 1) { |
| 409 | - realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"';?>; |
|
| 409 | + realmselect = <?php echo '"<td>' . _("Check realm(s):") . '</td>"'; ?>; |
|
| 410 | 410 | realmselect = realmselect + '<td>' + "<span style='margin-left: 19px'>"; |
| 411 | 411 | for (var i in realms) { |
| 412 | 412 | console.log("i = "+i); |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | } |
| 420 | 420 | realmselect = realmselect + '</span></td>'; |
| 421 | 421 | } else { |
| 422 | - realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"';?>; |
|
| 422 | + realmselect = <?php echo '"<td>' . _("Realm:") . '</td>"'; ?>; |
|
| 423 | 423 | realmselect = realmselect + '<td>' + "<span style='margin-left: 19px'>"; |
| 424 | 424 | realmselect = realmselect + realms[0] + '</span>'; |
| 425 | 425 | realmselect = realmselect + '<input type="hidden" name="realm[]" value="' + realms[0] + '">'; |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | }); |
| 474 | 474 | t = 1; |
| 475 | 475 | } |
| 476 | - var comment = <?php echo '"' . _("Running realm tests") . '..."';?>; |
|
| 476 | + var comment = <?php echo '"' . _("Running realm tests") . '..."'; ?>; |
|
| 477 | 477 | inProgress(1, comment); |
| 478 | 478 | $.ajax({ |
| 479 | 479 | url: "findRealm.php", |
@@ -569,12 +569,12 @@ discard block |
||
| 569 | 569 | testSociopath(realm, data.suspects['SUSPECTS'], 0); |
| 570 | 570 | } else { |
| 571 | 571 | var title = <?php echo '"' . _("Diagnistic tests results for selected realms") . '"'; ?>; |
| 572 | - result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem appears") . '"';?>; |
|
| 572 | + result = '<div class="padding"><h3>' + <?php echo '"' . _("An unknown problem appears") . '"'; ?>; |
|
| 573 | 573 | result = result + '</h3>' |
| 574 | 574 | if (r.length == 1) { |
| 575 | - result = result + <?php echo '"' . _("This test includes checking of following realm") . '"';?>; |
|
| 575 | + result = result + <?php echo '"' . _("This test includes checking of following realm") . '"'; ?>; |
|
| 576 | 576 | } else { |
| 577 | - result = result + <?php echo '"' . _("This test includes checking of following realms") . '"';?>; |
|
| 577 | + result = result + <?php echo '"' . _("This test includes checking of following realms") . '"'; ?>; |
|
| 578 | 578 | } |
| 579 | 579 | result = result + ': ' |
| 580 | 580 | for (var i=0; i < r.length; i++) { |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | result = result + r[i]; |
| 585 | 585 | } |
| 586 | 586 | result = result + '.<br>'; |
| 587 | - result = result + <?php echo '"' . _("You should report this to") . '"';?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
| 587 | + result = result + <?php echo '"' . _("You should report this to") . '"'; ?> + ' <a href="mailto:[email protected]">[email protected]</a>'; |
|
| 588 | 588 | result = result + '</div>'; |
| 589 | 589 | showInfo(result, title); |
| 590 | 590 | } |