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); $owner = $pos['owner']; } ?>
Edit answer
Thread

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