Ignore:
Timestamp:
2010/12/31 10:46:42 (13 years ago)
Author:
Seasoft
Message:

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある) 一部改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/install/index.php

    r19781 r19802  
    2323// ▼require.php 相当 
    2424// rtrim は PHP バージョン依存対策 
    25 define('HTML_PATH', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 
    26  
    27 require_once HTML_PATH . 'define.php'; 
     25define('HTML_FILE_PATH', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 
     26 
     27require_once HTML_FILE_PATH . 'define.php'; 
    2828define('INSTALL_FUNCTION', true); 
    29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
     29require_once HTML_FILE_PATH . HTML2DATA_DIR . 'require_base.php'; 
    3030// ▲require.php 相当 
    3131 
    3232$INSTALL_DIR = realpath(dirname( __FILE__)); 
    33 require_once(DATA_PATH . "module/Request.php"); 
     33require_once(DATA_FILE_PATH . "module/Request.php"); 
    3434 
    3535define("INSTALL_LOG", "./temp/install.log"); 
     
    389389    // プログラムで書込みされるファイル・ディレクトリ 
    390390    $arrWriteFile = array( 
    391         DATA_PATH . "install.php", 
     391        DATA_FILE_PATH . "install.php", 
    392392        USER_PATH, 
    393         HTML_PATH . "upload", 
    394         DATA_PATH . "cache/", 
    395         DATA_PATH . "class/", 
    396         DATA_PATH . "Smarty/", 
    397         DATA_PATH . "logs/", 
    398         DATA_PATH . "downloads/", 
    399         DATA_PATH . "upload/", 
     393        HTML_FILE_PATH . "upload", 
     394        DATA_FILE_PATH . "cache/", 
     395        DATA_FILE_PATH . "class/", 
     396        DATA_FILE_PATH . "Smarty/", 
     397        DATA_FILE_PATH . "logs/", 
     398        DATA_FILE_PATH . "downloads/", 
     399        DATA_FILE_PATH . "upload/", 
    400400    ); 
    401401 
     
    457457        $objPage->tpl_mode = 'step0'; 
    458458        umask(0); 
    459         $path = HTML_PATH . "upload/temp_template"; 
     459        $path = HTML_FILE_PATH . "upload/temp_template"; 
    460460        if(!file_exists($path)) { 
    461461            mkdir($path); 
    462462        } 
    463         $path = HTML_PATH . "upload/save_image"; 
     463        $path = HTML_FILE_PATH . "upload/save_image"; 
    464464        if(!file_exists($path)) { 
    465465            mkdir($path); 
    466466        } 
    467         $path = HTML_PATH . "upload/temp_image"; 
     467        $path = HTML_FILE_PATH . "upload/temp_image"; 
    468468        if(!file_exists($path)) { 
    469469            mkdir($path); 
    470470        } 
    471         $path = HTML_PATH . "upload/graph_image"; 
     471        $path = HTML_FILE_PATH . "upload/graph_image"; 
    472472        if(!file_exists($path)) { 
    473473            mkdir($path); 
    474474        } 
    475         $path = HTML_PATH . "upload/mobile_image"; 
     475        $path = HTML_FILE_PATH . "upload/mobile_image"; 
    476476        if(!file_exists($path)) { 
    477477            mkdir($path); 
    478478        } 
    479         $path = DATA_PATH . "downloads/module"; 
     479        $path = DATA_FILE_PATH . "downloads/module"; 
    480480        if(!file_exists($path)) { 
    481481            mkdir($path); 
    482482        } 
    483         $path = DATA_PATH . "downloads/update"; 
     483        $path = DATA_FILE_PATH . "downloads/update"; 
    484484        if(!file_exists($path)) { 
    485485            mkdir($path); 
    486486        } 
    487         $path = DATA_PATH . "upload/csv"; 
     487        $path = DATA_FILE_PATH . "upload/csv"; 
    488488        if(!file_exists($path)) { 
    489489            mkdir($path); 
     
    513513    // ファイルコピー 
    514514    $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./user_data/", USER_PATH, $objPage->copy_mess); 
    515     $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./save_image/", HTML_PATH . "upload/save_image/", $objPage->copy_mess); 
     515    $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./save_image/", HTML_FILE_PATH . "upload/save_image/", $objPage->copy_mess); 
    516516    return $objPage; 
    517517} 
     
    620620    global $objDb; 
    621621 
    622     if(defined('SITE_URL')) { 
    623         $normal_url = SITE_URL; 
     622    if(defined('HTTP_URL')) { 
     623        $normal_url = HTTP_URL; 
    624624    } else { 
    625625        $dir = ereg_replace("install/.*$", "", $_SERVER['REQUEST_URI']); 
     
    627627    } 
    628628 
    629     if(defined('SSL_URL')) { 
    630         $secure_url = SSL_URL; 
     629    if(defined('HTTPS_URL')) { 
     630        $secure_url = HTTPS_URL; 
    631631    } else { 
    632632        $dir = ereg_replace("install/.*$", "", $_SERVER['REQUEST_URI']); 
     
    900900    $url_dir = ereg_replace("^https?://[a-zA-Z0-9_:~=&\?\.\-]+", "", $normal_url); 
    901901 
    902     $filepath = DATA_PATH . "install.php"; 
     902    $filepath = DATA_FILE_PATH . "install.php"; 
    903903 
    904904    $config_data = 
    905905    "<?php\n". 
    906906    "    define ('ECCUBE_INSTALL', 'ON');\n" . 
    907     "    define ('SITE_URL', '" . $normal_url . "');\n" . 
    908     "    define ('SSL_URL', '" . $secure_url . "');\n" . 
    909     "    define ('URL_DIR', '" . $url_dir . "');\n" . 
     907    "    define ('HTTP_URL', '" . $normal_url . "');\n" . 
     908    "    define ('HTTPS_URL', '" . $secure_url . "');\n" . 
     909    "    define ('URL_PATH', '" . $url_dir . "');\n" . 
    910910    "    define ('DOMAIN_NAME', '" . $objWebParam->getValue('domain') . "');\n" . 
    911911    "    define ('DB_TYPE', '" . $objDBParam->getValue('db_type') . "');\n" . 
Note: See TracChangeset for help on using the changeset viewer.