
PK 
<?php
/**
* Main.php
*/
include("include/session.php");
$page = "main.php";
/**
* 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){
header("Location: create-certificate.php");
}
else {
?>
<!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>
<title>Aryan Fumigation & Pest Management Services - Login</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Language" content="en" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="css/webstarter-login.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.vAlign.js"></script>
<script type="text/javascript" src="js/ws.login.init.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="js/jquery.pngFix.js"></script>
<script type="text/javascript" src="js/jquery.pngFix.init.js"></script>
<![endif]-->
<meta charset="UTF-8"></head>
<body>
<div id="bg">
<div id="core">
<div id="logo">
<h1>Aryan Fumigation & Pest Management Services<br> FY: 2021-22</h1>
</div>
<div id="box">
<form name="loginForm" action="process.php" method="post">
<div id="pleaseLogin">
<div id="pleaseLoginLeft">Please log in to continue</div>
<div id="pleaseLoginRight">
<?php
/**
* 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>";
}
?>
</div>
<div class="clear"></div>
</div>
<div class="space20"></div>
<div id="emailField" class="errorable">
<input type="text" name="user" maxlength="30" value="<?php echo $form->value("user"); ?>"><?php echo $form->error("user"); ?>
</div>
<div class="space10"></div>
<div id="passwordField" class="errorable">
<input type="password" name="pass" maxlength="30" value="<?php echo $form->value("pass"); ?>"><?php echo $form->error("pass"); ?>
</div>
<!-- <input type="checkbox" name="remember" <?php if($form->value("remember") != ""){ echo "checked"; } ?>>Remember me next time -->
<input type="hidden" name="sublogin" value="1">
<div class="space10"></div>
<div id="loginButton">
<!-- <a href="./index.html"><img src="img/ws_login_button.png" alt="Login" title="Login" /></a> -->
<input type="image" src="img/ws_login_button.png" value="">
</div>
<!--
<div id="forgottenPassword">
<a href="#lostPassword">Lost your password?</a>
</div>
-->
<div class="clear"></div>
<input type="submit" style="display: none;" />
</form>
</div><!-- END OF #box -->
<div id="stats">
<?php
/**
* 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.
*/
if( (STATS_VISIBLE_TO_ANYONE) or ($session->isAdmin()) ){
?>
<div id="footer"><br />
<p><b>Member Total:</b><?php echo $database->getNumMembers(); ?>
<br>There are <?php echo $database->num_active_users; ?> registered members and <?php $database->num_active_guests; ?> guests viewing the site.<br><br>
<?php
include("include/view_active.php");
?>
</p>
</div><!-- #footer -->
<? } ?>
</div>
</div><!-- END OF #core -->
</div><!-- END OF #bg -->
</body>
</html>
<? } ?>


PK 99