outblank
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<html>
<?php
include("db_connect.php");
session_start();
ini_set('display_errors', 'On');
error_reporting(E_ALL);
if($_GET['r'] == "uitloggen")
{
$_SESSION = array();
header("Location: http://members.lycos.nl/godsixx/index.php");
}
if(isset($_GET["p"])){
$page = stripslashes($_GET["p"]);
}
if(isset($_GET["page"])){
$pagina = stripslashes($_GET["page"]);
}
else{
$pagina = "";
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Elite Slayers at war</title>
<link href="css/style1.css" rel="stylesheet" type="text/css">
<!-- Change the next line to green.css, yellow.css, or red.css -->
<link href="css/red_tex.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="ev_bg"><div id="everything">
<div id="header">
<h1>Elite slayers at war</h1>
</div>
<div id="middle">
<div id="left_column">
<div id="navigation">
<?php
if(isset($_SESSION['naam'])) {
echo '<a href="index.php?p=userinfo">My Account</a><br>
<a href="index.php?p=useredit">Edit Account</a><br>
<a href="index.php?p=pm_inbox">Mailbox</a><br>
<a href="index.php?p=pm_new">Send Message</a><br>
<a href="index.php?p=pm_trash">Thrash bin</a><br>
<a href="index.php?p=pm_option">PM Options</a><br>
<a href="index.php?r=uitloggen">Logout</a><br>';
}
else
{
echo '<a href="index.php?p=login">Log In</a><br>';
}
?>
</div>
<div id="more_information">
<div class="box">Poll:</div>
<div class="box">Features:</div>
<div class="box">Links:</div>
</div>
</div>
<div id="middle_column" class="two_column">
<?
if(!isset($page)){
$page = "index";
}
if(!file_exists($page.".php")){
include("index.php");
}
else{
include($page.".php");
}
?>
</div>
<div id="footer">
<span class="copyright">World of Warcraft® and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. <br> These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment®.</span></div>
</div></div>
</body>
</html>
<?php
include("db_connect.php");
session_start();
ini_set('display_errors', 'On');
error_reporting(E_ALL);
if($_GET['r'] == "uitloggen")
{
$_SESSION = array();
header("Location: http://members.lycos.nl/godsixx/index.php");
}
if(isset($_GET["p"])){
$page = stripslashes($_GET["p"]);
}
if(isset($_GET["page"])){
$pagina = stripslashes($_GET["page"]);
}
else{
$pagina = "";
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Elite Slayers at war</title>
<link href="css/style1.css" rel="stylesheet" type="text/css">
<!-- Change the next line to green.css, yellow.css, or red.css -->
<link href="css/red_tex.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="ev_bg"><div id="everything">
<div id="header">
<h1>Elite slayers at war</h1>
</div>
<div id="middle">
<div id="left_column">
<div id="navigation">
<?php
if(isset($_SESSION['naam'])) {
echo '<a href="index.php?p=userinfo">My Account</a><br>
<a href="index.php?p=useredit">Edit Account</a><br>
<a href="index.php?p=pm_inbox">Mailbox</a><br>
<a href="index.php?p=pm_new">Send Message</a><br>
<a href="index.php?p=pm_trash">Thrash bin</a><br>
<a href="index.php?p=pm_option">PM Options</a><br>
<a href="index.php?r=uitloggen">Logout</a><br>';
}
else
{
echo '<a href="index.php?p=login">Log In</a><br>';
}
?>
</div>
<div id="more_information">
<div class="box">Poll:</div>
<div class="box">Features:</div>
<div class="box">Links:</div>
</div>
</div>
<div id="middle_column" class="two_column">
<?
if(!isset($page)){
$page = "index";
}
if(!file_exists($page.".php")){
include("index.php");
}
else{
include($page.".php");
}
?>
</div>
<div id="footer">
<span class="copyright">World of Warcraft® and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. <br> These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment®.</span></div>
</div></div>
</body>
</html>
met de errorreporting aan geeft hij zelf geen fouten weer alleen maar een witte pagina
kan iemand is nalezen?
Geen output voor session_start(), dat gaat in ieder geval al fout. Jij begint op regel 1 met <html> en dat is toch echt output. Of dat de kritieke fout is weet ik niet, maar het is in ieder geval een fout.
Hier zou je overigens een dikke foutmelding op moeten krijgen, dus controleer je error_reporting instellingen nog maar eens.
Hier zou je overigens een dikke foutmelding op moeten krijgen, dus controleer je error_reporting instellingen nog maar eens.




