<!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=iso-8859-1" />
<title>AwComputerHelp - We Can Help</title>
<style type="text/css">
<!--
body {
background-color: #333333;
}
body,td,th {
color: #666666;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #FFFF00;
text-decoration: underline;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 18px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 14px;
}
h5 {
font-size: 12px;
}
h6 {
font-size: 10px;
}
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-weight: bold}
.style3 {font-family: Arial, Helvetica, sans-serif}
.style1 {
margin:-15px 0 0 0;
background-color:#000000;
padding-right:1px;
padding-left:1px;
padding-top:1px;
padding-bottom:1px;}
.style3 {
background-color:#FFFFFF}
.content {
background-color:#666666;
padding-right:10px;
padding-bottom:10px;
padding-left:10px;
padding-top:10px;}
.content2 {
background-color:#FFFFFF;
width:50%;
padding-right:5px;
padding-bottom:5px;
padding-left:5px;
padding-top:5px;}
-->
</style></head>
<body>
<div align="center" class="style1">
<p><span class="style2"><a href="index.html" title="Home" class="style1">Home | </a><a href="about.html" title="About Us">About Us</a> | <a href="live.html" title="Live Show">Live Show</a> | </span><a href="contact.html" title="Contact Us">Contact Us</a></p>
</div>
<br />
<div class="content">
<div class="content2">
<table>
<tr><td align="left" valign="top">
<?
/**
User has already logged in, so display relavent links, including
a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
echo "<h1>Logged In</h1>";
echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"
."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] "
."[<a href=\"useredit.php\">Edit Account</a>] ";
if($session->isAdmin()){
echo "[<a href=\"admin/admin.php\">Admin Center</a>] ";
}
echo "[<a href=\"process.php\">Logout</a>]";
}
else{
?>
<h1><font size="5" face="Arial, Helvetica, sans-serif">AwComputerHelp Member Area</font></h1>
<?
/**
User not logged in, display the login form.
If user has already tried to login, but errors were
found, display the total number of errors.
If errors occurred, they will be displayed.
*/
if($form->num_errors > 0){
echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>";
}
?>
<form action="process.php" method="POST">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr>
<tr><td>Password:</td>
<td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>" /></td>
<td><? echo $form->error("pass"); ?></td></tr>
<tr><td colspan="2" align="left"><input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>>
<font size="2">Remember me next time
<input type="hidden" name="sublogin" value="1">
<input type="submit" value="Login"></td></tr>
<tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr>
<tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr>
</table>
</form>
<?
}
/**
Just a little page footer, tells how many registered members
there are, how many users currently logged in and viewing site,
and how many guests viewing site. Active users are displayed,
with link to their user information.
*/
echo "</td></tr><tr><td align=\"center\"><br><br>";
echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>";
echo "There are $database->num_active_users registered members and ";
echo "$database->num_active_guests guests viewing the site.<br><br>";
include("include/view_active.php");
?>
</td></tr>
</table>
</div>
</div>
</body>
</html>
Notice: Undefined variable: session in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 96
Notice: Trying to get property of non-object in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 96
Notice: Undefined variable: form in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 117
Notice: Trying to get property of non-object in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 117
Notice: Undefined variable: form in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 123
Fatal error: Call to a member function value() on a non-object in /www/zzl.org/a/w/c/awchelp/htdocs/main.php on line 123