level < 10 && $_GET['m'] > 3 OR $_GET['m'] <= 0) { echo "Ongeldig forum id"; exit; } if($_GET['m'] <= 0 OR $_GET['m'] > 3 && $_GET['m'] != 278) { echo "Ongeldig forum id"; exit; } 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 "
Verwijder onderwerp
Weet u cker dat u dit onderwerp wilt verwijderen
ja - nee
"; } else echo "Dit onderwerp mag niet worden verwijderd"; } 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 "
Verwijder
The topic has been deleted!
"; exit; } else echo "Dit onderwerp mag niet worden verwijderd"; } elseif(isset($_GET['x']) && $_GET['x'] == deletereply && $data->level >= 10) { echo "- (Voeg aantwoord toe)
weet u zeker dat u dit onderwerp wilt verwijderen
Ja - Nee
Verwijder antwoord
"; } elseif(isset($_GET['x']) && $_GET['x'] == deletereplyyes && $data->level >= 10) { mysql_query("DELETE FROM `forummess` WHERE `id`='{$_GET['rid']}' AND `forum`='{$_GET['m']}'"); echo "
- (Voeg aantwoord toe)Verwijder- (Voeg aantwoord toe)Dat antwoord is verwijderd
"; 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 "
Normaal Topic
Dit is een normaal onderwerp
"; } 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 "
Sticky: Topic
Dit is nu een sticky onderwerp
"; } 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 "
Belangrijk: Topic
Dit onderwerp is nu belangrijk
"; } 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 "
onderwerp (gesloten)
Jij hebt dit topix gesloten
"; } } 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 "
alles verwijderen
Weet je cker dat u alle onderwerpen wilt verwijderen?
Ja - Nee
"; } else echo "Dit onderwerp mag niet worden geleegd"; } 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 "
topic reacties verwijderen
Je hebt alle reacties van dit onderwerp verwijderd
"; } else echo ""; } 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 "
Onderwerp
je hebt deze onderwerp weer toegangkelijk gemaakt
"; } } $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 "
Bewerk onderwerp
titel}\""; if($data->level < 50) echo " maxlength=\"25\""; echo ">

"; } } else echo "Dit onderwerp mag niet worden gewijzigd"; } 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 "
Bewerk onderwerp
YJe hebt het onderwerp bewerkt
"; 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 "
Move Topic

"; } } else echo "je mag dit onderwerp niet verplaatsen"; } 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 "
Move Topic
You have moved the Topic!
"; exit; } } if(isset($_GET['x']) && $_GET['x'] == protecttopic) { if($data->level == 225) { echo "
Beveiligde onderwerpen

"; } } 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 "
Verplaats onderwerp
Je hebt de onderwerp verplaatst
"; exit; } } $info->text = htmlspecialchars($info->text); $info->text = preg_replace('/\n/',"
\n",$info->text); $info->text = eregi_replace("\\[B\\]", "", $info->text); $info->text = eregi_replace("\\[U\\]", "", $info->text); $info->text = eregi_replace("\\[I\\]", "", $info->text); $info->text = eregi_replace("\\[S\\]", "", $info->text); $info->text = eregi_replace("\\[/B\\]", "", $info->text); $info->text = eregi_replace("\\[/U\\]", "", $info->text); $info->text = eregi_replace("\\[/I\\]", "", $info->text); $info->text = eregi_replace("\\[/S\\]", "", $info->text); $info->text = eregi_replace("\\[HR\\]", "
", $info->text); $info->text = eregi_replace("\\[CENTER\\]", "
", $info->text); $info->text = eregi_replace("\\[SCROLL\\]", "", $info->text); $info->text = eregi_replace("\\[/CENTER\\]", "
", $info->text); $info->text = eregi_replace("\\[/SCROLL\\]", "", $info->text); $info->text = eregi_replace("\\[RIGHT\\]", "", $info->text); $info->text = eregi_replace("\\[LEFT\\]", "", $info->text); $info->text = eregi_replace("\\[/RIGHT\\]", "", $info->text); $info->text = eregi_replace("\\[/LEFT\\]", "", $info->text); $info->text = eregi_replace("\\[TXT\\]([^\\[]*)\\[/TXT\\]", "", $info->text); $info->text = eregi_replace("\\[SUP\\]([^\\[]*)\\[/SUP\\]", "\\1", $info->text); $info->text = eregi_replace("\\[SUB\\]([^\\[]*)\\[/SUB\\]", "\\1", $info->text); $info->text = eregi_replace("\\[hr\\]/", "
", $info->text); $info->text = eregi_replace("\\[viewing\\]/", "{$data->login}", $info->text); $info->text = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","\\2",$info->text); $info->text = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","\\2",$info->text); $info->text = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","

\\2

",$info->text); $info->text = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","\\2",$info->text); $info->text = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","Quote:
\\1
",$info->text); $info->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","\\1 wrote:
\\2
",$info->text); $info->text = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","",$info->text); $info->text = eregi_replace("kut", "", $info->text); $info->text = eregi_replace("kloten", "", $info->text); $info->text = eregi_replace("pik", "", $info->text); $info->text = eregi_replace("penis", "", $info->text); $info->text = eregi_replace("vagina", "", $info->text); $info->text = eregi_replace("lul", "", $info->text); $info->text = eregi_replace("kanker", "", $info->text); $info->text = eregi_replace("cancer", "", $info->text); $info->text = eregi_replace("leier", "", $info->text); $info->text = eregi_replace("fuck", "", $info->text); $info->text = eregi_replace("f[b][/b]uck", "", $info->text); $info->text = eregi_replace("fu[b][/b]ck", "", $info->text); $info->text = eregi_replace("fuc[b][/b]k", "", $info->text); $info->text = eregi_replace("neuk", "", $info->text); $info->text = eregi_replace("anaal", "", $info->text); $info->text = eregi_replace("gangsta-world", "", $info->text); $info->text = eregi_replace("bootleggers", "", $info->text); $info->text = eregi_replace("mobstar", "", $info->text); $info->text = eregi_replace("omerta", "", $info->text); $info->text = eregi_replace("gangsta-world", "", $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(":)", "", $info->text); $info->text = str_replace(":\'(", "", $info->text); $info->text = str_replace(":(", "", $info->text); $info->text = str_replace(";)", "", $info->text); $info->text = str_replace(":s", "", $info->text); $info->text = str_replace(":P", "", $info->text); $info->text = str_replace(":D", "", $info->text); $info->text = str_replace(":S", "", $info->text); $info->text = str_replace(":p", "", $info->text); $info->text = str_replace(":d", "", $info->text); $info->text = str_replace("8)", "", $info->text); $info->text = str_replace(":!:", "", $info->text); $info->text = str_replace(":?:", "", $info->text); $info->text = str_replace(":o", "", $info->text); $info->text = str_replace(":arrow:", "", $info->text); $info->text = str_replace("8|", "", $info->text); $info->text = str_replace(":mad:", "", $info->text); $info->text = str_replace(":twisted:", "", $info->text); $info->text = str_replace(":@", "", $info->text); $info->text = str_replace(":|", "", $info->text); $info->text = str_replace(":tup:", "", $info->text); $info->text = str_replace(":tdn:", "", $info->text); $info->text = str_replace("(n)", "", $info->text); $info->text = str_replace("(y)", "", $info->text); $info->text = str_replace(":evil:", "", $info->text); $info->text = str_replace(":censored:", "", $info->text); $info->text = str_replace(":redface:", "", $info->text); $info->text = str_replace(":$", "", $info->text); $info->text = str_replace(":rolleyes:", "", $info->text); $text = str_replace("(h)", "", $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\\]","\\2",$info->titel); $info->titel = eregi_replace("\\[B\\]([^\\[]*)\\[/B\\]", "\\1", $info->titel); $info->titel = eregi_replace("\\[U\\]([^\\[]*)\\[/U\\]", "\\1", $info->titel); $info->titel = eregi_replace("\\[I\\]([^\\[]*)\\[/I\\]", "\\1", $info->titel); $info->titel = eregi_replace("\\[S\\]([^\\[]*)\\[/S\\]", "\\1", $info->titel); echo ""; if($data->level >= 10) echo ""; echo "
{$info->titel} - poster}\" target=\"mainFrame\">{$info->poster} (Voeg antwoord toe)
{$text}
Belangrijk - Sticky - Normaal - Bewerk - Sluiten - openen - onderwerp verplaatsen
Verwijderen - "; if($data->login == $info->poster && $data->level < 10) echo "
Bewerk - Sluit

"; $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/',"
\n",$message->text); $message->text = eregi_replace("\\[B\\]", "", $message->text); $message->text = eregi_replace("\\[U\\]", "", $message->text); $message->text = eregi_replace("\\[I\\]", "", $message->text); $message->text = eregi_replace("\\[S\\]", "", $message->text); $message->text = eregi_replace("\\[/B\\]", "", $message->text); $message->text = eregi_replace("\\[/U\\]", "", $message->text); $message->text = eregi_replace("\\[/I\\]", "", $message->text); $message->text = eregi_replace("\\[/S\\]", "", $message->text); $message->text = eregi_replace("\\[HR\\]", "
", $message->text); $message->text = eregi_replace("\\[CENTER\\]", "
", $message->text); $message->text = eregi_replace("\\[SCROLL\\]", "", $message->text); $message->text = eregi_replace("\\[/CENTER\\]", "
", $message->text); $message->text = eregi_replace("\\[/SCROLL\\]", "", $message->text); $message->text = eregi_replace("\\[RIGHT\\]", "", $message->text); $message->text = eregi_replace("\\[LEFT\\]", "", $message->text); $message->text = eregi_replace("\\[/RIGHT\\]", "", $message->text); $message->text = eregi_replace("\\[/LEFT\\]", "", $message->text); $message->text = eregi_replace("\\[TXT\\]([^\\[]*)\\[/TXT\\]", "", $message->text); $message->text = eregi_replace("\\[SUP\\]([^\\[]*)\\[/SUP\\]", "\\1", $message->text); $message->text = eregi_replace("\\[SUB\\]([^\\[]*)\\[/SUB\\]", "\\1", $message->text); $message->text = eregi_replace("\\[hr\\]/", "
", $message->text); $message->text = eregi_replace("\\[viewing\\]/", "{$data->login}", $message->text); $message->text = eregi_replace("\\[COLOR=([^\\[]*)\\]","",$message->text); $message->text = eregi_replace("\\[/COLOR\\]","",$message->text); $message->text = eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","\\2",$message->text); $message->text = eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","

\\2

",$message->text); $message->text = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","\\2",$message->text); $message->text = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","Quote:
\\1
",$message->text); $message->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","\\1 wrote:
\\2
",$message->text); $message->text = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","",$message->text); $message->text = eregi_replace("kut", "", $message->text); $message->text = eregi_replace("klote", "", $message->text); $message->text = eregi_replace("pik", "", $message->text); $message->text = eregi_replace("penis", "", $message->text); $message->text = eregi_replace("vagina", "", $message->text); $message->text = eregi_replace("lul", "", $message->text); $message->text = eregi_replace("kanker", "", $message->text); $message->text = eregi_replace("cancer", "", $message->text); $message->text = eregi_replace("leier", "", $message->text); $message->text = eregi_replace("fuck", "", $message->text); $message->text = eregi_replace("f[b][/b]uck", "", $message->text); $message->text = eregi_replace("fu[b][/b]ck", "", $message->text); $message->text = eregi_replace("fuc[b][/b]k", "", $message->text); $message->text = eregi_replace("neuk", "", $message->text); $message->text = eregi_replace("anaal", "", $message->text); $message->text = eregi_replace("gangsta-world", "", $message->text); $message->text = eregi_replace("bootleggers", "", $message->text); $message->text = eregi_replace("mobstar", "", $message->text); $message->text = eregi_replace("omerta", "", $message->text); $message->text = eregi_replace("barafranca", "", $message->text); $message->text = eregi_replace("killcrime", "", $message->text); $message->text = eregi_replace("gangsta-world", "", $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(":)", "\"Smile\"", $message->text); $message->text = str_replace(":'(", "\"Cry\"", $message->text); $message->text = str_replace(":(", "\"Sad\"", $message->text); $message->text = str_replace(";)", "\"Wink\"", $message->text); $message->text = str_replace(":P", "\"Razz\"", $message->text); $message->text = str_replace(":D", "\"Biggrin\"", $message->text); $message->text = str_replace(":lol:", "\"Lol\"", $message->text); $message->text = str_replace(":S", "\"Confused\"", $message->text); $message->text = str_replace(":p", "\"Razz\"", $message->text); $message->text = str_replace(":d", "\"Lol\"", $message->text); $message->text = str_replace("8)", "\"Cool\"", $message->text); $message->text = str_replace(":!:", "\"Exclaim\"", $message->text); $message->text = str_replace(":?:", "\"Question\"", $message->text); $message->text = str_replace(":o", "\"Surprised\"", $message->text); $message->text = str_replace(":arrow:", "\"Arrow\"", $message->text); $message->text = str_replace("8|", "\"Eek\"", $message->text); $message->text = str_replace(":mad:", "\"Mad\"", $message->text); $message->text = str_replace(":twisted:", "\"Twisted\"", $message->text); $message->text = str_replace(":@", "\"Twisted\"", $message->text); $message->text = str_replace(":|", "\"Neutral\"", $message->text); $message->text = str_replace(":tup:", "\"Tumbs", $message->text); $message->text = str_replace(":tdn:", "\"Tumbs", $message->text); $message->text = str_replace("(n)", "\"Tumbs", $message->text); $message->text = str_replace("(y)", "\"Tumbs", $message->text); $message->text = str_replace(":evil:", "\"Evil\"", $message->text); $message->text = str_replace(":idea:", "\"Idea\"", $message->text); $message->text = str_replace(":censored:", "\"Censored\"", $message->text); $message->text = str_replace(":redface:", "\"Reface\"", $message->text); $message->text = str_replace(":$", "\"Reface\"", $message->text); $message->text = str_replace(":rolleyes:", "\"Rolleyes\"", $message->text); $message->text = str_replace("(h)", "\"Hard\"", $message->text); echo ""; if($data->level >= 50) { echo ""; } echo "
schrijver}\" target=\"mainFrame\">{$message->schrijver} - {$message->datum}
{$message->text}
id}&id={$_GET['id']}&m={$_GET['m']}\">Verwijder

"; } $dbres = mysql_query("SELECT `text`,`schrijver`,`datum` FROM `forummess` WHERE `forum`='{$_GET['m']}' AND `titel`='{$_GET['id']}'"); echo "
"; if(mysql_num_rows($dbres) <= 20) print "< 1 >\n"; else { if($begin/20 == 0) print "<< "; else print "<< "; for($i=0; $i". ($i+1) ." "; } if($begin+20 >= mysql_num_rows($dbres)) print ">> "; else print ">>"; } echo "
"; ?>