<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><link href="../style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>De Atjes.nl!</title>
</head>
<body>
<div class="Container">
<div class="Grolsch_Logo"></div>
<div class="Tussenstukje"></div>
<div class="Bovenkant_Menu"></div>
<div class="Eind"></div>
<div class="Home"><a href="../index.html"><img src="images/andere-layout-totaal_05.png" border="0"></a></div>
<div class="De_atjes"><a href="../de_atjes.html"><img src="images/andere-layout-totaal_06.png" border="0"></a></div>
<div class="Gastenboek"><a href="guestbook.php"><img src="images/andere-layout-totaal_07.png" border="0"></a></div>
<div class="Fotos"><a href="../fotos.html"><img src="images/andere-layout-totaal_08.png" border="0"></a></div>
<div class="Lege_plek"></div>
<div class="Foto"></div>
<div class="Bovenkant_Content"></div>
<div class="Content">
<div class="Tekstvak">
<?php
include ("functions/functions_db.php");
include ("config/settings.php");
include ("includes/header.php");
// START CHECK IF INSTALL.PHP EXISTS
{
?>
<tr>
<td class="emptyspace">
<?php echo $lang["installfileexists"]; ?></td>
</tr>
<?php
}
else
{
// END CHECK IF INSTALL.PHP EXISTS
// START BAN CHECK
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
if($ip == "")
$ip = $_SERVER["REMOTE_ADDR"];
$checkBan = dbQuery
("SELECT ip FROM ".$tableprefix."bans WHERE ip = '$ip'") or
die("<p><b>Database Error:</b></p><p>".mysql_error()."</p>");
if ($isBanned)
{
?>
<tr>
<td class="emptyspace">
<?php echo $lang["ban_message"]; ?></td>
</tr>
<?php
}
else
{
// END BAN CHECK
if ($_GET["action"] == "write")
{
include ("functions/functions_gb.php");
if ($_POST["submit"])
{
$gbUsername = dbSafeInput($_POST["gbUsername"]);
$gbEmail = dbSafeInput($_POST["gbEmail"]);
$gbWebsite = dbSafeInput($_POST["gbWebsite"]);
$gbSubject = dbSafeInput($_POST["gbSubject"]);
$gbMessage = dbSafeInput($_POST["gbMessage"]);
$imgcode = $_POST["imgcode"];
writeForm2($gbUsername, $gbEmail, $gbWebsite, $gbSubject, $gbMessage, $imgcode);
}
else
{
if ($_SESSION[$sessionprefix . "logged_in"])
{
$getAdminQuery = dbQuery
("SELECT * FROM ".$tableprefix."admin") or
die("<p><b>Database Error:</b></p><p>".mysql_error()."</p>");
writeForm($getAdminArray["username"], $getAdminArray["email"], $getAdminArray["website"], '', '');
}
else
{
writeForm('', '', 'http://', '', '');
}
}
}
elseif ($_GET["action"] == "mailuser")
{
include ("functions/functions_gb.php");
if ($_POST["submit"])
{
$mailuser_subject = dbSafeInput($_POST["mailuser_subject"]);
$mailuser_message = dbSafeInput($_POST["mailuser_message"]);
$mailuser_email_sender = dbSafeInput($_POST["mailuser_email_sender"]);
$imgcode = $_POST["imgcode"];
mailuserForm2($mailuser_subject, $mailuser_message, $mailuser_email_sender, $imgcode);
}
else
{
mailuserForm('', '', '');
}
}
elseif ($_GET["action"] == "forgotpassword")
{
include ("functions/functions_gb.php");
if ($_POST["submit"])
{
$lostpasswordemail = dbSafeInput($_POST["lostpasswordemail"]);
forgotPasswordForm2($lostpasswordemail);
}
else
{
forgotPasswordForm('');
}
}
elseif ($_GET["action"] == "login")
{
include ("functions/functions_cpanel.php");
if ($_POST["submit"])
{
$admin_username = dbSafeInput($_POST["admin_username"]);
$admin_password = dbSafeInput($_POST["admin_password"]);
loginForm2($admin_username, $admin_password);
}
else
{
loginForm('', '');
}
}
elseif ($_GET["action"] == "logout")
{
include ("functions/functions_cpanel.php");
logoutForm();
}
elseif ($_GET["action"] == "cpanel")
{
include ("functions/functions_cpanel.php");
show_cpanel();
}
else
{
include ("functions/functions_gb.php");
?>
<form action="
<?php echo $_SERVER["PHP_SELF"]; ?>?action=cpanel&action2=delmessage" method="post" name="delform">
<?php
gbEntries();
?>
</form>
<?php
}
// START BAN CHECK
}
// END BAN CHECK
// START CHECK IF INSTALL.PHP EXISTS
}
// END CHECK IF INSTALL.PHP EXISTS
include ("includes/footer.php");
?>
</div>
</div>
<div class="Onderkant_Content"></div>
<div class="Poll"></div>
<div class="Overig"></div>
</div>
</body>
</html>