mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
설치시 rewrite mod 사용유무 및 timezone설정. 관리자 페이지에 timezone변경 및 언어변경 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2f328baecf
commit
03fbd6d257
17 changed files with 121 additions and 69 deletions
|
|
@ -9,5 +9,6 @@
|
|||
|
||||
<action name="procInstall" type="controller" standalone="true" />
|
||||
<action name="procInstallAdminInstall" type="controller" standalone="true" />
|
||||
<action name="procInstallAdminSaveTimeZone" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -27,5 +27,20 @@
|
|||
$this->setMessage('success_installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief time zone변경
|
||||
**/
|
||||
function procInstallAdminSaveTimeZone() {
|
||||
$time_zone = Context::get('time_zone');
|
||||
|
||||
$db_info = Context::getDBInfo();
|
||||
$db_info->time_zone = $time_zone;
|
||||
Context::setDBInfo($db_info);
|
||||
|
||||
$oInstallController = &getController('install');
|
||||
$oInstallController->makeConfigFile();
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
**/
|
||||
function makeConfigFile() {
|
||||
$config_file = Context::getConfigFile();
|
||||
if(file_exists($config_file)) return;
|
||||
//if(file_exists($config_file)) return;
|
||||
|
||||
$db_info = Context::getDbInfo();
|
||||
if(!$db_info) return;
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ EndOfLicense;
|
|||
$lang->env_title = '환경 설정';
|
||||
$lang->use_rewrite = 'rewrite mod 사용';
|
||||
$lang->about_rewrite = '웹서버에서 rewrite mod를 지원하면 http://주소/?document_srl=123 같이 복잡한 주소를 http://주소/123과 같이 간단하게 줄일 수 있습니다.';
|
||||
|
||||
$lang->time_zone = 'time zone';
|
||||
$lang->about_time_zone = '서버의 설정시간과 사용하려는 장소의 시간이 차이가 날 경우 time zone을 지정하시면 표시되는 시간을 지정된 곳의 시간으로 사용하실 수 있습니다';
|
||||
|
||||
$lang->about_database_file = 'Sqlite는 파일에 데이터를 저장합니다. 데이터베이스 파일의 위치를 웹에서 접근할 수 없는 곳으로 하셔야 합니다<br/><span style="color:red">데이터 파일은 707퍼미션 설정된 곳으로 지정해주세요.</span>';
|
||||
|
||||
|
|
|
|||
|
|
@ -42,5 +42,6 @@
|
|||
<option value="{$key}" <!--@if($key==date('O'))-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_time_zone}</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue