@@ -1391,11 +1391,11 @@ |
||
| 1391 | 1391 | |
| 1392 | 1392 | <div id="footer"> |
| 1393 | 1393 | <?php |
| 1394 | - # Show authorized user name (and address) and allow logout. |
|
| 1394 | + # Show authorized user name (and address) and allow logout. |
|
| 1395 | 1395 | if ($user) { |
| 1396 | 1396 | echo("<a href=\"logout.php\" title=\"" . |
| 1397 | - addslashes(__('Disconnect the current user')) . |
|
| 1398 | - "\">" . addslashes(__('Log out')) . "<i class=\"fa fa-sign-out\"></i></a>"); |
|
| 1397 | + addslashes(__('Disconnect the current user')) . |
|
| 1398 | + "\">" . addslashes(__('Log out')) . "<i class=\"fa fa-sign-out\"></i></a>"); |
|
| 1399 | 1399 | } |
| 1400 | 1400 | ?> |
| 1401 | 1401 | </div> <!-- Footer --> |
@@ -119,7 +119,9 @@ |
||
| 119 | 119 | if (isset($hxff)) { |
| 120 | 120 | // Server is hidden behind a proxy. |
| 121 | 121 | // Proxy for loopback ip might indicate spoofing |
| 122 | - if (!in_array($hxff, array('127.0.0.1', '::1'))) $ip = $hxff; |
|
| 122 | + if (!in_array($hxff, array('127.0.0.1', '::1'))) { |
|
| 123 | + $ip = $hxff; |
|
| 124 | + } |
|
| 123 | 125 | } elseif (isset($_SERVER['REMOTE_ADDR'])) { |
| 124 | 126 | // Client has direct access to the server. |
| 125 | 127 | $ip = $_SERVER['REMOTE_ADDR']; |