summaryrefslogtreecommitdiffstats
path: root/classes/script_start.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/script_start.php')
-rw-r--r--classes/script_start.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/script_start.php b/classes/script_start.php
index e7db54c..3684edd 100644
--- a/classes/script_start.php
+++ b/classes/script_start.php
@@ -210,7 +210,10 @@ if(isset($LoginCookie)) {
}
// IP changed
+
+
if($LoggedUser['IP'] != $_SERVER['REMOTE_ADDR'] && !check_perms('site_disable_ip_history')) {
+
if(site_ban_ip($_SERVER['REMOTE_ADDR'])) {
error('Your IP has been banned.');
}