plugins/SpecialAdmin.php
changeset 825 9d5c04c1414f
parent 807 34e8bf0f25e1
child 826 dcf5381ce8ba
equal deleted inserted replaced
817:880c4b7eb658 825:9d5c04c1414f
   302     if(isset($_POST['comment-approval'])) setConfig('approve_comments', '1');
   302     if(isset($_POST['comment-approval'])) setConfig('approve_comments', '1');
   303     else                                  setConfig('approve_comments', '0');
   303     else                                  setConfig('approve_comments', '0');
   304     if(isset($_POST['enable-comments']))  setConfig('enable_comments', '1');
   304     if(isset($_POST['enable-comments']))  setConfig('enable_comments', '1');
   305     else                                  setConfig('enable_comments', '0');
   305     else                                  setConfig('enable_comments', '0');
   306     setConfig('comments_need_login', $_POST['comments_need_login']);
   306     setConfig('comments_need_login', $_POST['comments_need_login']);
       
   307     if ( in_array($_POST['comment_spam_policy'], array('moderate', 'reject', 'accept')) )
       
   308     {
       
   309       setConfig('comment_spam_policy', $_POST['comment_spam_policy']);
       
   310     }
   307     
   311     
   308     // Powered by link
   312     // Powered by link
   309     if ( isset($_POST['enano_powered_link']) ) setConfig('powered_btn', '1');
   313     if ( isset($_POST['enano_powered_link']) ) setConfig('powered_btn', '1');
   310     else                                       setConfig('powered_btn', '0');    
   314     else                                       setConfig('powered_btn', '0');    
   311     
   315     
   599             <?php echo $lang->get('acpgc_field_comment_allow_guests_captcha'); ?>
   603             <?php echo $lang->get('acpgc_field_comment_allow_guests_captcha'); ?>
   600           </label>
   604           </label>
   601           <label>
   605           <label>
   602             <input name="comments_need_login" type="radio" value="2" <?php if(getConfig('comments_need_login')=='2') echo 'checked="checked" '; ?>/>
   606             <input name="comments_need_login" type="radio" value="2" <?php if(getConfig('comments_need_login')=='2') echo 'checked="checked" '; ?>/>
   603             <?php echo $lang->get('acpgc_field_comment_allow_guests_no'); ?>
   607             <?php echo $lang->get('acpgc_field_comment_allow_guests_no'); ?>
       
   608           </label>
       
   609         </td>
       
   610       </tr>
       
   611       
       
   612       <tr>
       
   613         <td class="row2">
       
   614           <?php echo $lang->get('acpgc_field_comment_spam_policy'); ?><br />
       
   615           <small><?php echo $lang->get('acpgc_field_comment_spam_policy_hint'); ?></small>
       
   616         </td>
       
   617         <td class="row2">
       
   618           <label>
       
   619             <input name="comment_spam_policy" type="radio" value="moderate" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'moderate' ) echo 'checked="checked"'; ?>/>
       
   620             <?php echo $lang->get('acpgc_field_comment_spam_policy_moderate'); ?>
       
   621           </label>
       
   622           <label>
       
   623             <input name="comment_spam_policy" type="radio" value="reject" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'reject' ) echo 'checked="checked"'; ?>/>
       
   624             <?php echo $lang->get('acpgc_field_comment_spam_policy_reject'); ?>
       
   625           </label>
       
   626           <label>
       
   627             <input name="comment_spam_policy" type="radio" value="accept" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'accept' ) echo 'checked="checked"'; ?>/>
       
   628             <?php echo $lang->get('acpgc_field_comment_spam_policy_accept'); ?>
   604           </label>
   629           </label>
   605         </td>
   630         </td>
   606       </tr>
   631       </tr>
   607             
   632             
   608     <!-- Site disablement -->
   633     <!-- Site disablement -->