mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +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
|
|
@ -154,8 +154,10 @@
|
|||
$db_config_file = $this->getConfigFile();
|
||||
if(file_exists($db_config_file)) @include($db_config_file);
|
||||
|
||||
$this->_setDBInfo($db_info);
|
||||
if(!$db_info->time_zone) $db_info->time_zone = date("O");
|
||||
|
||||
$this->_setDBInfo($db_info);
|
||||
|
||||
$GLOBALS['_time_zone'] = $db_info->time_zone;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,21 +17,21 @@
|
|||
}
|
||||
|
||||
$time_zone = array(
|
||||
'-1200' => '[GMT +12:00] Baker Island Time',
|
||||
'-1100' => '[GMT +11:00] Niue Time, Samoa Standard Time',
|
||||
'-1000' => '[GMT +10:00] Hawaii-Aleutian Standard Time, Cook Island Time',
|
||||
'-0930' => '[GMT +09:30] Marquesas Islands Time',
|
||||
'-0900' => '[GMT +09:00] Alaska Standard Time, Gambier Island Time',
|
||||
'-0800' => '[GMT +08:00] Pacific Standard Time',
|
||||
'-0700' => '[GMT +07:00] Mountain Standard Time',
|
||||
'-0600' => '[GMT +06:00] Central Standard Time',
|
||||
'-0500' => '[GMT +05:00] Eastern Standard Time',
|
||||
'-0400' => '[GMT +04:00] Atlantic Standard Time',
|
||||
'-0330' => '[GMT +03:30] Newfoundland Standard Time',
|
||||
'-0300' => '[GMT +03:00] Amazon Standard Time, Central Greenland Time',
|
||||
'-0200' => '[GMT +02:00] Fernando de Noronha Time, South Georgia & the South Sandwich Islands Time',
|
||||
'-0100' => '[GMT +01:00] Azores Standard Time, Cape Verde Time, Eastern Greenland Time',
|
||||
'0000' => '[GMT +00:00] Western European Time, Greenwich Mean Time',
|
||||
'-1200' => '[GMT -12:00] Baker Island Time',
|
||||
'-1100' => '[GMT -11:00] Niue Time, Samoa Standard Time',
|
||||
'-1000' => '[GMT -10:00] Hawaii-Aleutian Standard Time, Cook Island Time',
|
||||
'-0930' => '[GMT -09:30] Marquesas Islands Time',
|
||||
'-0900' => '[GMT -09:00] Alaska Standard Time, Gambier Island Time',
|
||||
'-0800' => '[GMT -08:00] Pacific Standard Time',
|
||||
'-0700' => '[GMT -07:00] Mountain Standard Time',
|
||||
'-0600' => '[GMT -06:00] Central Standard Time',
|
||||
'-0500' => '[GMT -05:00] Eastern Standard Time',
|
||||
'-0400' => '[GMT -04:00] Atlantic Standard Time',
|
||||
'-0330' => '[GMT -03:30] Newfoundland Standard Time',
|
||||
'-0300' => '[GMT -03:00] Amazon Standard Time, Central Greenland Time',
|
||||
'-0200' => '[GMT -02:00] Fernando de Noronha Time, South Georgia & the South Sandwich Islands Time',
|
||||
'-0100' => '[GMT -01:00] Azores Standard Time, Cape Verde Time, Eastern Greenland Time',
|
||||
'0000' => '[GMT 00:00] Western European Time, Greenwich Mean Time',
|
||||
'+0100' => '[GMT +01:00] Central European Time, West African Time',
|
||||
'+0200' => '[GMT +02:00] Eastern European Time, Central African Time',
|
||||
'+0300' => '[GMT +03:00] Moscow Standard Time, Eastern African Time',
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@
|
|||
$running_module = strtolower(preg_replace('/([a-z]+)([A-Z]+)([a-z]+)(.*)/', '\\2\\3', $this->act));
|
||||
Context::set('running_module', $running_module);
|
||||
|
||||
Context::set('time_zone_list', $GLOBALS['time_zone']);
|
||||
Context::set('time_zone', $GLOBALS['_time_zone']);
|
||||
|
||||
Context::setBrowserTitle("ZeroboardXE Admin Page");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
$lang->xe_user_links = array(
|
||||
'Official website' => 'http://www.zeroboard.com',
|
||||
'Close Beta website' => 'http://spring.zeroboard.com',
|
||||
//'Close Beta website' => 'http://spring.zeroboard.com',
|
||||
'Developer\'s forum' => 'http://spring.zeroboard.com',
|
||||
//'Module morgue' => 'http://www.zeroboard.com',
|
||||
//'Addon morgue' => 'http://www.zeroboard.com',
|
||||
//'Widget morgue' => 'http://www.zeroboard.com',
|
||||
|
|
@ -41,7 +42,6 @@
|
|||
);
|
||||
|
||||
$lang->xe_developer_links = array(
|
||||
//'Developer\'s forum' => 'http://dev.zeroboard.com',
|
||||
//'Manual' => 'http://www.zeroboard.com/wiki/manual',
|
||||
'Issue Tracking' => 'http://trac.zeroboard.com',
|
||||
'SVN Repository' => 'http://svn.zeroboard.com',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
$lang->xe_user_links = array(
|
||||
'Pagina de web oficial' => 'http://www.zeroboard.com',
|
||||
'Sitio para beta cerrado' => 'http://spring.zeroboard.com',
|
||||
//'Sitio para beta cerrado' => 'http://spring.zeroboard.com',
|
||||
'Foro Abierto de desarrolladores' => 'http://spring.zeroboard.com',
|
||||
//'Depósitorio de Módulos´ => 'http://www.zeroboard.com',
|
||||
//'Depósitorio de Adiciónales' => 'http://www.zeroboard.com',
|
||||
//'Depósitorio de Widgets' => 'http://www.zeroboard.com',
|
||||
|
|
@ -41,7 +42,6 @@
|
|||
);
|
||||
|
||||
$lang->xe_developer_links = array(
|
||||
//'Foro Abierto de desarrolladores' => 'http://dev.zeroboard.com',
|
||||
//'Manuales' => 'http://www.zeroboard.com/wiki/manual',
|
||||
'Huellas de distribuciónes' => 'http://trac.zeroboard.com',
|
||||
'Repositor de SVN' => 'http://svn.zeroboard.com',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
$lang->xe_user_links = array(
|
||||
'공식홈페이지' => 'http://www.zeroboard.com',
|
||||
'클로즈베타 사이트' => 'http://spring.zeroboard.com',
|
||||
'개발자 포럼' => 'http://spring.zeroboard.com',
|
||||
//'클로즈베타 사이트' => 'http://spring.zeroboard.com',
|
||||
//'모듈 자료실' => 'http://www.zeroboard.com',
|
||||
//'애드온 자료실' => 'http://www.zeroboard.com',
|
||||
//'위젯 자료실' => 'http://www.zeroboard.com',
|
||||
|
|
@ -41,7 +42,6 @@
|
|||
);
|
||||
|
||||
$lang->xe_developer_links = array(
|
||||
//'개발자 포럼' => 'http://dev.zeroboard.com',
|
||||
//'매뉴얼' => 'http://www.zeroboard.com/wiki/manual',
|
||||
'이슈트래킹' => 'http://trac.zeroboard.com',
|
||||
'SVN Repository' => 'http://svn.zeroboard.com',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
$lang->xe_user_links = array(
|
||||
'韩国官方主页' => 'http://www.zeroboard.com',
|
||||
'closebeta主页' => 'http://spring.zeroboard.com',
|
||||
//'closebeta主页' => 'http://spring.zeroboard.com',
|
||||
'Developer 论坛' => 'http://spring.zeroboard.com',
|
||||
//'模块下载地址' => 'http://www.zeroboard.com',
|
||||
//'Add-On下载地址' => 'http://www.zeroboard.com',
|
||||
//'Widget下载地址' => 'http://www.zeroboard.com',
|
||||
|
|
@ -41,7 +42,6 @@
|
|||
);
|
||||
|
||||
$lang->xe_developer_links = array(
|
||||
//'Developer 论坛' => 'http://dev.zeroboard.com',
|
||||
//'使用手册' => 'http://www.zeroboard.com/wiki/manual',
|
||||
'Issue Tracking' => 'http://trac.zeroboard.com',
|
||||
'SVN Repository' => 'http://svn.zeroboard.com',
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
.header4 table.summary th .vr { color:#a3a39f; margin:0 4px; font-weight:normal;}
|
||||
.header4 table.summary td { border-top:1px solid #f2f2f2; border-bottom:1px solid #f2f2f2; font:.9em Tahoma; padding-left:17px;}
|
||||
|
||||
select.time_zone { width:70%; position:relative; top:4px; }
|
||||
|
||||
/* ----- cBody | End ----- */
|
||||
|
||||
/* ----- Content | Start ----- */
|
||||
|
|
@ -71,6 +73,7 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
|
||||
/* tableStyle */
|
||||
.infoText { clear:both; border:1px solid #f2f2f0; margin-bottom:12px; background:#f9f9f6; padding:1.2em; color:#7b7972; font-size:.9em; line-height:1.4em;}
|
||||
|
||||
.gap1 { margin-top:.8em; }
|
||||
.tableSummaryType1 { font:bold .8em Tahoma; color:#a0a0a0; margin-bottom:10px;}
|
||||
.tableSummaryType1 strong { font:bold 1em Tahoma; color:#ff1a00;}
|
||||
|
|
@ -102,6 +105,7 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
.tableType2 td a.red { color:#c95b53;}
|
||||
|
||||
.tableType3 { width:100%; border-bottom:2px solid #c1c0bd;}
|
||||
.tableType3 th.bold { font-weight:bold; }
|
||||
.tableType3 th,
|
||||
.tableType3 td { border-top:1px solid #bfbfbf;}
|
||||
.tableType3 thead th { font-weight:normal; color:#ffffff; background:url(../images/tableType1Header.gif) repeat-x; height:28px;}
|
||||
|
|
@ -120,7 +124,7 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
.tableType3 td.red a { color:#c95b53;}
|
||||
.tableType3 td a.blue { color:#158692;}
|
||||
.tableType3 td a.red { color:#c95b53;}
|
||||
.tableType3 td input,
|
||||
/*.tableType3 td input,*/
|
||||
.tableType3 td textarea,
|
||||
.tableType3 td select { margin-bottom:.5em; vertical-align:middle; font-size:1em; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6;}
|
||||
.tableType3 td .w100 { width:100%; display:block;}
|
||||
|
|
@ -135,7 +139,7 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
.tableType4 .tahoma a { font-size:1em;}
|
||||
.tableType4 td.blue a { color:#158692;}
|
||||
.tableType4 td.red a { color:#c95b53;}
|
||||
.tableType4 td input,
|
||||
/*.tableType4 td input,*/
|
||||
.tableType4 td textarea,
|
||||
.tableType4 td select { margin-bottom:.5em; vertical-align:middle;font-size:1em; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6;}
|
||||
.tableType4 td label { margin-right:1em; }
|
||||
|
|
@ -165,7 +169,7 @@ h4 .view { color:#158692; padding-right:.6em; font:bold .9em Tahoma; background:
|
|||
#popBody .tableType5 { border:1px solid #c1c0bd; border-left:none; border-right:none; width:100%;}
|
||||
#popBody .tableType5 th { border-top:1px solid #fbfbfb; border-bottom:1px solid #e4e4e4; background:#f5f5f5; padding:8px 10px 7px 2em; font-weight:normal; text-align:left; color:#606060;}
|
||||
#popBody .tableType5 td { border-bottom:1px solid #ededed; padding:8px 10px 7px 10px; color:#7b7972;}
|
||||
#popBody .tableType5 td input,
|
||||
/*#popBody .tableType5 td input,*/
|
||||
#popBody .tableType5 td textarea,
|
||||
#popBody .tableType5 td select { margin-bottom:.5em; vertical-align:middle;}
|
||||
#popBody .tableType5 td .w100 { width:100%; display:block;}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ address { font-style:normal;}
|
|||
#gNavigation ul li a:hover { background:url(../images/menuBgIeFix.png) no-repeat; margin-top:-2px; font-weight:bold; color:#ffffff; text-decoration:none;}
|
||||
#gNavigation ul li.on a:hover { background:url(../images/menuBgIeFix.png) no-repeat; margin-top:0; font-weight:bold; color:#ffffff; text-decoration:none;}
|
||||
#gNavigation .menuEdit { width:180px; height:30px; text-align:center; margin-top:1em;}
|
||||
#gNavigation .selLangType { width:180px; height:30px; text-align:center; margin-top:1em;}
|
||||
|
||||
#content { float:left; width:100%; padding:71px 0 100px 0;}
|
||||
|
||||
|
|
|
|||
9
modules/admin/tpl/filter/save_time_zone.xml
Normal file
9
modules/admin/tpl/filter/save_time_zone.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<filter name="save_time_zone" module="install" act="procInstallAdminSaveTimeZone" >
|
||||
<form>
|
||||
<node target="time_zone" required="true" />
|
||||
</form>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,32 +1,60 @@
|
|||
<!--%import("./filter/save_time_zone.xml")-->
|
||||
|
||||
<h3>{$lang->welcome_to_zeroboard_xe}</h3>
|
||||
<div class="infoText">{nl2br($lang->about_admin_page)}</div>
|
||||
|
||||
<!-- 사용자 링크 -->
|
||||
<table cellspacing="0" class="tableType3">
|
||||
<col width="150" />
|
||||
<col />
|
||||
<tr>
|
||||
<th colspan="2">{$lang->zeroboard_xe_user_links}</th>
|
||||
</tr>
|
||||
<!--@foreach($lang->xe_user_links as $key => $val)-->
|
||||
<tr>
|
||||
<th scope="col">{$key}</th>
|
||||
<td class="left blue"><a href="#" onclick="winopen('{$val}'); return false;">{$val}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, save_time_zone);">
|
||||
<table cellspacing="0" class="tableType4">
|
||||
<col width="100" />
|
||||
<col />
|
||||
<tr>
|
||||
<th scope="row">Lang</th>
|
||||
<td>
|
||||
<select name="lang_type" onchange="doChangeLangType(this)">
|
||||
<option value="{$lang_type}">{$lang_type}</option>
|
||||
<!--@foreach($lang_supported as $val)-->
|
||||
<!--@if($val != $lang_type)-->
|
||||
<option value="{$val}">{$val}</option>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Time zone</th>
|
||||
<td>
|
||||
<select name="time_zone" class="time_zone">
|
||||
<!--@foreach($time_zone_list as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($time_zone==$key)-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<!-- 개발자 링크 -->
|
||||
<table cellspacing="0" class="tableType3 gap1">
|
||||
<col width="150" />
|
||||
<col />
|
||||
<tr>
|
||||
<th colspan="2">{$lang->zeroboard_xe_developer_links}</th>
|
||||
</tr>
|
||||
<!--@foreach($lang->xe_developer_links as $key => $val)-->
|
||||
<tr>
|
||||
<th scope="col">{$key}</th>
|
||||
<td class="left blue"><a href="#" onclick="winopen('{$val}'); return false;">{$val}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
<!-- 사용자 링크 -->
|
||||
<table cellspacing="0" class="tableType3 gap1">
|
||||
<col width="250" />
|
||||
<col />
|
||||
<tr>
|
||||
<th colspan="2" class="bold">{$lang->zeroboard_xe_user_links}</th>
|
||||
</tr>
|
||||
<!--@foreach($lang->xe_user_links as $key => $val)-->
|
||||
<tr>
|
||||
<th scope="col">{$key}</th>
|
||||
<td class="left blue"><a href="#" onclick="winopen('{$val}'); return false;">{$val}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
<!-- 개발자 링크 -->
|
||||
<tr>
|
||||
<th colspan="2" class="bold">{$lang->zeroboard_xe_developer_links}</th>
|
||||
</tr>
|
||||
<!--@foreach($lang->xe_developer_links as $key => $val)-->
|
||||
<tr>
|
||||
<th scope="col">{$key}</th>
|
||||
<td class="left blue"><a href="#" onclick="winopen('{$val}'); return false;">{$val}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -20,16 +20,6 @@
|
|||
<div class="menuEdit">
|
||||
<a href="{getUrl('','module','admin','act','dispAdminShortCut')}" class="button"><span>{$lang->cmd_shortcut_management}</span></a>
|
||||
</div>
|
||||
<div class="selLangType">
|
||||
Lang : <select name="lang_type" onchange="doChangeLangType(this)">
|
||||
<option value="{$lang_type}">{$lang_type}</option>
|
||||
<!--@foreach($lang_supported as $val)-->
|
||||
<!--@if($val != $lang_type)-->
|
||||
<option value="{$val}">{$val}</option>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">{$content}</div>
|
||||
|
|
|
|||
|
|
@ -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