Changeset 1885 in ExiteCMS for trunk/setuser.php
- Timestamp:
- 10/20/08 00:59:18 (4 years ago)
- File:
-
- 1 edited
-
trunk/setuser.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/setuser.php
r1858 r1885 250 250 $refresh = 99999; 251 251 break; 252 case 6: 253 $message['line2'] = "<font style='color:red;font-weight:bold'>".($locale['banned'])."</font>"; 254 // get the reason for this ban 255 $sub_ip1 = substr(USER_IP,0,strlen(USER_IP)-strlen(strrchr(USER_IP,"."))); 256 $sub_ip2 = substr($sub_ip1,0,strlen($sub_ip1)-strlen(strrchr($sub_ip1,"."))); 257 $result = dbquery("SELECT * FROM ".$db_prefix."blacklist WHERE blacklist_ip='".USER_IP."' OR blacklist_ip='$sub_ip1' OR blacklist_ip='$sub_ip2'"); 258 if (dbrows($result)) { 259 $data = dbarray($result); 260 $message['line4'] = "<b>".$locale['180'].":<br /><font style='color:red;'>".($data['blacklist_reason'])."</font></b>"; 261 } 262 $refresh = 99999; 263 break; 252 264 default: 253 265 // unknown result code
Note: See TracChangeset
for help on using the changeset viewer.
