[geeklog-cvs] geeklog-1.3/system lib-database.php,1.30,1.31 lib-plugins.php,1.30,1.31 lib-security.php,1.19,1.20 lib-sessions.php,1.29,1.30 lib-syndication.php,1.7,1.8 lib-user.php,1.4,1.5

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


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

Modified Files:
	lib-database.php lib-plugins.php lib-security.php 
	lib-sessions.php lib-syndication.php lib-user.php 
Log Message:
Use $HTTP_SERVER_VARS['PHP_SELF'] instead of $PHP_SELF


Index: lib-user.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-user.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** lib-user.php	27 Jul 2004 07:33:57 -0000	1.4
--- lib-user.php	9 Aug 2004 07:56:22 -0000	1.5
***************
*** 35,39 ****
  // $Id$
  
! if (eregi ('lib-user.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 35,39 ----
  // $Id$
  
! if (eregi ('lib-user.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }

Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** lib-plugins.php	18 Jul 2004 10:14:41 -0000	1.30
--- lib-plugins.php	9 Aug 2004 07:56:22 -0000	1.31
***************
*** 41,45 ****
  */
  
! if (eregi ('lib-plugins.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 41,45 ----
  */
  
! if (eregi ('lib-plugins.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }

Index: lib-syndication.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-syndication.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** lib-syndication.php	23 Mar 2004 20:00:41 -0000	1.7
--- lib-syndication.php	9 Aug 2004 07:56:22 -0000	1.8
***************
*** 35,39 ****
  $_SYND_DEBUG = false;
  
! if (eregi ('lib-syndication.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 35,39 ----
  $_SYND_DEBUG = false;
  
! if (eregi ('lib-syndication.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }

Index: lib-security.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-security.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** lib-security.php	8 Feb 2004 11:10:18 -0000	1.19
--- lib-security.php	9 Aug 2004 07:56:22 -0000	1.20
***************
*** 63,67 ****
  $_SEC_VERBOSE = false;
  
! if (eregi ('lib-security.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 63,67 ----
  $_SEC_VERBOSE = false;
  
! if (eregi ('lib-security.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }

Index: lib-sessions.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-sessions.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** lib-sessions.php	8 Aug 2004 17:00:13 -0000	1.29
--- lib-sessions.php	9 Aug 2004 07:56:22 -0000	1.30
***************
*** 6,11 ****
  // +---------------------------------------------------------------------------+
  // | lib-sessions.php                                                          |
- // | Geeklog session library.                                                  |
  // |                                                                           |
  // +---------------------------------------------------------------------------+
  // | Copyright (C) 2000-2004 by the following authors:                         |
--- 6,11 ----
  // +---------------------------------------------------------------------------+
  // | lib-sessions.php                                                          |
  // |                                                                           |
+ // | Geeklog session library.                                                  |
  // +---------------------------------------------------------------------------+
  // | Copyright (C) 2000-2004 by the following authors:                         |
***************
*** 42,46 ****
  $_SESS_VERBOSE = false;
  
! if (eregi ('lib-sessions.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 42,46 ----
  $_SESS_VERBOSE = false;
  
! if (eregi ('lib-sessions.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }

Index: lib-database.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-database.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** lib-database.php	13 Jul 2004 19:00:03 -0000	1.30
--- lib-database.php	9 Aug 2004 07:56:22 -0000	1.31
***************
*** 101,105 ****
  // +---------------------------------------------------------------------------+
  
! if (eregi ('lib-database.php', $PHP_SELF)) {
      die ('This file can not be used on its own.');
  }
--- 101,105 ----
  // +---------------------------------------------------------------------------+
  
! if (eregi ('lib-database.php', $HTTP_SERVER_VARS['PHP_SELF'])) {
      die ('This file can not be used on its own.');
  }




More information about the geeklog-cvs mailing list