output = $output; $um = $sm->get_url_manager(); $dm = $sm->get_dump_manager(); if (defined('VIVVO_ROOT_CATEGORY')){ $cat = $sm->get_categories(); define('VIVVO_FORCE_CATEGORY_RESTRICTION', implode(',', $cat->root_category->get_descendent_ids())); } $cat = $sm->get_categories(); $template = $sm->get_template(); $template->set_template_file(VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'homepage/' . VIVVO_HOMEPAGE_LAYOUT); if (!$um->isset_param('cmd') && $um->get_param('cmd')!='forgotMail' && !$um->isset_param('activation_key') ){ check_close_site($sm); } $action = $sm->execute_action(); if ($um->isset_param('action') && $um->get_param('action')){ $template->assign('REQUEST_ACTION', $um->get_param('action')); } if ($um->isset_param('cmd') && $um->get_param('cmd')){ $template->assign('REQUEST_CMD', $um->get_param('cmd')); } if ($um->isset_param('action') && $um->get_param('action') == 'login' && !$action) { $in_user = $um->get_param_regexp('/^USER_/'); $user = new Users($sm, $in_user); $template->assign('user', $user); } if ($um->isset_param('cmd') && $um->get_param('cmd') == 'logout' && $action){ header('Location: ' . VIVVO_URL); exit; } $template->assign_ref('DUMP_MESSAGES', $dm->_dump_pool); if ($sm->user){ $template->assign('CURRENT_USER', $sm->user); } $sm->set_content(); full_page_cache_replace_boxes($sm, $uncached_boxes); default_header($sm); if ($um->isset_param('template_output')) { get_template_output($sm); } $output = $sm->get_output(); if (defined('VIVVO_RSS_FEED')) { header('Content-Type: text/xml; charset=UTF-8'); echo '' . "\n" . $output; } else { echo '' . "\n"; echo str_replace('$generation_time$', time() - VIVVO_START_TIME . 's', $output); } full_page_cache_save($sm, $output); ob_end_flush(); #EOF