|
From: Benjamin C. <bc...@us...> - 2002-01-26 14:48:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv27665
Modified Files:
include.php install.php
Log Message:
Got this idea from phpmole
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- include.php 2002/01/23 14:22:06 1.91
+++ include.php 2002/01/26 14:48:29 1.92
@@ -23,11 +23,7 @@
// $Id$
// Where are we?
-if (!empty($HTTP_SERVER_VARS['SCRIPT_FILENAME'])) {
- define ('INSTALL_PATH', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
-} else {
- define ('INSTALL_PATH', '.');
-}
+define ('INSTALL_PATH', dirname(__FILE__));
// Handle being included from admin files
if (!defined('INCLUDE_PATH')) {
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- install.php 2002/01/21 08:10:05 1.9
+++ install.php 2002/01/26 14:48:29 1.10
@@ -23,7 +23,7 @@
// ------------------------------------------------------------------------
// $Id$
-define ('INSTALL_PATH', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
+define ('INSTALL_PATH', dirname(__FILE__));
if (!defined('INCLUDE_PATH')) {
define('INCLUDE_PATH', '');
|