Ejemplo n.º 1
0
 /**
  * Log out
  *
  * @return void
  */
 protected function doActionLogoff()
 {
     \XLite\Core\Auth::getInstance()->logoff();
     \Includes\Utils\Session::clearAdminCookie();
     $this->setReturnURL(\XLite\Core\Converter::buildURL());
     $this->getCart()->logoff();
     $this->updateCart();
     \XLite\Core\Database::getEM()->flush();
 }
Ejemplo n.º 2
0
 /**
  * Return name of the error page file (.html)
  *
  * @return string
  */
 protected static function getErrorPageFileFromConfig()
 {
     return \Includes\Utils\Session::issetAdminCookie() ? \Includes\Utils\ConfigParser::getOptions(array('error_handling', 'page')) : \Includes\Utils\ConfigParser::getOptions(array('error_handling', 'page_customer'));
 }