diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-27 15:00:41 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-27 15:00:41 +0100 |
commit | e82c31a76defb0cd3b611e13e33faa091a97cebc (patch) | |
tree | d6f6d3c16f4ffab46ab950865fc400df7fec877e /includes/sys_auth.php | |
parent | 1cf84a87be359705de20657892352cb060d8704f (diff) | |
parent | 7a2eae0a4b41232d7a9dd9dfec7bf8dfe5e919bf (diff) |
Merge branch 'master' of https://vcs.wybt.net/engelsystem/git
Diffstat (limited to 'includes/sys_auth.php')
-rw-r--r-- | includes/sys_auth.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/sys_auth.php b/includes/sys_auth.php index 68cf17e4..4ca56632 100644 --- a/includes/sys_auth.php +++ b/includes/sys_auth.php @@ -5,15 +5,6 @@ function load_auth() { global $user, $privileges; - if (!isset ($_SESSION['IP'])) - $_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; - - if ($_SESSION['IP'] != $_SERVER['REMOTE_ADDR']) { - session_destroy(); - error("Your session has been destroyed because your ip-address changed."); - header("Location: " . page_link_to('start')); - } - $user = null; if (isset ($_SESSION['uid'])) { $user = sql_select("SELECT * FROM `User` WHERE `UID`=" . sql_escape($_SESSION['uid']) . " LIMIT 1"); |