Project

General

Profile

« Previous | Next » 

Revision 1782

Added by Dietmar over 11 years ago

+ add maintance modus in backend

View differences:

index.php
17 17

  
18 18
// Include config file
19 19
$config_file = dirname(__FILE__).'/config.php';
20
if(file_exists($config_file))
20
if(file_exists($config_file) && !defined('WB_URL'))
21 21
{
22 22
	require_once($config_file);
23 23
}
......
40 40
	exit;	// make sure that subsequent code will not be executed
41 41
}
42 42

  
43
require_once(WB_PATH.'/framework/class.frontend.php');
43
//require_once(WB_PATH.'/framework/class.frontend.php');
44

  
45
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
46

  
44 47
// Create new frontend object
45
$wb = new frontend();
48
if (!isset($wb)) {
49
    $wb = new frontend();
50
}
46 51

  
47 52
// Figure out which page to display
48 53
// Stop processing if intro page was shown

Also available in: Unified diff