- Timestamp:
- 2008/07/29 20:55:08 (18 years ago)
- Location:
- branches/comu-ver2/html
- Files:
-
- 6 edited
-
admin/require.php (modified) (4 diffs)
-
define.php (modified) (1 diff)
-
install/index.php (modified) (10 diffs)
-
install/templates/step1.tpl (modified) (1 diff)
-
mobile/require.php (modified) (3 diffs)
-
require.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/html/admin/require.php
r17182 r17477 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 $include_dir = realpath(dirname( __FILE__)); 24 require_once($include_dir . "/../define.php"); 23 24 $include_dir = realpath(dirname( __FILE__)) . '/'; 25 26 if (!defined("HTML_PATH")) { 27 define("HTML_PATH", realpath($include_dir . '../') . '/'); 28 } 29 30 require_once(HTML_PATH . "define.php"); 31 32 if (!defined("DATA_PATH")) { 33 define("DATA_PATH", HTML_PATH . HTML2DATA_DIR); 34 } 35 25 36 if (!defined("CLASS_PATH")) { 26 37 /** クラスパス */ 27 define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR. "class/");38 define("CLASS_PATH", DATA_PATH . "class/"); 28 39 } 29 40 30 41 if (!defined("CLASS_EX_PATH")) { 31 42 /** クラスパス */ 32 define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR. "class_extends/");43 define("CLASS_EX_PATH", DATA_PATH . "class_extends/"); 33 44 } 34 45 35 46 if (!defined("CACHE_PATH")) { 36 47 /** キャッシュ生成ディレクトリ */ 37 define("CACHE_PATH", $include_dir . "/.." . HTML2DATA_DIR. "cache/");48 define("CACHE_PATH", DATA_PATH . "cache/"); 38 49 } 39 50 require_once(CLASS_EX_PATH . "SC_Initial_Ex.php"); … … 42 53 $objInit->init(); 43 54 44 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 55 56 require_once(DATA_PATH . "include/module.inc"); 45 57 require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 46 58 require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); … … 67 79 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 68 80 69 require_once( $include_dir . "/.." . HTML2DATA_DIR. "module/Mail.php");70 require_once( $include_dir . "/.." . HTML2DATA_DIR. "module/Mail/mime.php");81 require_once(DATA_PATH . "module/Mail.php"); 82 require_once(DATA_PATH . "module/Mail/mime.php"); 71 83 72 84 // インストールチェック … … 75 87 // セッションハンドラ開始 76 88 $objSession = new SC_Helper_Session_Ex(); 89 77 90 // セッション初期化・開始 78 91 require_once CLASS_PATH . 'session/SC_SessionFactory.php'; -
branches/comu-ver2/html/define.php
r15745 r17477 1 1 <?php 2 2 /** HTMLディレクトリからのDATAディレクトリの相対パス */ 3 define("HTML2DATA_DIR", " /../data/");3 define("HTML2DATA_DIR", "../data/"); 4 4 5 5 /** DATA ディレクトリから HTML ディレクトリの相対パス */ 6 define("DATA_DIR2HTML", " /../html/");6 define("DATA_DIR2HTML", "../html/"); 7 7 8 8 /* -
branches/comu-ver2/html/install/index.php
r17419 r17477 23 23 require_once("../require.php"); 24 24 $INSTALL_DIR = realpath(dirname( __FILE__)); 25 require_once( "../" . HTML2DATA_DIR. "module/Request.php");25 require_once(DATA_PATH . "module/Request.php"); 26 26 27 27 define("INSTALL_LOG", "./temp/install.log"); … … 382 382 // プログラムで書込みされるファイル・ディレクトリ 383 383 $arrWriteFile = array( 384 ".." . HTML2DATA_DIR. "install.php",385 "../user_data",386 "../cp",387 "../upload",388 ".." . HTML2DATA_DIR. "cache/",389 ".." . HTML2DATA_DIR. "class/",390 ".." . HTML2DATA_DIR. "Smarty/",391 ".." . HTML2DATA_DIR. "logs/",392 ".." . HTML2DATA_DIR. "downloads/"384 DATA_PATH . "install.php", 385 HTML_PATH . "user_data", 386 HTML_PATH . "cp", 387 HTML_PATH . "upload", 388 DATA_PATH . "cache/", 389 DATA_PATH . "class/", 390 DATA_PATH . "Smarty/", 391 DATA_PATH . "logs/", 392 DATA_PATH . "downloads/" 393 393 ); 394 394 … … 434 434 // 権限エラー等が発生していない場合 435 435 if(!$err_file) { 436 $path = ".." . HTML2DATA_DIR. "Smarty/templates_c/admin";436 $path = DATA_PATH . "Smarty/templates_c/admin"; 437 437 if(!file_exists($path)) { 438 438 mkdir($path); 439 439 } 440 $path = ".." . HTML2DATA_DIR. "Smarty/templates_c/mobile";440 $path = DATA_PATH . "Smarty/templates_c/mobile"; 441 441 if(!file_exists($path)) { 442 442 mkdir($path); 443 443 } 444 $path = "../upload/temp_template";444 $path = HTML_PATH . "upload/temp_template"; 445 445 if(!file_exists($path)) { 446 446 mkdir($path); 447 447 } 448 $path = "../upload/save_image";448 $path = HTML_PATH . "upload/save_image"; 449 449 if(!file_exists($path)) { 450 450 mkdir($path); 451 451 } 452 $path = "../upload/temp_image";452 $path = HTML_PATH . "upload/temp_image"; 453 453 if(!file_exists($path)) { 454 454 mkdir($path); 455 455 } 456 $path = "../upload/graph_image";456 $path = HTML_PATH . "upload/graph_image"; 457 457 if(!file_exists($path)) { 458 458 mkdir($path); 459 459 } 460 $path = "../upload/mobile_image";460 $path = HTML_PATH . "upload/mobile_image"; 461 461 if(!file_exists($path)) { 462 462 mkdir($path); 463 463 } 464 $path = "../upload/csv";464 $path = HTML_PATH . "upload/csv"; 465 465 if(!file_exists($path)) { 466 466 mkdir($path); 467 467 } 468 $path = ".." . HTML2DATA_DIR. "downloads/module";468 $path = DATA_PATH . "downloads/module"; 469 469 if(!file_exists($path)) { 470 470 mkdir($path); 471 471 } 472 $path = ".." . HTML2DATA_DIR. "downloads/update";472 $path = DATA_PATH . "downloads/update"; 473 473 if(!file_exists($path)) { 474 474 mkdir($path); … … 497 497 $objPage->tpl_mode = 'step0_1'; 498 498 // ファイルコピー 499 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./user_data/", "../user_data/", $objPage->copy_mess); 500 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./save_image/", "../upload/save_image/", $objPage->copy_mess); 501 return $objPage; 502 } 503 504 // STEP0_2画面の表示(ファイルのコピー) 505 function lfDispStep0_2($objPage) { 506 global $objWebParam; 507 global $objDBParam; 508 // hiddenに入力値を保持 509 $objPage->arrHidden = $objWebParam->getHashArray(); 510 // hiddenに入力値を保持 511 $objPage->arrHidden = array_merge($objPage->arrHidden, $objDBParam->getHashArray()); 512 $objPage->arrHidden['db_skip'] = $_POST['db_skip']; 513 $objPage->arrHidden['agreement'] = $_POST['agreement']; 514 $objPage->tpl_mainpage = 'step0_1.tpl'; 515 $objPage->tpl_mode = 'step0_1'; 516 // ファイルコピー 517 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./user_data/", "../user_data/", $objPage->copy_mess); 518 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./save_image/", "../upload/save_image/", $objPage->copy_mess); 499 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./user_data/", HTML_PATH . "user_data/", $objPage->copy_mess); 500 $objPage->copy_mess = SC_Utils_Ex::sfCopyDir("./save_image/", HTML_PATH . "upload/save_image/", $objPage->copy_mess); 519 501 return $objPage; 520 502 } … … 623 605 global $objDb; 624 606 625 if(defined('HTML_PATH')) {626 $install_dir = HTML_PATH;627 } else {628 $install_dir = realpath(dirname( __FILE__) . "/../") . "/";629 }630 631 607 if(defined('SITE_URL')) { 632 608 $normal_url = SITE_URL; … … 658 634 $objWebParam->addParam("管理者:ログインID", "login_id", MTEXT_LEN, "", array("EXIST_CHECK","EXIST_CHECK", "ALNUM_CHECK")); 659 635 $objWebParam->addParam("管理者:パスワード", "login_pass", MTEXT_LEN, "", array("EXIST_CHECK","EXIST_CHECK", "ALNUM_CHECK")); 660 $objWebParam->addParam("インストールディレクトリ", "install_dir", MTEXT_LEN, "", array("EXIST_CHECK","MAX_LENGTH_CHECK"), $install_dir);661 636 $objWebParam->addParam("URL(通常)", "normal_url", MTEXT_LEN, "", array("EXIST_CHECK","URL_CHECK","MAX_LENGTH_CHECK"), $normal_url); 662 637 $objWebParam->addParam("URL(セキュア)", "secure_url", MTEXT_LEN, "", array("EXIST_CHECK","URL_CHECK","MAX_LENGTH_CHECK"), $secure_url); … … 812 787 global $objWebParam; 813 788 global $objDBParam; 814 815 $root_dir = $objWebParam->getValue('install_dir'); 816 $root_dir = str_replace("\\", "/", $root_dir); 817 // 語尾に'/'をつける 818 if (!ereg("/$", $root_dir)) { 819 $root_dir = $root_dir . "/"; 820 } 821 789 global $INSTALL_DIR; 790 822 791 $normal_url = $objWebParam->getValue('normal_url'); 823 792 // 語尾に'/'をつける … … 835 804 $url_dir = ereg_replace("^https?://[a-zA-Z0-9_:~=&\?\.\-]+", "", $normal_url); 836 805 837 $data_path = SC_Utils_Ex::sfRmDupSlash($root_dir . HTML2DATA_DIR); 838 $data_path = str_replace("\\", "/", realpath($data_path)); 839 // 語尾に'/'をつける 840 if (!ereg("/$", $data_path)) { 841 $data_path = $data_path . "/"; 842 } 843 844 $filepath = $data_path . "install.php"; 806 $filepath = DATA_PATH . "install.php"; 845 807 846 808 $config_data = 847 809 "<?php\n". 848 810 " define ('ECCUBE_INSTALL', 'ON');\n" . 849 " define ('HTML_PATH', '" . $root_dir . "');\n" .850 811 " define ('SITE_URL', '" . $normal_url . "');\n" . 851 812 " define ('SSL_URL', '" . $secure_url . "');\n" . … … 858 819 " define ('DB_NAME', '" . $objDBParam->getValue('db_name') . "');\n" . 859 820 " define ('DB_PORT', '" . $objDBParam->getValue('db_port') . "');\n" . 860 " define ('DATA_PATH', '".$data_path."');\n" .861 821 " define ('MOBILE_HTML_PATH', HTML_PATH . 'mobile/');\n" . 862 822 " define ('MOBILE_SITE_URL', SITE_URL . 'mobile/');\n" . … … 869 829 fclose($fp); 870 830 } 871 /* install_mobile.incは使用しない用に変更872 873 // モバイル版の設定ファイル install_mobile.inc を作成する。874 $filepath = $data_path . "install_mobile.inc";875 876 $config_data =877 "<?php\n".878 " define ('ECCUBE_INSTALL', 'ON');\n" .879 " define ('HTML_PATH', '" . $root_dir . "mobile/');\n" .880 " define ('PC_HTML_PATH', '" . $root_dir . "');\n" .881 " define ('SITE_URL', '" . $normal_url . "mobile/');\n" .882 " define ('PC_SITE_URL', '" . $normal_url . "');\n" .883 " define ('SSL_URL', '" . $secure_url . "mobile/');\n" .884 " define ('PC_SSL_URL', '" . $secure_url . "');\n" .885 " define ('URL_DIR', '" . $url_dir . "mobile/');\n" .886 " define ('PC_URL_DIR', '" . $url_dir . "');\n" .887 " define ('DOMAIN_NAME', '" . $objWebParam->getValue('domain') . "');\n" .888 " define ('DB_TYPE', '" . $objDBParam->getValue('db_type') . "');\n" .889 " define ('DB_USER', '" . $objDBParam->getValue('db_user') . "');\n" .890 " define ('DB_PASSWORD', '" . $objDBParam->getValue('db_password') . "');\n" .891 " define ('DB_SERVER', '" . $objDBParam->getValue('db_server') . "');\n" .892 " define ('DB_NAME', '" . $objDBParam->getValue('db_name') . "');\n" .893 " define ('DB_PORT', '" . $objDBParam->getValue('db_port') . "');\n" .894 " define ('DATA_PATH', '".$data_path."');\n" .895 "?>";896 897 if($fp = fopen($filepath,"w")) {898 fwrite($fp, $config_data);899 fclose($fp);900 }901 */902 831 } 903 832 -
branches/comu-ver2/html/install/templates/step1.tpl
r16724 r17477 79 79 <table width="500" border="0" cellspacing="1" cellpadding="8" summary=" "> 80 80 <tr> 81 <td bgcolor="#f2f1ec" width="150" class="fs12n">HTMLパス<span class="red">※</span></td>82 <td bgcolor="#ffffff" width="332" class="fs12">83 <!--{assign var=key value="install_dir"}-->84 <span class="red"><!--{$arrErr[$key]}--></span>85 <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />86 </td>87 </tr>88 <tr>89 81 <td bgcolor="#f2f1ec" width="150" class="fs12n">URL(通常)<span class="red">※</span></td> 90 82 <td bgcolor="#ffffff" width="332" class="fs12"> -
branches/comu-ver2/html/mobile/require.php
r17137 r17477 21 21 * along with this program; if not, write to the Free Software 22 22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 */ 23 24 24 */ 25 $include_dir = realpath(dirname( __FILE__)); 26 require_once($include_dir . "/../define.php"); 25 $include_dir = realpath(dirname( __FILE__)) . '/'; 26 27 if (!defined("HTML_PATH")) { 28 define("HTML_PATH", realpath($include_dir . '../') . '/'); 29 } 30 31 require_once(HTML_PATH . "define.php"); 32 33 if (!defined("DATA_PATH")) { 34 define("DATA_PATH", HTML_PATH . HTML2DATA_DIR); 35 } 36 27 37 if (!defined("CLASS_PATH")) { 28 38 /** クラスパス */ 29 define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR. "class/");39 define("CLASS_PATH", DATA_PATH . "class/"); 30 40 } 31 41 32 42 if (!defined("CLASS_EX_PATH")) { 33 43 /** クラスパス */ 34 define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR. "class_extends/");44 define("CLASS_EX_PATH", DATA_PATH . "class_extends/"); 35 45 } 36 46 37 47 if (!defined("CACHE_PATH")) { 38 48 /** キャッシュ生成ディレクトリ */ 39 define("CACHE_PATH", $include_dir . "/.." . HTML2DATA_DIR. "cache/");49 define("CACHE_PATH", DATA_PATH . "cache/"); 40 50 } 41 51 require_once(CLASS_EX_PATH . "SC_Initial_Mobile_Ex.php"); … … 44 54 $objInit->init(); 45 55 46 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 56 57 require_once(DATA_PATH . "include/module.inc"); 47 58 require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 48 59 require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); … … 75 86 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 76 87 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 77 include_once($include_dir . " /require_plugin.php");88 include_once($include_dir . "require_plugin.php"); 78 89 79 90 // セッションハンドラ開始 -
branches/comu-ver2/html/require.php
r17137 r17477 22 22 */ 23 23 24 $include_dir = realpath(dirname( __FILE__)); 25 require_once($include_dir . "/define.php"); 24 $include_dir = realpath(dirname( __FILE__)) . '/'; 25 26 if (!defined("HTML_PATH")) { 27 define("HTML_PATH", realpath($include_dir) . '/'); 28 } 29 30 require_once(HTML_PATH . "define.php"); 31 32 if (!defined("DATA_PATH")) { 33 define("DATA_PATH", HTML_PATH . HTML2DATA_DIR); 34 } 35 26 36 if (!defined("CLASS_PATH")) { 27 37 /** クラスパス */ 28 define("CLASS_PATH", $include_dir . HTML2DATA_DIR. "class/");38 define("CLASS_PATH", DATA_PATH . "class/"); 29 39 } 30 40 31 41 if (!defined("CLASS_EX_PATH")) { 32 42 /** クラスパス */ 33 define("CLASS_EX_PATH", $include_dir . HTML2DATA_DIR. "class_extends/");43 define("CLASS_EX_PATH", DATA_PATH . "class_extends/"); 34 44 } 35 45 36 46 if (!defined("CACHE_PATH")) { 37 47 /** キャッシュ生成ディレクトリ */ 38 define("CACHE_PATH", $include_dir . HTML2DATA_DIR. "cache/");48 define("CACHE_PATH", DATA_PATH . "cache/"); 39 49 } 40 50 require_once(CLASS_EX_PATH . "SC_Initial_Ex.php"); … … 44 54 45 55 46 require_once( $include_dir . HTML2DATA_DIR. "include/module.inc");56 require_once(DATA_PATH . "include/module.inc"); 47 57 require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 48 58 require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); … … 76 86 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 77 87 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php"); 78 include_once($include_dir . " /require_plugin.php");88 include_once($include_dir . "require_plugin.php"); 79 89 80 90 // セッションハンドラ開始
Note: See TracChangeset
for help on using the changeset viewer.
