Changeset 16783 for branches/feature-module-update/html/install/index.php
- Timestamp:
- 2007/11/13 11:32:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/html/install/index.php
r16774 r16783 630 630 $install_dir = HTML_PATH; 631 631 } 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 } 633 638 } 634 639 … … 820 825 // 語尾に'/'をつける 821 826 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 } 823 833 } 824 834 … … 842 852 // 語尾に'/'をつける 843 853 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 } 845 860 } 846 861 $filepath = $data_path . "install.php";
Note: See TracChangeset
for help on using the changeset viewer.