lukezweb
12-13-2003, 05:14 AM
just wanted to post it to check its colours as there is an error
<?php
# Lukezweb Forum Coded By Luke Dyson
$username = "Guest";
?>
<html>
<head>
<title>Lukezweb Forum</title>
</head>
<body>
<?php
$action = (isset($_GET['action'])) ? $_GET['action'] : "";
// Help
if ($action == "help") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a></center></td></tr>";
echo "<tr><td class=windowbg>Need Help?</td></tr>";
echo "<tr><td class=windowbg>Q) How do i register?<BR>A) You need to visit the main site <a href=http://lukezweb.tk>here</a> and click sign-up :)</td></tr>";
echo "<tr><td class=windowbg>Q) How do i post on the boards?<BR>A) At the bottom of threads there is a bar asking it you wish to post a reply or to return to the board, click reply and fill in the form on the next page :)</td></tr>";
echo "</table>";
echo "</center>";
}
// Main
else if ($action == "main") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a><P></center></td></tr>";
echo "<tr><td>";
echo "<table width=100% border=0 cellspacing=1 bgcolor=#000000>"
?>
} else if ($action == "portal") {
// Portal
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a>";
if ($username == "Admin") {
echo " - <a href=index.php?action=admin>Admin</a>";
}
echo "</center></td></tr><tr><td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=#000000 cellpadding=5 border=0>";
echo "<tr>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Forum</td></tr>";
echo "<tr><td class=windowbg><center><a href=#>General Talk</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Announcments</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Staff Board</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Support</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Requests</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Show Off</a></center></td></tr>";
echo "</table>";
echo "</td>";
echo "<td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>News:</td></tr>";
echo "<tr><td class=windowbg>Welcome to the Lukezweb Forum!<br>This is a new addition to the site, and i'm quite pround of it as i coded the whole thing by myself, no help! Which also means i can make updates to it whenever!</td></tr>";
echo "</table>";
echo "</td>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Links</td></tr>";
echo "<tr><td class=windowbg><center>Rules</center></td></tr>";
echo "<tr><td class=windowbg><center>Members List</center></td></tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=#000000 cellpadding=5 border=0>";
echo "<tr>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Stats</td></tr>";
echo "<tr><td class=windowbg><center>Total Topics: 0</center></td></tr>";
echo "<tr><td class=windowbg><center>Total Posts: 0</center></td></tr>";
echo "<tr><td class=windowbg><center>Total Members: 1</center></td></tr>";
echo "</table>";
echo "</td>";
echo "<td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Extra:</td></tr>";
echo "<tr><td class=windowbg>No extra News :)!</td></tr>";
echo "</table>";
echo "</td>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Members</td></tr>";
echo "<tr><td class=windowbg><center>Profile</center></td></tr>";
echo "<tr><td class=windowbg><center>Notify</center></td></tr>";
echo "<tr><td class=windowbg><center><a href=index.php?action=help>Help</a></center></td></tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td class=catbg>Users Online:</td></tr>";
echo "<tr><td class=windowbg>Currently Online are 0 Member(s), 2 Guest(s), 1 Staff Member
<BR>Luke</td></tr>";
echo "</table>";
echo "</center>";
} else if ($action == "register") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, please register!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum</center></td></tr>";
echo "<tr><td class=windowbg>Register:</td></tr>";
echo "<tr><td class=windowbg>To come......</td></tr>";
echo "<tr><td class=windowbg>:)</td></tr>";
echo "</table>";
} else {
// Login
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, please login!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum</center></td></tr>";
echo "<tr><td class=windowbg><center>Please Login or <a href=index.php?action=register>Register!</a></center></td></tr>";
echo "<tr><td class=windowbg><center>Login:</center></td></tr>";
echo "<tr><td class=windowbg><center><center>
?>
<SCRIPT LANGUAGE="JavaScript">
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="admin" && password=="admin") { window.location="index.php?action=portal"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
</SCRIPT>
<?php
<form name=login>
<table width=225 border=0 cellpadding=3>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value=Login onClick='Login()'></td></tr>
</table>
</form>
</center></td></tr>";
echo "</table>";
}
?>
</body>
</html>
<?php
# Lukezweb Forum Coded By Luke Dyson
$username = "Guest";
?>
<html>
<head>
<title>Lukezweb Forum</title>
</head>
<body>
<?php
$action = (isset($_GET['action'])) ? $_GET['action'] : "";
// Help
if ($action == "help") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a></center></td></tr>";
echo "<tr><td class=windowbg>Need Help?</td></tr>";
echo "<tr><td class=windowbg>Q) How do i register?<BR>A) You need to visit the main site <a href=http://lukezweb.tk>here</a> and click sign-up :)</td></tr>";
echo "<tr><td class=windowbg>Q) How do i post on the boards?<BR>A) At the bottom of threads there is a bar asking it you wish to post a reply or to return to the board, click reply and fill in the form on the next page :)</td></tr>";
echo "</table>";
echo "</center>";
}
// Main
else if ($action == "main") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a><P></center></td></tr>";
echo "<tr><td>";
echo "<table width=100% border=0 cellspacing=1 bgcolor=#000000>"
?>
} else if ($action == "portal") {
// Portal
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, $username!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum - <a href=index.php?action=main>Home</a> - <a href=index.php>Portal</a> - <a href=index.php?action=help>Help</a>";
if ($username == "Admin") {
echo " - <a href=index.php?action=admin>Admin</a>";
}
echo "</center></td></tr><tr><td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=#000000 cellpadding=5 border=0>";
echo "<tr>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Forum</td></tr>";
echo "<tr><td class=windowbg><center><a href=#>General Talk</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Announcments</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Staff Board</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Support</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Requests</a></center></td></tr>";
echo "<tr><td class=windowbg><center><a href=#>Show Off</a></center></td></tr>";
echo "</table>";
echo "</td>";
echo "<td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>News:</td></tr>";
echo "<tr><td class=windowbg>Welcome to the Lukezweb Forum!<br>This is a new addition to the site, and i'm quite pround of it as i coded the whole thing by myself, no help! Which also means i can make updates to it whenever!</td></tr>";
echo "</table>";
echo "</td>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Links</td></tr>";
echo "<tr><td class=windowbg><center>Rules</center></td></tr>";
echo "<tr><td class=windowbg><center>Members List</center></td></tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=#000000 cellpadding=5 border=0>";
echo "<tr>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Stats</td></tr>";
echo "<tr><td class=windowbg><center>Total Topics: 0</center></td></tr>";
echo "<tr><td class=windowbg><center>Total Posts: 0</center></td></tr>";
echo "<tr><td class=windowbg><center>Total Members: 1</center></td></tr>";
echo "</table>";
echo "</td>";
echo "<td class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Extra:</td></tr>";
echo "<tr><td class=windowbg>No extra News :)!</td></tr>";
echo "</table>";
echo "</td>";
echo "<td width=20% valign=top class=windowbg>";
echo "<table width=100% cellspacing=1 bgcolor=black cellpadding=0 border=0>";
echo "<tr><td class=catbg>Members</td></tr>";
echo "<tr><td class=windowbg><center>Profile</center></td></tr>";
echo "<tr><td class=windowbg><center>Notify</center></td></tr>";
echo "<tr><td class=windowbg><center><a href=index.php?action=help>Help</a></center></td></tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td class=catbg>Users Online:</td></tr>";
echo "<tr><td class=windowbg>Currently Online are 0 Member(s), 2 Guest(s), 1 Staff Member
<BR>Luke</td></tr>";
echo "</table>";
echo "</center>";
} else if ($action == "register") {
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, please register!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum</center></td></tr>";
echo "<tr><td class=windowbg>Register:</td></tr>";
echo "<tr><td class=windowbg>To come......</td></tr>";
echo "<tr><td class=windowbg>:)</td></tr>";
echo "</table>";
} else {
// Login
echo "<center>";
echo "<table width=95% cellspacing=2 bgcolor=black cellpadding=1 border=0>";
echo "<tr><td class=catbg><table width=100%>";
echo "<tr><td width=50%><div align=left>Welcome, please login!</div></td>";
echo "<td width=50%><div align=right>";
print date("G:i:sa , j/m/Y");
echo "</div></td></tr>";
echo "</table></td></tr>";
echo "<tr><td class=windowbg><center>Lukezweb Forum</center></td></tr>";
echo "<tr><td class=windowbg><center>Please Login or <a href=index.php?action=register>Register!</a></center></td></tr>";
echo "<tr><td class=windowbg><center>Login:</center></td></tr>";
echo "<tr><td class=windowbg><center><center>
?>
<SCRIPT LANGUAGE="JavaScript">
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="admin" && password=="admin") { window.location="index.php?action=portal"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
</SCRIPT>
<?php
<form name=login>
<table width=225 border=0 cellpadding=3>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value=Login onClick='Login()'></td></tr>
</table>
</form>
</center></td></tr>";
echo "</table>";
}
?>
</body>
</html>