secureGlobals(); include_once "waos/install.php"; include_once "waos/site_config.php"; if ($_SERVER['HTTPS'] == "on") { $url = "http://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Location: $url"); exit; } /** * Standart Spam control. * * @param array $settings * @return BASIC_SPAMCONTROL */ function initSpamControl($settings = array()){ BASIC::init()->imported('spam.mod'); if(!isset($GLOBALS['BASIC_SCONTROL']) || !$GLOBALS['BASIC_SCONTROL']){ $GLOBALS['BASIC_SCONTROL'] = new BASIC_SPAMCONTROL(); } if($settings){ $GLOBALS['BASIC_SCONTROL']->BASIC_ANTISPAM($settings); } return $GLOBALS['BASIC_SCONTROL']; } initSpamControl(array( // 'height' => 30, // 'width' => 120, // 'strlen' => 7, 'height' => 32, 'width' => 100, 'strlen' => 5, 'mod' => 0, 'size' => 17, 'ttf_file' => 'mistral.ttf', ))->listener(); BASIC::init()->imported('bars.mod'); BASIC::init()->imported('Tools.mod','cmp'); BASIC::init()->imported('Builder.mod','cmp'); BASIC::init()->imported('Settings.cmp','cmp/back_end'); if($script_name = BASIC_URL::init()->request('script_name','addslashes')){ BASIC::init()->ini_set('script_name',$script_name); BASIC_URL::init()->un('script_name'); }else{ BASIC::init()->ini_set('script_name','_index'); } if(BASIC::init()->ini_get('script_name') == '_index' && BASIC_URL::init()->get(BASIC_LANGUAGE::init()->varLog)){ BASIC_URL::init()->redirect(BASIC::init()->ini_get('root_virtual')); } Builder::init(array( 'errorCmp' => 'FrontError', 'baseTemplate' => 'main', 'globalElements' => 'GlobalElements' ))->start($script_name);