<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Inloggen</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFF00;
}
body {
background-color: #000000;
}
.style2 {font-size: 18px}
-->
</style></head>
<body>
<p>
<?PHP
error_reporting(E_ALL);
include("contactMYSQL.php");
echo "This is the recruiter of The Gatering";
echo "<br>";
echo "<br>";
echo "You can log here in, if you have an account. you can also log in with the name 'guest' without password";
echo "<br>";
if(isset($_POST['login']) == TRUE)
{
$CombiCheckQ = mysql_query("SELECT username,userid,email
FROM recruiter
WHERE username = '".addslashes($HTTP_POST_VARS['username'])."'
AND email = '".addslashes($HTTP_POST_VARS['email'])."'
AND actief = 1
");
// Kijken of er resultaten zijn, zoja, is de user ingelogd
if (mysql_num_rows($CombiCheckQ) == 0)
{
exit("Invalid Username/Password. Did you klick on the hyperlink in your mail??");
}
$gegevens = mysql_fetch_array($CombiCheckQ);
$HTTP_SESSION_VARS['username'] = $gegevens['username'];
$HTTP_SESSION_VARS['userid'] = $gegevens['userid'];
if (headers_sent())
{
echo "<script language=\"Javascript\">";
echo "document.location='recruiter.php'";
echo "</script>";
} else {
exit("Invalid Username/Password");
}
}
else
{
echo "<form method=\"POST\">";
echo "Username: ";
echo "<input name=\"username\">";
echo "<br>";
echo "email: ";
echo "<input name=\"email\">";
echo "<br>";
echo "<input type=\"submit\" value=\"Log in\" name=\"login\">";
echo "<br><br>";
echo "</form>";
}
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="93" height="33">
<param name="movie" value="button1.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<embed src="button1.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="93" height="33" bgcolor="#000000"></embed>
</object>
</body>
</html>