diff --git a/admin/configuration.php b/admin/configuration.php
index e03d84fb0..61975c2c7 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -52,18 +52,15 @@ $main_checkboxes = array(
'rate_anonymous',
'email_admin_on_new_user',
'allow_user_customization',
+ 'log',
+ 'history_admin',
+ 'history_guest',
);
$sizes_checkboxes = array(
'original_resize',
);
-$history_checkboxes = array(
- 'log',
- 'history_admin',
- 'history_guest'
- );
-
$comments_checkboxes = array(
'activate_comments',
'comments_forall',
@@ -207,14 +204,6 @@ if (isset($_POST['submit']))
break;
}
- case 'history' :
- {
- foreach( $history_checkboxes as $checkbox)
- {
- $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
- }
- break;
- }
case 'comments' :
{
// the number of comments per page must be an integer between 5 and 50
@@ -295,7 +284,6 @@ $tabsheet = new tabsheet();
$tabsheet->add('main', l10n('Main'), $conf_link.'main');
$tabsheet->add('sizes', l10n('Photo Sizes'), $conf_link.'sizes');
$tabsheet->add('display', l10n('Display'), $conf_link.'display');
-$tabsheet->add('history', l10n('History'), $conf_link.'history');
$tabsheet->add('comments', l10n('Comments'), $conf_link.'comments');
$tabsheet->add('default', l10n('Guest Settings'), $conf_link.'default');
// TabSheet selection
@@ -387,21 +375,6 @@ switch ($page['section'])
}
break;
}
- case 'history' :
- {
- //Necessary for merge_block_vars
- foreach ($history_checkboxes as $checkbox)
- {
- $template->append(
- 'history',
- array(
- $checkbox => $conf[$checkbox]
- ),
- true
- );
- }
- break;
- }
case 'comments' :
{
$template->assign(
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
index ea4e32fab..f880bea05 100644
--- a/admin/themes/default/template/configuration.tpl
+++ b/admin/themes/default/template/configuration.tpl
@@ -14,78 +14,106 @@
-
-
{/if}
-{if isset($history)}
-
{/if}
@@ -176,8 +204,8 @@ jQuery(document).ready(function () {
-
@@ -185,71 +213,66 @@ jQuery(document).ready(function () {
{footer_script}{literal}
@@ -261,12 +284,61 @@ jQuery(document).ready(function(){
jQuery("#comments_param_warp").hide();
}
});
+
+ /* notify on validation checkbox */
+ if (jQuery('input[name="comments_validation"]').is(':checked')) {
+ jQuery('#email_admin_on_comment_validation').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_validation').hide();
+ }
+
+ jQuery('input[name="comments_validation"]').change(function(){
+ if ($(this).is(':checked')) {
+ jQuery('#email_admin_on_comment_validation').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_validation').hide();
+ }
+ });
+
+ /* notify on edition checkbox */
+ if (jQuery('input[name="user_can_edit_comment"]').is(':checked')) {
+ jQuery('#email_admin_on_comment_edition').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_edition').hide();
+ }
+
+ jQuery('input[name="user_can_edit_comment"]').change(function(){
+ if ($(this).is(':checked')) {
+ jQuery('#email_admin_on_comment_edition').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_edition').hide();
+ }
+ });
+
+ /* notify on deletion checkbox */
+ if (jQuery('input[name="user_can_delete_comment"]').is(':checked')) {
+ jQuery('#email_admin_on_comment_deletion').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_deletion').hide();
+ }
+
+ jQuery('input[name="user_can_delete_comment"]').change(function(){
+ if ($(this).is(':checked')) {
+ jQuery('#email_admin_on_comment_deletion').show();
+ }
+ else {
+ jQuery('#email_admin_on_comment_deletion').hide();
+ }
+ });
});
{/literal}{/footer_script}
{/if}
-
-
{if isset($sizes)}
{footer_script}{literal}
@@ -313,60 +385,56 @@ jQuery(document).ready(function(){
{/if}
-{if isset($default)}
-{$PROFILE_CONTENT}
-{/if}
-
{if isset($display)}