Skip to content

Commit

Permalink
refs #1738 : added - control panel UI for cookie prefix.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Jan 2, 2015
1 parent 5ec568b commit 4d0a0b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions interface/control/server/config/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'flashUploader' => array('int',0,1),
'language' => array('string'),
'serviceurl' => array('string'),
'cookieprefix' => array('string', 'mandatory' => false, 'default' => ''),
'skin' => array('string'),
'timeout' => array('int'),
'autologinTimeout' => array('int'),
Expand Down Expand Up @@ -44,6 +45,7 @@
'timezone'=>'timezone',
'encoding'=>'encoding',
'serviceurl' => 'serviceURL',
'cookieprefix'=> 'cookie_prefix',
'usePageCache'=>'pagecache',
'useCodeCache'=>'codecache',
'useSkinCache'=>'skincache',
Expand Down
11 changes: 9 additions & 2 deletions interface/control/server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require ROOT . '/library/preprocessor.php';
require ROOT . '/interface/common/control/header.php';


$context = Model_Context::getInstance();
// htacccess modification
$htaccessContent = '';
if (file_exists(ROOT . "/.htaccess")) {
Expand Down Expand Up @@ -83,7 +83,6 @@ function setConfigFile() {
param += 'useReader='+useReader +'&';
param += 'useNumericRSS='+useNumericRSS +'&';
param += 'useEncodedURL='+useEncodedURL +'&';
param += 'disableEolinSuggestion='+disableEolinSuggestion +'&';
param += 'allowBlogVisibility='+allowBlogVisibilitySetting +'&';
param += 'requireLogin='+requireLogin +'&';
param += 'flashClipboardPoter='+flashClipboardPoter +'&';
Expand All @@ -99,6 +98,7 @@ function setConfigFile() {
param += 'timezone='+getEncodedValueById('timezone') +'&';
param += 'encoding='+getEncodedValueById('encoding') +'&';
param += 'serviceurl='+getEncodedValueById('serviceurl') + '&';
param += 'cookieprefix='+getEncodedValueById('cookieprefix') + '&';
param += 'externalResourceURL='+getEncodedValueById('externalResourceURL');
var request = new HTTPRequest("POST", '<?php echo $context->getProperty('uri.blog');?>/control/server/config/');
request.onSuccess = function() {
Expand Down Expand Up @@ -278,6 +278,13 @@ function setDefault() {
<label for="externalResourceURL"><?php echo _t('외부 리소스를 사용할 경우 리소스 저장소를 임의로 지정할 수 있습니다.').'<br />'._f('이 값을 지정하지 않고 외부 리소스 사용을 선택할 경우 텍스트큐브 리소스 저장소(%1)를 기본값으로 사용합니다.',TEXTCUBE_RESOURCE_URL);?></label>
</dd>
</dl>
<dl id="cookieprefix-line" class="line">
<dt><span class="label"><?php echo _t('COOKIE 접두어');?></span></dt>
<dd>
<input id="cookieprefix" type="text" class="input-text" name="cookieprefix" size="45" value="<?php echo ($context->getProperty('service.cookie_prefix','') == 'Textcube'.str_replace('.','',TEXTCUBE_VERSION_ID)) ? '' : $context->getProperty('service.cookie_prefix','');?>" />
<label for="cookieprefix"><?php echo _t('이 서비스에서 사용할 웹 브라우저 쿠키 이름 앞에 붙을 접두어를 지정합니다.').'<br />'._t('지정하지 않을 경우 웹 브라우저 쿠키 접두어는 Textcube[버전번호] 로 자동으로 지정합니다.');?></label>
</dd>
</dl>
</fieldset>
<fieldset id="cache-container" class="container">
<legend><?php echo _t('캐시 사용 조절');?></legend>
Expand Down

0 comments on commit 4d0a0b5

Please # to comment.