Merge branch 'main/rendor-staging' into main/atys-live
[ryzomcore.git] / nelns / admin / public_html / login_form.php
blob43de6ad231051a6245c10054317aa9d1b404c971
1 <?php
2 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
3 // Copyright (C) 2010 Winch Gate Property Limited
4 //
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Affero General Public License as
7 // published by the Free Software Foundation, either version 3 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Affero General Public License for more details.
15 // You should have received a copy of the GNU Affero General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 function LoginForm()
20 global $command, $admlogin, $admpassword;
22 htmlProlog($_SERVER['PHP_SELF'], "Administration", false);
26 <form method="post" action="<?php echo basename($_SERVER['PHP_SELF']); ?>" name=loginform>
27 <table frame=void rules=none WIDTH="300">
28 <tr>
29 <td align="left"> login: </td>
30 <td align="left"> <input type="text" name="admlogin" maxlength=16 size=16> </td>
31 <tr>
32 <td align="left"> password: </td>
33 <td align="left"> <input type="password" name="admpassword" maxlength=16 size=16> </td>
34 <tr>
35 <td align="left">&nbsp; </td>
36 <td align="left">&nbsp; </td>
37 <tr>
38 <td align="left"> &nbsp; </td>
39 <td align="left"> <input type=submit value="login" name="cmdlogin"> </td>
40 <td align="left"> <input type=hidden name="command" value="login"> </td>
41 </table>
42 </form>
43 <script type="text/javascript">
44 <!--
45 if (document.loginform)
47 document.loginform.login.focus();
49 // -->
50 </script>
52 <?php
54 $admlogin = '';
55 $admpassword = '';
57 htmlEpilog();