Ignore:
Timestamp:
Mar 7, 2007, 11:21:35 PM (17 years ago)
Author:
rub
Message:

Undo revision 1865 in order to add tabsheet for categories.

(Not really undo help)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r1865 r1877  
    159159}
    160160
    161 if ( $page['section']=='comments' and !is_adviser() )
    162 {
    163   if (isset($_POST['falsify'])
    164       and isset($_POST['cat_true'])
    165       and count($_POST['cat_true']) > 0)
    166   {
    167       $query = '
    168 UPDATE '.CATEGORIES_TABLE.'
    169   SET commentable = \'false\'
    170   WHERE id IN ('.implode(',', $_POST['cat_true']).')
    171 ;';
    172       pwg_query($query);
    173   }
    174   if (isset($_POST['trueify'])
    175          and isset($_POST['cat_false'])
    176          and count($_POST['cat_false']) > 0)
    177   {
    178       $query = '
    179 UPDATE '.CATEGORIES_TABLE.'
    180   SET commentable = \'true\'
    181   WHERE id IN ('.implode(',', $_POST['cat_false']).')
    182 ;';
    183       pwg_query($query);
    184   }
    185 }
    186 
    187161//----------------------------------------------------- template initialization
    188162$template->set_filenames( array('config'=>'admin/configuration.tpl') );
     
    253227        );
    254228    }
    255    
    256     $query_true = '
    257 SELECT id,name,uppercats,global_rank
    258   FROM '.CATEGORIES_TABLE.'
    259   WHERE commentable = \'true\'
    260 ;';
    261     $query_false = '
    262 SELECT id,name,uppercats,global_rank
    263   FROM '.CATEGORIES_TABLE.'
    264   WHERE commentable = \'false\'
    265 ;';
    266     display_select_cat_wrapper($query_true,array(),'comments.category_option_true');
    267     display_select_cat_wrapper($query_false,array(),'comments.category_option_false');
    268229    break;
    269230  }
Note: See TracChangeset for help on using the changeset viewer.