-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_old.php
67 lines (60 loc) · 1.64 KB
/
index_old.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
<?
session_start();
require_once("classes/initialize.php");
$dbh=dbConnect();
// check for existence of session
if(isset($_SESSION['passkey']) && isset($_SESSION['lid']) && isset($_SESSION['firstname'])) {
$userQ = mysql_query("select passkey, firstname from user where id = '".$_SESSION['lid']."' limit 1");
$user = mysql_fetch_array($userQ);
if(mysql_num_rows($userQ) == 0 || $_SESSION['passkey'] != $user['passkey'] || $_SESSION['firstname'] != $user['firstname']) {
error_log("no matches");
header("location: logout.php");
} else {
header("location: home.php");
}
}
$badLoginReason = '';
if(isset($_POST['submitted'])) {
include('validate_login.php');
}
?>
<html>
<title>L U K I N | I'm going to Lukin's... </title>
<head>
<link rel='stylesheet' href='css/login.css' type='text/css'>
</head>
<body>
<div align="center">
<img src="login.jpg">
<br>
<span class="lukin_version">version 0.94</span>
<br>
<span class="loginError"><? echo $badLoginReason; ?></span>
<br>
<form action="index.php" method="post">
<input type="hidden" name="submitted" value="1">
<table>
<tr>
<td>name</td>
<td><input type="textfield" name="lukin_id" size="24" maxlength="24" value=""></td>
</tr>
<tr>
<td>pass</td>
<td><input type="password" name="lukin_password" size="24" maxlength="16" value=""></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="go" value="go" class="submit"></td>
</tr>
</table>
</form>
<br>
<i>"I'm going to Lukin's"</i>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1023104-1";
urchinTracker();
</script>
</body>
</html>