< ? //if (empty($_COOKIE["test"])) // die("На сайте rebziki.ru идут технические работы"); error_reporting(E_ALL); require "_cfg/_functions.php"; require "_cfg/common.php"; require_class("diSelect"); require_class("diForm"); require_class("diSearch"); require_class("diMailQueue"); require_class("diPagesNavy"); require_class("diForm"); require_class("diTags"); require_class("diCMS"); require_class("diAlbum"); require_class("diPhoto"); require_class("diCommentsTree"); require_class("diFriendsActions"); require_class("diUserActions"); require_class("diUserRating"); require_class("diChat"); require_class("diMessageChat"); require_class("diKarma"); require_class("diModeratorTask"); require_class("diComplain"); require "_cfg/classes/cms_stuff.php"; require "_cfg/ban.php"; require "_cfg/cms.php"; require "_cfg/sessions.php"; require "_cfg/stuff.php"; require "_cfg/search.php"; require "_cfg/login.php"; require "_cfg/friends.php"; require "_cfg/registration.php"; require "_cfg/personal_data.php"; require "_cfg/settings.php"; require "_cfg/classes/FastTemplate.php"; $mq = new diMailQueue("mail_queue"); // initiating diCMS $Z = new diCurrentCMS(); $Z->start("home", "rus"); //$Z->set_mode_alias("users", "profile", false); //$Z->set_mode_alias("home", "my_news", true); $Z->load_content_rec(); $Z->define_templates(); $Z->assign_html_head(); $Z->assign_ct_ar(); $Z->login_attempt(); $Z->print_login_stuff(); //$Z->init_cart(); //if ($_SERVER["HTTP_HOST"] != "new.rebziki" && !logged_in() && !in_array($Z->last_content["type"], array("should_register","registration","agreement"))) // die(header("Location: /{$Z->ct_ar["should_register"]}/?back=".urlencode($_SERVER["REQUEST_URI"]))); $Z->print_top_menu(); $Z->print_bottom_menu(); $Z->init_top_title(); $Z->print_success_messages(); $Z->print_readonly_messages(); // //$Z->print_banners(); //$Z->print_top_news(); // main content including $module_name = $Z->get_current_module(); include("include/{$module_name}.php"); $Z->parse_content_page(); // $Z->parse_links_block(); $Z->finish(); ?>