-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 내부 구현 기준에서 사용자 접근도 기준으로 메뉴 변경 * mail 서버 설정은 서비스관리로, 관리자스킨은 스킨 하위로, 표지 설정은 스킨 하위로.
- Loading branch information
Showing
19 changed files
with
477 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
require ROOT . '/lib/includeForBlogOwner.php'; | ||
require ROOT . '/lib/piece/owner/header.php'; | ||
require ROOT . '/lib/piece/owner/contentMenu.php'; | ||
?> | ||
<script type="text/javascript"> | ||
//<![CDATA[ | ||
function setSmtp() { | ||
var useCustomSMTP = document.getElementById('useCustomSMTP').checked?1:0; | ||
var smtpHost = document.getElementById('smtpHost').value; | ||
var smtpPort = document.getElementById('smtpPort').value; | ||
|
||
var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/control/server/mailhost/"); | ||
request.onVerify = function() { | ||
return this.getText("/response/error") == 0; | ||
} | ||
request.onSuccess = function() { | ||
PM.showMessage("<?php echo _t('저장하였습니다');?>", "center", "bottom"); | ||
} | ||
request.onError = function() { | ||
alert('<?php echo _t('저장하지 못하였습니다');?>'); | ||
} | ||
request.send("&useCustomSMTP="+useCustomSMTP+"&smtpHost="+encodeURIComponent(smtpHost)+"&smtpPort="+smtpPort); | ||
} | ||
|
||
|
||
//]]> | ||
</script> | ||
|
||
<div id="part-setting-mailhost" class="part"> | ||
<h2 class="caption"><span class="main-text"><?php echo _t('메일 보낼 서버를 지정합니다');?></span></h2> | ||
|
||
<div class="data-inbox"> | ||
<form class="section" method="post" action="<?php echo $blogURL;?>/owner/setting/blog/mailhost"> | ||
<dl> | ||
<dt class="title"><span class="label"><?php echo _t('메일 서버 설정');?></span></dt> | ||
<dd> | ||
<div class="line"> | ||
<span><?php echo _text( '운영자만이 수정할 수 있습니다' ); ?></span> | ||
</div> | ||
|
||
<div class="line"> | ||
<input id="useCustomSMTP" type="checkbox" class="checkbox" name="useCustomSMTP" value="1" <?php if( getServiceSetting( 'useCustomSMTP', 0 ) ) { echo "checked='checked'"; } ?> /> | ||
<label for="useCustomSMTP"><?php echo _t('메일서버 지정'); ?></label> | ||
</div> | ||
<div class="line"> | ||
<label for="smtpHost"><?php echo _t('메일서버 IP 주소:포트'); ?></label> | ||
<input id="smtpHost" type="text" class="input-text" name="smtpHost" value="<?php echo getServiceSetting( 'smtpHost', '127.0.0.1' ); ?>" /> : | ||
<input id="smtpPort" type="text" class="input-text" name="smtpPort" value="<?php echo getServiceSetting( 'smtpPort', 25 );?>" /> | ||
</div> | ||
</dd> | ||
</dl> | ||
<div class="button-box"> | ||
<input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" onclick="setSmtp(); return false;" /> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<?php | ||
if (isset($_GET['message'])) { | ||
$msg = escapeJSInCData($_GET['message']); | ||
?> | ||
<script type="text/javascript"> | ||
//<![CDATA[ | ||
window.onload = function() { PM.showMessage("<?php echo $msg;?>", "center", "bottom"); } | ||
//]]> | ||
</script> | ||
<?php | ||
} | ||
|
||
require ROOT . '/lib/piece/owner/footer.php'; | ||
?> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
require ROOT . '/lib/includeForBlogOwner.php'; | ||
require ROOT . '/lib/piece/owner/header.php'; | ||
require ROOT . '/lib/piece/owner/contentMenu.php'; | ||
?> | ||
<div id="part-setting-admin" class="part"> | ||
<h2 class="caption"><span class="main-text"><?php echo setDetailPanel('admin_skin_setting','link',_t('관리자 패널의 스킨을 설정합니다'));?></span></h2> | ||
<form id="admin-skin-form" class="data-inbox" method="post" action="<?php echo parseURL($blogURL.'/owner/skin/adminSkin/set');?>"> | ||
<div class="main-explain-box"> | ||
<p class="explain"><?php echo _t('관리자 패널 스킨은 로그인한 후 보여지는 패널의 디자인을 다양하게 변경합니다.');?></p> | ||
</div> | ||
<fieldset class="container"> | ||
<legend><?php echo _t('관리자 패널의 스킨을 설정합니다');?></legend> | ||
|
||
<dl id="admin-skin-line" class="line"> | ||
<dt><span class="label"><?php echo _t('패널 스킨');?></span></dt> | ||
<dd> | ||
<select id="adminSkin" name="adminSkin"> | ||
<?php | ||
$currentAdminSkin = getBlogSetting("adminSkin", "whitedream"); | ||
$dir = dir(ROOT . '/style/admin/'); | ||
while ($tempAdminSkin = $dir->read()) { | ||
if (!preg_match('/^[a-zA-Z0-9 _-]+$/', $tempAdminSkin)) | ||
continue; | ||
if (!is_dir(ROOT . '/style/admin/' . $tempAdminSkin)) | ||
continue; | ||
if (!file_exists(ROOT . "/style/admin/$tempAdminSkin/index.xml")) | ||
continue; | ||
$xmls = new XMLStruct(); | ||
if (!$xmls->open(file_get_contents(ROOT . "/style/admin/$tempAdminSkin/index.xml"))) { | ||
continue; | ||
} else { | ||
$skinDir = trim($tempAdminSkin); | ||
$skinName = htmlspecialchars($xmls->getValue('/adminSkin/information/name[lang()]')); | ||
?> | ||
<option value="<?php echo $skinDir;?>"<?php echo $currentAdminSkin==$skinDir ?' selected="selected"':'';?>><?php echo $skinName;?></option> | ||
<?php | ||
} | ||
} | ||
?> | ||
</select> | ||
</dd> | ||
<dd> | ||
<p><label for="adminSkin"><?php echo _t('팀블로그의 관리자 패널 스킨을 변경할 경우 다른 팀원들의 관리자 패널 디자인도 함께 바뀝니다.');?></label></p> | ||
</dd> | ||
</dl> | ||
</fieldset> | ||
<div class="button-box"> | ||
<input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" /> | ||
</div> | ||
</form> | ||
</div> | ||
<?php | ||
if (isset($_GET['message'])) { | ||
$msg = escapeJSInCData($_GET['message']); | ||
?> | ||
<script type="text/javascript"> | ||
//<![CDATA[ | ||
window.onload = function() { PM.showMessage("<?php echo $msg;?>", "center", "bottom"); } | ||
//]]> | ||
</script> | ||
<?php | ||
} | ||
|
||
require ROOT . '/lib/piece/owner/footer.php'; | ||
?> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.