Ignore:
Timestamp:
2007/11/13 11:32:19 (16 years ago)
Author:
kotani
Message:

HTML_PATHとDATA_PATH設定のWindows対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/install/index.php

    r16774 r16783  
    630630        $install_dir = HTML_PATH; 
    631631    } else { 
    632         $install_dir = realpath(dirname( __FILE__) . "/../") . "/"; 
     632        if (substr(PHP_OS, 0, 3) == 'WIN') { 
     633            // ウインドウズの場合はパスの区切り記号が違う 
     634            $install_dir = realpath(dirname( __FILE__) . "/../"); 
     635        }else{ 
     636            $install_dir = realpath(dirname( __FILE__) . "/../") . "/"; 
     637        } 
    633638    } 
    634639 
     
    820825    // 語尾に'/'をつける 
    821826    if (!ereg("/$", $root_dir)) { 
    822         $root_dir = $root_dir . "/"; 
     827        if (substr(PHP_OS, 0, 3) == 'WIN') { 
     828            // ウインドウズの場合はパスの区切り記号が違う 
     829            $root_dir = $root_dir . "\\"; 
     830        }else{ 
     831            $root_dir = $root_dir . "/"; 
     832        } 
    823833    } 
    824834 
     
    842852    // 語尾に'/'をつける 
    843853    if (!ereg("/$", $data_path)) { 
    844         $data_path = $data_path . "/"; 
     854        if (substr(PHP_OS, 0, 3) == 'WIN') { 
     855            // ウインドウズの場合はパスの区切り記号が違う 
     856            $data_path = $data_path . "\\"; 
     857        }else{ 
     858            $data_path = $data_path . "/"; 
     859        } 
    845860    } 
    846861    $filepath = $data_path . "install.php"; 
Note: See TracChangeset for help on using the changeset viewer.