hasStarted() === FALSE ) $session->start(); // if the customer is not logged on, redirect them to the login page if (!isset($_SESSION['customer_id'])) { oos_redirect(oos_href_link($aContents['home'])); } require_once MYOOS_INCLUDE_PATH . '/includes/languages/' . $sLanguage . '/user_logoff.php'; unset($_SESSION['customer_id']); unset($_SESSION['customer_wishlist_link_id']); unset($_SESSION['customer_default_address_id']); unset($_SESSION['customer_gender']); unset($_SESSION['customer_first_name']); unset($_SESSION['customer_lastname']); unset($_SESSION['customer_country_id']); unset($_SESSION['customer_zone_id']); unset($_SESSION['comments']); unset($_SESSION['customer_max_order']); unset($_SESSION['gv_id']); unset($_SESSION['cc_id']); unset($_SESSION['man_key']); if (ACCOUNT_VAT_ID == 'true') { $_SESSION['customers_vat_id_status'] = 0; } $_SESSION['cart']->reset(); $_SESSION['user']->anonymous(); $aUser = $oUser->group; // links breadcrumb $oBreadcrumb->add($aLang['navbar_title']); $sCanonical = oos_href_link($aContents['logoff'], '', FALSE, TRUE); $aTemplate['page'] = $sTheme . '/page/user_logoff.html'; $nPageType = OOS_PAGE_TYPE_MAINPAGE; require_once MYOOS_INCLUDE_PATH . '/includes/system.php'; if (!isset($option)) { require_once MYOOS_INCLUDE_PATH . '/includes/message.php'; require_once MYOOS_INCLUDE_PATH . '/includes/blocks.php'; } // assign Smarty variables; $smarty->assign( array( 'breadcrumb' => $oBreadcrumb->trail(), 'heading_title' => $aLang['heading_title'], 'robots' => 'noindex,follow,noodp,noydir', 'login_active' => 1, 'canonical' => $sCanonical ) ); // display the template $smarty->display($aTemplate['page']);