commit 3749ab21d3a5fe9b210ff26b2916b25c9b9d01fc
parent b8e35e4098f4a2e7b0b7002f4d9198c1075adb8e
Author: dankert <devnull@localhost>
Date: Thu, 16 Dec 2004 00:25:22 +0100
*** empty log message ***
Diffstat:
1 file changed, 81 insertions(+), 84 deletions(-)
diff --git a/actionClasses/LoginAction.class.php b/actionClasses/LoginAction.class.php
@@ -1,86 +1,83 @@
-<?php
-// ---------------------------------------------------------------------------
-// $Id$
-// ---------------------------------------------------------------------------
-// OpenRat Content Management System
-// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// ---------------------------------------------------------------------------
+<?php
+// ---------------------------------------------------------------------------
+// $Id$
+// ---------------------------------------------------------------------------
+// OpenRat Content Management System
+// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.2 2004-05-02 14:49:37 dankert
-// Einfügen package-name (@package)
-//
-// Revision 1.1 2004/04/24 15:14:52 dankert
-// Initiale Version
-//
-// Revision 1.2 2003/10/02 20:56:17 dankert
-// Benutzer entfernen
-//
-// Revision 1.1 2003/09/29 18:18:21 dankert
-// erste Version
-//
-// ---------------------------------------------------------------------------
-
-
-/**
- * Action-Klasse zum Darstellen der Loginmaske
- * @author $Author$
- * @version $Revision$
- * @package openrat.actions
- */
-class LoginAction extends Action
-{
- var $defaultSubAction = 'login';
-
- function LoginAction()
- {
- }
-
-
- function blank()
- {
- $this->forward('blank');
- }
-
-
- function login()
- {
- global $conf;
-
-
- $databases = explode(',',$conf['database']['databases']);
- $dbids = array();
-
- foreach( $databases as $db )
- {
- if ( !isset($conf['database_'.$db]) )
- $this->message( '',"configuration for 'database_$db' not defined in config.ini.php");
-
- $dbids[$db] = $conf['database_'.$db]['comment'];
- }
-
- $this->setTemplateVar( 'dbids',$dbids );
-
- if ( $this->getSessionVar('dbid') != '' )
- $this->setTemplateVar('actdbid',$this->getSessionVar('dbid'));
- $this->setTemplateVar('actdbid',$conf['database']['default']);
-
- $this->setTemplateVar('loginmessage',$this->getSessionVar('loginmessage'));
- $this->setSessionVar('loginmessage','');
-
- $this->forward('login');
- }
+// Revision 1.3 2004-12-15 23:25:22 dankert
+// *** empty log message ***
+//
+// Revision 1.2 2004/05/02 14:49:37 dankert
+// Einf?gen package-name (@package)
+//
+// Revision 1.1 2004/04/24 15:14:52 dankert
+// Initiale Version
+//
+// Revision 1.2 2003/10/02 20:56:17 dankert
+// Benutzer entfernen
+//
+// Revision 1.1 2003/09/29 18:18:21 dankert
+// erste Version
+//
+// ---------------------------------------------------------------------------
+
+
+/**
+ * Action-Klasse zum Darstellen der Loginmaske
+ * @author $Author$
+ * @version $Revision$
+ * @package openrat.actions
+ */
+class LoginAction extends Action
+{
+ var $defaultSubAction = 'login';
+
+ function LoginAction()
+ {
+ }
+
+
+ function blank()
+ {
+ $this->forward('blank');
+ }
+
+
+ function login()
+ {
+ global $conf;
+
+
+ foreach( $conf['databases'] as $dbname=>$dbconf )
+ {
+ $dbids[$dbname] = $dbconf['comment'];
+ }
+
+ $this->setTemplateVar( 'dbids',$dbids );
+
+ if ( $this->getSessionVar('dbid') != '' )
+ $this->setTemplateVar('actdbid',$this->getSessionVar('dbid'));
+ $this->setTemplateVar('actdbid',$conf['database']['default']);
+
+ $this->setTemplateVar('loginmessage',$this->getSessionVar('loginmessage'));
+ $this->setSessionVar('loginmessage','');
+
+ $this->forward('login');
+ }
}
\ No newline at end of file