[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.232,1.233

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jun 27 21:36:29 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv18049/public_html

Modified Files:
	lib-common.php 
Log Message:
 Add new Plugin API PLG_getHeaderCode. Used to return JS functions or other Header Meta Tags required by plugins. Added new variable {plg_headercode} to the template header.thtml files

Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.232
retrieving revision 1.233
diff -C2 -d -r1.232 -r1.233
*** lib-common.php	27 Jun 2003 18:29:29 -0000	1.232
--- lib-common.php	28 Jun 2003 01:36:27 -0000	1.233
***************
*** 710,713 ****
--- 710,714 ----
  {
      global $_CONF, $_USER, $LANG01, $_COM_VERBOSE, $topic, $LANG_BUTTONS, $LANG_CHARSET;
+     global $_TABLES, $HTTP_POST_VARS, $HTTP_GET_VARS;
  
      // If the theme implemented this for us then call their version instead.
***************
*** 867,871 ****
      if( $what <> 'none' )
      {
!         // Now show any blocks
          $header->set_var( 'geeklog_blocks', COM_showBlocks( 'left', $topic ));
          $header->parse( 'left_blocks', 'leftblocks', true );
--- 868,887 ----
      if( $what <> 'none' )
      {
!         // Now show any blocks -- need to get the topic if not on home page
!         if (!isset($HTTP_GET_VARS['topic'])) {
!             if (isset($HTTP_GET_VARS['story'])) {
!                 $sid = $HTTP_GET_VARS['story'];
!             } elseif (isset($HTTP_GET_VARS['sid'])) {
!                 $sid = $HTTP_GET_VARS['sid'];
!             } elseif (isset($HTTP_POST_VARS['story'])) {
!                 $sid = $HTTP_POST_VARS['story'];
!             }
!             if (isset($sid)) {
!               $topic = DB_getItem($_TABLES['stories'], "tid", "sid='$sid'");
!             }
! 
!         } else {
!                 $topic = $HTTP_GET_VARS['topic'];
!         }
          $header->set_var( 'geeklog_blocks', COM_showBlocks( 'left', $topic ));
          $header->parse( 'left_blocks', 'leftblocks', true );





More information about the geeklog-cvs mailing list