INCLUDING // PEAR MODULES //require_once ("pear/PEAR.php"); require_once ("pear/Config.php"); require_once ("pear/DB.php"); require_once 'pear/HTML/AJAX/Server.php'; // SITE require_once ("classes/site_module.class.php"); require_once ("classes/module.class.php"); require_once ("classes/registry.class.php"); // MVC require_once ("classes/web_interface.class.php"); require_once ("classes/web_view.class.php"); require_once ("classes/web_logic.class.php"); // MODULES //require_once ("modules/statistics/frontend.class.php"); //===> CONSTRUCTING // REGISTRY $registry = new Registry(0); $registry->GetConfig(); $registry->getDbEngineService(); $registry->GetSettings(); $registry->post = & $_POST; $registry->get = & $_GET; // CONTROLLER $web_controller = new WebInterface ("web_interface", & $registry); // MODEL $web_model = new WebLogic ("web_logic", & $registry); // VIEW $web_view = new WebView ("web_view", & $registry); $web_controller->web_view = & $web_view; $web_model->web_view = & $web_view; $web_model->cookies = & $HTTP_COOKIE_VARS; $web_view->model = & $web_model; $web_controller->model = & $web_model; $registry->cookies = & $HTTP_COOKIE_VARS; $registry->model = & $web_model; $registry->view = & $web_view; $registry->controller = & $web_controller; //$web_view->web_path = str_replace ("index.php", "", $_SERVER["SCRIPT_NAME"]); // MODULES //$web_model->modules[statisitcs] = new Statistics("mdl_statistics", $registry); //$web_model->modules[statisitcs]->controller = & $web_controller; // SERVICE ACTIONS // compression if($registry->settings[compression]) { function compress_output($output) { return gzencode($output); } if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) { ob_start("compress_output"); header("Content-Encoding: gzip"); } } header ("Cache-Control: no-cache, must-revalidate"); $web_controller->activate(); //===> DESTRUCTING $registry->Distructor(); ?>