@@ -19,7 +19,7 @@ |
||
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 | |
24 | 24 | CAT_session_start(); |
25 | 25 |
@@ -19,13 +19,13 @@ |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | -$out = "<h3>" . _("Access the sources") . "</h3>" . |
|
23 | - sprintf(_("%s is an opensource project. If you are interested in the details of the implementation, please visit <a href='%s'>GitHub</a>."), CONFIG['APPEARANCE']['productname'], "https://github.com/GEANT/CAT" ) . |
|
24 | - "<h3>" . _("Join the developers mailing list.") . "</h3>" . |
|
25 | - sprintf(_("The list is available at: %s"), CONFIG['APPEARANCE']['support-contact']['display']) . |
|
26 | - "<h3>" . _("Add a translation") . "</h3>" . |
|
27 | - _("If you would like to add a new language to CAT then please contact us ...") . |
|
28 | - "<h3><a href='" . \core\CAT::getRootUrlPath() . "/apidoc' target='_blank'>". _("Documentation") . "</a></h3>" ; |
|
22 | +$out = "<h3>"._("Access the sources")."</h3>". |
|
23 | + sprintf(_("%s is an opensource project. If you are interested in the details of the implementation, please visit <a href='%s'>GitHub</a>."), CONFIG['APPEARANCE']['productname'], "https://github.com/GEANT/CAT"). |
|
24 | + "<h3>"._("Join the developers mailing list.")."</h3>". |
|
25 | + sprintf(_("The list is available at: %s"), CONFIG['APPEARANCE']['support-contact']['display']). |
|
26 | + "<h3>"._("Add a translation")."</h3>". |
|
27 | + _("If you would like to add a new language to CAT then please contact us ..."). |
|
28 | + "<h3><a href='".\core\CAT::getRootUrlPath()."/apidoc' target='_blank'>"._("Documentation")."</a></h3>"; |
|
29 | 29 | |
30 | 30 | |
31 | 31 |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | break; |
99 | 99 | case 'listIdentityProviders': |
100 | 100 | if ($federation === FALSE) { |
101 | - $federation = $id ? $validator->Federation($id)->tld : FALSE; |
|
101 | + $federation = $id ? $validator->Federation($id)->tld : FALSE; |
|
102 | 102 | } |
103 | 103 | if ($federation === FALSE) { // federation is a mandatory parameter! |
104 | 104 | exit; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | break; |
111 | 111 | case 'listProfiles': // needs $idp set - abort if not |
112 | 112 | if ($idp === FALSE) { |
113 | - $idp = $id ? $validator->IdP($id)->identifier : FALSE; |
|
113 | + $idp = $id ? $validator->IdP($id)->identifier : FALSE; |
|
114 | 114 | } |
115 | 115 | if ($idp === FALSE) { |
116 | 116 | exit; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | break; |
120 | 120 | case 'listDevices': |
121 | 121 | if ($profile === FALSE) { |
122 | - $profile = $id ? $validator->Profile($id)->identifier : FALSE; |
|
122 | + $profile = $id ? $validator->Profile($id)->identifier : FALSE; |
|
123 | 123 | } |
124 | 124 | if ($profile === FALSE) { |
125 | 125 | exit; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | break; |
147 | 147 | case 'profileAttributes': // needs $profile set |
148 | 148 | if ($profile === FALSE) { |
149 | - $profile = $id ? $validator->Profile($id)->identifier : FALSE; |
|
149 | + $profile = $id ? $validator->Profile($id)->identifier : FALSE; |
|
150 | 150 | } |
151 | 151 | if ($profile === FALSE) { |
152 | 152 | exit; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | break; |
156 | 156 | case 'sendLogo': // needs $idp and $disco set |
157 | 157 | if ($idp === FALSE) { |
158 | - $idp = $id ? $validator->IdP($id)->identifier : FALSE; |
|
158 | + $idp = $id ? $validator->IdP($id)->identifier : FALSE; |
|
159 | 159 | } |
160 | 160 | if ($idp === FALSE) { |
161 | 161 | exit; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @package UserAPI |
26 | 26 | */ |
27 | -include(dirname(dirname(dirname(__FILE__))) . "/config/_config.php"); |
|
27 | +include(dirname(dirname(dirname(__FILE__)))."/config/_config.php"); |
|
28 | 28 | $API = new \core\UserNetAPI(); |
29 | 29 | $validator = new web\lib\common\InputValidation(); |
30 | 30 | $loggerInstance = new \core\common\Logging(); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | - $Tou = [ |
|
22 | + $Tou = [ |
|
23 | 23 | 'title' => _("Terms of Use"), |
24 | 24 | 'subtitle' => _("(for legal reasons, the Terms of Use are in English only)"), |
25 | 25 | 'short' => "<p>The purpose of this service is to make eduroam configuration easier for end users and eduroam |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @package UserGUI |
27 | 27 | */ |
28 | 28 | error_reporting(E_ALL | E_STRICT); |
29 | -require dirname(dirname(__FILE__)) . "/config/_config.php"; |
|
29 | +require dirname(dirname(__FILE__))."/config/_config.php"; |
|
30 | 30 | |
31 | 31 | $langObject = new \core\common\Language(); |
32 | 32 | $langObject->setTextDomain("web_user"); |
@@ -39,24 +39,24 @@ discard block |
||
39 | 39 | <body style='background: #fff url(resources/images/bg_grey_tile.png) repeat-x;'> |
40 | 40 | <div id="heading"> |
41 | 41 | <?php |
42 | - print '<img src="'. dirname($_SERVER['SCRIPT_NAME']) .'/resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
|
43 | - print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div>'; |
|
44 | - print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']) . '</h1> |
|
45 | -<h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>'; |
|
42 | + print '<img src="'.dirname($_SERVER['SCRIPT_NAME']).'/resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
|
43 | + print '<div id="motd">'.(isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ').'</div>'; |
|
44 | + print '<h1 style="padding-bottom:0px; height:1em;">'.sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']).'</h1> |
|
45 | +<h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'].'</h2>'; |
|
46 | 46 | echo '<table id="lang_select"><tr><td>'; |
47 | 47 | echo _("View this page in"); |
48 | 48 | ?> |
49 | 49 | <?php |
50 | 50 | foreach (CONFIG['LANGUAGES'] as $lang => $value) { |
51 | - echo "<a href='javascript:changeLang(\"$lang\")'>" . $value['display'] . "</a> "; |
|
51 | + echo "<a href='javascript:changeLang(\"$lang\")'>".$value['display']."</a> "; |
|
52 | 52 | } |
53 | - echo '</td><td style="text-align:right;padding-right:20px"><a href="' . dirname($_SERVER['SCRIPT_NAME']) . '?lang=' . $langObject->getLang() . '">' . _("Start page") . '</a></td></tr></table>'; |
|
53 | + echo '</td><td style="text-align:right;padding-right:20px"><a href="'.dirname($_SERVER['SCRIPT_NAME']).'?lang='.$langObject->getLang().'">'._("Start page").'</a></td></tr></table>'; |
|
54 | 54 | ?> |
55 | 55 | </div> <!-- id="heading" --> |
56 | 56 | <div id="main_body" style='padding:20px;'> |
57 | - <h1><?php echo _("Maybe this is the CAT you are looking for...");?></h1> |
|
58 | - <p><?php echo _("but we don't want to show it to you. You need to be authenticated and authorised to see this content. Since you are not, you got this error page usually known as");?></p> |
|
57 | + <h1><?php echo _("Maybe this is the CAT you are looking for..."); ?></h1> |
|
58 | + <p><?php echo _("but we don't want to show it to you. You need to be authenticated and authorised to see this content. Since you are not, you got this error page usually known as"); ?></p> |
|
59 | 59 | <h2>401/403</h2> |
60 | - <p><?php echo sprintf(_("Your mistake? Our error? Who knows! Maybe you should go back to the <a href='%s'>Start Page</a>."), dirname($_SERVER['SCRIPT_NAME']) . '?lang=' . $langObject->getLang())?></p> |
|
60 | + <p><?php echo sprintf(_("Your mistake? Our error? Who knows! Maybe you should go back to the <a href='%s'>Start Page</a>."), dirname($_SERVER['SCRIPT_NAME']).'?lang='.$langObject->getLang())?></p> |
|
61 | 61 | </div> |
62 | 62 | <?php echo $deco->footer(); |
@@ -311,8 +311,8 @@ |
||
311 | 311 | echo "<form method='post' action='overview_federation.php' accept-charset='UTF-8'> |
312 | 312 | <input type='hidden' name='invitation_id' value='" . $oneinvite['token'] . "'/> |
313 | 313 | <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Revoke Invitation") . "</button> " |
314 | - . sprintf(_("(expires %s)"),$oneinvite['expiry']) |
|
315 | - . "</form>"; |
|
314 | + . sprintf(_("(expires %s)"),$oneinvite['expiry']) |
|
315 | + . "</form>"; |
|
316 | 316 | } |
317 | 317 | echo " </td> |
318 | 318 | </tr>"; |
@@ -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 | |
24 | 24 | $deco = new \web\lib\admin\PageDecoration(); |
25 | 25 | $uiElements = new web\lib\admin\UIElements(); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <?php echo $uiElements->infoblock($user->getAttributes(), "user", "User"); ?> |
48 | 48 | <tr> |
49 | 49 | <td> |
50 | - <?php echo "" . _("Unique Identifier") ?> |
|
50 | + <?php echo ""._("Unique Identifier") ?> |
|
51 | 51 | </td> |
52 | 52 | <td> |
53 | 53 | </td> |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $mgmt = new \core\UserManagement(); |
63 | 63 | |
64 | 64 | if (!$user->isFederationAdmin()) { |
65 | - echo "<p>" . sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed) . "</p>"; |
|
65 | + echo "<p>".sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed)."</p>"; |
|
66 | 66 | echo $deco->footer(); |
67 | 67 | exit(0); |
68 | 68 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | <!-- fed properties --> |
80 | 80 | <tr> |
81 | 81 | <td> |
82 | - <?php echo "" . _("Country") ?> |
|
82 | + <?php echo ""._("Country") ?> |
|
83 | 83 | </td> |
84 | 84 | <td> |
85 | 85 | </td> |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | default: |
161 | 161 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
162 | 162 | } |
163 | - echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter) . " " . $cryptText, _("Sent successfully.")); |
|
163 | + echo $uiElements->boxRemark(ngettext("The invitation email was sent successfully.", "All invitation emails were sent successfully.", $counter)." ".$cryptText, _("Sent successfully.")); |
|
164 | 164 | break; |
165 | 165 | case "FAILURE": |
166 | 166 | echo $uiElements->boxError(_("No invitation email could be sent!"), _("Sending failure!")); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | default: |
181 | 181 | throw new Exception("Error: unknown encryption status of invitation!?!"); |
182 | 182 | } |
183 | - echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter) . " " . $cryptText, _("Partial success.")); |
|
183 | + echo $uiElements->boxWarning(sprintf(_("Some invitation emails were sent successfully (%s in total), the others failed."), $counter)." ".$cryptText, _("Partial success.")); |
|
184 | 184 | break; |
185 | 185 | case "INVALIDSYNTAX": |
186 | 186 | echo $uiElements->boxError(_("The invitation email address was malformed, no invitation was sent!"), _("The invitation email address was malformed, no invitation was sent!")); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | echo "</table></div>"; |
192 | 192 | } |
193 | 193 | if (CONFIG_CONFASSISTANT['CONSORTIUM']['name'] == 'eduroam') { |
194 | - $helptext = "<h3>" . sprintf(_("Need help? Refer to the <a href='%s'>%s manual</a>"), "https://wiki.geant.org/x/qJg7Bw", $uiElements->nomenclatureFed) . "</h3>"; |
|
194 | + $helptext = "<h3>".sprintf(_("Need help? Refer to the <a href='%s'>%s manual</a>"), "https://wiki.geant.org/x/qJg7Bw", $uiElements->nomenclatureFed)."</h3>"; |
|
195 | 195 | } else { |
196 | 196 | $helptext = ""; |
197 | 197 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $pending_invites = $mgmt->listPendingInvitations(); |
206 | 206 | |
207 | 207 | if (CONFIG['DB']['enforce-external-sync']) { |
208 | - echo "<th>" . sprintf(_("%s Database Sync Status"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</th>"; |
|
208 | + echo "<th>".sprintf(_("%s Database Sync Status"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])."</th>"; |
|
209 | 209 | } |
210 | 210 | ?> |
211 | 211 | <th> |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | foreach ($feds as $onefed) { |
221 | 221 | $thefed = new \core\Federation(strtoupper($onefed['value'])); |
222 | 222 | /// nomenclature for 'federation', federation name, nomenclature for 'inst' |
223 | - echo "<tr><td colspan='8'><strong>" . sprintf(_("The following %s are in your %s %s:"), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed, '<span style="color:green">' . $thefed->name . '</span>') . "</strong></td></tr>"; |
|
223 | + echo "<tr><td colspan='8'><strong>".sprintf(_("The following %s are in your %s %s:"), $uiElements->nomenclatureInst, $uiElements->nomenclatureFed, '<span style="color:green">'.$thefed->name.'</span>')."</strong></td></tr>"; |
|
224 | 224 | |
225 | 225 | // extract only pending invitations for *this* fed |
226 | 226 | $display_pendings = FALSE; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | // deployment status; need to dive into profiles for this |
246 | 246 | // show happy eyeballs if at least one profile is configured/showtime |
247 | 247 | echo "<td>"; |
248 | - echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "" ) . " " . ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : "" ); |
|
248 | + echo ($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_CONFIGURED ? "C" : "")." ".($idp_instance->maxProfileStatus() >= \core\IdP::PROFILES_SHOWTIME ? "V" : ""); |
|
249 | 249 | echo "</td>"; |
250 | 250 | // name; and realm of silverbullet profiles if any |
251 | 251 | // instantiating all profiles is costly, so we only do this if |
@@ -259,23 +259,23 @@ discard block |
||
259 | 259 | } |
260 | 260 | } |
261 | 261 | echo "<td style='vertical-align:top;'> |
262 | - <input type='hidden' name='inst' value='" . $index . "'>" . $idp_instance->name . (empty($listOfSilverbulletRealms) ? "" : "<ul><li>" ) . implode("</li><li>",$listOfSilverbulletRealms) . (empty($listOfSilverbulletRealms) ? "" : "</li><ul>" ) . " |
|
262 | + <input type='hidden' name='inst' value='" . $index."'>".$idp_instance->name.(empty($listOfSilverbulletRealms) ? "" : "<ul><li>").implode("</li><li>", $listOfSilverbulletRealms).(empty($listOfSilverbulletRealms) ? "" : "</li><ul>")." |
|
263 | 263 | </td>"; |
264 | 264 | // external DB sync, if configured as being necessary |
265 | 265 | if (CONFIG['DB']['enforce-external-sync']) { |
266 | 266 | echo "<td style='display: ruby;'>"; |
267 | 267 | if ($readonly === FALSE) { |
268 | - echo "<form method='post' action='inc/manageDBLink.inc.php?inst_id=" . $idp_instance->identifier . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
269 | - <button type='submit'>" . _("Manage DB Link") . "</button></form> "; |
|
268 | + echo "<form method='post' action='inc/manageDBLink.inc.php?inst_id=".$idp_instance->identifier."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
269 | + <button type='submit'>" . _("Manage DB Link")."</button></form> "; |
|
270 | 270 | } |
271 | 271 | switch ($idp_instance->getExternalDBSyncState()) { |
272 | 272 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_NOTSUBJECTTOSYNCING: |
273 | 273 | break; |
274 | 274 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_SYNCED: |
275 | - echo "<div class='acceptable'>" . _("Linked") . "</div>"; |
|
275 | + echo "<div class='acceptable'>"._("Linked")."</div>"; |
|
276 | 276 | break; |
277 | 277 | case \core\IdP::EXTERNAL_DB_SYNCSTATE_NOT_SYNCED: |
278 | - echo "<div class='notacceptable'>" . _("NOT linked") . "</div>"; |
|
278 | + echo "<div class='notacceptable'>"._("NOT linked")."</div>"; |
|
279 | 279 | |
280 | 280 | |
281 | 281 | break; |
@@ -288,9 +288,9 @@ discard block |
||
288 | 288 | echo "<td style='vertical-align: top;'>"; |
289 | 289 | if ($readonly === FALSE) { |
290 | 290 | echo "<div style='white-space: nowrap;'> |
291 | - <form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $index . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
291 | + <form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $index."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
|
292 | 292 | <button type='submit'>" . |
293 | - _("Add/Remove Administrators") . " |
|
293 | + _("Add/Remove Administrators")." |
|
294 | 294 | </button> |
295 | 295 | </form> |
296 | 296 | </div>"; |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | echo "<tr> |
304 | 304 | <td colspan='2'> |
305 | 305 | <strong>" . |
306 | - sprintf(_("Pending invitations in the %s:"), $uiElements->nomenclatureFed) . " |
|
306 | + sprintf(_("Pending invitations in the %s:"), $uiElements->nomenclatureFed)." |
|
307 | 307 | </strong> |
308 | 308 | </td> |
309 | 309 | </tr>"; |
@@ -311,17 +311,17 @@ discard block |
||
311 | 311 | if (strtoupper($oneinvite['country']) == strtoupper($thefed->tld)) { |
312 | 312 | echo "<tr> |
313 | 313 | <td>" . |
314 | - $oneinvite['name'] . " |
|
314 | + $oneinvite['name']." |
|
315 | 315 | </td> |
316 | 316 | <td>" . |
317 | - $oneinvite['mail'] . " |
|
317 | + $oneinvite['mail']." |
|
318 | 318 | </td> |
319 | 319 | <td colspan=2>"; |
320 | 320 | if ($readonly === FALSE) { |
321 | 321 | echo "<form method='post' action='overview_federation.php' accept-charset='UTF-8'> |
322 | - <input type='hidden' name='invitation_id' value='" . $oneinvite['token'] . "'/> |
|
323 | - <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE . "'>" . _("Revoke Invitation") . "</button> " |
|
324 | - . sprintf(_("(expires %s)"),$oneinvite['expiry']) |
|
322 | + <input type='hidden' name='invitation_id' value='" . $oneinvite['token']."'/> |
|
323 | + <button class='delete' type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_DELETE."'>"._("Revoke Invitation")."</button> " |
|
324 | + . sprintf(_("(expires %s)"), $oneinvite['expiry']) |
|
325 | 325 | . "</form>"; |
326 | 326 | } |
327 | 327 | echo " </td> |
@@ -19,7 +19,7 @@ |
||
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 | |
24 | 24 | $deco = new \web\lib\admin\PageDecoration(); |
25 | 25 | $uiElements = new web\lib\admin\UIElements(); |
@@ -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 | require_once CONFIG['AUTHENTICATION']['ssp-path-to-autoloader']; |
24 | 24 | |
25 | 25 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | if ($cutoff !== FALSE) { |
39 | 39 | $substring = substr($_SERVER['PHP_SELF'], 0, $cutoff); |
40 | 40 | if ($substring !== FALSE) { |
41 | - $url = "//" . htmlspecialchars($_SERVER['SERVER_NAME']) . $substring; |
|
41 | + $url = "//".htmlspecialchars($_SERVER['SERVER_NAME']).$substring; |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | header("Location: $url"); |
45 | 45 | } else { |
46 | 46 | /* Logout failed. Tell the user to close the browser. */ |
47 | 47 | echo $deco->pageheader(_("Incomplete Logout"), "ADMIN", FALSE); |
48 | - echo "<p>" . _("We were unable to log you out of all your sessions. To be completely sure that you are logged out, you need to close your web browser.") . "</p>"; |
|
48 | + echo "<p>"._("We were unable to log you out of all your sessions. To be completely sure that you are logged out, you need to close your web browser.")."</p>"; |
|
49 | 49 | echo $deco->footer(); |
50 | 50 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
23 | 23 | |
24 | 24 | CAT_session_start(); |
25 | 25 |