[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.673,1.674

Dirk Haun dhaun at qs1489.pair.com
Sat Jan 26 09:23:31 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv81229/public_html

Modified Files:
	lib-common.php 
Log Message:
Display the number of configuration sections in the Admin block


Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.673
retrieving revision 1.674
diff -C2 -d -r1.673 -r1.674
*** lib-common.php	20 Jan 2008 09:35:59 -0000	1.673
--- lib-common.php	26 Jan 2008 14:23:29 -0000	1.674
***************
*** 2416,2420 ****
  {
      global $_TABLES, $_USER, $_CONF, $LANG01, $_BLOCK_TEMPLATE, $LANG_PDF,
!            $_DB_dbms;
  
      $retval = '';
--- 2416,2420 ----
  {
      global $_TABLES, $_USER, $_CONF, $LANG01, $_BLOCK_TEMPLATE, $LANG_PDF,
!            $_DB_dbms, $config;
  
      $retval = '';
***************
*** 2520,2533 ****
          }
  
!         if (SEC_inGroup( 'Root' )) {
              $url = $_CONF['site_admin_url'] . '/configuration.php';
!             $adminmenu->set_var( 'option_url', $url);
!             $adminmenu->set_var( 'option_label', $LANG01[129] );
!             $adminmenu->set_var( 'option_count', 'N/A');
!             $menu_item = $adminmenu->parse( 'item',
!                                             ( $thisUrl == $url ) ? 'current' :
!                                             'option' );
              $link_array[$LANG01[129]] = $menu_item;
- 
          }
  
--- 2520,2532 ----
          }
  
!         if (SEC_inGroup('Root')) {
              $url = $_CONF['site_admin_url'] . '/configuration.php';
!             $adminmenu->set_var('option_url', $url);
!             $adminmenu->set_var('option_label', $LANG01[129]);
!             $adminmenu->set_var('option_count', count($config->_get_groups()));
!             $menu_item = $adminmenu->parse('item',
!                                            ($thisUrl == $url) ? 'current' :
!                                                                 'option');
              $link_array[$LANG01[129]] = $menu_item;
          }
  




More information about the geeklog-cvs mailing list