Changeset 18530
- Timestamp:
- 2010/02/02 12:14:45 (13 years ago)
- bzr:base-revision:
- ohkouchi@loop-az.jp-20100202024041-986jxcpp6l2zrxje
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20100202031442-uhsr1elsbcg0adn4
- bzr:revno:
- 1900
- bzr:revprop:branch-nick:
- branches/version-2_4
- bzr:root:
- branches/version-2_4
- bzr:text-parents:
data/class/util/SC_Utils.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_4:18274- bzr:timestamp:
- 2010-02-02 12:14:42.119999886 +0900
- bzr:user-agent:
- bzr2.0.4+bzr-svn1.0.1
- svn:original-date:
- 2010-02-02T03:14:42.120000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/class/util/SC_Utils.php
r18274 r18530 83 83 if( !ereg('/install/', $_SERVER['PHP_SELF']) ) { 84 84 // インストールページに遷移させる 85 header('Location: ./install/'); 85 86 $script_filename = $_SERVER['SCRIPT_FILENAME']; 87 list($real_root, $tmp) = explode('/html/', $script_filename); 88 $real_root = $real_root . '/html/'; 89 $script_name = $_SERVER['SCRIPT_NAME']; 90 $url_dir = rtrim($script_name, basename($script_name)); 91 92 if ($dh = opendir($real_root)) { 93 $arrDir = array(); 94 while ($entry = readdir($dh)) { 95 if (is_dir($real_root.$entry) && !in_array($entry, array('.', '..', '.svn', 'install'))) { 96 $url_dir = rtrim($url_dir, $entry.'/'); 97 } 98 } 99 closedir($dh); 100 } 101 102 $location = $url_dir . '/install/'; 103 header('Location: ' . $location); 86 104 exit; 87 105 }
Note: See TracChangeset
for help on using the changeset viewer.