Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 108 lines (98 sloc) 2.555 kB
bd552ac Renamed files to .php
Kenzaburo Ito authored
1 <?php
2 # Mantis - a php based bugtracking system
27492e8 Updated Copyright to 2002.
Kenzaburo Ito authored
3 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
def76a4 Update the copyright date on all the files to include 2003. Also add…
Julian Fitzell authored
4 # Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net
bd552ac Renamed files to .php
Kenzaburo Ito authored
5 # This program is distributed under the terms and conditions of the GPL
6 # See the README and LICENSE files for details
c305578 Just adding $Id$ CVS headers to all the files up to the point I've cl…
Julian Fitzell authored
7
8 # --------------------------------------------------------
9f9a338 @vboctor Fixed a parse error
vboctor authored
9 # $Id: login_page.php,v 1.29 2003-02-18 02:51:21 vboctor Exp $
c305578 Just adding $Id$ CVS headers to all the files up to the point I've cl…
Julian Fitzell authored
10 # --------------------------------------------------------
bd552ac Renamed files to .php
Kenzaburo Ito authored
11 ?>
12 <?php
13 # Login page POSTs results to login.php
0370da8 So finally, 2 days later, here is the access_api rewrite. I've teste…
Julian Fitzell authored
14 # Check to see if the user is already logged in
bd552ac Renamed files to .php
Kenzaburo Ito authored
15 ?>
16 <?php
cfd6797 @vboctor - Replaced the use of / by DIRECTORY_SEPARATOR in a couple of places.
vboctor authored
17 require_once( 'core.php' );
18
9f16c54 There's no point documenting this line by line.
Julian Fitzell authored
19 html_page_top1();
20 html_page_top2a();
bd552ac Renamed files to .php
Kenzaburo Ito authored
21 ?>
22
9655dec changed P tags to BR. This will format better across more browsers. …
Kenzaburo Ito authored
23 <br />
bd552ac Renamed files to .php
Kenzaburo Ito authored
24 <div align="center">
25 <?php
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
26 $f_error = gpc_get_bool( 'error' );
27 $f_cookie_error = gpc_get_bool( 'cookie_error' );
28 $f_return = gpc_get_string( 'return', '' );
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
29
bd552ac Renamed files to .php
Kenzaburo Ito authored
30 # Only echo error message if error variable is set
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
31 if ( $f_error ) {
18506eb miscellaneous cleanup
Julian Fitzell authored
32 echo lang_get( 'login_error' ) . '<br />';
46c2f79 Added javascript autofocus to the login page.
Kenzaburo Ito authored
33 }
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
34 if ( $f_cookie_error ) {
18506eb miscellaneous cleanup
Julian Fitzell authored
35 echo lang_get( 'login_cookies_disabled' ) . '<br />';
bd552ac Renamed files to .php
Kenzaburo Ito authored
36 }
37
38 # Display short greeting message
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
39 echo lang_get( 'login_page_info' );
bd552ac Renamed files to .php
Kenzaburo Ito authored
40 ?>
41 </div>
42
18506eb miscellaneous cleanup
Julian Fitzell authored
43 <!-- Login Form BEGIN -->
9655dec changed P tags to BR. This will format better across more browsers. …
Kenzaburo Ito authored
44 <br />
bd552ac Renamed files to .php
Kenzaburo Ito authored
45 <div align="center">
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
46 <form name="login_form" method="post" action="login.php">
be36a98 Modified error messages to use $MANTIS_ERROR array
Kenzaburo Ito authored
47 <table class="width50" cellspacing="1">
bd552ac Renamed files to .php
Kenzaburo Ito authored
48 <tr>
cf56fda Added Anonymous Login patch.
Kenzaburo Ito authored
49 <td class="form-title">
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
50 <?php
18506eb miscellaneous cleanup
Julian Fitzell authored
51 if ( !is_blank( $f_return ) ) {
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
52 ?>
18506eb miscellaneous cleanup
Julian Fitzell authored
53 <input type="hidden" name="return" value="<?php echo $f_return ?>" />
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
54 <?php
55 }
9f9a338 @vboctor Fixed a parse error
vboctor authored
56 echo lang_get( 'login_title' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
57 </td>
cf56fda Added Anonymous Login patch.
Kenzaburo Ito authored
58 <td class="right">
59 <?php
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
60 if ( ON == config_get( 'allow_anonymous_login' ) ) {
61 print_bracket_link( 'login_anon.php', lang_get( 'login_anonymously' ) );
cf56fda Added Anonymous Login patch.
Kenzaburo Ito authored
62 }
63 ?>
64 </td>
bd552ac Renamed files to .php
Kenzaburo Ito authored
65 </tr>
66 <tr class="row-1">
67 <td class="category" width="25%">
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
68 <?php echo lang_get( 'username' ) ?>:
bd552ac Renamed files to .php
Kenzaburo Ito authored
69 </td>
70 <td width="75%">
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
71 <input type="text" name="username" size="32" maxlength="32" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
72 </td>
73 </tr>
74 <tr class="row-2">
75 <td class="category">
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
76 <?php echo lang_get( 'password' ) ?>:
bd552ac Renamed files to .php
Kenzaburo Ito authored
77 </td>
78 <td>
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
79 <input type="password" name="password" size="16" maxlength="32" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
80 </td>
81 </tr>
82 <tr class="row-1">
83 <td class="category">
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
84 <?php echo lang_get( 'save_login' ) ?>:
bd552ac Renamed files to .php
Kenzaburo Ito authored
85 </td>
86 <td>
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
87 <input type="checkbox" name="perm_login" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
88 </td>
89 </tr>
90 <tr>
91 <td class="center" colspan="2">
a54ef68 - clean up login/logout/signup files
Julian Fitzell authored
92 <input type="submit" value="<?php echo lang_get( 'login_button' ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
93 </td>
94 </tr>
95 </table>
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
96 </form>
bd552ac Renamed files to .php
Kenzaburo Ito authored
97 </div>
98
99 <?php print_signup_link() ?>
100
0feefea changed input tags to have the proper empty tag format for XTHML comp…
Kenzaburo Ito authored
101 <script type="text/javascript" language="JavaScript">
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
102 <!--
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
103 window.document.login_form.username.focus();
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
104 //-->
46c2f79 Added javascript autofocus to the login page.
Kenzaburo Ito authored
105 </script>
106
9f16c54 There's no point documenting this line by line.
Julian Fitzell authored
107 <?php html_page_bottom1a( __FILE__ ) ?>
Something went wrong with that request. Please try again.