<?PHP session_start(); ?>
<!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><?PHP $username = $_SESSION['username'];echo "Welkom *".$username . "* at the recruiter of The Gathering"; ?></title>
<style type="text/css">
<!--
body,td,th {
color: #5CB45F;
}
body {
background-color: #A22029;
}
.style1 {color: #5AB69A}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<table height=355 cellspacing=0 cellpadding=0 width="100%"
background= border=0>
<!--DWLayoutTable-->
<tbody>
<tr>
<td width=151 height="247"> </td>
<td width=679 align=middle valign=top><?PHP
error_reporting(E_ALL);
include("contactMYSQL.php");
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
echo "Welkom ". $username. " at the recruiter of The Gathering.";
echo "<br><br>";
echo "How to get soldiers:";
echo "<br>";
echo "1. Log in <br>2. click on the button to give a soldier. <br>3. the program'll find out of you've give a soldier, If you've <br>give a soldier you'll get a 'clickgiven'<br>if you get a soldier you will get a 'clicksget'.";
echo "<br> 4. If you registrer you'll get a clickgiven of 5 (bonus).<br><br>Now you can start with give clicks, good luck.";
echo "<br><br> If you have more than 500 different between clicksgiven and clicksget your clicksgiven will be reset to 0.";
echo "<br><br>";
if(isset($_POST['Next']) == FALSE)
{
$userhyp = $_SESSION['userhyp'];
$userhyp = 3;
//de userid wordt opgehaald.
$result = mysql_query("SELECT hyper FROM recruiter WHERE userid='$userhyp'") or die("Problem on the site: ". mysql_error());
while ($row = mysql_fetch_object($result)) {
$_SESSION['hyperlink'] = $row->hyper;
}
// $hyperlink is nu de hyperlink van een persoon.
// om een "clickgiven" erbij te geven.
mysql_query("UPDATE recruiter SET clicksgiven=(clicksgiven+1) WHERE userid = '$userid'") or die ("Problem on the site: " . mysql_error());
//de hyperlink word als cookie terukgeschrefen
$_SESSION['userhyp'] = $userhyp+1;
} else {
echo "<form method=\"POST\">"; // Formulier starten
echo "<input type=\"submit\" value=\"Next Hyperlink\" name=\"Next\">"; // Knopje aanmaken
echo "</form>"; // Formulier eindigen
}
?></td>
<td width=151> </td>
</tr>
<tr>
<td height="106"> </td>
<td><?PHP echo $_SESSION['hyperlink']; ?>
<frame src="<?PHP echo $_SESSION['hyperlink']; ?>"></frame>
</td>
<td></td>
</tr>
</tbody>
</table>
<TBODY>
<TR>
<?PHP unset ($_SESSION['hyperlink']); ?>
</body>
</html>