22 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
23 |
* |
* |
24 |
* You should have received a copy of the GNU General Public License |
* You should have received a copy of the GNU General Public License |
25 |
* along with Foobar; if not, write to the Free Software |
* along with locfinder; if not, write to the Free Software |
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
27 |
* |
* |
28 |
***************************************************************************/ |
***************************************************************************/ |
|
|
|
|
if ($HTTP_POST_VARS["pass_password"] != "") { |
|
|
|
|
|
$login_success = login($username, md5($HTTP_POST_VARS["pass_password"])); |
|
|
|
|
|
if ($login_success ) { |
|
|
|
|
|
session_start(); |
|
|
session_register("logged_in"); |
|
|
$logged_in = $username; |
|
|
|
|
|
header("location:http://" . $opt_server . $opt_loc_path . "index.php"); |
|
|
|
|
|
} else { |
|
|
|
|
|
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=login"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
29 |
?> |
?> |
30 |
|
|
31 |
<FORM action="index.php" method="post"> |
<FORM action="index.php" method="post"> |
32 |
|
|
33 |
<INPUT type="hidden" name="page" value="login"> |
<INPUT type="hidden" name="action" value="login"> |
34 |
|
|
35 |
<TABLE border=0 cellpadding=0 cellspacing=3 class="tableline"> |
<TABLE border=0 cellpadding=0 cellspacing=3 class="tableline"> |
36 |
<TBODY> |
<TBODY> |
41 |
|
|
42 |
<TR> |
<TR> |
43 |
<TD><B>Password:</B></TD> |
<TD><B>Password:</B></TD> |
44 |
<TD><INPUT type="password" size=10 name="pass_password"></TD> |
<TD><INPUT type="password" size=10 name="password"></TD> |
45 |
</TR> |
</TR> |
46 |
|
|
47 |
<TR> |
<TR> |
48 |
<TD colspan=2 align=right><INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD> |
<TD colspan=2 align=right><INPUT type="submit" value="login >>" class="button" default=true></TD> |
49 |
</TR> |
</TR> |
50 |
|
|
51 |
</TBODY> |
</TBODY> |