Ignore:
Timestamp:
2008/04/01 13:08:30 (16 years ago)
Author:
satou
Message:

open_basedir設定環境の場合にオーナーズストア商品のインストールが出来ない不具合を改修。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/batch/SC_Batch_Update.php

    r17159 r17195  
    219219        $path = dirname($path); 
    220220        $path = str_replace ('\\', '/', $path); 
    221  
    222         $arrDirs = explode("/", $path); 
    223         $dir = ''; 
     221         
     222        // HTML_PATH/DATA_PATHの判別 
     223        if (preg_match("@".HTML_PATH."@", $path) > 0) { 
     224            $dir = HTML_PATH; 
     225            $re_path = preg_replace("@".HTML_PATH."@", "", $path); 
     226        } elseif (preg_match("@".DATA_PATH."@", $path) > 0) { 
     227            $dir = DATA_PATH; 
     228            $re_path = preg_replace("@".DATA_PATH."@", "", $path); 
     229        } else { 
     230            $dir = ""; 
     231            $re_path = $path; 
     232        } 
     233        $arrDirs = explode("/", $re_path); 
    224234 
    225235        foreach($arrDirs as $n){ 
Note: See TracChangeset for help on using the changeset viewer.