Changeset 1885 in ExiteCMS for trunk/setuser.php


Ignore:
Timestamp:
10/20/08 00:59:18 (4 years ago)
Author:
hverton
Message:

removed the v7.1 batch upgrade module. Not needed for v7.2
fixed lots of small issues that surfaced while testing installation and upgrades of v7.2
several small layout and consistency fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setuser.php

    r1858 r1885  
    250250        $refresh = 99999; 
    251251        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; 
    252264    default: 
    253265        // unknown result code 
Note: See TracChangeset for help on using the changeset viewer.