Revision 1462
Added by DarkViper over 13 years ago
initialize.php | ||
---|---|---|
22 | 22 |
|
23 | 23 |
if (file_exists(WB_PATH.'/framework/class.database.php')) { |
24 | 24 |
|
25 |
date_default_timezone_set('UTC'); |
|
25 | 26 |
require_once(WB_PATH.'/framework/class.database.php'); |
26 | 27 |
|
27 | 28 |
// Create database class |
... | ... | |
49 | 50 |
define('OCTAL_FILE_MODE',(int) octdec($string_file_mode)); |
50 | 51 |
$string_dir_mode = STRING_DIR_MODE; |
51 | 52 |
define('OCTAL_DIR_MODE',(int) octdec($string_dir_mode)); |
52 |
|
|
53 |
$sSecMod = (defined('SECURE_FORM_MODULE')) ? '.'.SECURE_FORM_MODULE : ''; |
|
54 |
$sSecMod = WB_PATH.'/framework/SecureForm'.$sSecMod.'.php'; |
|
55 |
require_once($sSecMod); |
|
53 | 56 |
if (!defined("WB_INSTALL_PROCESS")) { |
54 | 57 |
// get CAPTCHA and ASP settings |
55 | 58 |
$table = TABLE_PREFIX.'mod_captcha_control'; |
56 |
if($get_settings = $database->query("SELECT * FROM $table LIMIT 1")) {
|
|
59 |
if( ($get_settings = $database->query("SELECT * FROM $table LIMIT 1")) ) {
|
|
57 | 60 |
if($get_settings->numRows() == 0) { die("CAPTCHA-Settings not found"); } |
58 | 61 |
$setting = $get_settings->fetchRow(); |
59 | 62 |
if($setting['enabled_captcha'] == '1') define('ENABLED_CAPTCHA', true); |
Also available in: Unified diff
class-switcher for SecureForm added