<?
?>
<html>
<head>
<title>Wrikbille Productions</title>
<meta name="author" content="Wrikbille">
<meta name="keywords" content="wrikbille, wrik, bille, wormerveer, zaanstad, krommenie, assendelft, zaanstreek">
</head>
<style>
.borderline {
border-left-width: 3px;
border-left-color: #6e6e6e;
border-left-style: solid;
border-right-width: 3px;
border-right-color: #6e6e6e;
border-right-style: solid;
}
.borderline2 {
border-width: 2px;
border-color: #505050;
border-style: solid;
}
.borderline3 {
border-top-width: 2px;
border-top-color: #6e6e6e;
border-top-style: solid;
border-bottom-width: 2px;
border-bottom-color: #6e6e6e;
border-bottom-style: solid;
}
body,td,th {
font-family: Verdana;
font-size: 8pt;
color: #ffffff;
}
.tfield {
background-color: #333333;
color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #afafaf;
}
.tfield2 {
background-color: #333333;
color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #afafaf;
width: 100px;
}
A:link {text-decoration: none; color: #ffffff}
A:visited {text-decoration: none; color: #ffffff}
A:active {text-decoration: none; color: #ffffff}
A:hover {text-decoration: none; color: #afafaf}
</style>
<body bgcolor="#000000" text="#ffffff" topmargin="0" bottommargin="0">
<center>
<table width="800" height="100%" border="0" cellpadding="0" cellspacing="0" class="borderline">
<tr>
<td height="120">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
id="header"
width="800" height="120">
<param name="movie" value="header.swf">
<param name="bgcolor" value="#333333">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="header"
width="800" height="120"
src="header.swf"
bgcolor="#333333"
quality="high"
allowscriptaccess="samedomain">
<noembed>
</noembed>
</embed>
</object>
</td>
</tr><tr>
<td bgcolor="#333333">
<table width="100%" height="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="120" valign="top">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="borderline2">
<tr>
<td align="center" bgcolor="#5f5f5f">
<font size="2">
<a href="/">Startpagina</a><br>
<a href="?do=afleveringen">Afleveringen</a><br>
<a href="?do=gastenboek">Gastenboek</a><br>
<a href="?do=contact">Contact</a>
</font>
</td>
</tr>
</table><br>
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="borderline2">
<tr>
<td align="center" bgcolor="#5f5f5f">
<?
include("login.php");
?>
</td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="borderline2">
<tr>
<td bgcolor="#7e7e7e">
<?
if ($_GET['do'] == "lidworden") {
if ($_POST['lwreg']) {
$sql = 'SELECT * FROM gebruikers WHERE username = "'.$_POST['lwusername'].'"';
if ($_POST['lwusername'] == "") {
$error = '<center>Je bent vergeten je gebruikersnaam in te vullen.</center>';
$lwusername = $_POST['lwusername'];
$lwpassword = $_POST['lwpassword'];
$lwemail = $_POST['lwemail'];
}
elseif ($_POST['lwpassword'] == "") {
$error = '<center>Je bent vergeten je wachtwoord in te vullen.</center>';
$lwusername = $_POST['lwusername'];
$lwpassword = $_POST['lwpassword'];
$lwemail = $_POST['lwemail'];
}
elseif ($_POST['lwemail'] == "") {
$error = '<center>Je bent vergeten je e-mail adres in te vullen.</center>';
$lwusername = $_POST['lwusername'];
$lwpassword = $_POST['lwpassword'];
$lwemail = $_POST['lwemail'];
}
elseif ($sqlnum == "1") {
$error = '<center>Er bestaat al een gebruiker met de door jou opgegeven gebruikersnaam.</center>';
$lwusername = $_POST['lwusername'];
$lwpassword = $_POST['lwpassword'];
$lwemail = $_POST['lwemail'];
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
$password = $_POST['lwpassword'];
$passwordmd5 = md5($password); $sql = 'INSERT INTO gebruikers VALUES ("", "'.$_POST['lwusername'].'", "'.$passwordmd5.'", "'.$_POST['lwemail'].'", "'.$ip.'")';
echo '<center>Je kan nu inloggen.</center>'; }
}
else
{
echo '<form method="post" action="">'; echo '<center>Om gebruik te kunnen maken van alle functies moet je geregistreerd zijn.<br>Vul onderstaande formulier in om lid te worden. It\'s so easy
.<br
><br
>'; echo 'Gebruikersnaam:<br><input type="text" name="lwusername" class="tfield" value="'.$lwusername.'"><br>';
echo 'Wachtwoord:<br><input type="password" name="lwpassword" class="tfield" value="'.$lwpassword.'"><br>';
echo 'E
-mail adres
:<br
><input type
="text" name
="lwemail" class="tfield" value
="'.$lwemail.'"><br
>'; echo '<input type="submit" name="lwreg" class="tfield" value="Lid worden!">';
echo $error;
echo '</center>';
}
echo $error;
}
elseif ($_GET['do'] == "afleveringen") {
echo '<center>';
$sql = 'SELECT * FROM afleveringen ORDER BY id DESC';
$sqlquery = mysql_query($sql);
while($show = mysql_fetch_assoc($sqlquery)){
echo $show['naam'];
echo '<br>';
echo '<a href="?do=viewvideo&id='.$show['id'].'"><img src="'.$show['afbeelding'].'" border="0" class="borderline2"></a>';
echo '<br><br>';
}
echo '</center>';
}
elseif ($_GET['do'] == "viewvideo") {
$sql = 'SELECT * FROM afleveringen WHERE id = "'.$_GET['id'].'"';
$sqlquery = mysql_query($sql);
while ($show = mysql_fetch_assoc($sqlquery)) {
echo '<center><font size="2">';
echo $show['naam'];
echo '<br><br>';
echo $show['code'];
echo '</font></center>';
}
}
elseif ($_GET['do'] == "gastenboek") {
$ip = $_SERVER['REMOTE_ADDR'];
if ($_SESSION['logon'] == "set" AND $_SESSION['userid'] == "1") {
if ($_GET['delete']) {
$sql = 'DELETE FROM gastenboek WHERE id = "'.$_GET['delete'].'"';
mysql_query($sql);
}
}
if ($_POST['versturen']) {
if ($_POST['naam'] == "") {
$error = 'Je bent vergeten je naam in te vullen.<br><br>';
$email = $_POST['email'];
$bericht = $_POST['bericht'];
$naam = $_POST['naam'];
}
elseif ($_POST['email'] == "") {
$error = 'Je bent vergeten je e
-mail adres in te vullen
.<br
><br
>'; $email = $_POST['email'];
$bericht = $_POST['bericht'];
$naam = $_POST['naam'];
}
elseif ($_POST['bericht'] == "") {
$error = 'Je bent vergeten je bericht in te vullen.<br><br>';
$email = $_POST['email'];
$bericht = $_POST['bericht'];
$naam = $_POST['naam'];
}
else
{
$datum = date("d-m-Y");
$tijd = date("H:i:s");
$ip = $_SERVER['REMOTE_ADDR'];
$sql = 'INSERT INTO gastenboek VALUES ("", "'.$_POST['naam'].'", "'.$_POST['email'].'", "'.$_POST['bericht'].'", "'.$datum.'", "'.$tijd.'", "'.$ip.'")';
mysql_query($sql);
echo "<meta http-equiv=\"refresh\" content=\"0;url=\">";
}
}
$sql = 'SELECT * FROM gastenboek ORDER BY id DESC';
$sqlquery = mysql_query($sql);
echo '<center><form method="post" action="">';
echo '<b>Naam:</b><br><input type="text" name="naam" value="'.$naam.'" class="tfield"><br>';
echo '<b
>E
-mail adres
:</b
><br
><input type
="text" name
="email" value
="'.$email.'" class="tfield"><br
>'; echo '<b>Bericht:</b><br><textarea name="bericht" rows="5" cols="50" class="tfield">'.$bericht.'</textarea><br><br>';
echo '<input type="submit" name="versturen" class="tfield" value="Versturen"><br><br>';
echo $error;
echo '</form></center>';
while ($show = mysql_fetch_assoc($sqlquery)) {
echo '<table width="100%" border="0" cellpadding="2" cellspacing="0" class="borderline3">';
echo '<tr>';
echo '<td>';
$bericht = $show['bericht'];
$bericht = htmlspecialchars($bericht);
$bericht = nl2br($bericht);
$ip = $_SERVER['REMOTE_ADDR'];
if ($_SESSION['logon'] == "set" AND $_SESSION['userid'] == "1") {
$delete = '<font size="1"><a href="?do=gastenboek&delete='.$show['id'].'">(Delete)</a></font>';
}
else
{
$delete = "";
}
echo '<b>'.$show['naam'].'</b> '.$delete.'<br><i>Op '.$show['datum'].' om '.$show['tijd'].'</i><br><br>'.$bericht.'';
echo '</td>';
echo '</tr></table><br>';
}
}
elseif ($_GET['do'] == "contact") {
echo 'Komt nog';
}
else
{
echo 'Welkom bij Wrikbille Productions.<br><br>Neem gerust een kijkje bij afleveringen voor alle Wrikbille afleveringen.<br><br><center>De laatste aflevering:<br>';
$sql = 'SELECT * FROM afleveringen ORDER BY id DESC LIMIT 1';
$sqlquery = mysql_query($sql);
while ($show = mysql_fetch_assoc($sqlquery)) {
echo '<a href="?do=viewvideo&id='.$show['id'].'"><img src="'.$show['afbeelding'].'" class="borderline2" border="0"></a>';
}
echo '</center>';
}
?>
</td>
</tr>
</table>
</td>
<td width="120" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="borderline2">
<tr>
<td align="center" bgcolor="#5f5f5f">
<img src="guido.jpg"><br>
</td>
</tr>
</table><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="borderline2">
<tr>
<td align="center" bgcolor="#5f5f5f">
<img src="danny.jpg"><br>
</td>
</tr>
</table><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="borderline2">
<tr>
<td align="center" bgcolor="#5f5f5f">
<img src="jeroen.jpg"><br>
</td>
</tr>
</table>
</td>
</tr></table>
</td>
</tr></table>
</center>
</form>
</body>
</html>