3 * FusionForge login page
5 * This is main login page. It takes care of different account states
6 * (by disallowing logging in with non-active account, with appropriate
9 * Copyright 1999-2001 (c) VA Linux Systems
11 * This file is part of FusionForge.
13 * FusionForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * FusionForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with FusionForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 Header( "Expires: Wed, 11 Nov 1998 11:11:11 GMT");
29 Header( "Cache-Control: no-cache");
30 Header( "Cache-Control: must-revalidate");
32 require_once('../env.inc.php');
33 require_once $gfcommon.'include/pre.php';
35 $return_to = getStringFromRequest('return_to');
36 $triggered = getIntFromRequest('triggered');
38 if (isset($session_hash)) {
39 //nuke their old session
43 $HTML->header(array('title'=>'Login'));
47 echo '<div class="warning">' ;
48 echo _('You\'ve been redirected to this login page because you have tried accessing a page that was not available to you as an anonymous user.');
53 // see AuthBuiltinPlugin::displayAuthForm() that should do the work by default
56 $params['return_to'] = $return_to;
57 $params['html_snippets'] = array();
58 plugin_hook_by_reference('display_auth_form', $params);
60 foreach ($params['html_snippets'] as $p => $s) {
61 $plugin = plugin_get_object($p);
62 echo '<h2>'.$plugin->text.'</h2>';
66 $HTML->footer(array());
70 // c-file-style: "bsd"