Changeset 16899


Ignore:
Timestamp:
2007/12/04 14:21:16 (14 years ago)
Author:
naka
Message:

IP許可のログを出力

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_Base.php

    r16873 r16899  
    1515class LC_Page_Upgrade_Base extends LC_Page { 
    1616    function isValidIP() { 
     17        $objLog  = new LC_Upgrade_Helper_Log; 
    1718        $masterData = new SC_DB_MasterData(); 
    1819        $arrOstoreIPs = $masterData->getMasterData("mtb_ownersstore_ips"); 
     
    2021        if (isset($_SERVER['REMOTE_ADDR']) 
    2122        && in_array($_SERVER['REMOTE_ADDR'], $arrOstoreIPs)) { 
    22  
     23            $objLog->log('* ip ok ' . $_SERVER['REMOTE_ADDR']); 
    2324            return true; 
    2425        } 
    25  
     26        $objLog->log('* refused ip ' . $_SERVER['REMOTE_ADDR']); 
    2627        return false; 
    2728    } 
Note: See TracChangeset for help on using the changeset viewer.