aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_options.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-13 15:24:18 +0000
committerplegall <plg@piwigo.org>2011-01-13 15:24:18 +0000
commitfe569ab1bf4baa44a808a2d6e81bcddc28d61b62 (patch)
treed24dd5bb2db62ce6e8c5143412d549469fc33176 /admin/cat_options.php
parentf03dcee21a4c5ef3b790de15decddff6c6c23b35 (diff)
feature 2108 added: user upload removed from core. It will come back as a
"new generation" user upload in the Community plugin. git-svn-id: http://piwigo.org/svn/trunk@8651 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_options.php53
1 files changed, 2 insertions, 51 deletions
diff --git a/admin/cat_options.php b/admin/cat_options.php
index 638757cb0..3d7a4dd75 100644
--- a/admin/cat_options.php
+++ b/admin/cat_options.php
@@ -47,16 +47,6 @@ if (isset($_POST['falsify'])
{
switch ($_GET['section'])
{
- case 'upload' :
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET uploadable = \'false\'
- WHERE id IN ('.implode(',', $_POST['cat_true']).')
-;';
- pwg_query($query);
- break;
- }
case 'comments' :
{
$query = '
@@ -95,16 +85,6 @@ else if (isset($_POST['trueify'])
{
switch ($_GET['section'])
{
- case 'upload' :
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET uploadable = \'true\'
- WHERE id IN ('.implode(',', $_POST['cat_false']).')
-;';
- pwg_query($query);
- break;
- }
case 'comments' :
{
$query = '
@@ -162,10 +142,6 @@ $tabsheet = new tabsheet();
$opt_link = $link_start.'cat_options&amp;section=';
$tabsheet->add('status', l10n('Public / Private'), $opt_link.'status');
$tabsheet->add('visible', l10n('Lock'), $opt_link.'visible');
-if ($conf['enable_synchronization'])
-{
- $tabsheet->add('upload', l10n('Upload'), $opt_link.'upload');
-}
$tabsheet->add('comments', l10n('Comments'), $opt_link.'comments');
if ($conf['allow_random_representative'])
{
@@ -182,8 +158,8 @@ $tabsheet->assign();
// for each section, categories in the multiselect field can be :
//
-// - true : uploadable for upload section
-// - false : un-uploadable for upload section
+// - true : commentable for comment section
+// - false : un-commentable for comment section
// - NA : (not applicable) for virtual categories
//
// for true and false status, we associates an array of category ids,
@@ -193,31 +169,6 @@ $cats_true = array();
$cats_false = array();
switch ($page['section'])
{
- case 'upload' :
- {
- $query_true = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE uploadable = \'true\'
- AND dir IS NOT NULL
- AND site_id = 1
-;';
- $query_false = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE uploadable = \'false\'
- AND dir IS NOT NULL
- AND site_id = 1
-;';
- $template->assign(
- array(
- 'L_SECTION' => l10n('Select uploadable albums'),
- 'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
- 'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
- )
- );
- break;
- }
case 'comments' :
{
$query_true = '