Changeset 19937
- Timestamp:
- 2011/01/17 03:28:37 (15 years ago)
- Location:
- branches/version-2_5-dev
- Files:
-
- 2 added
- 1 deleted
- 4 edited
-
data/class/SC_Initial.php (modified) (3 diffs)
-
data/class/pages/admin/basis/LC_Page_Admin_Basis.php (modified) (2 diffs)
-
data/config (added)
-
data/config/dummy (added)
-
data/install.php (deleted)
-
html/install/index.php (modified) (4 diffs)
-
setup.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Initial.php
r19869 r19937 71 71 function requireInitialConfig() { 72 72 73 require_once(realpath(dirname( __FILE__)) ."/../install.php"); 73 define('CONFIG_REALFILE', realpath(dirname(__FILE__)) . '/../config/config.php'); 74 if (file_exists(CONFIG_REALFILE)) { 75 require_once(CONFIG_REALFILE); 76 } 74 77 75 78 if (defined('ECCUBE_INSTALL')) { … … 132 135 */ 133 136 function phpconfigInit() { 134 ini_set("mbstring.http_input", CHAR_CODE); 135 ini_set("mbstring.http_output", CHAR_CODE); 136 ini_set("auto_detect_line_endings", 1); 137 ini_set("default_charset", CHAR_CODE); 138 ini_set("mbstring.internal_encoding", CHAR_CODE); 139 ini_set("mbstring.detect_order", "auto"); 140 ini_set("mbstring.substitute_character", "none"); 137 ini_set('display_errors', '1'); 138 ini_set('mbstring.http_input', CHAR_CODE); 139 ini_set('mbstring.http_output', CHAR_CODE); 140 ini_set('auto_detect_line_endings', 1); 141 ini_set('default_charset', CHAR_CODE); 142 ini_set('mbstring.internal_encoding', CHAR_CODE); 143 ini_set('mbstring.detect_order', 'auto'); 144 ini_set('mbstring.substitute_character', 'none'); 141 145 142 146 mb_language('ja'); // mb_internal_encoding() より前に … … 145 149 146 150 mb_internal_encoding(CHAR_CODE); // mb_language() より後で 147 // TODO 上の「ini_set( "mbstring.internal_encoding", CHAR_CODE);」を削除できないか検討151 // TODO 上の「ini_set('mbstring.internal_encoding', CHAR_CODE);」を削除できないか検討 148 152 // TODO .htaccess の mbstring.internal_encoding を削除できないか検討 149 153 150 ini_set( "arg_separator.output","&");154 ini_set('arg_separator.output', '&'); 151 155 152 156 //ロケールを明示的に設定 -
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php
r19875 r19937 222 222 } 223 223 224 //管理機能ディレクトリのリネームと install.phpの変更224 //管理機能ディレクトリのリネームと CONFIG_REALFILE の変更 225 225 function lfUpdateAdminData($array){ 226 226 $admin_dir = trim($array['admin_dir'])."/"; … … 240 240 $admin_allow_hosts = serialize($admin_allow_hosts); 241 241 242 // 権限チェック243 if(!is_writable( DATA_REALDIR . "install.php")){244 $this->arrErr["admin_force_ssl"] = DATA_REALDIR . "install.phpを変更する権限がありません。";242 // 権限チェック 243 if(!is_writable(CONFIG_REALFILE)){ 244 $this->arrErr["admin_force_ssl"] = CONFIG_REALFILE . ' を変更する権限がありません。'; 245 245 return false; 246 246 } 247 247 248 // install.phpの書き換え249 $installData = file( DATA_REALDIR."install.php",FILE_IGNORE_NEW_LINES);248 // CONFIG_REALFILE の書き換え 249 $installData = file(CONFIG_REALFILE, FILE_IGNORE_NEW_LINES); 250 250 $diff = 0; 251 251 foreach($installData as $key=>$line){ -
branches/version-2_5-dev/html/install/index.php
r19931 r19937 399 399 // プログラムで書込みされるファイル・ディレクトリ 400 400 $arrWriteFile = array( 401 DATA_REALDIR . "install.php",402 401 USER_REALDIR, 403 402 HTML_REALDIR . "upload", … … 408 407 DATA_REALDIR . "downloads/", 409 408 DATA_REALDIR . "upload/", 410 HTML_REALDIR . ADMIN_DIR 409 HTML_REALDIR . ADMIN_DIR, 411 410 ); 412 411 … … 926 925 $url_dir = ereg_replace("^https?://[a-zA-Z0-9_:~=&\?\.\-]+", "", $normal_url); 927 926 928 $filepath = DATA_REALDIR . "install.php";929 930 927 //管理機能SSL制限 931 928 if($objWebParam->getValue('admin_force_ssl') == 1 and strpos($secure_url,"https://") !== FALSE){ … … 968 965 "?>"; 969 966 970 if ($fp = fopen($filepath,"w")) {967 if ($fp = fopen(CONFIG_REALFILE, 'w')) { 971 968 fwrite($fp, $config_data); 972 969 fclose($fp); -
branches/version-2_5-dev/setup.sh
r19762 r19937 19 19 20 20 echo "set permissions..." 21 chmod a+w $WRK_DIR/data/install.php22 21 chmod -R a+w $WRK_DIR/html/install/temp 23 22 chmod -R a+w $WRK_DIR/html/user_data … … 29 28 chmod -R a+w $WRK_DIR/data/logs 30 29 chmod -R a+w $WRK_DIR/data/upload 30 chmod -R a+w $WRK_DIR/data/config 31 31 32 32 echo "finished."
Note: See TracChangeset
for help on using the changeset viewer.
