Changeset 1885 in ExiteCMS for trunk/includes/user_functions.php
- Timestamp:
- 10/20/08 00:59:18 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/user_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/user_functions.php
r1858 r1885 21 21 $sub_ip1 = substr(USER_IP,0,strlen(USER_IP)-strlen(strrchr(USER_IP,"."))); 22 22 $sub_ip2 = substr($sub_ip1,0,strlen($sub_ip1)-strlen(strrchr($sub_ip1,"."))); 23 if (dbcount("(*)", "blacklist", "blacklist_ip='".USER_IP."' OR blacklist_ip='$sub_ip1' OR blacklist_ip='$sub_ip2'")) { 24 header("Location: http://en.wikipedia.org/wiki/IP_blocking"); exit; 23 if (FUSION_SELF != "setuser.php" && dbcount("(*)", "blacklist", "blacklist_ip='".USER_IP."' OR blacklist_ip='$sub_ip1' OR blacklist_ip='$sub_ip2'")) { 24 redirect(BASEDIR."setuser.php?error=6"); 25 exit; 25 26 } 26 27
Note: See TracChangeset
for help on using the changeset viewer.
