diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-09-25 02:51:03 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-09-25 02:51:03 +0000 |
commit | 81b0dff16654dd67bc15937bd653fc3f65475359 (patch) | |
tree | 7996b36b04f8a831b051142c251ad0b522e5b200 /login.php | |
parent | e32557bf900153c5cfb0d2f28640aa9091ef7488 (diff) | |
download | ampache-81b0dff16654dd67bc15937bd653fc3f65475359.tar.gz ampache-81b0dff16654dd67bc15937bd653fc3f65475359.tar.bz2 ampache-81b0dff16654dd67bc15937bd653fc3f65475359.zip |
track ip history, fix pagination on admin/user and fix some acl stuff that I forgot about
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -42,7 +42,7 @@ init_preferences(); */ if (conf('access_control')) { $access = new Access(0); - if (!$access->check("25", $_SERVER['REMOTE_ADDR'])) { + if (!$access->check('interface',$_SERVER['REMOTE_ADDR'],'','25')) { debug_event('access_denied','Access Denied:' . $_SERVER['REMOTE_ADDR'] . ' is not in the Access list','3'); access_denied(); } @@ -92,6 +92,15 @@ if ($auth['success']) { // $_SESSION['userdata'] = $auth; + // + // Record the IP of this person! + // + if (conf('track_user_ip')) { + $user = new User($_POST['username']); + $user->insert_ip_history(); + unset($user); + } + /* Make sure they are actually trying to get to this site and don't try to redirect them back into * an admin section **/ |