>>65624admin your [code] tags are completely broken btw which is why i had to paste it like this, cuz otherwise "&" gets changed to "&" and so on.
this takes less than a minute to change.
but anyway it's just these lines need to be changed:
$query = prepare(sprintf("SELECT `id`,`thread`,`time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
changed to:
$query = prepare(sprintf("SELECT `id`,`thread`,`time`,`password`,`ip` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
$thread_query = prepare(sprintf("SELECT `time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
changed to:
$thread_query = prepare(sprintf("SELECT `time`,`password`,`ip` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password))
changed to:
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password) && !$ip_match)
and these three lines need to be added before the password check if-statement:
Post too long. Click here to view the full text.