Changeset 19856 for branches/version-2_5-dev/html/install/index.php
- Timestamp:
- 2011/01/08 06:19:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/html/install/index.php
r19855 r19856 656 656 //管理画面のディレクトリ名を取得(再インストール時) 657 657 if(defined("ADMIN_DIR")){ 658 $admin_dir = ADMIN_DIR;658 $admin_dir = str_replace("/","",ADMIN_DIR); 659 659 } 660 660 … … 737 737 // パスワードのチェック 738 738 $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" ));742 739 743 740 return $objErr->arrErr; … … 924 921 $force_ssl = FALSE; 925 922 if($objWebParam->getValue('admin_force_ssl') == 1){ 926 $force_ssl = TRUE; 923 $force_ssl = "TRUE"; 924 }else{ 925 $force_ssl = "FALSE"; 927 926 } 928 927 //管理画面IP制限 … … 931 930 if(!empty($hosts)){ 932 931 $hosts = str_replace("\r","",$hosts); 933 if(strpos( "\n",$hosts) === false){932 if(strpos($hosts,"\n") === false){ 934 933 $hosts .= "\n"; 935 934 } … … 956 955 " define ('DB_PORT', '" . $objDBParam->getValue('db_port') . "');\n" . 957 956 " 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 "?>"; 963 960 964 961 if($fp = fopen($filepath,"w")) {
Note: See TracChangeset
for help on using the changeset viewer.