|
From: Benjamin C. <bc...@us...> - 2001-11-30 06:06:38
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv30076
Modified Files:
install.php
Log Message:
Keep it close
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- install.php 2001/11/09 17:53:37 1.5
+++ install.php 2001/11/30 06:06:35 1.6
@@ -23,7 +23,9 @@
// ------------------------------------------------------------------------
// $Id$
-include_once('template.inc');
+define ('INSTALL_PATH', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
+
+include (INSTALL_PATH.'/inc/template.php');
$t = new Template('templates/default', 'keep');
$t->set_var('me', $HTTP_SERVER_VARS['PHP_SELF']);
$_gv =& $HTTP_GET_VARS;
@@ -98,7 +100,7 @@
function create_tables() {
global $_pv, $tables;
- include_once('db_'.$_pv['db_type'].'.inc');
+ include_once(INSTALL_PATH.'/inc/db/'.$_pv['db_type'].'.php');
$db = new DB_Sql;
$db->Host = $_pv['db_host'];
|