forked from GithubBackups/vichan
post.php: remove unused functions related to filter; add ip key to post
This commit is contained in:
parent
38095f0972
commit
4429e8e55a
3
post.php
3
post.php
@ -597,6 +597,7 @@ if (isset($_POST['delete'])) {
|
|||||||
// Check if banned
|
// Check if banned
|
||||||
checkBan($board['uri']);
|
checkBan($board['uri']);
|
||||||
|
|
||||||
|
$post['ip'] = $_SERVER['REMOTE_ADDR'];
|
||||||
// Check for CAPTCHA right after opening the board so the "return" link is in there.
|
// Check for CAPTCHA right after opening the board so the "return" link is in there.
|
||||||
try {
|
try {
|
||||||
$provider = $config['captcha']['provider'];
|
$provider = $config['captcha']['provider'];
|
||||||
@ -1272,8 +1273,6 @@ if (isset($_POST['delete'])) {
|
|||||||
nntp_publish($message, $msgid);
|
nntp_publish($message, $msgid);
|
||||||
}
|
}
|
||||||
|
|
||||||
insertFloodPost($post);
|
|
||||||
|
|
||||||
// Handle cyclical threads
|
// Handle cyclical threads
|
||||||
if (!$post['op'] && isset($thread['cycle']) && $thread['cycle']) {
|
if (!$post['op'] && isset($thread['cycle']) && $thread['cycle']) {
|
||||||
delete_cyclical_posts($board['uri'], $post['thread'], $config['cycle_limit']);
|
delete_cyclical_posts($board['uri'], $post['thread'], $config['cycle_limit']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user