summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-25 02:51:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-25 02:51:03 +0000
commit81b0dff16654dd67bc15937bd653fc3f65475359 (patch)
tree7996b36b04f8a831b051142c251ad0b522e5b200 /login.php
parente32557bf900153c5cfb0d2f28640aa9091ef7488 (diff)
downloadampache-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.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/login.php b/login.php
index 1b5634af..32c01568 100644
--- a/login.php
+++ b/login.php
@@ -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
**/