14         $this->
getConfig()->setConfigParam( 
'blAdmin', 
true );
 
   15         $this->_sThisAction  = 
"login";
 
   29         $oUser = 
oxNew( 
"oxuser" );
 
   35         $oBaseShop = 
oxNew( 
"oxshop" );
 
   37         $oBaseShop->load( $oConfig->getBaseShopId());
 
   38             $sVersion = $oBaseShop->oxshops__oxversion->value;
 
   40         $this->
getViewConfig()->setViewConfigParam( 
'sShopVersion', $sVersion );
 
   42         if ( $oConfig->isDemoShop() ) {
 
   79             $oUser = 
oxNew( 
"oxuser" );
 
   80             $oUser->login( $sUser, $sPass );
 
   81             $iSubshop = (int)$oUser->oxuser__oxrights->value;
 
   88             $myUtilsView->addErrorToDisplay(
'LOGIN_ERROR');
 
   90             $this->
addTplParam( 
'user', $oStr->htmlspecialchars( $sUser ) );
 
   91             $this->
addTplParam( 
'pwd', $oStr->htmlspecialchars( $sPass ) );
 
   92             $this->
addTplParam( 
'profile', $oStr->htmlspecialchars( $sProfile ) );
 
   95             $myUtilsView->addErrorToDisplay(
'LOGIN_NO_COOKIE_SUPPORT');
 
   97             $this->
addTplParam( 
'user', $oStr->htmlspecialchars( $sUser ) );
 
   98             $this->
addTplParam( 
'pwd', $oStr->htmlspecialchars( $sPass ) );
 
   99             $this->
addTplParam( 
'profile', $oStr->htmlspecialchars( $sProfile ) );
 
  102             $myUtilsView->addErrorToDisplay($oEx);
 
  109         $oEvenHandler = 
oxNew(
"oxSystemEventHandler");
 
  113         if ( isset( $sProfile ) ) {
 
  115             if ( $aProfiles && isset($aProfiles[$sProfile])) {
 
  117                 $myUtilsServer->setOxCookie (
"oxidadminprofile", $sProfile.
"@".implode( 
"@", $aProfiles[$sProfile]), time()+31536000, 
"/" );
 
  122             $myUtilsServer->setOxCookie( 
"oxidadminprofile", 
"", time()-3600, 
"/" );
 
  132         $myUtilsServer->setOxCookie( 
"oxidadminlanguage", 
$aLanguages[$iLang]->abbr, time() + 31536000, 
"/" );
 
  138         return "admin_start";
 
  159         return strtolower( get_class( $this ) );
 
  170         $sDefLang = 
oxRegistry::get(
"oxUtilsServer")->getOxCookie( 
'oxidadminlanguage' );
 
  175             $oLang->selected = ( $sDefLang == $oLang->abbr ) ? 1 : 0;
 
  188         return strtolower( substr($_SERVER[
'HTTP_ACCEPT_LANGUAGE'], 0, 2) );