Changeset 12317
- Timestamp:
- 2007/05/08 21:38:38 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel/html/install/index.php
r12157 r12317 7 7 require_once("../require.php"); 8 8 $INSTALL_DIR = realpath(dirname( __FILE__)); 9 require_once("../ ../data/module/Request.php");9 require_once("../" . HTML2DATA_DIR . "module/Request.php"); 10 10 11 11 define("INSTALL_LOG", "./temp/install.log"); … … 366 366 // ¥×¥í¥°¥é¥à¤Ç½ñ¹þ¤ß¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥ì¥¯¥È¥ê 367 367 $arrWriteFile = array( 368 ".. /../data/install.inc",368 ".." . HTML2DATA_DIR . "install.php", 369 369 "../user_data", 370 370 "../cp", 371 371 "../upload", 372 ".. /../data/Smarty/templates_c",373 ".. /../data/downloads",374 ".. /../data/logs"372 ".." . HTML2DATA_DIR . "Smarty/templates_c", 373 ".." . HTML2DATA_DIR . "downloads", 374 ".." . HTML2DATA_DIR . "logs" 375 375 ); 376 376 … … 406 406 // ¸¢¸Â¥¨¥é¡¼Åù¤¬È¯À¸¤·¤Æ¤¤¤Ê¤¤¾ì¹ç 407 407 if(!$err_file) { 408 $path = ".. /../data/Smarty/templates_c/admin";408 $path = ".." . HTML2DATA_DIR . "Smarty/templates_c/admin"; 409 409 if(!file_exists($path)) { 410 410 mkdir($path); … … 434 434 mkdir($path); 435 435 } 436 $path = ".. /../data/downloads/module";436 $path = ".." . HTML2DATA_DIR . "downloads/module"; 437 437 if(!file_exists($path)) { 438 438 mkdir($path); 439 439 } 440 $path = ".. /../data/downloads/update";440 $path = ".." . HTML2DATA_DIR . "downloads/update"; 441 441 if(!file_exists($path)) { 442 442 mkdir($path); … … 791 791 $url_dir = ereg_replace("^https?://[a-zA-Z0-9_~=&\?\.\-]+", "", $normal_url); 792 792 793 $data_path = $root_dir . "../data/"; 794 $filepath = $data_path . "install.inc"; 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 } 799 $filepath = $data_path . "install.php"; 795 800 796 801 $config_data = … … 809 814 " define ('DB_PORT', '" . $objDBParam->getValue('db_port') . "');\n" . 810 815 " define ('DATA_PATH', '".$data_path."');\n" . 811 " 812 " 813 " 814 " 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" . 815 820 "?>"; 816 821
Note: See TracChangeset
for help on using the changeset viewer.