PHP gevorderde |
|
Citaat: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mette/domains/mette.zoef-design.be/public_html/world/index.php:16) in /usr/home/mette/domains/mette.zoef-design.be/public_html/world/uitloggen.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mette/domains/mette.zoef-design.be/public_html/world/index.php:16) in /usr/home/mette/domains/mette.zoef-design.be/public_html/world/uitloggen.php on line 6
Uitloggen.php
<?
beveiliging("Lid");
setcookie("gebruikersnaam","", -1,"/");
setcookie("memberid","", -1,"/");
echo "<h3>Uitloggen › Uitgelogd</h3>";
echo "Je bent succesvol uitgelogd!";
?>
<? beveiliging("Lid"); echo "<h3>Uitloggen › Uitgelogd</h3>"; echo "Je bent succesvol uitgelogd!"; ?>
index.php
<?php
require("config.php");
require("include.php");
?>
<html>
<head>
<title>World Attack</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="layout.css">
</head>
<body>
<div align="center">
<table width="900" align="center">
<tr>
<td colspan="3" valign="middle" align="center" class="box3"><h1><img src="Afbeeldingen/Globe_010.gif" width="40" height="40">World
Attack<img src="Afbeeldingen/Globe_010.gif" width="40" height="40"></h1></td>
</tr>
<tr>
<td height="21" colspan="3" valign="top" class="box3">
<?php
if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "" AND $_COOKIE[hash] != "")
{
echo "LOL";
}
else
{
echo "<a href=\"?page=login\">Login</a><br>";
echo "<a href=\"?page=registreer\">Registreer</a>";
}
?>
</td>
</tr>
<tr>
<td width="150" valign="top" class="box1">
<a href="?page=home">Home</a><br>
<a href="?page=mail">Mail</a><br>
<?php
if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "")
{
echo "<a href=\"?page=uitloggen\">Uitloggen</a><br>";
}
else
{
echo "<a href=\"?page=login\">Login</a><br>";
echo "<a href=\"?page=registreer\">Registreer</a>";
}
?>
</td>
<td width="600" valign="top" class="box2">
<?php
switch($_GET['page']){
case "home":
include($_GET['page'].'.php');
break;
case "mail":
include($_GET['page'].'.php');
break;
case "registreer":
include($_GET['page'].'.php');
break;
case "login":
include($_GET['page'].'.php');
break;
case "uitloggen":
include($_GET['page'].'.php');
break;
default:
include("error.php");
break;
}
?>
</td>
<td width="150" valign="top" class="box1">
<?php
if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "")
{
echo "LOL";
}
else
{
echo "<a href=\"?page=login\">Login</a><br>";
echo "<a href=\"?page=registreer\">Registreer</a>";
}
?>
</td>
</tr>
<tr>
<td height="21" colspan="3" class="box3"><center>© BY/@ Mette.Zoef-Design.Be</center></td>
</tr>
</table>
</div>
</body>
</html>
<?php require("config.php"); require("include.php"); ?> <html> <head> <title>World Attack</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="layout.css"> </head> <body> <div align="center"> <table width="900" align="center"> <tr> <td colspan="3" valign="middle" align="center" class="box3"><h1><img src="Afbeeldingen/Globe_010.gif" width="40" height="40">World Attack<img src="Afbeeldingen/Globe_010.gif" width="40" height="40"></h1></td> </tr> <tr> <td height="21" colspan="3" valign="top" class="box3"> <?php if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "" AND $_COOKIE[hash] != "") { } else { echo "<a href=\"?page=login\">Login</a><br>"; echo "<a href=\"?page=registreer\">Registreer</a>"; } ?> </td> </tr> <tr> <td width="150" valign="top" class="box1"> <a href="?page=home">Home</a><br> <a href="?page=mail">Mail</a><br> <?php if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "") { echo "<a href=\"?page=uitloggen\">Uitloggen</a><br>"; } else { echo "<a href=\"?page=login\">Login</a><br>"; echo "<a href=\"?page=registreer\">Registreer</a>"; } ?> </td> <td width="600" valign="top" class="box2"> <?php switch($_GET['page']){ case "home": include($_GET['page'].'.php'); break; case "mail": include($_GET['page'].'.php'); break; case "registreer": include($_GET['page'].'.php'); break; case "login": include($_GET['page'].'.php'); break; case "uitloggen": include($_GET['page'].'.php'); break; default: include("error.php"); break; } ?> </td> <td width="150" valign="top" class="box1"> <?php if ($_COOKIE["gebruikersnaam"] != "" AND $_COOKIE[memberid] != "" AND $_COOKIE[hash] != "") { } else { echo "<a href=\"?page=login\">Login</a><br>"; echo "<a href=\"?page=registreer\">Registreer</a>"; } ?> </td> </tr> <tr> <td height="21" colspan="3" class="box3"><center>© BY/@ Mette.Zoef-Design.Be</center></td> </tr> </table> </div> </body> </html>
Kan er even iemand mij uitleggen wat ik verkeerd doe??
|