Changeset 5873
- Timestamp:
- 05/05/08 06:54:59 (8 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
interface/owner/setting/account/index.php (modified) (3 diffs)
-
interface/owner/setting/blog/index.php (modified) (5 diffs)
-
interface/owner/setting/entry/index.php (modified) (2 diffs)
-
interface/owner/setting/openid/index.php (modified) (3 diffs)
-
lib/piece/owner/contentMenu.php (modified) (1 diff)
-
style/admin/whitedream/basic.css (modified) (1 diff)
-
style/admin/whitedream/setting.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/setting/account/index.php
r5866 r5873 148 148 blogApiPassword.value = value; 149 149 } 150 150 function setDelegate() { 151 try { 152 var odlg = document.getElementById( 'openid_for_delegation' ); 153 delegatedid = odlg.options[odlg.selectedIndex].value; 154 if( !delegatedid ) { 155 alert( "<?php echo _t('블로그 주소를 오픈아이디로 사용하지 않습니다.') ?>"); 156 } 157 158 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/openid/delegate?openid_identifier=" + escape(delegatedid)); 159 request.onSuccess = function() { 160 PM.showMessage("<?php echo _t('저장되었습니다.');?>", "center", "bottom"); 161 } 162 request.onError = function() { 163 PM.showErrorMessage("<?php echo _t('저장하지 못했습니다.');?>","center","bottom"); 164 } 165 request.send(); 166 } catch(e) { 167 } 168 } 151 169 <?php 152 170 if ($service['type'] != 'single' && Acl::check("group.creators")) { … … 487 505 <form id="openid-section" class="section" method="get" action="<?php echo $blogURL;?>/owner/setting/account/openid"> 488 506 <fieldset class="container"> 489 <legend><?php echo _t(' 오픈아이디 연결');?></legend>507 <legend><?php echo _t('이 아이디에 오픈아이디를 연결하기');?></legend> 490 508 491 509 <dl id="blogger-openid-line" class="line"> … … 515 533 </div> 516 534 <!-- OPENID END --> 535 536 537 538 <?php 539 if( Acl::check( 'group.owners' ) ) { /* 블로그 주소를 오픈아이디로 사용 */ 540 ?> 541 542 <div id="part-openid-blogaddress" class="part"> 543 <h2 class="caption"><span class="main-text"><?php echo _t('블로그 주소를 오픈아이디로 사용하기')?></span></h2> 544 545 <div class="main-explain-box"> 546 <p class="explain"><?php echo _f('블로그 주소(%1)를 현재 아이디와 연결된 오픈아이디 중 하나에 위임하여 오픈아이디로 사용할 수 있습니다.', "$hostURL$blogURL").' '._t('위임을 통하여 이후 오픈아이디를 사용하는 다른 서비스에서 이 블로그 주소를 오픈아이디로 사용할 수 있습니다.');?></p> 547 </div> 548 549 <div class="data-inbox"> 550 <form> 551 <fieldset class="container"> 552 <dl> 553 <dt class="hidden"><?php echo _t('오픈아이디로 사용할 블로그 주소를 선택하세요');?></dt> 554 <dd> 555 <?php 556 $currentDelegate = setting::getBlogSettingGlobal( 'OpenIDDelegate', '' ); 557 ?> 558 <select id="openid_for_delegation"> 559 <?php 560 print "<option value='' >" . _t('블로그 주소를 오픈아이디로 사용하지 않음') . "</option>"; 561 foreach( $openid_list as $openid_identity ) { 562 $selected = ''; 563 if( $openid_identity == $currentDelegate ) { 564 $selected = "selected"; 565 } 566 print "<option value='$openid_identity' $selected>" . $openid_identity . "</option>"; 567 } 568 ?> 569 </select> 570 <input type="button" onclick="setDelegate(); return false" value="<?php echo _t('확인') ?>" class="save-button input-button" /> 571 </dd> 572 </dl> 573 </fieldset> 574 </form> 575 </div> 576 </div> 577 <?php 578 } 579 ?> 517 580 <?php 518 581 if ($service['type'] != 'single' && Acl::check("group.creators")) { -
trunk/interface/owner/setting/blog/index.php
r5866 r5873 113 113 request.onSuccess = function() { 114 114 PM.showMessage("<?php echo _t('저장되었습니다');?>", "center", "bottom"); 115 alert(newDefaultDomain);116 alert(newSecondaryDomain);117 alert(secondaryDomain);115 //alert(newDefaultDomain); 116 //alert(newSecondaryDomain); 117 //alert(secondaryDomain); 118 118 if(newDefaultDomain == 0) { 119 119 alert("<?php echo _t('변경된 1차 블로그 주소로 이동합니다');?>"); … … 332 332 } 333 333 request.send(); 334 } 335 try { 336 var oonly = document.getElementById( 'openidonlycomment' ); 337 oonly = oonly.checked ? "1" : "0"; 338 var ologo = document.getElementById( 'openidlogodisplay' ); 339 ologo = ologo.checked ? "1" : "0"; 340 var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/setting/openid/change"); 341 request.onSuccess = function() { 342 PM.showMessage("<?php echo _t('저장되었습니다.');?>", "center", "bottom"); 343 } 344 request.onError = function() { 345 PM.showErrorMessage("<?php echo _t('저장하지 못했습니다.');?>","center", "bottom"); 346 } 347 request.send("openidonlycomment="+oonly+"&openidlogodisplay="+ologo); 348 } catch(e) { 334 349 } 335 350 } … … 690 705 ?> 691 706 <dl id="guestbook-authority-line" class="line"> 692 <dt><label for="allowCommentGuestbook"><?php echo _t('방명록 사용권한');?></label></dt>707 <dt><label for="allowCommentGuestbook"><?php echo _t('방명록에 대한 답글 권한');?></label></dt> 693 708 <dd> 694 709 <!--input type="checkbox" id="allowWriteGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowWriteGuestbook"><?php echo _t('손님이 글쓰기 허용');?></label--> 695 <input type="checkbox" id="allowCommentGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteDblCommentOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowCommentGuestbook"><?php echo _t('손님이 댓글을 쓰는 것을 허용합니다.');?></label> 696 <?php 697 if( isActivePlugin( 'CL_OpenID' ) ) { 698 ?> 699 (<a href="<?php echo $blogURL?>/owner/setting/openid"><?php echo _t('오픈아이디 로그인 사용자에게만 댓글을 허용하도록 설정하러 가기')?></a>) 700 <?php 710 <input type="checkbox" id="allowCommentGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteDblCommentOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowCommentGuestbook"><?php echo _t('방명록에 남긴 글에 대하여 손님이 답글을 쓰는 것을 허용합니다.');?></label> 711 </dd> 712 </dl> 713 <?php 714 $openidonlycomment = setting::getBlogSettingGlobal( "AddCommentMode", "" ); 715 if( $openidonlycomment == 'openid' ) { 716 $openidonlycomment = "checked='checked'"; 701 717 } else { 702 echo "<samp>("; 703 echo _t('댓글을 오픈아이디 사용자에게만 허용할 수 있습니다.'); 704 ?> 705 <a class="button" href="<?php echo $blogURL?>/owner/plugin"><?php echo _t('오픈아이디 플러그인 설정 바로가기'); ?></a>)</samp> 706 <?php 707 } 708 ?> 709 </dd> 710 </dl> 718 $openidonlycomment = ""; 719 } 720 721 $openidlogodisplay = setting::getBlogSettingGlobal( "OpenIDLogoDisplay", 0 ); 722 if( $openidlogodisplay ) { 723 $openidlogodisplay = "checked='checked'"; 724 } else { 725 $openidlogodisplay = ""; 726 } 727 ?> 728 <dl id="comment-authority-line" class="line"> 729 <dt><label for="allowCommentGuestbook"><?php echo _t('방명록 및 댓글 쓰기 권한');?></label></dt> 730 <dd> 731 <input id="openidonlycomment" type="checkbox" name="openidonlycomment" <?php echo $openidonlycomment?> /> 732 <label for="openidonlycomment"><?php echo _t('오픈아이디로 로그인을 해야만 댓글 및 방명록을 쓸 수 있습니다.').' '._t('필명을 사칭하는 경우를 방지할 수 있습니다.'); ?></label> 733 <br /> 734 <input id="openidlogodisplay" type="checkbox" name="openidlogodisplay" <?php echo $openidlogodisplay?> /> 735 <label for="openidlogodisplay"><?php echo _t('오픈아이디로 로그인하여 쓴 댓글/방명록에 오픈아이디 아이콘을 표시합니다.') ?></label> 736 </dd> 737 </dl> 738 711 739 <dl id="blog-iphone-ui-line" class="line"> 712 740 <dt><span class="label"><?php echo _t('모바일 인터페이스');?></span></dt> … … 718 746 </div> 719 747 <div class="button-box"> 720 <input type="submit" class="save-button input-button " value="<?php echo _t('저장하기');?>" onclick="setRSS(); return false;" />748 <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setRSS(); return false;" /> 721 749 </div> 722 750 </form> … … 780 808 </fieldset> 781 809 <div class="button-box"> 782 <input type="submit" class="save-button input-button " value="<?php echo _t('저장하기');?>" onclick="setLocale(); return false;" />810 <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setLocale(); return false;" /> 783 811 </div> 784 812 </div> -
trunk/interface/owner/setting/entry/index.php
r5654 r5873 198 198 </fieldset> 199 199 <div class="button-box"> 200 <input type="submit" class="save-button input-button " value="<?php echo _t('저장하기');?>" onclick="setEditorConfig(); return false;" />200 <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setEditorConfig(); return false;" /> 201 201 </div> 202 202 </div> … … 225 225 </fieldset> 226 226 <div class="button-box"> 227 <input type="submit" class="save-button input-button " value="<?php echo _t('저장하기');?>" onclick="setResample(); return false;" />227 <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setResample(); return false;" /> 228 228 </div> 229 229 </form> -
trunk/interface/owner/setting/openid/index.php
r5553 r5873 46 46 } 47 47 48 $openidonlycomment = setting::getBlogSettingGlobal( "AddCommentMode", "" );49 if( $openidonlycomment == 'openid' ) {50 $openidonlycomment = "checked='checked'";51 } else {52 $openidonlycomment = "";53 }54 55 $openidlogodisplay = setting::getBlogSettingGlobal( "OpenIDLogoDisplay", 0 );56 if( $openidlogodisplay ) {57 $openidlogodisplay = "checked='checked'";58 } else {59 $openidlogodisplay = "";60 }61 62 48 /* Fetch registerred openid */ 63 49 $openid_list = array(); … … 70 56 } 71 57 ?> 72 <script type="text/javascript">73 //<![CDATA[74 function save() {75 try {76 var oonly = document.getElementById( 'openidonlycomment' );77 oonly = oonly.checked ? "1" : "0";78 var ologo = document.getElementById( 'openidlogodisplay' );79 ologo = ologo.checked ? "1" : "0";80 58 81 var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/setting/openid/change"); 82 request.onSuccess = function() { 83 PM.showMessage("<?php echo _t('저장되었습니다.');?>", "center", "bottom"); 84 } 85 request.onError = function() { 86 alert("<?php echo _t('저장하지 못했습니다.');?>"); 87 } 88 request.send("openidonlycomment="+oonly+"&openidlogodisplay="+ologo); 89 } catch(e) { 90 } 91 } 92 function setDelegate() { 93 try { 94 var odlg = document.getElementById( 'openid_for_delegation' ); 95 delegatedid = odlg.options[odlg.selectedIndex].value; 96 if( !delegatedid ) { 97 alert( "<?php echo _t('블로그 주소를 오픈아이디로 사용하지 않습니다.') ?>"); 98 } 99 100 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/setting/openid/delegate?openid_identifier=" + escape(delegatedid)); 101 request.onSuccess = function() { 102 PM.showMessage("<?php echo _t('저장되었습니다.');?>", "center", "bottom"); 103 } 104 request.onError = function() { 105 alert("<?php echo _t('저장하지 못했습니다.');?>"); 106 } 107 request.send(""); 108 } catch(e) { 109 } 110 } 111 //]]> 112 </script> 113 114 <div id="part-setting-admin" class="part"> 115 <h2 class="caption"><span class="main-text"><?php echo _t('댓글/방명록 설정')?></span></h2> 116 117 <div class="data-inbox"> 118 <form action="<?php echo $blogURL;?>/owner/setting/openid/change" method="post"> 119 <fieldset class="container"> 120 <dl> 121 <dd> 122 <input id="openidonlycomment" type="checkbox" name="openidonlycomment" <?php echo $openidonlycomment?> /> 123 <label for="openidonlycomment"><?php echo _t('오픈아이디로 로그인을 해야만 댓글 및 방명록을 쓸 수 있습니다.') ?></label> 124 </dd> 125 <dd> 126 <input id="openidlogodisplay" type="checkbox" name="openidlogodisplay" <?php echo $openidlogodisplay?> /> 127 <label for="openidlogodisplay"><?php echo _t('오픈아이디로 로그인하여 쓴 댓글/방명록에 오픈아이디 아이콘을 표시합니다.') ?></label> 128 </dd> 129 </dl> 130 </fieldset> 131 <div class="button-box"> 132 <input type="submit" class="save-button input-button" value="<?php echo _t('변경하기');?>" onclick="save(); return false;" /> 133 </div> 134 </form> 135 </div> 136 </div> 137 <?php 138 if( Acl::check( 'group.owners' ) ) { /* 블로그 주소를 오픈아이디로 사용 */ 139 ?> 140 141 <div id="part-openid-blogaddress" class="part"> 142 <h2 class="caption"><span class="main-text"><?php echo _t('블로그 주소를 오픈아이디로 사용')?></span></h2> 143 144 <div class="data-inbox"> 145 <form> 146 <fieldset class="container"> 147 <dl> 148 <dt class="hidden"><?php echo _t('오픈아이디로 사용할 블로그 주소를 선택하세요');?></dt> 149 <dd> 150 <?php 151 $currentDelegate = setting::getBlogSettingGlobal( 'OpenIDDelegate', '' ); 152 ?> 153 <select id="openid_for_delegation"> 154 <?php 155 print "<option value='' >" . _t('블로그 주소를 오픈아이디로 사용하지 않음') . "</option>"; 156 foreach( $openid_list as $openid_identity ) { 157 $selected = ''; 158 if( $openid_identity == $currentDelegate ) { 159 $selected = "selected"; 160 } 161 print "<option value='$openid_identity' $selected>" . $openid_identity . "</option>"; 162 } 163 ?> 164 </select> 165 <input type="button" onclick="setDelegate(); return false" value="<?php echo _t('확인') ?>" class="save-button input-button" /> 166 167 <p class="text"> 168 <?php echo _f('블로그 주소(%1)를 소유자 계정에 연결된 오픈아이디 중 하나에 위임하여 오픈아이디로 사용할 수 있습니다.', "$hostURL$blogURL"); ?> 169 </p> 170 </dd> 171 </dl> 172 </fieldset> 173 </form> 174 </div> 175 </div> 176 177 <div id="part-openid-linkedopenids" class="part"> 178 <h2 class="caption"><span class="main-text"><?php echo _t('소유자 계정에 연결된 오픈아이디 목록')?></span></h2> 179 <table class="data-inbox" cellspacing="0" cellpadding="0"> 180 <tbody> 181 <?php 182 foreach( $openid_list as $openid_identity ) { 183 print "<tr class='site'><td>" . $openid_identity . "</td></tr>"; 184 } 185 if( empty( $openid_list ) ) { 186 print "<tr class='site'><td>"; 187 print _t('소유자 계정에 연결된 오픈아이디가 없습니다'); 188 print "</td></tr>"; 189 } 190 ?> 191 </tbody> 192 </table> 193 <dl> 194 <dt><?php echo _t('바로 가기');?></dt> 195 <dd> 196 <a class="button" href="<?php echo $blogURL;?>/owner/setting/account"><?php echo _t('소유자 계정에 오픈아이디 연결하기');?></a> 197 </dd> 198 </dl> 199 </div> 200 <?php 201 } /* 소유자 계정 확인 */ 202 ?> 203 204 <div id="part-openid-loginhistory" class="part"> 205 <h2 class="caption"><span class="main-text"><?php echo _t('오픈아이디 로그인 목록')?></span></h2> 206 207 <table class="data-inbox" cellspacing="0" cellpadding="0"> 208 <thead> 209 <tr> 210 <th class="site"><span class="text"><a href="<?php echo $menu1?>"><?php echo _t('오픈아이디 주소(이름)')?></a></span></th> 211 <th class="site"><span class="text"><a href="<?php echo $menu2?>"><?php echo _t('위임주소')?></a></span></th> 212 <th class="site"><span class="text"><a href="<?php echo $menu3?>"><?php echo _t('로그인 회수')?></a></span></th> 213 <th class="site"><span class="text"><a href="<?php echo $menu4?>"><?php echo _t('마지막 로그인')?></a></span></th> 214 </tr> 215 </thead> 216 <tbody> 59 <div id="part-openid-loginhistory" class="part"> 60 <h2 class="caption"><span class="main-text"><?php echo _t('오픈아이디로 로그인한 사람들의 목록입니다')?></span></h2> 61 <div class="main-explain-box"> 62 <p class="explain"><?php echo _t("이 블로그에 오픈아이디로 로그인하여 글을 남긴 사람들의 기록입니다.").' '._t('댓글을 남긴 아이디와 그에 연결된 오픈아이디를 동시에 확인할 수 있습니다.').'<br />'._t('아이디와 오픈아이디의 대조를 통하여 아이디의 사칭 여부를 판별할 수 있습니다.');?></p> 63 </div> 64 <table class="data-inbox" cellspacing="0" cellpadding="0"> 65 <thead> 66 <tr> 67 <th class="site"><span class="text"><a href="<?php echo $menu1?>"><?php echo _t('오픈아이디 주소(이름)')?></a></span></th> 68 <th class="site"><span class="text"><a href="<?php echo $menu2?>"><?php echo _t('위임주소')?></a></span></th> 69 <th class="site"><span class="text"><a href="<?php echo $menu3?>"><?php echo _t('로그인 회수')?></a></span></th> 70 <th class="site"><span class="text"><a href="<?php echo $menu4?>"><?php echo _t('마지막 로그인')?></a></span></th> 71 </tr> 72 </thead> 73 <tbody> 217 74 <?php 218 75 $sql="SELECT * FROM {$database['prefix']}OpenIDUsers $order"; … … 226 83 $className .= ($i == sizeof($rec) - 1) ? ' last-line' : ''; 227 84 ?> 228 <tr class="<?php echo $className;?> inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')">229 <td><?php echo "{$record['openid']} {$nickname}";?></td>230 <td><?php echo $record['delegatedid'];?></td>231 <td><?php echo $record['loginCount'];?></td>232 <td><?php echo Timestamp::format5($record['lastLogin']);?></td>233 </tr>85 <tr class="<?php echo $className;?> inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')"> 86 <td><?php echo "{$record['openid']} {$nickname}";?></td> 87 <td><?php echo $record['delegatedid'];?></td> 88 <td><?php echo $record['loginCount'];?></td> 89 <td><?php echo Timestamp::format5($record['lastLogin']);?></td> 90 </tr> 234 91 <?php 235 92 } 236 93 ?> 237 </tbody>238 </table>239 </div>94 </tbody> 95 </table> 96 </div> 240 97 <?php 241 98 require ROOT . '/lib/piece/owner/footer.php'; -
trunk/lib/piece/owner/contentMenu.php
r5872 r5873 79 79 array('menu'=>'filter','title'=>_t('스팸 필터'),'link'=>'/owner/setting/filter'), 80 80 array('menu'=>'data','title'=>_t('데이터 관리'),'link'=>'/owner/data'), 81 array('menu'=>'openid','title'=>_t('오픈아이디 '),'link'=>'/owner/setting/openid')81 array('menu'=>'openid','title'=>_t('오픈아이디 목록'),'link'=>'/owner/setting/openid') 82 82 ); 83 83 } else if(Acl::check('group.editors')) { -
trunk/style/admin/whitedream/basic.css
r5870 r5873 1143 1143 } 1144 1144 1145 .wide-button 1146 { 1147 /* width :100% !important;*/ 1148 1149 } 1150 1145 1151 input.checkbox, 1146 1152 input.radio -
trunk/style/admin/whitedream/setting.css
r5859 r5873 40 40 clear : both; 41 41 text-align : left !important; 42 margin-top : 10px; 42 43 } 43 44
