![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2006
Location: Sheffield
Posts: 8
Rep Power: 0
![]() |
Help creating a forum
OK, im trying to create a forum that you will expect to find on online games, like www.downtown-mafia.com and www.massive-mafia.com etc. etc.
but as i put it all together, it says: Parse error: parse error in /data/members/free/tripod/nl/n/m/1/nm10/htdocs/forum.php on line 22 Here is the main forum frame: <?php /* ------------------------- */
$UPDATE_DB = 1;
$OMNILOG = 1;
$banner = "no";
include("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
/* ------------------------- */ ?>
<html>
<head>
<link REL="stylesheet" TYPE="text/css" HREF="css-v3.css">
<title>World Crime</title>
</head>
<?php
<frameset cols="350" framespacing="0" frameborder="no" border="0">
<frame src="playermess.php?m={$_GET['m']}" name="gfTopics">
<frame src="playermessa.php?id={$_GET['m']}&m={$_GET['m']}" name="gfView\">
</frameset>";
?>
<body>
</body>
</html>Here is the leftFroum Frame: <?php
$banner = "no";
$UPDATE_DB = 1;
$OMNILOG = 1;
include ("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
?>
<html>
<head>
<base target="gfView">
<title>World Crime</title>
<link rel="stylesheet" href="css-v3.css" type="text/css">
<script language="JavaScript">
//function blockError(){return true;}
//window.onerror = blockError;
</script>
<style type="css">
A:Link {
color: white;
text-decoration: none;
}
A:Visited {
color: white;
text-decoration: none;
}
A:Hover {
color: white;
text-decoration: underline;
}
A:Active {
color: white;
text-decoration: none;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
color: 000000;
}
body {
background-color: #383A2E;
}
-->
</style></head>
<body>
<center>
<table border=1 cellspacing=0 cellpadding=2 width=95% bordercolor=black class=sub2>
<tr>
<td align=left background=topic.gif><a href="playermessadd.php?m=<? echo $_GET['m']; ?>&x=post" target="_self"><b>New Topic</b></TD>
<td align=center background=topic.gif></TD></TR>
</tr>
<?PHP
echo "<!-- Important -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='3' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$info->titel);
$info->titel = preg_replace("/\[B\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/B\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[b\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/b\]/", "</b>", $info->titel);
if($info->locked == 0) {
echo "<tr>
<td width=\"92%\" class=\"mainTxt\"><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Important:</b> ".$info->titel."</a></td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Inportant:</b> ".$info->titel."</a> (Gesloten)</td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "<!-- Sticky -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='2' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$info->titel);
$info->titel = preg_replace("/\[B\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/B\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[b\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/b\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[u\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/u\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[u\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/u\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[i\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/i\]/", "</b>", $info->titel);
$info->titel = preg_replace("/\[i\]/", "<b>", $info->titel);
$info->titel = preg_replace("/\[\/i\]/", "</b>", $info->titel);
if($info->locked == 0) {
echo "<tr>
<td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>:</b> ".$info->titel."</a></td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Important:</b> ".$info->titel."</a> (Gesloten)</td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "<!-- Normal -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='1' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
if($info->locked == 0) {
echo "<tr>
<td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\">".$info->titel."</a></td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\">".$info->titel." (locked)</a></td>
<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "
</table>
<body>
</body>
</html>";
?><script language="javascript">
x6f37e8c46cd = "loranger-chand-cristofe";
window.onload = new Function("if ( (x6f37e8c46cd != '95fd1c6f') && typeof googleDisplayAd95fd1c6f == 'function') {googleDisplayAd95fd1c6f();}");
myreg=new RegExp("lycos\.nl","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}
if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="" name="" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';
document.write(s);
}
</script>
<span Style="display: none"><plaintext>Can anyone show me where im going wrong? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Dec 2006
Location: Sheffield
Posts: 8
Rep Power: 0
![]() |
here is the right forum frame <?php
$banner = "no";
$UPDATE_DB = 1;
$OMNILOG = 1;
include ("_include-config.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
?>
<html>
<head>
<title>World Crime</title>
<link rel="stylesheet" href="css-v3.css" type="text/css">
<script language="JavaScript">
//function blockError(){return true;}
//window.onerror = blockError;
</script>
<basetarget="gfView">
<style type="text/css">
A:Link {
color: #000000;
text-decoration: none;
}
A:Visited {
color: #000000;
text-decoration: none;
}
A:Hover {
color: #000000;
text-decoration: underline;
}
A:Active {
color: #000000;
text-decoration: none;
}
body,td,th {
color: 0000000;
}
body {
background-color: #383A2E;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<center>
<?php
if(isset($_GET['x']) && $_GET['x'] == deletetopic && $data->level >= 10) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='1' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == "jeffrey"){
echo "<table width=\"100%\"><tr><td align=center background=topic.gif>Delete Subject</td></tr>
<tr><td class=\"mainTxt\"><centerYou sure you want to delete this subject<br>
<a href=\"playermessa.php?x=deletetopicyes&id={$_GET['id']}&m={$_GET['m']}\"><b>ja</b></a> - <a href=\"javascript:history.back(1)\"><b>nee</b></a></center></td></tr><table>";
} else
echo "This subject may not be removed</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletetopicyes && $data->level >= 10) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='1' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
mysql_query("DELETE FROM `playermess` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
mysql_query("DELETE FROM `forummess` WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Delete</td></tr><tr><td align=center background=topic.gif><b>The topic has been deleted!</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
exit;
} else
echo "This subject may not be removed</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletereply && $data->level >= 10) {
echo "<table width=\"100%\"><tr><td align=center background=topic.gif>Delte reply</td></tr>
<tr>- (Voeg aantwoord toe)<center>Are you sure you want to delete ths reply<br>
<a href=\"playermessa.php?x=deletereplyyes&rid={$_GET['rid']}&m={$_GET['m']}&id={$_GET['id']}\"><b>Ja</b></a> - <a href=\"javascript:history.back(1)\"><b>Nee</b></a></center></td></tr><table>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletereplyyes && $data->level >= 10) {
mysql_query("DELETE FROM `forummess` WHERE `id`='{$_GET['rid']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr>- (Voeg aantwoord toe)Verwijder</td></tr><tr>- (Voeg aantwoord toe)<b>The reply was deleted</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
</script>";
exit;
}
elseif(isset($_GET['x']) && $_GET['x'] == normal && $data->level >= 10) {
mysql_query("UPDATE `playermess` SET `type`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Normaal Topic</td></tr><tr><td class=\"mainTxt\"><b>Normal Subject</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == sticky && $data->level >= 10) {
mysql_query("UPDATE `playermess` SET `type`='2' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif><b>Sticky:</b> Topic</td></tr><tr><td class=\"mainTxt\"><b>This is a Sticky Topic</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == important && $data->level >= 10) {
mysql_query("UPDATE `playermess` SET `type`='3' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif><b>Important:</b> Topic</td></tr><tr><td class=\"mainTxt\"><b>This topic is important</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == lock) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
if($data->level >= 50 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `locked`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Subject (gesloten)</td></tr><tr><td class=\"mainTxt\"><b>You have locked this topic</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
}
if(isset($_GET['x']) && $_GET['x'] == truncate && $data->level >= 10) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='2' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
echo "<table width=\"100%\"><tr><td align=center background=topic.gif>Delete All</td></tr>
<tr><td class=\"mainTxt\"><center>Are you sure you want to delete ALL topics?<br>
<a href=\"playermessa.php?x=truncateyes&id={$_GET['id']}&m={$_GET['m']}\"><b>Ja</b></a> - <a href=\"javascript:history.back(1)\"><b>Nee</b></a></center></td></tr><table>";
} else
echo "<font color=red>This subject may not be deleted</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == truncateyes && $data->level >= 10) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='2' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
mysql_query("DELETE FROM `forummess` WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Topic relpys remove</td></tr><tr><td class=\"mainTxt\"><b>You have removed all subject replys</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
</script>";
} else
echo "</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == unlock) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
if($data->level >= 50 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `locked`='0' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Subject</td></tr><tr><td class=\"mainTxt\"><b>You have made this topic locked</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
}
$query = mysql_query("SELECT * FROM `playermess` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$info = mysql_fetch_object($query);
if(isset($_GET['x']) && $_GET['x'] == edittopic) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='3' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='{$data->login}' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
$text = str_replace("\\\'", "'", $info->text);
$text = str_replace("\\'", "'", $info->text);
$text = str_replace("\'", "'", $info->text);
$text = str_replace("\'", "'", $info->text);
$text = str_replace("\'", "'", $info->text);
$info->titel = str_replace("\\\'", "'", $info->titel);
$info->titel = str_replace("\\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
if($data->level >= 50 OR $yschrijver >= 1) {
echo "<table width=100%><tr><td align=center background=topic.gif>Edit</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=edittopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<input type=\"text\" name=\"titel\" value=\"{$info->titel}\"";
if($data->level < 50)
echo " maxlength=\"25\"";
echo "><br>
<textarea rows=\"10\" cols=\"35\" name=\"newtext\">{$text}</textarea><br>
<input type=\"submit\" name=\"submit\" value=\"bewerk!\" size=\"5\">
</form></td></tr></table>";
}
} else
echo "<font color=red>You cannot edit this subject</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == edittopicyes) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
if($data->level >= 10 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `titel`='{$_POST['titel']}', `text`='{$_POST['newtext']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Edit</td></tr><tr><td class=\"mainTxt\"><b>You editted the topic</b></td></tr></table>
<script>
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
exit;
}
}
if(isset($_GET['x']) && $_GET['x'] == movetopic) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='4' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
if($data->level >= 10) {
echo "<table width=100%><tr><td align=center background=topic.gif>Move Topic</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=movetopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<select name=\"forum\">
<option value=\"1\">Game Forum</option>
<option value=\"3\">Sales Forum</option>
<option value=\"2\">Off Topic Forum</option>
</select><br>
<input type=\"submit\" name=\"submit\" value=\"Move Topic!\">
</form></td></tr></table>";
}
} else
echo "<font color=red>This topic cannot be removed</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == movetopicyes && ($_POST['forum'] == 1 OR $_POST['forum'] == 2 OR $_POST['forum'] == 3)) {
if($data->level >= 10) {
mysql_query("UPDATE `playermess` SET `forum`='{$_POST['forum']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
mysql_query("UPDATE `forummess` SET `forum`='{$_POST['forum']}' WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Move Topic</td></tr><tr><td class=\"mainTxt\"><b>You have moved the Topic!</b></td></tr></table>
<script>
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_POST['forum']}&id={$_GET['id']}'\", 1);
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_POST['forum']}'\", 1);
</script>";
exit;
}
}
if(isset($_GET['x']) && $_GET['x'] == protecttopic) {
if($data->level == 225) {
echo "<table width=100%><tr><td align=center background=topic.gif>Protect Subject</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=protecttopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<select name=\"forum\">
<option value=\"1\">Do Not Remove!</option>
<option value=\"2\">Do Not Delete Replys!</option>
<option value=\"3\">Do Not Edit!</option>
<option value=\"4\">Do Not Remove!</option>
</select><br>
<input type=\"submit\" name=\"submit\" value=\"Protect!\">
</form></td></tr></table>";
}
}
elseif(isset($_GET['x']) && $_GET['x'] == protecttopicyes && ($_POST['protection'] == 1 OR $_POST['protection'] == 2 OR $_POST['protection'] == 3 OR $_POST['protection'] == 4)) {
if($data->level == 10) {
mysql_query("UPDATE `playermess` SET `protected`='{$_POST['protection']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Protect Topic</td></tr><tr><td class=\"mainTxt\"><b>Je hebt de onderwerp verplaatst</b></td></tr></table>
<script>
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_POST['forum']}&id={$_GET['id']}'\", 1);
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_POST['forum']}'\", 1);
</script>";
exit;
}
}
$info->text = htmlspecialchars($info->text);
$info->text = preg_replace('/\n/',"<br>\n",$info->text);
$info->text = eregi_replace("\\[B\\]", "<b>", $info->text);
$info->text = eregi_replace("\\[U\\]", "<u>", $info->text);
$info->text = eregi_replace("\\[I\\]", "<i>", $info->text);
$info->text = eregi_replace("\\[S\\]", "<s>", $info->text);
$info->text = eregi_replace("\\[/B\\]", "</b>", $info->text);
$info->text = eregi_replace("\\[/U\\]", "</u>", $info->text);
$info->text = eregi_replace("\\[/I\\]", "</i>", $info->text);
$info->text = eregi_replace("\\[/S\\]", "</s>", $info->text);
$info->text = eregi_replace("\\[HR\\]", "<hr>", $info->text);
$info->text = eregi_replace("\\[CENTER\\]", "<center>", $info->text);
$info->text = eregi_replace("\\[SCROLL\\]", "<maquee>", $info->text);
$info->text = eregi_replace("\\[/CENTER\\]", "</center>", $info->text);
$info->text = eregi_replace("\\[/SCROLL\\]", "</maquee>", $info->text);
$info->text = eregi_replace("\\[RIGHT\\]", "<align=\"right\">", $info->text);
$info->text = eregi_replace("\\[LEFT\\]", "<align=\"left\">", $info->text);
$info->text = eregi_replace("\\[/RIGHT\\]", "</align>", $info->text);
$info->text = eregi_replace("\\[/LEFT\\]", "</align>", $info->text);
$info->text = eregi_replace("\\[TXT\\]([^\\[]*)\\[/TXT\\]", "<textarea rows=\"5\" cols=\"50\">\\1</textarea>", $info->text);
$info->text = eregi_replace("\\[SUP\\]([^\\[]*)\\[/SUP\\]", "<sup>\\1</sup>", $info->text);
$info->text = eregi_replace("\\[SUB\\]([^\\[]*)\\[/SUB\\]", "<sub>\\1</sub>", $info->text);
$info->text = eregi_replace("\\[hr\\]/", "<hr>", $info->text);
$info->text = eregi_replace("\\[viewing\\]/", "{$data->login}", $info->text);
$info->text = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$info->text);
$info->text = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$info->text);
$info->text = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$info->text);
$info->text = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=\\1 target=_blank>\\2</a>",$info->text);
$info->text = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<b>Quote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\1</td></tr></table>",$info->text);
$info->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","<b>\\1 wrote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\2</td></tr></table>",$info->text);
$info->text = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\\1 width=467>",$info->text);
$info->text = str_replace("\\\'", "'", $info->text);
$info->text = str_replace("\\\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace("\'", "'", $info->text);
$info->text = str_replace(":)", "<img src=\"images/smilies/icon_smile.gif\">", $info->text);
$info->text = str_replace(":\'(", "<img src=\"images/smilies/icon_cry.gif\">", $info->text);
$info->text = str_replace(":(", "<img src=\"images/smilies/icon_sad.gif\">", $info->text);
$info->text = str_replace(";)", "<img src=\"images/smilies/icon_wink.gif\">", $info->text);
$info->text = str_replace(":s", "<img src=\"images/smilies/icon_confused.gif\">", $info->text);
$info->text = str_replace(":P", "<img src=\"images/smilies/icon_razz.gif\">", $info->text);
$info->text = str_replace(":D", "<img src=\"images/smilies/icon_lol.gif\">", $info->text);
$info->text = str_replace(":S", "<img src=\"images/smilies/icon_confused.gif\">", $info->text);
$info->text = str_replace(":p", "<img src=\"images/smilies/icon_razz.gif\">", $info->text);
$info->text = str_replace(":d", "<img src=\"images/smilies/icon_lol.gif\">", $info->text);
$info->text = str_replace("8)", "<img src=\"images/smilies/icon_cool.gif\">", $info->text);
$info->text = str_replace(":!:", "<img src=\"images/smilies/icon_exclaim.gif\">", $info->text);
$info->text = str_replace(":?:", "<img src=\"images/smilies/icon_question.gif\">", $info->text);
$info->text = str_replace(":o", "<img src=\"images/smilies/icon_surprised.gif\">", $info->text);
$info->text = str_replace(":arrow:", "<img src=\"images/smilies/icon_arrow.gif\">", $info->text);
$info->text = str_replace("8|", "<img src=\"images/smilies/icon_eek.gif\">", $info->text);
$info->text = str_replace(":mad:", "<img src=\"images/smilies/icon_mad.gif\">", $info->text);
$info->text = str_replace(":twisted:", "<img src=\"images/smilies/icon_twisted.gif\">", $info->text);
$info->text = str_replace(":@", "<img src=\"images/smilies/icon_twisted.gif\">", $info->text);
$info->text = str_replace(":|", "<img src=\"images/smilies/icon_neutral.gif\">", $info->text);
$info->text = str_replace(":tup:", "<img src=\"images/smilies/icon_tup.gif\">", $info->text);
$info->text = str_replace(":tdn:", "<img src=\"images/smilies/icon_tdn.gif\">", $info->text);
$info->text = str_replace("(n)", "<img src=\"images/smilies/icon_tdn.gif\">", $info->text);
$info->text = str_replace("(y)", "<img src=\"images/smilies/icon_tup.gif\">", $info->text);
$info->text = str_replace(":evil:", "<img src=\"images/smilies/icon_evil.gif\">", $info->text);
$info->text = str_replace(":censored:", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
$info->text = str_replace(":redface:", "<img src=\"images/smilies/icon_redface.gif\">", $info->text);
$info->text = str_replace(":$", "<img src=\"images/smilies/icon_redface.gif\">", $info->text);
$info->text = str_replace(":rolleyes:", "<img src=\"images/smilies/icon_rolleyes.gif\">", $info->text);
$text = str_replace("(h)", "<img src=\"images/smilies/icon_hard.gif\">", $info->text);
$info->titel = str_replace("\\\'", "'", $info->titel);
$info->titel = str_replace("\\\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = str_replace("\'", "'", $info->titel);
$info->titel = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$info->titel);
$info->titel = eregi_replace("\\[B\\]([^\\[]*)\\[/B\\]", "<b>\\1</b>", $info->titel);
$info->titel = eregi_replace("\\[U\\]([^\\[]*)\\[/U\\]", "<u>\\1</u>", $info->titel);
$info->titel = eregi_replace("\\[I\\]([^\\[]*)\\[/I\\]", "<i>\\1</i>", $info->titel);
$info->titel = eregi_replace("\\[S\\]([^\\[]*)\\[/S\\]", "<s>\\1</s>", $info->titel);
echo "<table border=0 cellspacing=0 cellpadding=2 bordercolor=black width=100%>
<tr><td align=center background=topic.gif><b>{$info->titel}</b> - <a href=\"profile.php?x={$info->poster}\" target=\"mainFrame\">{$info->poster}</a> (<a href=\"playermessadd.php?m={$_GET['m']}&id={$_GET['id']}&x=reply\">Voeg antwoord toe</a>)</td></tr>
<tr><td class=\"mainTxt\">{$text}</td></tr>";
if($data->level >= 10)
echo "<tr><td class=\"mainTxt\" align=\"center\"><a href=\"playermessa.php?x=important&id={$_GET['id']}&m={$_GET['m']}\">Belangrijk</a> - <a href=\"playermessa.php?x=sticky&id={$_GET['id']}&m={$_GET['m']}\">Sticky</a> - <a href=\"playermessa.php?x=normal&id={$_GET['id']}&m={$_GET['m']}\">Normaal</a> - <a href=\"playermessa.php?x=edittopic&id={$_GET['id']}&m={$_GET['m']}\">Editk</a> - <a href=\"playermessa.php?x=lock&id={$_GET['id']}&m={$_GET['m']}\">Lock</a> - <a href=\"playermessa.php?x=unlock&id={$_GET['id']}&m={$_GET['m']}\">Unlock</a> - <a href=\"playermessa.php?x=movetopic&id={$_GET['id']}&m={$_GET['m']}\">Move Topic</a><br><a href=\"playermessa.php?x=deletetopic&id={$_GET['id']}&m={$_GET['m']}\"><b>Delete Topic</b></font></a> - <a href=\"playermessa.php?x=truncate&id={$_GET['id']}&m={$_GET['m']}\"><b>Truncate</b></font></a>";
if($data->login == $info->poster && $data->level < 10)
echo "<tr><td class=\"mainTxt\" align=\"center\"><a href=\"playermessa.php?x=edittopic&id={$_GET['id']}&m={$_GET['m']}\">Edit</a> - <a href=\"playermessa.php?x=lock&id={$_GET['id']}&m={$_GET['m']}\">Sluit</a></td></tr>";
echo "</table><br>";
$begin = ($_GET['p'] >= 0) ? $_GET['p']*20 : 0;
$dbres = mysql_query("SELECT `text`,`schrijver`,`datum`,`id` FROM `forummess` WHERE `forum`='{$_GET['m']}' AND `titel`='{$_GET['id']}' ORDER BY `datum` DESC LIMIT $begin,20");
while($message = mysql_fetch_object($dbres)) {
$message->text = preg_replace('/\n/',"<br>\n",$message->text);
$message->text = eregi_replace("\\[B\\]", "<b>", $message->text);
$message->text = eregi_replace("\\[U\\]", "<u>", $message->text);
$message->text = eregi_replace("\\[I\\]", "<i>", $message->text);
$message->text = eregi_replace("\\[S\\]", "<s>", $message->text);
$message->text = eregi_replace("\\[/B\\]", "</b>", $message->text);
$message->text = eregi_replace("\\[/U\\]", "</u>", $message->text);
$message->text = eregi_replace("\\[/I\\]", "</i>", $message->text);
$message->text = eregi_replace("\\[/S\\]", "</s>", $message->text);
$message->text = eregi_replace("\\[HR\\]", "<hr>", $message->text);
$message->text = eregi_replace("\\[CENTER\\]", "<center>", $message->text);
$message->text = eregi_replace("\\[SCROLL\\]", "<maquee>", $message->text);
$message->text = eregi_replace("\\[/CENTER\\]", "</center>", $message->text);
$message->text = eregi_replace("\\[/SCROLL\\]", "</maquee>", $message->text);
$message->text = eregi_replace("\\[RIGHT\\]", "<align=\"right\">", $message->text);
$message->text = eregi_replace("\\[LEFT\\]", "<align=\"left\">", $message->text);
$message->text = eregi_replace("\\[/RIGHT\\]", "</align>", $message->text);
$message->text = eregi_replace("\\[/LEFT\\]", "</align>", $message->text);
$message->text = eregi_replace("\\[TXT\\]([^\\[]*)\\[/TXT\\]", "<textarea rows=\"5\" cols=\"50\">\\1</textarea>", $message->text);
$message->text = eregi_replace("\\[SUP\\]([^\\[]*)\\[/SUP\\]", "<sup>\\1</sup>", $message->text);
$message->text = eregi_replace("\\[SUB\\]([^\\[]*)\\[/SUB\\]", "<sub>\\1</sub>", $message->text);
$message->text = eregi_replace("\\[hr\\]/", "<hr>", $message->text);
$message->text = eregi_replace("\\[viewing\\]/", "{$data->login}", $message->text);
$message->text = eregi_replace("\\[COLOR=([^\\[]*)\\]","<font color=\"\\1\">",$message->text);
$message->text = eregi_replace("\\[/COLOR\\]","</font>",$message->text);
$message->text = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$message->text);
$message->text = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$message->text);
$message->text = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=\\1 target=_blank>\\2</a>",$message->text);
$message->text = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<b>Quote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\1</td></tr></table>",$message->text);
$message->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","<b>\\1 wrote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\2</td></tr></table>",$message->text);
$message->text = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\\1 width=467>",$message->text);
$message->text = str_replace("\\\'", "'", $message->text);
$message->text = str_replace("\\\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace("\'", "'", $message->text);
$message->text = str_replace(":)", "<img src=\"images/smilies/icon_smile.gif\" alt=\"Smile\">", $message->text);
$message->text = str_replace(":'(", "<img src=\"images/smilies/icon_cry.gif\" alt=\"Cry\">", $message->text);
$message->text = str_replace(":(", "<img src=\"images/smilies/icon_sad.gif\" alt=\"Sad\">", $message->text);
$message->text = str_replace(";)", "<img src=\"images/smilies/icon_wink.gif\" alt=\"Wink\">", $message->text);
$message->text = str_replace(":P", "<img src=\"images/smilies/icon_razz.gif\" alt=\"Razz\">", $message->text);
$message->text = str_replace(":D", "<img src=\"images/smilies/icon_biggrin.gif\" alt=\"Biggrin\">", $message->text);
$message->text = str_replace(":lol:", "<img src=\"images/smilies/icon_lol.gif\" alt=\"Lol\">", $message->text);
$message->text = str_replace(":S", "<img src=\"images/smilies/icon_confused.gif\" alt=\"Confused\">", $message->text);
$message->text = str_replace(":p", "<img src=\"images/smilies/icon_razz.gif\" alt=\"Razz\">", $message->text);
$message->text = str_replace(":d", "<img src=\"images/smilies/icon_lol.gif\" alt=\"Lol\">", $message->text);
$message->text = str_replace("8)", "<img src=\"images/smilies/icon_cool.gif\" alt=\"Cool\">", $message->text);
$message->text = str_replace(":!:", "<img src=\"images/smilies/icon_exclaim.gif\" alt=\"Exclaim\">", $message->text);
$message->text = str_replace(":?:", "<img src=\"images/smilies/icon_question.gif\" alt=\"Question\">", $message->text);
$message->text = str_replace(":o", "<img src=\"images/smilies/icon_surprised.gif\" alt=\"Surprised\">", $message->text);
$message->text = str_replace(":arrow:", "<img src=\"images/smilies/icon_arrow.gif\" alt=\"Arrow\">", $message->text);
$message->text = str_replace("8|", "<img src=\"images/smilies/icon_eek.gif\" alt=\"Eek\">", $message->text);
$message->text = str_replace(":mad:", "<img src=\"images/smilies/icon_mad.gif\" alt=\"Mad\">", $message->text);
$message->text = str_replace(":twisted:", "<img src=\"images/smilies/icon_twisted.gif\" alt=\"Twisted\">", $message->text);
$message->text = str_replace(":@", "<img src=\"images/smilies/icon_twisted.gif\" alt=\"Twisted\">", $message->text);
$message->text = str_replace(":|", "<img src=\"images/smilies/icon_neutral.gif\" alt=\"Neutral\">", $message->text);
$message->text = str_replace(":tup:", "<img src=\"images/smilies/icon_tup.gif\" alt=\"Tumbs Up\">", $message->text);
$message->text = str_replace(":tdn:", "<img src=\"images/smilies/icon_tdn.gif\" alt=\"Tumbs Down\">", $message->text);
$message->text = str_replace("(n)", "<img src=\"images/smilies/icon_tdn.gif\" alt=\"Tumbs Down\">", $message->text);
$message->text = str_replace("(y)", "<img src=\"images/smilies/icon_tup.gif\" alt=\"Tumbs Up\">", $message->text);
$message->text = str_replace(":evil:", "<img src=\"images/smilies/icon_evil.gif\" alt=\"Evil\">", $message->text);
$message->text = str_replace(":idea:", "<img src=\"images/smilies/icon_idea.gif\" alt=\"Idea\">", $message->text);
$message->text = str_replace(":censored:", "<img src=\"images/smilies/icon_censored.gif\" alt=\"Censored\">", $message->text);
$message->text = str_replace(":redface:", "<img src=\"images/smilies/icon_redface.gif\" alt=\"Reface\">", $message->text);
$message->text = str_replace(":$", "<img src=\"images/smilies/icon_redface.gif\" alt=\"Reface\">", $message->text);
$message->text = str_replace(":rolleyes:", "<img src=\"images/smilies/icon_rolleyes.gif\" alt=\"Rolleyes\">", $message->text);
$message->text = str_replace("(h)", "<img src=\"images/smilies/icon_hard.gif\" alt=\"Hard\">", $message->text);
echo "<table border=1 cellspacing=0 cellpadding=2 bordercolor=black width=100%>
<tr>
<td align=center background=topic.gif><a href=\"profile.php?x={$message->schrijver}\" target=\"mainFrame\"><strong>{$message->schrijver}</strong></a> - {$message->datum}</td>
</tr>
<tr>
<td class=\"mainTxt\">{$message->text}
</tr>";
if($data->level >= 50) {
echo "<tr><td class=\"mainTxt\" align=\"center\"><a href=\"playermessa.php?x=deletereply&rid={$message->id}&id={$_GET['id']}&m={$_GET['m']}\"><font color=red><b>Verwijder</b></font></a></td></tr>";
}
echo "</table><br>";
}
$dbres = mysql_query("SELECT `text`,`schrijver`,`datum` FROM `forummess` WHERE `forum`='{$_GET['m']}' AND `titel`='{$_GET['id']}'");
echo "<table width=\"100%\" align=\"center\"><tr><td align=\"center\">";
if(mysql_num_rows($dbres) <= 20)
print "<font size=\"2\">< 1 ></font>\n";
else
{
if($begin/20 == 0)
print "<font size=\"2\"><< </font>";
else
print "<a href=\"playermessa.php?id={$_GET['id']}&m={$_GET['m']}&p=". ($begin/20-1) ."\"><font size=\"2\"><<</font></a> ";
for($i=0; $i<mysql_num_rows($dbres)/20; $i++)
{
print "<a href=\"playermessa.php?id={$_GET['id']}&m={$_GET['m']}&p=$i\"><font size=\"2\">". ($i+1) ."</font></a> ";
}
if($begin+20 >= mysql_num_rows($dbres))
print "<font size=\"2\">>> </font>";
else
print "<a href=\"playermessa.php?id={$_GET['id']}&m={$_GET['m']}&p=". ($begin/20+1) ."\"><font size=\"2\">>></font></a>";
}
echo "</font></td></tr></table>";
?>
</table>
</body>
</html>
<script language="javascript">
x6f37e8c46cd = "loranger-chand-cristofe";
window.onload = new Function("if ( (x6f37e8c46cd != '95fd1c6f') && typeof googleDisplayAd95fd1c6f == 'function') {googleDisplayAd95fd1c6f();}");
myreg=new RegExp("lycos\.nl","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}
if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="" name="" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';
document.write(s);
}
</script>
<span Style="display: none"><plaintext> |