Ignore:
Timestamp:
2007/04/25 10:47:28 (15 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/install/index.php

    r12154 r12176  
    588588        $install_dir = realpath(dirname( __FILE__) . "/../") . "/"; 
    589589    } 
     590     
     591    if(defined('DATA_PATH')) { 
     592        $data_dir = DATA_PATH; 
     593    } else { 
     594        $data_dir = realpath(dirname( __FILE__) . "/../../data") . "/"; 
     595    } 
    590596     
    591597    if(defined('SITE_URL')) { 
     
    619625    $objWebParam->addParam("´ÉÍý¼Ô¡§¥Ñ¥¹¥ï¡¼¥É", "login_pass", MTEXT_LEN, "", array("EXIST_CHECK","EXIST_CHECK", "ALNUM_CHECK")); 
    620626    $objWebParam->addParam("¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê", "install_dir", MTEXT_LEN, "", array("EXIST_CHECK","MAX_LENGTH_CHECK"), $install_dir); 
     627    $objWebParam->addParam("data¥Ç¥£¥ì¥¯¥È¥ê", "data_dir", MTEXT_LEN, "", array("EXIST_CHECK","MAX_LENGTH_CHECK"), $data_dir); 
    621628    $objWebParam->addParam("URL(Ä̾ï)", "normal_url", MTEXT_LEN, "", array("EXIST_CHECK","URL_CHECK","MAX_LENGTH_CHECK"), $normal_url); 
    622629    $objWebParam->addParam("URL(¥»¥­¥å¥¢)", "secure_url", MTEXT_LEN, "", array("EXIST_CHECK","URL_CHECK","MAX_LENGTH_CHECK"), $secure_url); 
     
    791798    $url_dir = ereg_replace("^https?://[a-zA-Z0-9_~=&\?\.\-]+", "", $normal_url); 
    792799     
    793     $data_path = $root_dir . "../data/"; 
    794     $filepath = $data_path . "install.inc"; 
     800    //$data_path = $root_dir . "../data/"; 
     801    //$filepath = $data_path . "install.inc"; 
    795802     
    796803    $config_data =  
     
    808815    "    define ('DB_NAME', '" . $objDBParam->getValue('db_name') . "');\n" . 
    809816    "    define ('DB_PORT', '" . $objDBParam->getValue('db_port') .  "');\n" . 
    810     "    define ('DATA_PATH', '".$data_path."');\n" . 
     817    //"    define ('DATA_PATH', '".$data_path."');\n" . 
    811818    "    define ('MOBILE_HTML_PATH', HTML_PATH . 'mobile/');\n" . 
    812819    "    define ('MOBILE_SITE_URL', SITE_URL . 'mobile/');\n" . 
Note: See TracChangeset for help on using the changeset viewer.