if (isset($_GET['quote']) && isnum($_GET['quote'])) { $result = dbquery( "SELECT post_message, user_name FROM ".DB_POSTS." INNER JOIN ".DB_USERS." ON ".DB_POSTS.".post_author=".DB_USERS.".user_id WHERE thread_id='".$_GET['thread_id']."' and post_id='".$_GET['quote']."'" ); if (dbrows($result)) { $data = dbarray($result); $message = "[ quote ][ url=".$settings['siteurl' ]."forum/viewthread.php?thread_id=".$_GET['thread_id']."&pid=".$_GET['quote']."#post_".$_GET['quote']."][ b]".$data['user_name'].$locale['429']."[/b ][ /url]\n\n".strip_bbcodes($data['post_message'])."[ /quote]"; } }