[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.355,1.356

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Mon Aug 9 03:56:24 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv16143/public_html

Modified Files:
	lib-common.php 
Log Message:
Use $HTTP_SERVER_VARS['PHP_SELF'] instead of $PHP_SELF


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.355
retrieving revision 1.356
diff -C2 -d -r1.355 -r1.356
*** lib-common.php	8 Aug 2004 17:00:12 -0000	1.355
--- lib-common.php	9 Aug 2004 07:56:21 -0000	1.356
***************
*** 96,100 ****
  
  // this file can't be used on its own - redirect to index.php
! if( eregi( 'lib-common.php', $PHP_SELF ))
  {
      echo COM_refresh( $_CONF['site_url'] . '/index.php' );
--- 96,100 ----
  
  // this file can't be used on its own - redirect to index.php
! if( eregi( 'lib-common.php', $HTTP_SERVER_VARS['PHP_SELF'] ))
  {
      echo COM_refresh( $_CONF['site_url'] . '/index.php' );
***************
*** 2732,2738 ****
  function COM_commentBar( $sid, $title, $type, $order, $mode )
  {
!     global $_TABLES, $LANG01, $_USER, $_CONF, $_REQUEST, $HTTP_SERVER_VARS;
  
!     $page = array_pop(explode('/', $HTTP_SERVER_VARS['PHP_SELF']));
      $nrows = DB_count( $_TABLES['comments'], 'sid', $sid );
  
--- 2732,2738 ----
  function COM_commentBar( $sid, $title, $type, $order, $mode )
  {
!     global $_CONF, $_TABLES, $_USER, $LANG01, $_REQUEST, $HTTP_SERVER_VARS;
  
!     $page = array_pop( explode( '/', $HTTP_SERVER_VARS['PHP_SELF'] ));
      $nrows = DB_count( $_TABLES['comments'], 'sid', $sid );
  




More information about the geeklog-cvs mailing list