Changeset 12318


Ignore:
Timestamp:
2007/05/08 21:38:56 (16 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

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

    r12192 r12318  
    791791    $url_dir = ereg_replace("^https?://[a-zA-Z0-9_~=&\?\.\-]+", "", $normal_url); 
    792792     
    793     $data_path = $root_dir . HTML2DATA_DIR; 
     793    $data_path = sfRmDupSlash($root_dir . HTML2DATA_DIR); 
     794    $data_path = realpath($data_path); 
     795    // ¸ìÈø¤Ë'/'¤ò¤Ä¤±¤ë 
     796    if (!ereg("/$", $data_path)) { 
     797        $data_path = $data_path . "/"; 
     798    } 
    794799    $filepath = $data_path . "install.php"; 
    795800     
     
    809814    "    define ('DB_PORT', '" . $objDBParam->getValue('db_port') .  "');\n" . 
    810815    "    define ('DATA_PATH', '".$data_path."');\n" . 
    811     "    define ('MOBILE_HTML_PATH', HTML_PATH . 'mobile/');\n" . 
    812     "    define ('MOBILE_SITE_URL', SITE_URL . 'mobile/');\n" . 
    813     "    define ('MOBILE_SSL_URL', SSL_URL . 'mobile/');\n" . 
    814     "    define ('MOBILE_URL_DIR', URL_DIR . 'mobile/');\n" . 
     816    "    define ('MOBILE_HTML_PATH', HTML_PATH . 'mobile/');\n" . 
     817    "    define ('MOBILE_SITE_URL', SITE_URL . 'mobile/');\n" . 
     818    "    define ('MOBILE_SSL_URL', SSL_URL . 'mobile/');\n" . 
     819    "    define ('MOBILE_URL_DIR', URL_DIR . 'mobile/');\n" . 
    815820    "?>"; 
    816821     
Note: See TracChangeset for help on using the changeset viewer.