Changeset 19857


Ignore:
Timestamp:
2011/01/08 06:20:43 (13 years ago)
Author:
tao
Message:

refs #841 IP制限のチェックの仕方を変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/LC_Page_Admin.php

    r19854 r19857  
    4646         
    4747        //IP制限チェック 
    48         if(defined("ADMIN_ALLOW_HOSTS")){ 
    49             $allow_hosts = unserialize(ADMIN_ALLOW_HOSTS); 
     48        $allow_hosts = unserialize(ADMIN_ALLOW_HOSTS); 
     49        if(count($allow_hosts) > 0){ 
    5050            if(array_search($_SERVER["REMOTE_ADDR"],$allow_hosts) === FALSE){ 
    5151                SC_Response::sendError("403"); 
Note: See TracChangeset for help on using the changeset viewer.