mods == "") { $mods = "Geen"; } else { $mods = $sub->mods; } if($data->forumstatus == "gwsp2") { } elseif($data->forumstatus == "gwsp1") { } else { if($_GET['sub'] == 12 && $data->type != 1) { print "
Forum
Dit forum is alleen voor gangsters.
\n"; exit; } if($_GET['sub'] == 13 && $data->type != 2) { print "
Forum
Dit forum is alleen voor terroristen.
\n"; exit; } if($_GET['sub'] == 14 && $data->type != 3 ) { print "
Forum
Dit forum is alleen voor agenten.
\n"; exit; } } print "
Forum
\n"; print "
Moderator(s): $mods
\n"; $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `subid`={$_GET['sub']} ORDER BY `date` DESC"); while($forum = mysql_fetch_object($query)) { $forum->title = eregi_replace("kanker", "", $forum->title ); $forum->title = eregi_replace("kut", "", $forum->title ); $forum->title = eregi_replace("kloten", "", $forum->title ); $forum->title = eregi_replace("pik", "", $forum->title ); $forum->title = eregi_replace("penis", "", $forum->title ); $forum->title = eregi_replace("vagina", "", $forum->title ); $forum->title = eregi_replace("lul", "", $forum->title ); $forum->title = eregi_replace("kanker", "", $forum->title ); $forum->title = eregi_replace("cancer", "", $forum->title ); $forum->title = eregi_replace("leier", "", $forum->title ); $forum->title = eregi_replace("fuck", "", $forum->title ); $forum->title = eregi_replace("f[b][/b]uck", "", $forum->title ); $forum->title = eregi_replace("fu[b][/b]ck", "", $forum->title ); $forum->title = eregi_replace("fuc[b][/b]k", "", $forum->title ); $forum->title = eregi_replace("neuk", "", $forum->title ); $forum->title = eregi_replace("anaal", "", $forum->title ); if($forum->slotje == 0) { $image = "opentopic.gif"; } else { $image = "closed.gif"; } if($forum->datum == "") { $forum->datum = "Geen"; } if($forum->title == "") { $forum->title = "Geen"; } print " \n"; } print "
 TopicDoorReactiesLaatste reactie
id}\">id}\">$forum->titlelogin}\">$forum->login$forum->replys$forum->datum
\n"; } elseif($_GET['topic']) { if(isset($_POST['add'])) { $id = $_GET['topic']; $bericht = $_POST['message']; $datum = date("d-m-Y H:i"); $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['topic']}"); $lol = mysql_fetch_object($query); print "
Forum
Je bericht is geplaatst.

Terug
\n"; mysql_query("INSERT INTO `[foum_replys]`(topicid,subid,datum,login,title,text,date) values($id,'{$lol->subid}','$datum','$data->login','RE:','$bericht',NOW())") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[forum_topics]` SET `replys`=`replys`+1,`datum`='$datum',`date1`=NOW() WHERE `id`={$_GET['topic']}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`+1 WHERE `id`={$lol->subid}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`+1 WHERE `login`='{$data->login}'") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['topic']}"); $topic = mysql_fetch_object($query); $user_query2 = mysql_query("SELECT UNIX_TIMESTAMP(`online`) AS `online`,`forumstatus`,`login`,`forumposts`,`avatar` FROM `[users]` WHERE `login`='{$topic->login}'"); $user2 = mysql_fetch_object($user_query2); if($user2->forumstatus == "gwsp1") { $status = "Moderator"; } elseif($user2->forumstatus == "gwsp2") { $status = "Webmaster"; } elseif($user2->forumposts <= 50) { $status = "Forum Beginner"; } elseif($user2->forumposts <= 150) { $status = "Forum Freak"; } elseif($user2->forumposts > 150) { $status = "Forum God"; } elseif($user2->forumposts > 750) { $status = "Forum Piraat"; } else { $status = "Normaal"; } if(time() - $user2->online < 300) { $online2 = " Online"; } else { $online2 = " Offline"; } $topic->text = htmlspecialchars($topic->text); $topic->text = nl2br($topic->text); $topic->text = str_replace("[b]", "",$topic->text); $topic->text = str_replace("[/b]", "",$topic->text); $topic->text = str_replace("[i]", "",$topic->text); $topic->text = str_replace("[/i]", "",$topic->text); $topic->text = str_replace("[u]", "",$topic->text); $topic->text = str_replace("[/u]", "",$topic->text); $topic->text = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","\\2",$topic->text); $topic->text = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "\\2",$topic->text); $topic->text = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","\\2",$topic->text); $topic->text = eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$topic->text); $topic->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","
Quote:

\\1 schreef:
\\2

",$topic->text); $topic->text = eregi_replace("\\[quote]([^\\[]*)\\[/quote\\]","
Quote:

\\1

",$topic->text); $topic->text = str_replace("(h)", "",$topic->text); $topic->text = str_replace("(H)", "",$topic->text); $topic->text = str_replace(":$", "",$topic->text); $topic->text = str_replace(":(", "",$topic->text); $topic->text = str_replace("(a)", "",$topic->text); $topic->text = str_replace("(A)", "",$topic->text); $topic->text = str_replace("(k)", "",$topic->text); $topic->text = str_replace("(K)", "",$topic->text); $topic->text = str_replace(":D", "",$topic->text); $topic->text = str_replace(":d", "",$topic->text); $topic->text = str_replace("(m)", "",$topic->text); $topic->text = str_replace("(M)", "",$topic->text); $topic->text = str_replace(":#", "",$topic->text); $topic->text = str_replace(":)", "",$topic->text); $topic->text = str_replace(":0", "",$topic->text); $topic->text = str_replace(":o", "",$topic->text); $topic->text = str_replace(":O", "",$topic->text); $topic->text = str_replace(":p", "",$topic->text); $topic->text = str_replace(":P", "",$topic->text); $topic->text = str_replace(";)", "",$topic->text); $topic->text = str_replace(":@", "",$topic->text); $topic->text = eregi_replace("kut", "", $topic->text ); $topic->text = eregi_replace("kloten", "", $topic->text ); $topic->text = eregi_replace("pik", "", $topic->text ); $topic->text = eregi_replace("penis", "", $topic->text ); $topic->text = eregi_replace("vagina", "", $topic->text ); $topic->text = eregi_replace("lul", "", $topic->text ); $topic->text = eregi_replace("kanker", "", $topic->text ); $topic->text = eregi_replace("cancer", "", $topic->text ); $topic->text = eregi_replace("leier", "", $topic->text ); $topic->text = eregi_replace("fuck", "", $topic->text ); $topic->text = eregi_replace("f[b][/b]uck", "", $topic->text ); $topic->text = eregi_replace("fu[b][/b]ck", "", $topic->text ); $topic->text = eregi_replace("fuc[b][/b]k", "", $topic->text ); $topic->text = eregi_replace("neuk", "", $topic->text ); $topic->text = eregi_replace("anaal", "", $topic->text ); $topic->text = str_replace("\\\'", "'", $topic->text); $topic->text = str_replace("\\\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\'", "'", $topic->text); $topic->text = str_replace("\r'", "'", $topic->text); $topic->text = str_replace("\n'", "'", $topic->text); print "
Forum
\n"; } else { print "
\n"; if($data->login == $topic->login) { print "
login}\">$topic->login
$status

avatar}\" width=\"100\" height=\"100\">

$online2
Berichten: $user2->forumposts
$topic->text
$topic->datum1id}\">Bewerken
$topic->datum1 
\n"; } $query2 = mysql_query("SELECT * FROM `[foum_replys]` WHERE `topicid`={$_GET['topic']} AND `del`=0 ORDER BY `date` ASC LIMIT $begin,10"); while($forum = mysql_fetch_object($query2)) { $user_query = mysql_query("SELECT UNIX_TIMESTAMP(`online`) AS `online`,`forumstatus`,`login`,`forumposts`,`avatar` FROM `[users]` WHERE `login`='{$forum->login}'"); $user = mysql_fetch_object($user_query); $forum->text = htmlspecialchars($forum->text); $forum->text = nl2br($forum->text); $forum->text = str_replace("[b]", "",$forum->text); $forum->text = str_replace("[/b]", "",$forum->text); $forum->text = str_replace("[i]", "",$forum->text); $forum->text = str_replace("[/i]", "",$forum->text); $forum->text = str_replace("[u]", "",$forum->text); $forum->text = str_replace("[/u]", "",$forum->text); $forum->text = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","\\2",$forum->text); $forum->text = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "\\2",$forum->text); $forum->text = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","\\2",$forum->text); $forum->text = eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$forum->text); $forum->text = eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","
Quote:

\\1 schreef:
\\2

",$forum->text); $forum->text = eregi_replace("\\[quote]([^\\[]*)\\[/quote\\]","
Quote:

\\1

",$forum->text); $forum->text = str_replace("(h)", "",$forum->text); $forum->text = str_replace("(H)", "",$forum->text); $forum->text = str_replace(":$", "",$forum->text); $forum->text = str_replace(":(", "",$forum->text); $forum->text = str_replace("(a)", "",$forum->text); $forum->text = str_replace("(A)", "",$forum->text); $forum->text = str_replace("(k)", "",$forum->text); $forum->text = str_replace("(K)", "",$forum->text); $forum->text = str_replace(":D", "",$forum->text); $forum->text = str_replace(":d", "",$forum->text); $forum->text = str_replace("(m)", "",$forum->text); $forum->text = str_replace("(M)", "",$forum->text); $forum->text = str_replace(":#", "",$forum->text); $forum->text = str_replace(":)", "",$forum->text); $forum->text = str_replace(":0", "",$forum->text); $forum->text = str_replace(":o", "",$forum->text); $forum->text = str_replace(":O", "",$forum->text); $forum->text = str_replace(":p", "",$forum->text); $forum->text = str_replace(":P", "",$forum->text); $forum->text = str_replace(";)", "",$forum->text); $forum->text = str_replace(":@", "",$forum->text); $forum->text = eregi_replace("kut", "", $forum->text ); $forum->text = eregi_replace("kloten", "", $forum->text ); $forum->text = eregi_replace("pik", "", $forum->text ); $forum->text = eregi_replace("penis", "", $forum->text ); $forum->text = eregi_replace("vagina", "", $forum->text ); $forum->text = eregi_replace("lul", "", $forum->text ); $forum->text = eregi_replace("kanker", "", $forum->text ); $forum->text = eregi_replace("cancer", "", $forum->text ); $forum->text = eregi_replace("leier", "", $forum->text ); $forum->text = eregi_replace("fuck", "", $forum->text ); $forum->text = eregi_replace("f[b][/b]uck", "", $forum->text ); $forum->text = eregi_replace("fu[b][/b]ck", "", $forum->text ); $forum->text = eregi_replace("fuc[b][/b]k", "", $forum->text ); $forum->text = eregi_replace("neuk", "", $forum->text ); $forum->text = eregi_replace("anaal", "", $forum->text ); $forum->text = str_replace("\\\'", "'", $forum->text); $forum->text = str_replace("\\\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\'", "'", $forum->text); $forum->text = str_replace("\r'", "'", $forum->text); $forum->text = str_replace("\n'", "'", $forum->text); $forum->text = str_replace("\r'", "'", $forum->text); $forum->text = str_replace("\r\n\r\n\r\n'", "'", $forum->text); $forum->text = str_replace("\r\n\r\n'", "'", $forum->text); if($user->forumstatus == "gwsp1") { $status = "Moderator"; } elseif($user->forumstatus == "gwsp2") { $status = "Webmaster"; } elseif($user->forumposts <= 50) { $status = "Forum Beginner"; } elseif($user->forumposts <= 150) { $status = "Forum Freak"; } elseif($user->forumposts > 150) { $status = "Forum God"; } elseif($user->forumposts > 750) { $status = "Forum Piraat"; } else { $status = "Normaal"; } if(time() - $user->online < 300) { $online = " Online"; } else { $online = " Offline"; } print " \n"; if($data->forumstatus == "gwsp1" || $data->forumstatus == "gwsp2") { print "
login}\">$forum->login
$status

avatar}\" width=\"100\" height=\"100\">

$online
Berichten: $user->forumposts
$forum->text
$forum->datumid}\">Verwijderen | id}\">Bewerken | id}"e={$forum->id}\">
\n"; } elseif($data->login == $forum->login) { print " $forum->datumid}\">Bewerken\n"; } else { print " $forum->datumid}"e={$forum->id}\">Quote\n"; } } print " Pagina: \n"; $dbres = mysql_query("SELECT * FROM `[foum_replys]` WHERE `topicid`={$_GET['topic']} AND `del`=0"); $sub_query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['topic']}"); $sub = mysql_fetch_object($sub_query); print ""; for($i=0; $i". ($i+1) ." "; } echo "Forumkeuze | subid\">Terug naar forum"; if($topic->slotje == 1) { print "  Dit Onderwerp is gesloten.\n"; } elseif($topic->slotje == 0 && $data->forumstatus == "gwsp1") { print "  Reageren

 

id}\">\n"; } elseif($topic->slotje == 0 && $data->forumstatus == "gwsp2") { print "  Reageren

 

id}\">\n"; } else { print "  Reageren

 
\n"; } } } elseif($_GET['slotje']) { if($data->forumstatus == "gwsp1" || $data->forumstatus == "gwsp2") { mysql_query("UPDATE `[forum_topics]` SET `slotje`=1 WHERE `id`={$_GET['slotje']}"); print "
Forum
Je hebt een slotje geplaatst.

Terug
\n"; } } elseif($_GET['delreply']) { if($data->forumstatus == "gwsp1" || $data->forumstatus == "gwsp2") { $query = mysql_query("SELECT * FROM `[foum_replys]` WHERE `id`={$_GET['delreply']}"); $reply = mysql_fetch_object($query); $query2 = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$reply->topicid}"); $topic = mysql_fetch_object($query2); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`-1 WHERE `login`='{$reply->login}'"); mysql_query("UPDATE `[foum_replys]` SET `del`=1 WHERE `id`={$_GET['delreply']}"); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`-1 WHERE `id`={$topic->subid}"); mysql_query("UPDATE `[forum_topics]` SET `replys`=`replys`-1 WHERE `id`={$topic->id}"); print "
Forum
Bericht is succesvol verwijdert.
\n"; } } elseif($_GET['verplaats']) { if($data->forumstatus == "gwsp1" || $data->forumstatus == "gwsp2") { $topic_query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['verplaats']}"); $topic = mysql_fetch_object($topic_query); $sub_query = mysql_query("SELECT * FROM `[forum_sub]` ORDER BY `area` ASC"); if(isset($_POST['verplaats'])) { mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`-{$topic->replys},`topics`=`topics`-1 WHERE `id`={$topic->subid}"); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`+{$topic->replys},`topics`=`topics`+1 WHERE `id`={$_POST['forum']}"); mysql_query("UPDATE `[forum_topics]` SET `subid`={$_POST['forum']} WHERE `id`={$_GET['verplaats']}"); print "
Forum
Topic is verplaatst.
\n"; } else { print "
Forum
$topic->title
Forum:
\n"; } } else { print "
Forum
Je mag geen berichten verplaatsen.
\n"; } } elseif($_GET['reageer']) { if(isset($_POST['add'])) { $id = $_GET['reageer']; $bericht = $_POST['message']; $datum = date("d-m-Y H:i"); $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['topic']}"); $lol = mysql_fetch_object($query); print "
Forum
Je bericht is geplaatst.

Terug
\n"; mysql_query("INSERT INTO `[foum_replys]`(topicid,datum,login,title,text,date) values($id,'$datum','$data->login','RE:','$bericht',NOW())") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[forum_topics]` SET `replys`=`replys`+1,`datum`='$datum',`date1`=NOW() WHERE `id`={$_GET['reageer']}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`+1 WHERE `id`={$lol->subid}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`+1 WHERE `login`='{$data->login}'") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['reageer']}"); $topic = mysql_fetch_object($query); if($topic->slotje == 0) { if($_GET['quote']) { $quote_query = mysql_query("SELECT * FROM `[foum_replys]` WHERE `id`={$_GET['quote']}"); $reply = mysql_fetch_object($quote_query); $quote = "[quote={$reply->login}]{$reply->text}[/quote]"; } print "
Forum
Reageren

 
\n"; } } } elseif($_GET['newtopic']) { if(isset($_POST['add'])) { $id = htmlspecialchars(addslashes($_GET['newtopic'])); $titel = htmlspecialchars(addslashes($_POST['title'])); $bericht = htmlspecialchars(addslashes($_POST['message'])); $datum = date("d-m-Y H:i"); print "
Forum
Je bericht is geplaatst.
\n"; mysql_query("INSERT INTO `[forum_topics]`(subid,datum1,login,title,text,date,date1) values($id,'$datum','$data->login','$titel','$bericht',NOW(),NOW())") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[forum_sub]` SET `topics`=`topics`+1 WHERE `id`={$id}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`+1 WHERE `login`='{$data->login}'") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { print << function icon(theicon) { document.form3.info.value += ""+theicon; document.form3.info.focus(); } function setsmilie(which){ document.form3.info.value = document.form3.info.value + which; }
Forum
Nieuw Onderwerp
Titel:
Bericht:
ENDHTML; } } elseif($_GET['edittopic']) { $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['edittopic']} AND `login`='{$data->login}'"); $num = mysql_num_rows($query); $topic = mysql_fetch_object($query); if($num == 1) { if(isset($_POST['change'])) { $titel = htmlspecialchars(addslashes($_POST['title'])); $bericht = htmlspecialchars(addslashes($_POST['message'])); $id = htmlspecialchars(addslashes($_GET['edittopic'])); print "
Forum
Je bericht is gewijzigt.
\n"; mysql_query("UPDATE `[forum_topics]` SET `title`='{$titel}',`text`='{$bericht}' WHERE `id`={$id}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print "
Topic bewerken
Titel:title\" size=\"20\" name=\"title\">
Bericht:
\n"; print "
\n"; } } else { print " \n"; print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " Error!\n"; print "
\n"; print "
\n"; } } elseif($_GET['editreply']) { $query = mysql_query("SELECT * FROM `[foum_replys]` WHERE `id`={$_GET['editreply']} AND `login`='{$data->login}'"); $num = mysql_num_rows($query); $topic = mysql_fetch_object($query); if($num == 1) { if(isset($_POST['change'])) { $titel = htmlspecialchars(addslashes($_POST['title'])); $bericht = htmlspecialchars(addslashes($_POST['message'])); $id = htmlspecialchars(addslashes($_GET['editreply'])); print "
Forum
Je bericht is gewijzigt.
\n"; mysql_query("UPDATE `[foum_replys]` SET `text`='{$bericht}' WHERE `id`={$id}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print "
Reactie bewerken
Bericht:
\n"; print "
\n"; } } elseif($data->forumstatus == "gwsp1" || $data->forumstatus == "gwsp2") { $query2 = mysql_query("SELECT * FROM `[foum_replys]` WHERE `id`={$_GET['editreply']}"); $topic2 = mysql_fetch_object($query2); if(isset($_POST['change'])) { $titel = $_POST['title']; $bericht = $_POST['message']; $id = $_GET['editreply']; print "
Forum
Je bericht is gewijzigt.
\n"; mysql_query("UPDATE `[foum_replys]` SET `text`='{$bericht}' WHERE `id`={$id}") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print "
Reactie bewerken
Bericht:
\n"; print "
\n"; } } else { print " \n"; print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " Error!\n"; print "
\n"; print "
\n"; } } elseif($_GET['delreply']) { $query = mysql_query("SELECT * FROM `[foum_replys]` WHERE `id`={$_GET['delreply']} AND `login`='{$data->login}'"); $num = mysql_num_rows($query); $topic = mysql_fetch_object($query); if($num == 1) { $query2 = mysql_query("SELECT * FROM `[foum_topics]` WHERE `id`={$topic->topicid}"); $sub = mysql_fetch_object($query2); $id = $_GET['delreply']; print "
Forum
Je bericht is verwijdert.
\n"; mysql_query("DELETE FROM `[foum_replys]` WHERE `id`='{$id}'"); mysql_query("UPDATE `[forum_topics]` SET `replys`=`replys`-1 WHERE `id`='{$topic->topicid}'"); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`-1 WHERE `id`='{$sub->subid}'") or die("er is een fout opgetreden. Ging het volgende mis:
\n".mysql_error()."
Extra informatie:".mysql_errno()); } else { print " \n"; print " \n"; print " \n"; print "
Forum
\n"; print " \n"; print " \n"; print "
\n"; print " Error!\n"; print "
\n"; print "
\n"; } } else { print "
Forum
Welkom op het forum, Selecteer Uw categorie.
Houd je wel aan de regels!
\n"; print "
\n"; $query = mysql_query("SELECT * FROM `[forum_sub]` WHERE `area`=1"); while($forum = mysql_fetch_object($query)) { print " id}'\">\n"; } } ?>
AlgemeenTopicsReacties
id}\" target=\"_self\">$forum->title
$forum->text
$forum->topics$forum->replys