Ignore:
Timestamp:
2008/08/28 08:53:24 (16 years ago)
Author:
Seasoft
Message:

merge 17197,17196,17195,17199,17200,17202,17208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/batch/SC_Batch_Update.php

    • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
    r17193 r17567  
    218218    function mkdir_p($path){ 
    219219        $path = dirname($path); 
    220         $path = str_replace ('\\', '/', $path); 
    221  
    222         $arrDirs = explode("/", $path); 
    223         $dir = ''; 
     220         
     221        // HTML_PATH/DATA_PATHの判別 
     222        if (preg_match("@\Q".HTML_PATH."\E@", $path) > 0) { 
     223            $dir = str_replace("\\", "/", HTML_PATH); 
     224            $path = preg_replace("@\Q".HTML_PATH."\E@", "", $path); 
     225        } elseif (preg_match("@\Q".DATA_PATH."\E@", $path) > 0) { 
     226            $dir = str_replace("\\", "/", DATA_PATH); 
     227            $path = preg_replace("@\Q".DATA_PATH."\E@", "", $path); 
     228        } else { 
     229            $dir = ""; 
     230        } 
     231        $arrDirs = explode("/", str_replace("\\", "/", $path)); 
    224232 
    225233        foreach($arrDirs as $n){ 
Note: See TracChangeset for help on using the changeset viewer.