-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
74 lines (72 loc) · 2.28 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
//==========================================================================
// login.php
//
// Form to login to the Vehicle Service Tracker System
//
// Copyright (c) 2006 Kenneth J. Snyder
// Licensed under the GNU GPL. For full terms see the file LICENSE
// -------------------------------------------------------------------------
//
// Created: 10Mar2006 Snyder, Kenneth J. [email protected]
//
// Revised: 02Apr2006 Snyder, Kenneth J. [email protected] v2.0.4
// - Added Forgot Password link
//
//==========================================================================
include_once("includes.php");
// Get the Version
// -----------------
$VSTVERSION=shell_exec("./getvstversion");
?>
<html>
<head>
<title>
Vehicle Records Manager
</title>
</head>
<link rel='stylesheet' type='text/css' href='vst.css'>
<BODY>
<H1>
<CENTER>
<P CLASS='Header1'>Vehicle Records Manager</P>
</CENTER>
</H1>
<?php
// Check if they tried something already
// --------------------------------------
if (isset($rc) && $rc=="10") {
echo "<B><CENTER><font color=#ff0000>Invalid UserName</font></CENTER></B>";
} elseif (isset($rc) && $rc=="21") {
echo "<B><CENTER><font color=#ff0000>Invalid Password</font></CENTER></B>";
} elseif (isset($rc) && $rc=="14") {
echo "<B><CENTER><font color=#ff0000>Sorry. Nice try. You Must Login First!</font></CENTER></B>";
}
?>
<form method=post action=checkuser.php>
<CENTER><table>
<tr><td><B>UserName</B><td><input name=USERNAME type=text size=30 value=
<?php if (isset($USERNAME)) echo $USERNAME ?> >
</tr></td>
<tr><td><B>
Password</B><td><input name=PASSWD type=password size=30>
<?php
if (!isset($USERNAME)) $USERNAME="";
echo "<a href='forgotpasswd.php?USERNAME=$USERNAME'>";
echo "Forgot password?";
echo "</a>";
?>
</tr></td>
</table></CENTER>
<p>
<CENTER><B><input type=submit value="Login" id='butt'></B></CENTER>
</form>
<br>
<br>
<hr noshade size=5 width=90% >
<center><a href="VSTInfo.php">What is This?</a> | <a href="register.php">Register Now!</a> |
<a href="<?php echo $homepage ?>"> <?php echo $orgname ?></a>
</center><hr noshade size=5 width=90% >
<?php footer($_SERVER['PHP_SELF'],$adminemail); ?>
</body>
</html>