Ignore:
Timestamp:
2011/01/08 06:19:28 (13 years ago)
Author:
tao
Message:

refs #841 shopマスタでの変更機能を追加。あと凡ミスも修正。

File:
1 edited

Legend:

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

    r19855 r19856  
    656656    //管理画面のディレクトリ名を取得(再インストール時) 
    657657    if(defined("ADMIN_DIR")){ 
    658         $admin_dir = ADMIN_DIR; 
     658        $admin_dir = str_replace("/","",ADMIN_DIR); 
    659659    } 
    660660 
     
    737737    // パスワードのチェック 
    738738    $objErr->doFunc( array("管理者:パスワード",'login_pass',ID_MIN_LEN , ID_MAX_LEN ) ,array("SPTAB_CHECK" ,"NUM_RANGE_CHECK" )); 
    739  
    740     // 管理画面ディレクトリ名のチェック 
    741     $objErr->doFunc( array("管理画面:ディレクトリ",'admin_dir',ID_MIN_LEN , ID_MAX_LEN ) ,array("SPTAB_CHECK" ,"NUM_RANGE_CHECK" )); 
    742739 
    743740    return $objErr->arrErr; 
     
    924921    $force_ssl = FALSE; 
    925922    if($objWebParam->getValue('admin_force_ssl') == 1){ 
    926         $force_ssl = TRUE; 
     923        $force_ssl = "TRUE"; 
     924    }else{ 
     925        $force_ssl = "FALSE"; 
    927926    } 
    928927    //管理画面IP制限 
     
    931930    if(!empty($hosts)){ 
    932931        $hosts = str_replace("\r","",$hosts); 
    933         if(strpos("\n",$hosts) === false){ 
     932        if(strpos($hosts,"\n") === false){ 
    934933            $hosts .= "\n"; 
    935934        } 
     
    956955    "    define ('DB_PORT', '" . $objDBParam->getValue('db_port') .  "');\n" . 
    957956    "    define ('ADMIN_DIR', '" . $objWebParam->getValue('admin_dir') .  "/');\n" . 
    958     "    define ('ADMIN_FORCE_SSL', " . $force_ssl .  ");\n"; 
    959     if(count($allow_hosts) > 0){ 
    960         $config_data .= "    define ('ADMIN_ALLOW_HOSTS', '".serialize($allow_hosts)."');\n"; 
    961     } 
    962     $config_data .= "?>"; 
     957    "    define ('ADMIN_FORCE_SSL', " . $force_ssl .  ");\n". 
     958    "    define ('ADMIN_ALLOW_HOSTS', '".serialize($allow_hosts)."');\n". 
     959    "?>"; 
    963960 
    964961    if($fp = fopen($filepath,"w")) { 
Note: See TracChangeset for help on using the changeset viewer.