access == BANNED){ header("Location: banned.php"); exit(); } $topic_id = $_GET['tid']; $post_id = $_GET['pod']; $topics = reset($database->ShowTopic($topic_id)); $posts = $database->ShowPostEdit($post_id); //Check if we're modifying a valid post if(empty($topics) || empty($posts)) $alliance->redirect($_GET); $title = stripslashes($topics['title']); foreach($posts as $pos){ $poss = stripslashes($pos['post']); $poss = preg_replace('/\[message\]/', '', $poss); $poss = preg_replace('/\[\/message\]/', '', $poss); $alliance0 = $pos['alliance0']; $player0 = $pos['player0']; $owner = $pos['owner']; $coor0 = $pos['coor0']; $report0 = $pos['report0']; } ?>
Edit answer
Thread

Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system.