forum == 1 || $data->forumc == 1) { print "  Je mag niks op de forum zetten.\n"; exit; } if($bericht == ""){ print "
Forum
Je Moet wel een bericht geven.

Terug
\n"; exit; } 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['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`,`clanlevel`,`login`,`level`,`forumposts`,`avaurl` FROM `[users]` WHERE `login`='{$topic->login}'"); $user2 = mysql_fetch_object($user_query2); if ($user2->clanlevel == 1){ $clanrank = "Member"; } elseif ($user2->clanlevel == 2){ $clanrank = "Recruiter"; } elseif ($user2->clanlevel == 3){ $clanrank = "Member"; } elseif ($user2->clanlevel == 4){ $clanrank = "Member"; } elseif ($user2->clanlevel == 5){ $clanrank = "Member"; } elseif ($user2->clanlevel == 6){ $clanrank = "Manager"; } elseif ($user2->clanlevel == 7){ $clanrank = "Generaal"; } elseif ($user2->clanlevel == 8){ $clanrank = "Leader"; } elseif ($user2->clanlevel == 9){ $clanrank = "Owner"; } if($user2->level == "255") { $status = "Admin"; } elseif($user2->level == "50") { $status = "Hulp Admin"; } elseif($user2->level == "22") { $status = "GTC Extreem Member"; } elseif($user2->level == "23") { $status = "GTC Extreem Member"; } elseif($user2->level == "21") { $status = "GTC Extreem Member"; } else { $status = "Member"; } 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 = preg_replace('/criminalwar/',"***",$topic->text); $topic->text = preg_replace('/BULLETSTAR/',"***",$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 ); $loginnaam = $user2->login; $loginnaam = ($user2->level & 0x80) ? "$loginnaam" : $loginnaam; $loginnaam = ($user2->level == 21) ? "$loginnaam " : $loginnaam; $loginnaam = ($user2->level == 22) ? "$loginnaam " : $loginnaam; $loginnaam = ($user2->level == 20) ? "$loginnaam" : $loginnaam; $loginnaam = ($user2->level == 10) ? "$loginnaam \"Rood\"" : $loginnaam; $loginnaam = ($member->user2 == 50) ? "$loginnaam" : $loginnaam; print " "; $dbres = mysql_query("SELECT * FROM `[foum_replys]` WHERE `topicid`={$_GET['topic']} AND `del`=0"); print "
Forum
Ga naar pagina|"; for($i=0; $i". ($i+1) ." |"; } print "
ENDHTML; if($data->clanlevel >= 8) { print " \n"; } } $dbres = mysql_query("SELECT * FROM `[foum_replys]` WHERE `topicid`={$_GET['topic']} AND `del`=0"); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`-'1' WHERE `login`='$user->forumposts'"); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`-'1' WHERE `area`='{$_GET['area']}'"); print " 
\n"; if($data->clanlevel >= 8) { print " \n"; } $query2 = mysql_query("SELECT * FROM `[foum_replys]` WHERE `topicid`={$_GET['topic']} AND `del`=0 ORDER BY `date` ASC LIMIT $begin,10"); mysql_query("UPDATE `[users]` SET `forumposts`=`forumposts`-'1' WHERE `login`='$user->forumposts'"); mysql_query("UPDATE `[forum_sub]` SET `topics`=`topics`-'1' WHERE `area`='{$_GET['area']}'"); while($forum = mysql_fetch_object($query2)) { $user_query = mysql_query("SELECT UNIX_TIMESTAMP(`online`) AS `online`,`level`,`clanlevel`,`forumstatus`,`login`,`forumposts`,`avaurl` 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); $topic->text = preg_replace('/BULLETSTAR/',"***",$topic->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\\]","
\n"; print "
  $topic->title
login}\">$loginnaam
$clanrank
avaurl}\" width=\"120\" height=\"80\">

$online2
Geplaatst op:
$topic->text
$topic->datum1
id}\">Delete topic.
Quote:

\\1 schreef:
\\2

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

\\1

",$forum->text); $forum->text = str_replace(':D', '', $forum->text); $forum->text = preg_replace('/:P/',"",$forum->text); $forum->text = str_replace(":ban", "", $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 ); if($user->forumstatus == "default" && $user->forumposts <= 50) { $status = "Forum beginner"; } elseif($user->forumstatus == "default" && $user->forumposts <= 150) { $status = "Forum member"; } elseif($user->forumstatus == "default" && $user->forumposts > 150) { $status = "Forum god"; } elseif($user->forumstatus == "gwsp1") { $status = "Super Moderator"; } elseif($user->level == "255") { $status = "Admin"; } elseif($user->level == "50") { $status = "Hulp Admin"; } elseif($user->level == "22") { $status = "GTC Extreem Member"; } elseif($user->level == "23") { $status = "GTC Extreem Member"; } elseif($user->level == "21") { $status = "GTC Extreem Member"; } if ($user->clanlevel == 1){ $clanrank = "Member"; } elseif ($user->clanlevel == 2){ $clanrank = "Recruiter"; } elseif ($user->clanlevel == 3){ $clanrank = "Member"; } elseif ($user->clanlevel == 4){ $clanrank = "Member"; } elseif ($user->clanlevel == 5){ $clanrank = "Member"; } elseif ($user->clanlevel == 6){ $clanrank = "Manager"; } elseif ($user->clanlevel == 7){ $clanrank = "Generaal"; } elseif ($user->clanlevel == 8){ $clanrank = "Leader"; } elseif ($user->clanlevel == 9){ $clanrank = "Owner"; } else { $status = "Member"; } if(time() - $user->online < 300) { $online = " Online "; } else { $online = " Offline "; } $loginnaam = $user->login; $loginnaam = ($user->level & 0x80) ? "$loginnaam" : $loginnaam; $loginnaam = ($user->level == 21) ? "$loginnaam " : $loginnaam; $loginnaam = ($user->level == 22) ? "$loginnaam " : $loginnaam; $loginnaam = ($user->level == 20) ? "$loginnaam" : $loginnaam; $loginnaam = ($user->level == 10) ? "$loginnaam \"Rood\"" : $loginnaam; $loginnaam = ($user->level == 50) ? "$loginnaam" : $loginnaam; print <<
  $forum->title $topic->title
$loginnaam
$clanrank


$online
Geplaatst op:
$forum->text
$forum->datum
id}\">Delete deze bericht.
Ga naar pagina|"; for($i=0; $i". ($i+1) ." |"; } if($data->forum == 1 || $data->forumc == 1) { print "
Je mag niks op de forum zetten.
\n"; } elseif($topic->slotje == 0 && $data->forumstatus == "gwsp1") { print "  Reageren
\n"; print <<
 
id}\">Topic Sluiten\n"; } elseif($topic->slotje == 0 && $data->forumstatus == "gwsp2" && $data->forum != 1 || $data->forumc != 1) { if($data->forum == 1 || $data->forumc == 1) { print "  Je mag niks op de forum zetten.\n"; print "  Reageren
\n"; print <<
 
id}\">Topic Sluiten\n"; } else { if($data->forum == 1 || $data->forumc == 1) { print "  Je mag niks op de forum zetten.\n"; exit; } print "  Reageren
\n"; print <<
 \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->clanlevel == "8" || $data->clanlevel == "9") { $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['delreply2']) { if($data->clanlevel == "8" || $data->clanlevel == "9") { $topic_query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['delreply2']}"); $topic = mysql_fetch_object($topic_query); $query = mysql_query("SELECT * FROM `[forum_sub]` WHERE `id`={$topic->subid}"); $reply = mysql_fetch_object($query); mysql_query("UPDATE `[forum_sub]` SET `replys`=`replys`-{$topic->replys},`topics`=`topics`-1 WHERE `id`={$topic->subid}"); mysql_query("DELETE FROM `[forum_topics]` WHERE `id`='{$_GET['delreply2']}'"); print "
Forum
Topic is succesvol verwijdert.
\n"; } } elseif($_GET['verplaats']) { if($data->level == "255" || $data->level == "50") { $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"); if($bericht == ""){ print "
Forum
Je Moet wel een bericht geven.

Terug
\n"; exit; } $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `id`={$_GET['topic']}"); 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 `[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'])){ $tiet = $_POST['title']; $mes = $_POST['message']; if($tiet == ""){ print "
Forum
Je Moet wel een tietel geven.

Terug
\n"; exit; } if($mes == ""){ print "
Forum
Je moet wel een bericht toe voegen.

Terug
\n"; exit; } if( $data->forum == 1 || $data->forumc == 1) { print "
Forum
Je Mag niks meer op de forum zetten.

Terug
\n"; exit; } $id = intval($_GET['newtopic']); $titel = htmlspecialchars($_POST['title']); $bericht = htmlspecialchars($_POST['message']); $datum = date("d-m-Y H:i"); print "
Forum
Je bericht is geplaatst.

Terug
\n"; mysql_query("INSERT INTO `[forum_topics]`(subid,datum1,login,title,text,clan,date,date1) values(100,'$datum','$data->login','$titel','$bericht','{$data->clan}',NOW(),NOW())") 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 << Forum
Nieuw topic
Titel:
Bericht:
END; } } 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 = $_POST['title']; $bericht = $_POST['message']; $id = $_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 = $_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"; } } 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
\n"; print "
\n"; $query = mysql_query("SELECT * FROM `[forum_topics]` WHERE `clan`='{$data->clan}' ORDER BY `date` DESC"); while($forum = mysql_fetch_object($query)) { if($forum->slotje == 0) { $image = "images/icons/opentopic.gif"; } else { $image = "images/icons/closed.gif"; } print " \n"; } print "
 TopicDoorReactiesLaatste reactie
id}\">$forum->titlelogin}\">$forum->login$forum->replys$forum->datum
\n"; } ?>