Changeset 16399
- Timestamp:
- 2007/10/13 20:33:41 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/LC_Page.php
r16367 r16399 202 202 $realPath = realpath($path); 203 203 } 204 204 205 205 // FIXME OS依存の処理は別クラスに分ける? 206 206 // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する 207 207 if (substr(PHP_OS, 0, 3) == 'WIN') { 208 208 $realPath = str_replace("\\", "/", $realPath); 209 } 210 211 // HTML_PATH を削除した文字列を取得. 212 $root = str_replace(HTML_PATH, "", $realPath); 213 209 $htmlPath = str_replace("\\", "/", HTML_PATH); 210 $rootPath = str_replace($htmlPath, "", $realPath); 211 } else { 212 // HTML_PATH を削除した文字列を取得. 213 $rootPath = str_replace(HTML_PATH, "", $realPath); 214 } 215 216 214 217 // スキーマを定義 215 218 if ($useSSL === true) { 216 $url = SSL_URL . $root ;219 $url = SSL_URL . $rootPath; 217 220 } elseif ($useSSL === false){ 218 $url = SITE_URL . $root ;221 $url = SITE_URL . $rootPath; 219 222 } elseif ($useSSL == "escape") { 220 223 if (SC_Utils_Ex::sfIsHTTPS()) { 221 $url = SSL_URL . $root ;224 $url = SSL_URL . $rootPath; 222 225 } else { 223 $url = SITE_URL . $root ;226 $url = SITE_URL . $rootPath; 224 227 } 225 228 } else {
Note: See TracChangeset
for help on using the changeset viewer.