forked from HvZSource/Karl-vs-Zombies--KvZ-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template_top.php
160 lines (152 loc) · 8.26 KB
/
template_top.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Humans vs. Zombies :: Source</title>
<link rel="stylesheet" type="text/css" href="style/styles.css" />
<script type="text/javascript" src="/js/gotos.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5888167-7']);
_gaq.push(['_setDomainName', '.hvzsource.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}
function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29" bgcolor="#2E2C2D"> </td>
<td width="900" height="300" rowspan="2" valign="top" bgcolor="#FFFFFF">
<table id="Table_01" height="301" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="29" colspan="18" background="images/Top_01.jpg">
<div align="right" class="style1">
<div align="right">
<?php
if($_POST['submit'] == 'Login') {
$logname = ereg_replace("[^A-Za-z0-9]","",$_POST['user']);
$logpass = md5(ereg_replace("[^A-Za-z0-9]","",$_POST['pass']));
$sql = my_quick_con($config) or die("MySQL problem");
$table_u = $config['user_table'];
$ret = mysql_query("SELECT password FROM $table_u WHERE username='$logname';");
$pass = mysql_fetch_assoc($ret);
$pass = $pass['password'];
if(mysql_num_rows($ret) == 1 && $pass == $logpass) {
$ret = mysql_query("SELECT id FROM $table_u WHERE username='$logname';");
$id = mysql_fetch_assoc($ret);
$id = $id['id'];
mysql_free_result($ret);
$_SESSION['user'] = $logname;
$_SESSION['id'] = $id;
header('Location: index.php');
} else {
echo " | <font color=red>Invalid username/password</font>";
}
if(is_resource($ret)) {
mysql_free_result($ret);
}
}
if(!isset($_SESSION['user'])) {
echo'<form method=POST action="index.php">
<a href="register.php">Register</a> |
<input name="user" type="text" value="Username" size="15" onclick="clickclear(this, \'Username\')" onblur="clickrecall(this,\'Username\')"/>
<input name="pass" type="password" value="" size="15" />
<input type="submit" name="submit" value="Login">
| <a href="pass_reset.php">Forgot your Password?</a>
</form>';
} else {
echo '<a href="account.php">My Account</a> | <a href="logout.php">Log Out</a>';
}
?>
</div>
<label><div align="left"></div></label>
</div>
</td>
<td rowspan="8"><img src="images/Top_02.jpg" width="2" height="300" alt="" /></td>
</tr><tr>
<td colspan="18"><img src="images/Top_03.jpg" width="898" height="14" alt="" /></td>
</tr><tr bgcolor="#FFFFFF">
<td rowspan="3"><img src="images/Top_04.jpg" width="21" height="210" alt="" /></td>
<td colspan="8" rowspan="2"><img src="images/Top_05.jpg" width="544" height="195" alt="" /></td>
<td colspan="9"><img src="images/Top_06.jpg" width="333" height="39" alt="" /></td>
</tr><tr>
<td colspan="3" rowspan="2"><img src="images/Top_07.jpg" width="51" height="171" alt="" /></td>
<td height="156" colspan="5" align="left" valign="top" background="images/Top_08.jpg"><p class="style2">
<b>HvZSource</b> is a free piece of software developed by the creators of <b>HvZ</b>.<br><br>Along with rebuilding a more robust system, we will be adding some innovative and premium content.<br><br>
</p></td>
<td rowspan="3"><img src="images/Top_09.jpg" width="57" height="173" alt="" /></td>
</tr><tr>
<td colspan="8"><img src="images/Top_10.jpg" width="544" height="15" alt="" /></td>
<td colspan="5"><img src="images/Top_11.jpg" width="225" height="15" alt="" /></td>
</tr><tr>
<td colspan="2" rowspan="2"><a href="index.php"><img src="images/Top_12.jpg" alt="" width="112" height="44" border="0" /></a></td>
<td rowspan="3"><img src="images/Top_13.jpg" width="1" height="47" alt="" /></td>
<td rowspan="3"><a href="kill.php"><img src="images/Top_14.jpg" alt="" width="161" height="47" border="0" /></a></td>
<td rowspan="3"><a href="players.php"><img src="images/Top_15.jpg" alt="" width="113" height="47" border="0" /></a></td>
<td rowspan="3"><img src="images/Top_16.jpg" width="1" height="47" alt="" /></td>
<td rowspan="2"><a href="rules.php"><img src="images/Top_17.jpg" alt="" width="113" height="44" border="0" /></a></td>
<td rowspan="3"><img src="images/Top_18.jpg" width="1" height="47" alt="" /></td>
<td colspan="2" rowspan="2"><a href="http://www.humansvszombies.org" target="_blank"><img src="images/Top_19.jpg" alt="" width="93" height="44" border="0" /></a></td>
<td rowspan="3"><img src="images/Top_20.jpg" width="1" height="47" alt="" /></td>
<td colspan="2" rowspan="2"><a href="http://status.hvzsource.com" target="_blank"><img src="images/Top_21.jpg" alt="" width="93" height="44" border="0" /></a></td>
<td colspan="4"><img src="images/Top_22.jpg" width="152" height="2" alt="" /></td>
</tr><tr>
<td rowspan="2"><img src="images/Top_23.jpg" width="1" height="45" alt="" /></td>
<td><a href="http://wiki.humansvszombies.org" target="_blank"><img src="images/Top_24.jpg" alt="" width="93" height="42" border="0" /></a></td>
<td rowspan="2"><img src="images/Top_25.jpg" width="1" height="45" alt="" /></td>
<td colspan="2"><a href="http://forums.humansvszombies.org" target="_blank"><img src="images/Top_26.jpg" alt="" width="114" height="42" border="0" /></a></td>
</tr><tr>
<td colspan="2"><img src="images/Top_27.jpg" width="112" height="3" alt="" /></td>
<td><img src="images/Top_28.jpg" width="113" height="3" alt="" /></td>
<td colspan="2"><img src="images/Top_29.jpg" width="93" height="3" alt="" /></td>
<td colspan="2"><img src="images/Top_30.jpg" width="93" height="3" alt="" /></td>
<td><img src="images/Top_31.jpg" width="93" height="3" alt="" /></td>
<td colspan="2"><img src="images/Top_32.jpg" width="114" height="3" alt="" /></td>
</tr><tr>
<td><img src="images/spacer.gif" width="21" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="91" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="161" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="113" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="113" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="63" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="30" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="20" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="73" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="93" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="57" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="57" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="2" height="1" alt="" /></td>
</tr>
</table>
</td>
<td height="29" align="left" valign="top" bgcolor="#2E2C2D"> </td>
</tr><tr>
<td style="background:url(images/LeftBKGRNDImage.jpg) no-repeat right top" bgcolor="#000000"> </td>
<td align="left" style="background:url(images/RightBKGRNDImage.jpg) no-repeat left top" bgcolor="#000000"> </td>
</tr><tr>
<td style="background:url(images/LeftColumn.jpg) right top repeat-y"> </td>
<td width="900" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="10" cellpadding="10">
<tr>
<td valign="top">