openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f5309c7bd938f124b73e12ef9fa6b82045addf79
parent 11dcb079d42cefceb30bafe07b693a91b7ae99e8
Author: dankert <devnull@localhost>
Date:   Sat, 25 Dec 2010 23:11:29 +0100

Nach Login Zeichensatz und Stil in die Sitzung speichern.

Diffstat:
actionClasses/IndexAction.class.php | 29++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php @@ -86,7 +86,7 @@ class IndexAction extends Action - function checkLogin( $name,$pw,$pw1,$pw2 ) + private function checkLogin( $name,$pw,$pw1,$pw2 ) { Logger::debug( "login user $name" ); @@ -103,7 +103,15 @@ class IndexAction extends Action $this->addNotice('database',$db->conf['comment'],'DATABASE_CONNECTION_ERROR',OR_NOTICE_ERROR,array(),array('Database Error: '.$db->error)); $this->callSubAction('showlogin'); return false; - } + } + + // Zeichensatz der Datenbank benutzen + if ( isset($db->conf['charset']) ) + $charset = $db->conf['charset']; + else + $charset = 'US-ASCII'; + $this->setCharset($charset); + $ip = getenv("REMOTE_ADDR"); @@ -686,7 +694,7 @@ class IndexAction extends Action Logger::debug("Login failed for user '$loginName'"); - $this->callSubAction('login'); + //$this->callSubAction('login'); return; } else @@ -698,7 +706,9 @@ class IndexAction extends Action $this->recreateSession(); $user = Session::getUser(); - $this->addNotice('user',$user->name,'LOGIN_OK',OR_NOTICE_OK,array('name'=>$user->fullname)); + $this->addNotice('user',$user->name,'LOGIN_OK',OR_NOTICE_OK,array('name'=>$user->fullname)); + + $this->setStyle( $user->style ); $this->evaluateRequestVars(); @@ -735,7 +745,7 @@ class IndexAction extends Action /** * Benutzer meldet sich ab. */ - function logout() + function logoutAction() { global $conf; @@ -810,6 +820,15 @@ class IndexAction extends Action } } + + + /** + * Benutzer meldet sich ab. + */ + function logoutView() + { + } + /** * Ausw�hlen der Administration.