Project

General

Profile

« Previous | Next » 

Revision 1149

Added by aldus over 14 years ago

Modifications inside class.database.
Remove the empty config.php
Update index.php and save.php

View differences:

index.php
25 25

  
26 26
$starttime = array_sum(explode(" ",microtime()));
27 27

  
28
// Include config file
29
require_once(dirname(__FILE__).'/config.php');
30

  
31
// Check if the config file has been set-up
32
if(!defined('WB_PATH')) {
28
/** 
29
 *	looking for the config file
30
 */
31
if (!file_exists(dirname(__FILE__).'/config.php')) {
32
	/**
33
	 *	Config doesn't exists
34
	 *	So we've try to run the installation
35
	 */
33 36
	header("Location: install/index.php");
34 37
	exit(0);
38
} else {
39
	/**
40
	 *	Config file exists
41
	 */
42
	require_once(dirname(__FILE__).'/config.php');
43

  
44
	if (!defined(WB_PATH)) {
45
		/**
46
		 *	Ups ... config seems to be corrupt
47
		 */
48
		header("Location: install/index.php");
49
		exit(0);
50
	}
35 51
}
36 52

  
37 53
require_once(WB_PATH.'/framework/class.frontend.php');

Also available in: Unified diff