|
From: Benjamin C. <bc...@us...> - 2001-11-08 05:13:18
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5130
Modified Files:
include.php
Log Message:
Bounce to the install page if installation hasn't been completed
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- include.php 2001/11/02 13:38:16 1.72
+++ include.php 2001/11/08 05:13:15 1.73
@@ -26,7 +26,12 @@
if (!defined('INCLUDE_PATH')) {
define('INCLUDE_PATH', '');
}
-require (INSTALL_PATH.'/'.INCLUDE_PATH.'config.php');
+
+@require (INSTALL_PATH.'/'.INCLUDE_PATH.'config.php');
+if (!defined('DB_HOST')) { // Installation hasn't been completed
+ header("Location: install.php");
+ exit();
+}
class dbclass extends DB_Sql {
var $classname = 'dbclass';
|