| 786 | | |
| 787 | | <hr class="hidden" /> |
| 788 | | |
| 789 | | <div id="part-setting-admin" class="part"> |
| 790 | | <h2 class="caption"><span class="main-text"><?php echo setDetailPanel('admin_skin_setting','link',_t('관리자 화면 스킨을 설정합니다'));?></span></h2> |
| 791 | | <form id="admin-skin-form" class="data-inbox" method="post" action="<?php echo parseURL($blogURL.'/owner/setting/blog/skin');?>"> |
| 792 | | <div id="admin_skin_setting" class="section folding"> |
| 793 | | <fieldset class="container"> |
| 794 | | <legend><?php echo _t('관리자 스킨을 설정합니다');?></legend> |
| 795 | | |
| 796 | | <dl id="admin-skin--line" class="line"> |
| 797 | | <dt><span class="label"><?php echo _t('관리자 화면 스킨');?></span></dt> |
| 798 | | <dd> |
| 799 | | <select id="adminSkin" name="adminSkin"> |
| 800 | | <?php |
| 801 | | $currentAdminSkin = getBlogSetting("adminSkin", "whitedream"); |
| 802 | | $dir = dir(ROOT . '/style/admin/'); |
| 803 | | while ($tempAdminSkin = $dir->read()) { |
| 804 | | if (!preg_match('/^[a-zA-Z0-9 _-]+$/', $tempAdminSkin)) |
| 805 | | continue; |
| 806 | | if (!is_dir(ROOT . '/style/admin/' . $tempAdminSkin)) |
| 807 | | continue; |
| 808 | | if (!file_exists(ROOT . "/style/admin/$tempAdminSkin/index.xml")) |
| 809 | | continue; |
| 810 | | $xmls = new XMLStruct(); |
| 811 | | if (!$xmls->open(file_get_contents(ROOT . "/style/admin/$tempAdminSkin/index.xml"))) { |
| 812 | | continue; |
| 813 | | } else { |
| 814 | | $skinDir = trim($tempAdminSkin); |
| 815 | | $skinName = htmlspecialchars($xmls->getValue('/adminSkin/information/name[lang()]')); |
| 816 | | ?> |
| 817 | | <option value="<?php echo $skinDir;?>"<?php echo $currentAdminSkin==$skinDir ?' selected="selected"':'';?>><?php echo $skinName;?></option> |
| 818 | | <?php |
| 819 | | } |
| 820 | | } |
| 821 | | ?> |
| 822 | | </select> |
| 823 | | </dd> |
| 824 | | </dl> |
| 825 | | </fieldset> |
| 826 | | <div class="button-box"> |
| 827 | | <input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" /> |
| 828 | | </div> |
| 829 | | </div> |
| 830 | | </form> |
| 831 | | </div> |
| 832 | | |
| 833 | | <?php if( Acl::check('group.creators') ) { ?> |
| 834 | | <div id="part-setting-mailhost" class="part"> |
| 835 | | <h2 class="caption"><span class="main-text"><?php echo _t('메일 보낼 서버를 지정합니다');?></span></h2> |
| 836 | | |
| 837 | | <div class="data-inbox"> |
| 838 | | <form class="section" method="post" action="<?php echo $blogURL;?>/owner/setting/blog/mailhost"> |
| 839 | | <dl> |
| 840 | | <dt class="title"><span class="label"><?php echo _t('보낼 메일 서버 설정');?></span></dt> |
| 841 | | <dd> |
| 842 | | <div class="line"> |
| 843 | | <span><?php echo _text( '운영자만이 수정할 수 있습니다' ); ?></span> |
| 844 | | </div> |
| 845 | | |
| 846 | | <div class="line"> |
| 847 | | <input id="useCustomSMTP" type="checkbox" class="checkbox" name="useCustomSMTP" value="1" <?php if( getServiceSetting( 'useCustomSMTP', 0 ) ) { echo "checked='checked'"; } ?> /> |
| 848 | | <label for="useCustomSMTP"><?php echo _t('메일서버 지정'); ?></label> |
| 849 | | </div> |
| 850 | | <div class="line"> |
| 851 | | <label for="smtpHost"><?php echo _t('메일서버 IP 주소:포트'); ?></label> |
| 852 | | <input id="smtpHost" type="text" class="input-text" name="smtpHost" value="<?php echo getServiceSetting( 'smtpHost', '127.0.0.1' ); ?>" /> : |
| 853 | | <input id="smtpPort" type="text" class="input-text" name="smtpPort" value="<?php echo getServiceSetting( 'smtpPort', 25 );?>" /> |
| 854 | | </div> |
| 855 | | </dd> |
| 856 | | </dl> |
| 857 | | <?php if( Acl::check('group.creators') ) { ?> |
| 858 | | <div class="button-box"> |
| 859 | | <input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" onclick="setSmtp(); return false;" /> |
| 860 | | </div> |
| 861 | | <?php } ?> |
| 862 | | </form> |
| 863 | | </div> |
| 864 | | </div> |