|
From: Benjamin C. <bc...@us...> - 2001-12-14 14:41:10
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv17175
Modified Files:
include.php
Log Message:
Ignore the error if config.php isn't present so we can redirect to the installation page
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- include.php 2001/12/10 13:42:39 1.82
+++ include.php 2001/12/14 14:41:06 1.83
@@ -27,7 +27,10 @@
define('INCLUDE_PATH', '');
}
-include (INSTALL_PATH.'/'.INCLUDE_PATH.'config.php');
+if (!@include (INSTALL_PATH.'/'.INCLUDE_PATH.'config.php')) {
+ header("Location: install.php");
+ exit();
+}
if (!defined('DB_HOST')) { // Installation hasn't been completed
header("Location: install.php");
exit();
|