[Phpslash-commit] CVS: phpslash-ft/public_html/admin config.php3,1.3,1.4
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-11-24 23:32:21
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory sc8-pr-cvs1:/tmp/cvs-serv27949/phpslash-ft/public_html/admin Modified Files: config.php3 Log Message: admin classes only for admin pages Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/config.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config.php3 23 Nov 2002 13:22:20 -0000 1.3 --- config.php3 24 Nov 2002 23:32:18 -0000 1.4 *************** *** 1,10 **** <?php ! // don't cache admin pages ! $cachetimeout=-1; ! require("../config.php3"); ! if( $ary['section_id'] == $_PSL['home_section_id']) { ! $ary['section_id'] = ''; } ?> --- 1,70 ---- <?php ! // don't cache admin pages ! $cachetimeout=-1; ! require("../config.php3"); ! ! if( $ary['section_id'] == $_PSL['home_section_id']) { ! $ary['section_id'] = ''; ! } ! foreach($_PSL['module'] as $key => $value) { ! ! switch ($key) { ! ! case 'Author': ! ! break; ! ! case 'Block': ! ! require($_PSL['classdir'] . "/Block_admin.class"); ! break; ! ! case 'Comment': ! ! break; ! ! case 'Glossary': ! ! break; ! ! case 'Group': ! ! break; ! ! case 'MailingList': ! ! break; ! ! ! case 'NavBar': ! ! break; ! ! case 'Poll': ! ! break; ! ! case 'Story': ! ! require($_PSL['classdir'] . "/Story_admin.class"); ! break; ! ! case 'Submission': ! ! break; ! ! case 'TopicBar': ! ! break; ! ! case 'Variable': ! ! break; ! } + + } + ?> |