mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
install script 지원 및 PHP의 safe_mode가 아닌경우 FTP설정 넘김
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7106 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
45da101814
commit
08c1507444
1 changed files with 15 additions and 2 deletions
|
|
@ -31,7 +31,20 @@
|
|||
* @brief license 메세지 노출
|
||||
**/
|
||||
function dispInstallIntroduce() {
|
||||
$this->setTemplateFile('introduce');
|
||||
$install_config_file = FileHandler::getRealPath('./config/install.config.php');
|
||||
if(file_exists($install_config_file)){
|
||||
include $install_config_file;
|
||||
if(is_array($install_config)){
|
||||
foreach($install_config as $k => $v) Context::set($k,$v,true);
|
||||
unset($GLOBALS['__DB__']);
|
||||
$oInstallController = &getController('install');
|
||||
$oInstallController->procInstall();
|
||||
header("location: ./");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$this->setTemplateFile('introduce');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -50,7 +63,7 @@
|
|||
if(!$this->install_enable) return $this->dispInstallCheckEnv();
|
||||
|
||||
// ftp 정보 입력
|
||||
if(!Context::isFTPRegisted()) {
|
||||
if(ini_get('safe_mode') && !Context::isFTPRegisted()) {
|
||||
$this->setTemplateFile('ftp');
|
||||
} else {
|
||||
$this->setTemplateFile('select_db');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue