Ignore:
Timestamp:
Jan 13, 2011, 4:24:18 PM (13 years ago)
Author:
plg
Message:

feature 2108 added: user upload removed from core. It will come back as a
"new generation" user upload in the Community plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r6993 r8651  
    4848  switch ($_GET['section'])
    4949  {
    50     case 'upload' :
    51     {
    52       $query = '
    53 UPDATE '.CATEGORIES_TABLE.'
    54   SET uploadable = \'false\'
    55   WHERE id IN ('.implode(',', $_POST['cat_true']).')
    56 ;';
    57       pwg_query($query);
    58       break;
    59     }
    6050    case 'comments' :
    6151    {
     
    9686  switch ($_GET['section'])
    9787  {
    98     case 'upload' :
    99     {
    100       $query = '
    101 UPDATE '.CATEGORIES_TABLE.'
    102   SET uploadable = \'true\'
    103   WHERE id IN ('.implode(',', $_POST['cat_false']).')
    104 ;';
    105       pwg_query($query);
    106       break;
    107     }
    10888    case 'comments' :
    10989    {
     
    163143$tabsheet->add('status', l10n('Public / Private'), $opt_link.'status');
    164144$tabsheet->add('visible', l10n('Lock'), $opt_link.'visible');
    165 if ($conf['enable_synchronization'])
    166 {
    167   $tabsheet->add('upload', l10n('Upload'), $opt_link.'upload');
    168 }
    169145$tabsheet->add('comments', l10n('Comments'), $opt_link.'comments');
    170146if ($conf['allow_random_representative'])
     
    183159// for each section, categories in the multiselect field can be :
    184160//
    185 // - true : uploadable for upload section
    186 // - false : un-uploadable for upload section
     161// - true : commentable for comment section
     162// - false : un-commentable for comment section
    187163// - NA : (not applicable) for virtual categories
    188164//
     
    194170switch ($page['section'])
    195171{
    196   case 'upload' :
    197   {
    198     $query_true = '
    199 SELECT id,name,uppercats,global_rank
    200   FROM '.CATEGORIES_TABLE.'
    201   WHERE uploadable = \'true\'
    202     AND dir IS NOT NULL
    203     AND site_id = 1
    204 ;';
    205     $query_false = '
    206 SELECT id,name,uppercats,global_rank
    207   FROM '.CATEGORIES_TABLE.'
    208   WHERE uploadable = \'false\'
    209     AND dir IS NOT NULL
    210     AND site_id = 1
    211 ;';
    212     $template->assign(
    213       array(
    214         'L_SECTION' => l10n('Select uploadable albums'),
    215         'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
    216         'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
    217         )
    218       );
    219     break;
    220   }
    221172  case 'comments' :
    222173  {
Note: See TracChangeset for help on using the changeset viewer.