Changeset 1865 for trunk/admin/cat_options.php
- Timestamp:
- Feb 28, 2007, 1:16:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_options.php
r1072 r1865 61 61 break; 62 62 } 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 }73 63 case 'visible' : 74 64 { … … 104 94 UPDATE '.CATEGORIES_TABLE.' 105 95 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\'116 96 WHERE id IN ('.implode(',', $_POST['cat_false']).') 117 97 ;'; … … 206 186 break; 207 187 } 208 case 'comments' :209 {210 $query_true = '211 SELECT id,name,uppercats,global_rank212 FROM '.CATEGORIES_TABLE.'213 WHERE commentable = \'true\'214 ;';215 $query_false = '216 SELECT id,name,uppercats,global_rank217 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 }229 188 case 'visible' : 230 189 {
Note: See TracChangeset
for help on using the changeset viewer.