parse error fout
dit is mijn scripts:
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
session_start();
define ('INCLUDECHECK', true);
require('site.conf.php');
include('functions.php');
include('bbcode.php');
include_once('class.RegInfo.php');
include_once('class.Reg.php');
include_once('class.Crime.php');
include_once('class.Messages.php');
include_once('class.Log.php');
include_once('class.Login.php');
include_once('class.Kill.php');
require('auth.php');
setlocale (LC_ALL, 'nl_NL');
$query = "SELECT * FROM `banned` WHERE `ip`= '". $_SERVER["REMOTE_ADDR"] ."' LIMIT 0,1" ;
$result = mysql_query($query);
$lst = mysql_fetch_array ($result);
if ( $_SERVER["REMOTE_ADDR"] == $lst['ip'] AND $lst['time'] > gmtime() ) {
$timenl = $lst['time'] + 3600 * 2;
die ("Je bent verbannen op deze site door: <strong>". $lst['by'] ."</strong>, tot: <strong>". strftime("%A %e %B %Y %H:%M:%S", $timenl) ."</strong>, omdat: <strong>". $lst['reason'] ."</strong>");
}
$info = new RegInfo();
$info->setId( $_SESSION['delucid'] );
if($info->getHealth() <= "0" AND $info->getClassId() <= "1") {
$sql = "SELECT members.nickname, kill_log.date FROM `kill_log` LEFT JOIN `members` ON kill_log.`shootid` = members.`id` WHERE kill_log.`killid` = '". $info->getId() ."' ORDER BY kill_log.`date` DESC LIMIT 0,1";
$query = mysql_query( $sql );
while( $lst = mysql_fetch_array( $query ) ) {
$name = $lst['nickname'];
$date = $lst['date'];
}
unset($_SESSION['auth']);
unset($_SESSION['delucid']);
unset($_SESSION['key']);
setcookie("auth","", time() - 3600);
setcookie("delucid","", time() - 3600);
session_destroy();
exit("<center><h1>Game Over: You have been killed by ". $name ."!</h1><br /><img src=\"img/skull.gif\" /><h2>On: ". date("Y D M j G:i:s",$date) ." (GMT)</h2></center>");
}
$messages = new Message();
$messages->setMemberId( $_COOKIE['id'] );
mysql_query("UPDATE `members` SET `lastaction` = '". gmtime() ."' WHERE `id` = '". $info->getId() ."' LIMIT 1");
// User Menu's
if( $info->getClassId() >= "1" ) {
switch ($_GET['p']) {
// Main:
CASE "home": $include = "members.home.php"; $title = "Home"; break;
CASE "faq": $include = "faq.php"; $title = "Frequently Asked Questions"; break;
CASE "reis": include_once('reis.php'); $title = "Reizen"; break;
CASE "nieuws": include_once('nieuws.php'); $title = "Nieuws"; break;
CASE "profile": include_once('profile.php'); $title = "Profiel"; break;
CASE "profiletest": $include = "profile_test.php"; $title = "Profile"; break;
CASE "stats": include_once('stats.php'); $title = "Stats"; break;
CASE "bank": include_once('bank.php'); $title = "Bank"; break;
CASE "kluis": include_once('bank.php'); $title = "Kluis"; break;
CASE "gevangenis": include_once('jail.php'); $title = "Gevangenis"; break;
CASE "uonline": include_once('uonline.php'); $title = "Online Users"; break;
CASE "meminfo": include_once('meminfo.php'); $title = "Member Info"; break;
CASE "bulletfactory": include_once('bulletfactory.php'); $title = "Bullitfactory"; break;
CASE "shop": include_once('shop.php'); $title = "Shop"; break;
CASE "search": include_once('search.php'); $title = "Search"; break;
CASE "kill": include_once('kill.php'); $title = "Kill"; break;
CASE "attacklog": include_once('attacklog.php'); $title = "Attempts"; break;
// Crimes:
CASE "crime": include_once('crime.php'); $title = "Pleeg Misdaad"; break;
CASE "crimeautos": include_once('crimeautos.php'); $title = "Steel een Auto"; break;
CASE "garage": include_once('garage.php'); $title = "Garage"; break;
// Casino:
CASE "numbergame": include_once('numbergame.php'); $title = "Raad het Nummer"; break;
// Private Messages:
CASE "inbox": include_once('messages.php'); $title = "Inbox"; break;
CASE "outbox": include_once('messages.php'); $title = "Outbox"; break;
CASE "sendmsg": include_once('messages.php'); $title = "Send Message"; break;
CASE "readmsg": include_once('messages.php'); $title = "Read Message"; break;
CASE "deletemsg": include_once('messages.php'); $title = "Delete Message"; break;
}
if( $info->getClassId() >= "2" ) {
switch ($_GET['p']) {
//CASE "bleh": include_once('bleh.php'); $title = "bleh"; break;
}
$menu .= "\t\t <strong>Moderator Tools:</strong><br />\n";
$menu .= "\t\t Geef Waarschuwing<br />\n";
$menu .= "\t\t Punish<br />\n";
$menu .= "\t\t <br />\n";
}
if( $info->getClassId() >= "3" ) {
switch ($_GET['p']) {
CASE "banip": include_once('banip.php'); $title = "Ban IP"; break;
CASE "unbanip": include_once('banip.php'); $title = "Unban IP"; break;
CASE "bannick": include_once('bannick.php'); $title = "Ban Nick"; break;
CASE "unbannick": include_once('bannick.php'); $title = "Unban Nick"; break;
CASE "usercheck": include_once('usercheck.php'); $title = "User Check"; break;
}
$menu .= "\t\t <strong>SuperMod Tools:</strong><br />\n";
$menu .= "\t\t <a href=\"members.php?p=banip\">IP Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=unbanip\">UnIP Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=bannick\">Nick Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=unbannick\">UnNick Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=usercheck\">User RegDate Check</a><br />\n";
$menu .= "\t\t <br />\n";
}
if( $info->getClassId() >= "4" ) {
switch ($_GET['p']) {
CASE "regnew": include_once('admin.regnew.php'); $title = "Register New User"; break;
CASE "regupdate": include_once('admin.regupdate.php'); $title = "Update User"; break;
CASE "regdelete": include_once('admin.regdel.php'); $title = "Delete User"; break;
}
$menu .= "\t\t <strong>Admin Tools:</strong><br />\n";
$menu .= "\t\t <a href=\"members.php?p=regnew\">Reg New User</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=regupdate\">Update User</a><br />\n";
$menu .= "\t\t <br />\n";
}
$menu .= "\t\t <a onclick=\"return(confirm('Weet je zeker dat je wil uitloggen?'))\" href=\"logout.php\">Uitloggen</a><br />\n";
// Updating UserData
$info->ReSet();
// Login Data
$loginmenu .= "\t\t Ingelogd Als: ". $info->getName() ."<br />\n";
$loginmenu .= "\t\t Cash: €". number_format($info->getGeld(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Bank: €". number_format($info->getBank(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Safe: €". number_format($info->getKluis(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Rank: ". $info->getSubClass() ."<br />\n";
$loginmenu .= "\t\t Plaats: ". $info->getLokatie() ."<br />\n";
$loginmenu .= "\t\t Bullets: ". number_format($info->getBullets(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Health: <img src=\"img/health.gif\" />". $info->getHealth() ."%<br />\n";
$loginmenu .= "\t\t Beveiliging: <img src=\"img/shield.gif\" />". $info->getShield() ."%<br />\n";
$loginmenu .= "\t\t<br />\n";
$logindata = $loginmenu;
?>
session_start();
define ('INCLUDECHECK', true);
require('site.conf.php');
include('functions.php');
include('bbcode.php');
include_once('class.RegInfo.php');
include_once('class.Reg.php');
include_once('class.Crime.php');
include_once('class.Messages.php');
include_once('class.Log.php');
include_once('class.Login.php');
include_once('class.Kill.php');
require('auth.php');
setlocale (LC_ALL, 'nl_NL');
$query = "SELECT * FROM `banned` WHERE `ip`= '". $_SERVER["REMOTE_ADDR"] ."' LIMIT 0,1" ;
$result = mysql_query($query);
$lst = mysql_fetch_array ($result);
if ( $_SERVER["REMOTE_ADDR"] == $lst['ip'] AND $lst['time'] > gmtime() ) {
$timenl = $lst['time'] + 3600 * 2;
die ("Je bent verbannen op deze site door: <strong>". $lst['by'] ."</strong>, tot: <strong>". strftime("%A %e %B %Y %H:%M:%S", $timenl) ."</strong>, omdat: <strong>". $lst['reason'] ."</strong>");
}
$info = new RegInfo();
$info->setId( $_SESSION['delucid'] );
if($info->getHealth() <= "0" AND $info->getClassId() <= "1") {
$sql = "SELECT members.nickname, kill_log.date FROM `kill_log` LEFT JOIN `members` ON kill_log.`shootid` = members.`id` WHERE kill_log.`killid` = '". $info->getId() ."' ORDER BY kill_log.`date` DESC LIMIT 0,1";
$query = mysql_query( $sql );
while( $lst = mysql_fetch_array( $query ) ) {
$name = $lst['nickname'];
$date = $lst['date'];
}
unset($_SESSION['auth']);
unset($_SESSION['delucid']);
unset($_SESSION['key']);
setcookie("auth","", time() - 3600);
setcookie("delucid","", time() - 3600);
session_destroy();
exit("<center><h1>Game Over: You have been killed by ". $name ."!</h1><br /><img src=\"img/skull.gif\" /><h2>On: ". date("Y D M j G:i:s",$date) ." (GMT)</h2></center>");
}
$messages = new Message();
$messages->setMemberId( $_COOKIE['id'] );
mysql_query("UPDATE `members` SET `lastaction` = '". gmtime() ."' WHERE `id` = '". $info->getId() ."' LIMIT 1");
// User Menu's
if( $info->getClassId() >= "1" ) {
switch ($_GET['p']) {
// Main:
CASE "home": $include = "members.home.php"; $title = "Home"; break;
CASE "faq": $include = "faq.php"; $title = "Frequently Asked Questions"; break;
CASE "reis": include_once('reis.php'); $title = "Reizen"; break;
CASE "nieuws": include_once('nieuws.php'); $title = "Nieuws"; break;
CASE "profile": include_once('profile.php'); $title = "Profiel"; break;
CASE "profiletest": $include = "profile_test.php"; $title = "Profile"; break;
CASE "stats": include_once('stats.php'); $title = "Stats"; break;
CASE "bank": include_once('bank.php'); $title = "Bank"; break;
CASE "kluis": include_once('bank.php'); $title = "Kluis"; break;
CASE "gevangenis": include_once('jail.php'); $title = "Gevangenis"; break;
CASE "uonline": include_once('uonline.php'); $title = "Online Users"; break;
CASE "meminfo": include_once('meminfo.php'); $title = "Member Info"; break;
CASE "bulletfactory": include_once('bulletfactory.php'); $title = "Bullitfactory"; break;
CASE "shop": include_once('shop.php'); $title = "Shop"; break;
CASE "search": include_once('search.php'); $title = "Search"; break;
CASE "kill": include_once('kill.php'); $title = "Kill"; break;
CASE "attacklog": include_once('attacklog.php'); $title = "Attempts"; break;
// Crimes:
CASE "crime": include_once('crime.php'); $title = "Pleeg Misdaad"; break;
CASE "crimeautos": include_once('crimeautos.php'); $title = "Steel een Auto"; break;
CASE "garage": include_once('garage.php'); $title = "Garage"; break;
// Casino:
CASE "numbergame": include_once('numbergame.php'); $title = "Raad het Nummer"; break;
// Private Messages:
CASE "inbox": include_once('messages.php'); $title = "Inbox"; break;
CASE "outbox": include_once('messages.php'); $title = "Outbox"; break;
CASE "sendmsg": include_once('messages.php'); $title = "Send Message"; break;
CASE "readmsg": include_once('messages.php'); $title = "Read Message"; break;
CASE "deletemsg": include_once('messages.php'); $title = "Delete Message"; break;
}
if( $info->getClassId() >= "2" ) {
switch ($_GET['p']) {
//CASE "bleh": include_once('bleh.php'); $title = "bleh"; break;
}
$menu .= "\t\t <strong>Moderator Tools:</strong><br />\n";
$menu .= "\t\t Geef Waarschuwing<br />\n";
$menu .= "\t\t Punish<br />\n";
$menu .= "\t\t <br />\n";
}
if( $info->getClassId() >= "3" ) {
switch ($_GET['p']) {
CASE "banip": include_once('banip.php'); $title = "Ban IP"; break;
CASE "unbanip": include_once('banip.php'); $title = "Unban IP"; break;
CASE "bannick": include_once('bannick.php'); $title = "Ban Nick"; break;
CASE "unbannick": include_once('bannick.php'); $title = "Unban Nick"; break;
CASE "usercheck": include_once('usercheck.php'); $title = "User Check"; break;
}
$menu .= "\t\t <strong>SuperMod Tools:</strong><br />\n";
$menu .= "\t\t <a href=\"members.php?p=banip\">IP Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=unbanip\">UnIP Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=bannick\">Nick Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=unbannick\">UnNick Ban</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=usercheck\">User RegDate Check</a><br />\n";
$menu .= "\t\t <br />\n";
}
if( $info->getClassId() >= "4" ) {
switch ($_GET['p']) {
CASE "regnew": include_once('admin.regnew.php'); $title = "Register New User"; break;
CASE "regupdate": include_once('admin.regupdate.php'); $title = "Update User"; break;
CASE "regdelete": include_once('admin.regdel.php'); $title = "Delete User"; break;
}
$menu .= "\t\t <strong>Admin Tools:</strong><br />\n";
$menu .= "\t\t <a href=\"members.php?p=regnew\">Reg New User</a><br />\n";
$menu .= "\t\t <a href=\"members.php?p=regupdate\">Update User</a><br />\n";
$menu .= "\t\t <br />\n";
}
$menu .= "\t\t <a onclick=\"return(confirm('Weet je zeker dat je wil uitloggen?'))\" href=\"logout.php\">Uitloggen</a><br />\n";
// Updating UserData
$info->ReSet();
// Login Data
$loginmenu .= "\t\t Ingelogd Als: ". $info->getName() ."<br />\n";
$loginmenu .= "\t\t Cash: €". number_format($info->getGeld(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Bank: €". number_format($info->getBank(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Safe: €". number_format($info->getKluis(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Rank: ". $info->getSubClass() ."<br />\n";
$loginmenu .= "\t\t Plaats: ". $info->getLokatie() ."<br />\n";
$loginmenu .= "\t\t Bullets: ". number_format($info->getBullets(), 0, ',', '.') ."<br />\n";
$loginmenu .= "\t\t Health: <img src=\"img/health.gif\" />". $info->getHealth() ."%<br />\n";
$loginmenu .= "\t\t Beveiliging: <img src=\"img/shield.gif\" />". $info->getShield() ."%<br />\n";
$loginmenu .= "\t\t<br />\n";
$logindata = $loginmenu;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>The Mafia Star :: </title>
<link href="deluccio.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600,left = 240,top = 212');");
}
</script>
</head>
<body bgcolor="#868686" text="#000000">
<div align="center">
<table width="800" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" rowspan="4" align="left" valign="top" nowrap bgcolor="#999999">
<br />
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
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
<?
echo "\t\t Ingelogd Als: ". $info->getName() ."<br />\n";
echo "\t\t Rank: ". $info->getSubClass() ."<br />\n";
echo "\t\t Cash: €". number_format($info->getGeld(), 0, ',', '.') ."<br />\n";
echo "\t\t Plaats: ". $info->getLokatie() ."<br />\n";
echo "\t\t Bullets: ". number_format($info->getBullets(), 0, ',', '.') ."<br />\n";
echo "\t\t Health: <img src=\"img/health.gif\" />". $info->getHealth() ."%<br />\n";
echo "\t\t Bescherming: <img src=\"img/shield.gif\" />". $info->getShield() ."%<br />\n";
echo "\t\t<br />\n";
echo "\t\t<br />\n";
echo "\t\t <strong>Main:</strong><br />\n";
echo "\t\t <a href=\"members.php?p=home\">Beginpagina</a><br />\n";
echo "\t\t <a href=\"faq.php\">FAQ</a><br />\n";
echo "\t\t <a href=\"profiel.php\">Profiel</a><br />\n";
echo "\t\t <a href=\"nieuws.php\">Nieuws</a><br />\n";
echo "\t\t <a href=\"reis.php\">Reizen</a><br />\n";
echo "\t\t <a href=\"gevangenis.php\">Gevangenis</a><br />\n";
echo "\t\t <a href=\"uonline.php\">All Users</a><br />\n";
echo "\t\t <a href=\"bulletfactory.php\">Bullet Factory</a><br />\n";
echo "\t\t <a href=\"shop.php\">Shop</a><br />\n";
echo "\t\t <a href=\"kill.php\">Kill / Search</a><br />\n";
echo "\t\t <a href=\"attacklog.php\">Attempts</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Crimes:</strong><br />\n";
echo "\t\t <a href=\"crime.php\">Misdaad</a><br />\n";
echo "\t\t <a href=\"crimeautos.php\">Steel een Auto</a><br />\n";
echo "\t\t <a href=\"garage.php\">Garage</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Bankzaken:</strong><br />\n";
echo "\t\t <a href=\"bank.php\">Bank</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Casino:</strong><br />\n";
echo "\t\t <a href=\"\numbergame.php\">Raad het Nummer</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Zoek Speler:</strong><br />\n";
echo "\t\t<form name=\"search\" method=\"post\" action=\"search.php\">";
echo "\t\t<input type=\"text\" name=\"searchstring\">";
echo "\t\t<br>";
echo "\t\t<input type=\"submit\" name=\"search\" value=\"Zoek\">";
echo "\t\t</form>";
echo "\t\t <br />\n";
echo "\t\t <strong>Uitloggen:</strong><br />\n";
echo "\t\t <a href=\"logout.php\">Log Uit</a><br />\n";
echo $logindata;
echo $menu;
?>
echo "\t\t Ingelogd Als: ". $info->getName() ."<br />\n";
echo "\t\t Rank: ". $info->getSubClass() ."<br />\n";
echo "\t\t Cash: €". number_format($info->getGeld(), 0, ',', '.') ."<br />\n";
echo "\t\t Plaats: ". $info->getLokatie() ."<br />\n";
echo "\t\t Bullets: ". number_format($info->getBullets(), 0, ',', '.') ."<br />\n";
echo "\t\t Health: <img src=\"img/health.gif\" />". $info->getHealth() ."%<br />\n";
echo "\t\t Bescherming: <img src=\"img/shield.gif\" />". $info->getShield() ."%<br />\n";
echo "\t\t<br />\n";
echo "\t\t<br />\n";
echo "\t\t <strong>Main:</strong><br />\n";
echo "\t\t <a href=\"members.php?p=home\">Beginpagina</a><br />\n";
echo "\t\t <a href=\"faq.php\">FAQ</a><br />\n";
echo "\t\t <a href=\"profiel.php\">Profiel</a><br />\n";
echo "\t\t <a href=\"nieuws.php\">Nieuws</a><br />\n";
echo "\t\t <a href=\"reis.php\">Reizen</a><br />\n";
echo "\t\t <a href=\"gevangenis.php\">Gevangenis</a><br />\n";
echo "\t\t <a href=\"uonline.php\">All Users</a><br />\n";
echo "\t\t <a href=\"bulletfactory.php\">Bullet Factory</a><br />\n";
echo "\t\t <a href=\"shop.php\">Shop</a><br />\n";
echo "\t\t <a href=\"kill.php\">Kill / Search</a><br />\n";
echo "\t\t <a href=\"attacklog.php\">Attempts</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Crimes:</strong><br />\n";
echo "\t\t <a href=\"crime.php\">Misdaad</a><br />\n";
echo "\t\t <a href=\"crimeautos.php\">Steel een Auto</a><br />\n";
echo "\t\t <a href=\"garage.php\">Garage</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Bankzaken:</strong><br />\n";
echo "\t\t <a href=\"bank.php\">Bank</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Casino:</strong><br />\n";
echo "\t\t <a href=\"\numbergame.php\">Raad het Nummer</a><br />\n";
echo "\t\t <br />\n";
echo "\t\t <strong>Zoek Speler:</strong><br />\n";
echo "\t\t<form name=\"search\" method=\"post\" action=\"search.php\">";
echo "\t\t<input type=\"text\" name=\"searchstring\">";
echo "\t\t<br>";
echo "\t\t<input type=\"submit\" name=\"search\" value=\"Zoek\">";
echo "\t\t</form>";
echo "\t\t <br />\n";
echo "\t\t <strong>Uitloggen:</strong><br />\n";
echo "\t\t <a href=\"logout.php\">Log Uit</a><br />\n";
echo $logindata;
echo $menu;
?>
</td>
</tr>
<tr>
<td width="15" rowspan="3"> </td>
<td width="400" rowspan="3" valign="top" nowrap> <p> Welcome To The Mafia Star<br>
<br>
Always wanted to be a dangerous gangster and do things you never thought about? This is your chance.<br>
<br><b></b></br>
<br>
</p></td>
<td width="15" rowspan="3"> </td>
<td height="10" valign="top" nowrap class="news">
Code (php)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
<?
echo "\t\t<strong>Rank Vordering:</strong><br />\n";
echo "\t\t<table width=\"100\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "\t\t <tr>\n";
echo "\t\t <td width=\"". $info->getProgress() ."\" bgcolor=\"#FF0000\" align=\"center\">". $info->getProgress() ."%</td>\n";
echo "\t\t <td width=\"". ( 100 - $info->getProgress() ) ."\"bgcolor=\"#CC3300\"></td>\n";
echo "\t\t </tr>\n";
echo "\t\t</table>\n";
?>
echo "\t\t<strong>Rank Vordering:</strong><br />\n";
echo "\t\t<table width=\"100\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "\t\t <tr>\n";
echo "\t\t <td width=\"". $info->getProgress() ."\" bgcolor=\"#FF0000\" align=\"center\">". $info->getProgress() ."%</td>\n";
echo "\t\t <td width=\"". ( 100 - $info->getProgress() ) ."\"bgcolor=\"#CC3300\"></td>\n";
echo "\t\t </tr>\n";
echo "\t\t</table>\n";
?>
en ik krijg deze fout:
Parse error: parse error in **** on line 230
Er mist een }. Zodra ik deze aan de laatste regel toevoeg, is de parse error verdwenen.