<?php
/*
 **************************************************************************************************
 *    Copyright (c) 2010-2012 Just Another Video script
 *
 * 	  This file is part of Just Another Video Script.
 *    Version 1.4.3
 *    info@justanothervideoscript.com
 **************************************************************************************************
 *    Come to website for support or buying additional plugins/modules.
 *    http://justanothervideoscript.com/
 **************************************************************************************************
 *    By using this software you agree that you have read and acknowledged our End-User License
 *    Agreement available at http://justanothervideoscript.com/license and can be bound by it.
 **********************************************************************************
 */
session_start();

include ( "./functions.php" );

if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
	sleep(3);
        if ( !LoginControle() ) {
            $errormsg = "Username or password not correct, Try Again";
        } else {
            header ( "location: main.php" );
        }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Just Another Video Script - Admin 1.4.3</title>
<link rel="stylesheet" type="text/css" href="admin.css" />
</head>
<body>

<div id="login">
		<form method="post" action="" >
			<fieldset>
				<legend>Login</legend>
						<table>
						<h3><?=$errormsg?></h3>
							<tr>
								<td><label for="username">Username:</label></td>
								<td><input type="text" name="susername" value="" /></td>
							</tr>
							<tr>
								<td><label for="password">Password:</label></td>
								<td><input type="password" name="spass" value="" /></td>
							</tr>
							<tr>
								<td class="submit"></td>
								<td><input type="submit" name="submit" value="Login" /></td>
							</tr>
						</table>
			</fieldset>
		</form>
</div>

</body>
</html>
