equal
deleted
inserted
replaced
406 echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_not_exist') . '</div>'; |
406 echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_not_exist') . '</div>'; |
407 } |
407 } |
408 |
408 |
409 setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' )); |
409 setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' )); |
410 |
410 |
|
411 // Allow plugins to save their changes |
|
412 $code = $plugins->setHook('acp_general_save'); |
|
413 foreach ( $code as $cmd ) |
|
414 { |
|
415 eval($cmd); |
|
416 } |
|
417 |
411 echo '<div class="info-box">' . $lang->get('acpgc_msg_save_success') . '</div><br />'; |
418 echo '<div class="info-box">' . $lang->get('acpgc_msg_save_success') . '</div><br />'; |
412 |
419 |
413 } |
420 } |
414 else if ( isset($_POST['submit']) && defined('ENANO_DEMO_MODE') ) |
421 else if ( isset($_POST['submit']) && defined('ENANO_DEMO_MODE') ) |
415 { |
422 { |
616 </td> |
623 </td> |
617 <td class="row2"> |
624 <td class="row2"> |
618 <label> |
625 <label> |
619 <input name="comment_spam_policy" type="radio" value="moderate" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'moderate' ) echo 'checked="checked"'; ?>/> |
626 <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'); ?> |
627 <?php echo $lang->get('acpgc_field_comment_spam_policy_moderate'); ?> |
621 </label> |
628 </label><br /> |
622 <label> |
629 <label> |
623 <input name="comment_spam_policy" type="radio" value="reject" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'reject' ) echo 'checked="checked"'; ?>/> |
630 <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'); ?> |
631 <?php echo $lang->get('acpgc_field_comment_spam_policy_reject'); ?> |
625 </label> |
632 </label><br /> |
626 <label> |
633 <label> |
627 <input name="comment_spam_policy" type="radio" value="accept" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'accept' ) echo 'checked="checked"'; ?>/> |
634 <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'); ?> |
635 <?php echo $lang->get('acpgc_field_comment_spam_policy_accept'); ?> |
629 </label> |
636 </label> |
630 </td> |
637 </td> |
710 </td> |
717 </td> |
711 <td class="row2"> |
718 <td class="row2"> |
712 <input type="text" name="cdn_path" value="<?php echo htmlspecialchars(getConfig('cdn_path', '')); ?>" style="width: 98%;" /> |
719 <input type="text" name="cdn_path" value="<?php echo htmlspecialchars(getConfig('cdn_path', '')); ?>" style="width: 98%;" /> |
713 </td> |
720 </td> |
714 </tr> |
721 </tr> |
|
722 |
|
723 <!-- Allow plugins to add code --> |
|
724 <?php |
|
725 $code = $plugins->setHook('acp_general_basic'); |
|
726 foreach ( $code as $cmd ) |
|
727 { |
|
728 eval($cmd); |
|
729 } |
|
730 ?> |
715 |
731 |
716 </table> |
732 </table> |
717 </div> |
733 </div> |
718 |
734 |
719 <div class="tblholder"> |
735 <div class="tblholder"> |
1040 <input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/> |
1056 <input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/> |
1041 <?php echo $lang->get('acpgc_field_userpage_acl'); ?> |
1057 <?php echo $lang->get('acpgc_field_userpage_acl'); ?> |
1042 </label> |
1058 </label> |
1043 </td> |
1059 </td> |
1044 </tr> |
1060 </tr> |
|
1061 |
|
1062 <!-- Allow plugins to add code --> |
|
1063 <?php |
|
1064 $code = $plugins->setHook('acp_general_users'); |
|
1065 foreach ( $code as $cmd ) |
|
1066 { |
|
1067 eval($cmd); |
|
1068 } |
|
1069 ?> |
1045 |
1070 |
1046 </table> |
1071 </table> |
1047 </div> |
1072 </div> |
1048 |
1073 |
1049 <div class="tblholder"> |
1074 <div class="tblholder"> |
1050 <table border="0" width="100%" cellspacing="1" cellpadding="4"> |
1075 <table border="0" width="100%" cellspacing="1" cellpadding="4"> |
1051 |
1076 |
1052 <tr> |
1077 <tr> |
1053 <th colspan="2"><?php echo $lang->get('acpgc_heading_sidebar'); ?></th> |
1078 <th colspan="2"><?php echo $lang->get('acpgc_heading_sidebar'); ?></th> |
1157 <td class="row1"> |
1182 <td class="row1"> |
1158 <input type="checkbox" name="dbdbutton" id="dbdbutton" <?php if(getConfig('dbd_button')=='1') echo('checked="checked" '); ?>/> |
1183 <input type="checkbox" name="dbdbutton" id="dbdbutton" <?php if(getConfig('dbd_button')=='1') echo('checked="checked" '); ?>/> |
1159 </td> |
1184 </td> |
1160 </tr> |
1185 </tr> |
1161 |
1186 |
|
1187 <!-- Allow plugins to add code --> |
|
1188 <?php |
|
1189 $code = $plugins->setHook('acp_general_sidebar'); |
|
1190 foreach ( $code as $cmd ) |
|
1191 { |
|
1192 eval($cmd); |
|
1193 } |
|
1194 ?> |
|
1195 |
1162 <!-- Save button --> |
1196 <!-- Save button --> |
1163 |
1197 |
1164 </table> |
1198 </table> |
1165 </div> |
1199 </div> |
|
1200 |
|
1201 <!-- Allow plugins to add code --> |
|
1202 <?php |
|
1203 $code = $plugins->setHook('acp_general_tail'); |
|
1204 foreach ( $code as $cmd ) |
|
1205 { |
|
1206 eval($cmd); |
|
1207 } |
|
1208 ?> |
1166 |
1209 |
1167 <div class="tblholder"> |
1210 <div class="tblholder"> |
1168 <table border="0" width="100%" cellspacing="1" cellpadding="4"> |
1211 <table border="0" width="100%" cellspacing="1" cellpadding="4"> |
1169 |
1212 |
1170 <tr><th colspan="2"><input type="submit" name="submit" value="<?php echo $lang->get('acpgc_btn_save_changes'); ?>" /></th></tr> |
1213 <tr><th colspan="2"><input type="submit" name="submit" value="<?php echo $lang->get('acpgc_btn_save_changes'); ?>" /></th></tr> |