339 setConfig('avatar_max_width', ( strval(intval($_POST['avatar_max_width'])) === $_POST['avatar_max_width'] ? $_POST['avatar_max_width'] : '96' )); |
339 setConfig('avatar_max_width', ( strval(intval($_POST['avatar_max_width'])) === $_POST['avatar_max_width'] ? $_POST['avatar_max_width'] : '96' )); |
340 setConfig('avatar_max_height', ( strval(intval($_POST['avatar_max_height'])) === $_POST['avatar_max_height'] ? $_POST['avatar_max_height'] : '96' )); |
340 setConfig('avatar_max_height', ( strval(intval($_POST['avatar_max_height'])) === $_POST['avatar_max_height'] ? $_POST['avatar_max_height'] : '96' )); |
341 setConfig('avatar_enable_anim', ( isset($_POST['avatar_enable_anim']) ? '1' : '0' )); |
341 setConfig('avatar_enable_anim', ( isset($_POST['avatar_enable_anim']) ? '1' : '0' )); |
342 setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' )); |
342 setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' )); |
343 setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' )); |
343 setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' )); |
|
344 setConfig('avatar_upload_gravatar', ( isset($_POST['avatar_upload_gravatar']) ? '1' : '0' )); |
|
345 if ( in_array($_POST['gravatar_rating'], array('g', 'pg', 'r', 'x')) ) |
|
346 { |
|
347 setConfig('gravatar_rating', $_POST['gravatar_rating']); |
|
348 } |
344 |
349 |
345 if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) ) |
350 if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) ) |
346 { |
351 { |
347 if ( preg_match('/^[A-z0-9_-]+(?:\/(?:[A-z0-9_-]+))*\/?$/', $_POST['avatar_directory']) ) |
352 if ( preg_match('/^[A-z0-9_-]+(?:\/(?:[A-z0-9_-]+))*\/?$/', $_POST['avatar_directory']) ) |
348 { |
353 { |
495 <?php echo $lang->get('acpgc_field_comment_allow_guests_no'); ?> |
500 <?php echo $lang->get('acpgc_field_comment_allow_guests_no'); ?> |
496 </label> |
501 </label> |
497 </td> |
502 </td> |
498 </tr> |
503 </tr> |
499 |
504 |
500 <!-- Default permissions --> |
|
501 |
|
502 <!-- |
|
503 |
|
504 READ: Do not try to enable this, backend support for it has been disabled. To edit default |
|
505 permissions, select The Entire Website in any permissions editor window. |
|
506 |
|
507 <tr><th colspan="2">Default permissions for pages</th></tr> |
|
508 |
|
509 <tr> |
|
510 <td class="row1">You can edit the default set of permissions used when no other permissions are available. Permissions set here are used when no other permissions are available. As with other ACL rules, you can assign these defaults to every user or one specific user or group.</td> |
|
511 <td class="row1"><a href="#" onclick="ajaxOpenACLManager('__DefaultPermissions', 'Special'); return false;">Manage default permissions</a></td> |
|
512 </tr> |
|
513 |
|
514 --> |
|
515 |
|
516 <!-- Site disablement --> |
505 <!-- Site disablement --> |
517 |
506 |
518 <tr><th class="subhead" colspan="2"><?php echo $lang->get('acpgc_heading_disablesite'); ?></th></tr> |
507 <tr><th class="subhead" colspan="2"><?php echo $lang->get('acpgc_heading_disablesite'); ?></th></tr> |
519 |
508 |
520 <tr> |
509 <tr> |
809 |
798 |
810 <label> |
799 <label> |
811 <input type="checkbox" name="avatar_upload_http" <?php if ( getConfig('avatar_upload_http') == '1' || getConfig('avatar_upload_http') === false ) echo 'checked="checked" '; ?>/> |
800 <input type="checkbox" name="avatar_upload_http" <?php if ( getConfig('avatar_upload_http') == '1' || getConfig('avatar_upload_http') === false ) echo 'checked="checked" '; ?>/> |
812 <?php echo $lang->get('acpgc_field_avatar_upload_http'); ?> |
801 <?php echo $lang->get('acpgc_field_avatar_upload_http'); ?> |
813 </label> |
802 </label> |
|
803 |
|
804 <br /> |
|
805 |
|
806 <label> |
|
807 <input type="checkbox" name="avatar_upload_gravatar" <?php if ( getConfig('avatar_upload_gravatar') == '1' || getConfig('avatar_upload_gravatar') === false ) echo 'checked="checked" '; ?>onclick="document.getElementById('acp_gravatar_rating').style.display = ( this.checked ) ? 'block' : 'none';" /> |
|
808 <?php echo $lang->get('acpgc_field_avatar_upload_gravatar'); ?> |
|
809 </label> |
|
810 |
|
811 <br /> |
|
812 |
|
813 <fieldset id="acp_gravatar_rating" style="margin-top: 10px; <?php if ( getConfig('avatar_upload_gravatar') === '0' ) echo ' display: none;'; ?>"> |
|
814 |
|
815 <?php /* The four ratings are g, pg, r, and x - loop through each and output a localized string and a radiobutton */ ?> |
|
816 <legend><?php echo $lang->get('acpgc_field_avatar_gravatar_rating'); ?></legend> |
|
817 |
|
818 <?php foreach ( array('g', 'pg', 'r', 'x') as $rating ): ?> |
|
819 |
|
820 <label> |
|
821 |
|
822 <input type="radio" name="gravatar_rating" value="<?php echo $rating; ?>"<?php |
|
823 // Check the button if this is the current selection *or* if we're on "G" and the current configuration value is unset |
|
824 if ( getConfig('gravatar_rating', 'g') == $rating ) |
|
825 echo ' checked="checked"'; |
|
826 ?> /> |
|
827 |
|
828 <?php /* The localized string */ ?> |
|
829 <?php echo $lang->get("acpgc_field_avatar_gravatar_rating_$rating"); ?> |
|
830 |
|
831 </label> |
|
832 |
|
833 <br /> |
|
834 |
|
835 <?php endforeach; ?> |
|
836 </fieldset> |
814 </td> |
837 </td> |
815 </tr> |
838 </tr> |
816 |
839 |
817 <tr> |
840 <tr> |
818 <td class="row2"> |
841 <td class="row2"> |