예제 #1
0
파일: Login.php 프로젝트: kirkbauer2/kirkxc
 /**
  * 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();
 }
예제 #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'));
 }