Ignore:
Timestamp:
Feb 28, 2007, 1:16:53 AM (18 years ago)
Author:
rvelices
Message:

admin pages: merge Categories/comments page into Configuration/comments page
(they are related and we reduce the # of links in the menu)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r1072 r1865  
    6161      break;
    6262    }
    63     case 'comments' :
    64     {
    65       $query = '
    66 UPDATE '.CATEGORIES_TABLE.'
    67   SET commentable = \'false\'
    68   WHERE id IN ('.implode(',', $_POST['cat_true']).')
    69 ;';
    70       pwg_query($query);
    71       break;
    72     }
    7363    case 'visible' :
    7464    {
     
    10494UPDATE '.CATEGORIES_TABLE.'
    10595  SET uploadable = \'true\'
    106   WHERE id IN ('.implode(',', $_POST['cat_false']).')
    107 ;';
    108       pwg_query($query);
    109       break;
    110     }
    111     case 'comments' :
    112     {
    113       $query = '
    114 UPDATE '.CATEGORIES_TABLE.'
    115   SET commentable = \'true\'
    11696  WHERE id IN ('.implode(',', $_POST['cat_false']).')
    11797;';
     
    206186    break;
    207187  }
    208   case 'comments' :
    209   {
    210     $query_true = '
    211 SELECT id,name,uppercats,global_rank
    212   FROM '.CATEGORIES_TABLE.'
    213   WHERE commentable = \'true\'
    214 ;';
    215     $query_false = '
    216 SELECT id,name,uppercats,global_rank
    217   FROM '.CATEGORIES_TABLE.'
    218   WHERE commentable = \'false\'
    219 ;';
    220     $template->assign_vars(
    221       array(
    222         'L_SECTION' => $lang['cat_comments_title'],
    223         'L_CAT_OPTIONS_TRUE' => $lang['authorized'],
    224         'L_CAT_OPTIONS_FALSE' => $lang['forbidden'],
    225         )
    226       );
    227     break;
    228   }
    229188  case 'visible' :
    230189  {
Note: See TracChangeset for help on using the changeset viewer.