| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | function showLogin() |
||
| 4 | { |
||
| 5 | //if (isset($_SERVER['HTTP_REFERER'])) { |
||
| 6 | // error_log("auth.php referred by " . $_SERVER['HTTP_REFERER']); |
||
| 7 | //} |
||
| 8 | $header = 'Location: login.php'; |
||
| 9 | $separator = '?'; |
||
| 10 | if (isset($_REQUEST['lang'])) { |
||
| 11 | $header = $header . $separator . 'lang=' . $_REQUEST['lang']; |
||
| 12 | $separator = '&'; |
||
| 13 | } |
||
| 14 | if (isset($_REQUEST['pin'])) { |
||
| 15 | $header = $header . $separator . 'pin=' . $_REQUEST['pin']; |
||
| 16 | $separator = '&'; |
||
|
|
|||
| 17 | } |
||
| 18 | header($header); |
||
| 19 | |||
| 20 | exit; |
||
| 21 | } |
||
| 38 |