mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
6293a1bb5e 보안
This commit is contained in:
parent
a7ca384a05
commit
27df638470
3 changed files with 11 additions and 11 deletions
|
|
@ -558,8 +558,8 @@ class adminAdminView extends admin
|
||||||
{
|
{
|
||||||
Context::set('object_cache_host', parse_url(array_first($cache_servers), PHP_URL_HOST) ?: null);
|
Context::set('object_cache_host', parse_url(array_first($cache_servers), PHP_URL_HOST) ?: null);
|
||||||
Context::set('object_cache_port', parse_url(array_first($cache_servers), PHP_URL_PORT) ?: null);
|
Context::set('object_cache_port', parse_url(array_first($cache_servers), PHP_URL_PORT) ?: null);
|
||||||
Context::set('object_cache_user', parse_url(array_first($cache_servers), PHP_URL_USER) ?: null);
|
Context::set('object_cache_user', parse_url(array_first($cache_servers), PHP_URL_USER) ?? '');
|
||||||
Context::set('object_cache_pass', parse_url(array_first($cache_servers), PHP_URL_PASS) ?: null);
|
Context::set('object_cache_pass', parse_url(array_first($cache_servers), PHP_URL_PASS) ?? '');
|
||||||
$cache_dbnum = preg_replace('/[^\d]/', '', parse_url(array_first($cache_servers), PHP_URL_FRAGMENT) ?: parse_url(array_first($cache_servers), PHP_URL_PATH));
|
$cache_dbnum = preg_replace('/[^\d]/', '', parse_url(array_first($cache_servers), PHP_URL_FRAGMENT) ?: parse_url(array_first($cache_servers), PHP_URL_PATH));
|
||||||
Context::set('object_cache_dbnum', $cache_dbnum === '' ? 1 : intval($cache_dbnum));
|
Context::set('object_cache_dbnum', $cache_dbnum === '' ? 1 : intval($cache_dbnum));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -528,6 +528,7 @@ class moduleAdminModel extends module
|
||||||
function getModuleAdminMultilingualHtml()
|
function getModuleAdminMultilingualHtml()
|
||||||
{
|
{
|
||||||
$oTemplate = TemplateHandler::getInstance();
|
$oTemplate = TemplateHandler::getInstance();
|
||||||
|
Context::set('use_in_page', false);
|
||||||
$tpl = $oTemplate->compile(RX_BASEDIR . 'modules/module/tpl', 'multilingual_v17.html');
|
$tpl = $oTemplate->compile(RX_BASEDIR . 'modules/module/tpl', 'multilingual_v17.html');
|
||||||
|
|
||||||
$this->add('html', $tpl);
|
$this->add('html', $tpl);
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,19 @@
|
||||||
$a = array($lang_type=>$lang_supported[$lang_type]);
|
$a = array($lang_type=>$lang_supported[$lang_type]);
|
||||||
unset($lang_supported[$lang_type]);
|
unset($lang_supported[$lang_type]);
|
||||||
$lang_supported = array_merge($a, $lang_supported);
|
$lang_supported = array_merge($a, $lang_supported);
|
||||||
$is_empty_use_in_page = empty($use_in_page)
|
|
||||||
}
|
}
|
||||||
<div class="x_modal"|cond="$is_empty_use_in_page" id="g11n" hidden|cond="$is_empty_use_in_page">
|
<div class="x_modal"|cond="!$use_in_page" id="g11n" hidden|cond="!$use_in_page">
|
||||||
<div class="x_modal-header" cond="$is_empty_use_in_page">
|
<div class="x_modal-header" cond="!$use_in_page">
|
||||||
<h1>{$lang->cmd_multilingual}</h1>
|
<h1>{$lang->cmd_multilingual}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="x_modal-body"|cond="$is_empty_use_in_page">
|
<div class="x_modal-body"|cond="!$use_in_page">
|
||||||
<div class="x_tabbable">
|
<div class="x_tabbable">
|
||||||
<ul class="x_nav x_nav-tabs">
|
<ul class="x_nav x_nav-tabs">
|
||||||
<li class="x_active"|cond="$is_empty_use_in_page"><a href="#lang_create">{$lang->cmd_insert}</a></li>
|
<li class="x_active"|cond="!$use_in_page"><a href="#lang_create">{$lang->cmd_insert}</a></li>
|
||||||
<li class="x_active"|cond="!$is_empty_use_in_page"><a href="#lang_search">{$lang->cmd_search}</a></li>
|
<li class="x_active"|cond="$use_in_page"><a href="#lang_search">{$lang->cmd_search}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="x_tab-content">
|
<div class="x_tab-content">
|
||||||
<form action="" class="x_tab-pane <!--@if($is_empty_use_in_page)-->x_active<!--@end--> item" id="lang_create">
|
<form action="" class="x_tab-pane <!--@if(!$use_in_page)-->x_active<!--@end--> item" id="lang_create">
|
||||||
<fieldset class="editMode">
|
<fieldset class="editMode">
|
||||||
<textarea loop="$lang_supported => $code, $name" class="{$code}" rows="1" cols="12" title="{$name}" style="margin-right:5px"></textarea>
|
<textarea loop="$lang_supported => $code, $name" class="{$code}" rows="1" cols="12" title="{$name}" style="margin-right:5px"></textarea>
|
||||||
<div class="x_clearfix btnArea">
|
<div class="x_clearfix btnArea">
|
||||||
|
|
@ -25,12 +24,12 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<div class="x_tab-pane <!--@if(!$is_empty_use_in_page)-->x_active<!--@end-->" id="lang_search">
|
<div class="x_tab-pane <!--@if($use_in_page)-->x_active<!--@end-->" id="lang_search">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div cond="$is_empty_use_in_page" class="x_modal-footer">
|
<div cond="!$use_in_page" class="x_modal-footer">
|
||||||
<button type="button" class="x_btn x_pull-left" data-hide="#g11n">{$lang->cmd_close}</button>
|
<button type="button" class="x_btn x_pull-left" data-hide="#g11n">{$lang->cmd_close}</button>
|
||||||
<p class="x_pull-right">
|
<p class="x_pull-right">
|
||||||
{@
|
{@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue