hey everyone...
i'm running a version of phpbb under nuke and i'm having a little problem right now with people who double post a lot, or do many multiple posts. when i fix something people always seem to try to find some other way they can fool around.
anyway i am running a very light version of the forum so i can't just turn on flood control. instead i'm writing a little bit of code to go in before the new post is written into the database to check for a match against the latest post in the database.
here is what i have so far:
global $sql, $dbi;
$sql = sql_query("SELECT post_text FROM nuke_posts_text ORDER BY post_id DESC LIMIT 1", $dbi);
$post_text = sql_fetch_row($sql, $dbi);
if($message == "$post_text") {
error_die("Error - You already posted \"$post_text\" once. Isn\'t once enough?");
}
i am doing something really wrong here so far, it just returns the value of $post_text from the database as 'Array'.
if you can be of any help thanks in advance.
-j.