Changeset 5988 for temp/trunk/html


Ignore:
Timestamp:
2006/10/11 19:41:54 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/install/index.php

    r5987 r5988  
    405405function lfInitWebParam($objWebParam) { 
    406406     
    407     $install_dir = realpath(dirname( __FILE__) . "/../../") . "/"; 
    408     $normal_url = "http://" . $_SERVER['HTTP_HOST'] . "/"; 
    409     $secure_url = "http://" . $_SERVER['HTTP_HOST'] . "/"; 
     407    if(defined(ROOT_DIR)) { 
     408        $install_dir = ROOT_DIR; 
     409    } else { 
     410        $install_dir = realpath(dirname( __FILE__) . "/../../") . "/"; 
     411    } 
     412     
     413    if(defined(SITE_URL)) { 
     414        $normal_url = SITE_URL; 
     415    } else { 
     416        $normal_url = "http://" . $_SERVER['HTTP_HOST'] . "/"; 
     417    } 
     418     
     419    if(defined(SSL_URL)) { 
     420        $normal_url = SSL_URL; 
     421    } else { 
     422        $secure_url = "http://" . $_SERVER['HTTP_HOST'] . "/"; 
     423    } 
    410424 
    411425    $objWebParam->addParam("Ź̾", "shop_name", MTEXT_LEN, "", array("EXIST_CHECK","MAX_LENGTH_CHECK")); 
Note: See TracChangeset for help on using the changeset viewer.