aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-03-07 22:21:35 +0000
committerrub <rub@piwigo.org>2007-03-07 22:21:35 +0000
commitbacf165624681b6457a196a055e41e179e072ea4 (patch)
tree3dbb58cfd1b109f54f0a83a62e5040369a5b06a8 /admin/configuration.php
parent1415354b9c13b0dca0b8933206589f3e3fec972d (diff)
Undo revision 1865 in order to add tabsheet for categories.
(Not really undo help) git-svn-id: http://piwigo.org/svn/trunk@1877 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/configuration.php')
-rw-r--r--admin/configuration.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index c45fddc85..12235cce6 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -158,32 +158,6 @@ UPDATE '.CONFIG_TABLE.'
load_conf_from_db();
}
-if ( $page['section']=='comments' and !is_adviser() )
-{
- if (isset($_POST['falsify'])
- and isset($_POST['cat_true'])
- and count($_POST['cat_true']) > 0)
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET commentable = \'false\'
- WHERE id IN ('.implode(',', $_POST['cat_true']).')
-;';
- pwg_query($query);
- }
- if (isset($_POST['trueify'])
- and isset($_POST['cat_false'])
- and count($_POST['cat_false']) > 0)
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET commentable = \'true\'
- WHERE id IN ('.implode(',', $_POST['cat_false']).')
-;';
- pwg_query($query);
- }
-}
-
//----------------------------------------------------- template initialization
$template->set_filenames( array('config'=>'admin/configuration.tpl') );
@@ -252,19 +226,6 @@ switch ($page['section'])
)
);
}
-
- $query_true = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE commentable = \'true\'
-;';
- $query_false = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE commentable = \'false\'
-;';
- display_select_cat_wrapper($query_true,array(),'comments.category_option_true');
- display_select_cat_wrapper($query_false,array(),'comments.category_option_false');
break;
}
case 'default' :