Revision 1782
Added by Luisehahne about 13 years ago
| index.php | ||
|---|---|---|
| 15 | 15 |
* |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
require('../../config.php');
|
|
| 19 | 18 |
// Include the configuration file |
| 20 | 19 |
if(!defined('WB_URL') && file_exists(realpath('../../config.php'))) {
|
| 20 |
require('../../config.php');
|
|
| 21 | 21 |
} |
| 22 |
require_once(WB_PATH."/framework/class.login.php"); |
|
| 23 | 22 |
|
| 23 |
//require_once(WB_PATH."/framework/class.login.php"); |
|
| 24 |
if(!class_exists('login', false)){ require_once(WB_PATH.'/framework/class.login.php'); }
|
|
| 25 |
if(!class_exists('frontend', false)){ require_once(WB_PATH.'/framework/class.frontend.php'); }
|
|
| 26 |
|
|
| 24 | 27 |
if(defined('SMART_LOGIN') AND SMART_LOGIN == 'enabled') {
|
| 25 | 28 |
// Generate username field name |
| 26 | 29 |
$username_fieldname = 'username_'; |
| ... | ... | |
| 40 | 43 |
$password_fieldname = 'password'; |
| 41 | 44 |
} |
| 42 | 45 |
|
| 43 |
$admin = new admin('Start', '', false, false);
|
|
| 46 |
$admin = new frontend();
|
|
| 44 | 47 |
|
| 45 | 48 |
$WarnUrl = str_replace(WB_PATH,WB_URL,$admin->correct_theme_source('warning.html'));
|
| 46 | 49 |
|
Also available in: Unified diff
+ add maintance modus in backend