From a83a284e1d5af3b1f9794822bea8bb6ea26c1d75 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Thu, 11 May 2017 21:10:24 +0900 Subject: Add antibot to Element constructor in yukko themes, in the hope that posting from overboards as a normal user is not incorrectly blocked as spam / request looks automated. --- templates/themes/ukko/theme.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'templates/themes/ukko/theme.php') diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php index 6faf7139..d08b6769 100644 --- a/templates/themes/ukko/theme.php +++ b/templates/themes/ukko/theme.php @@ -139,6 +139,12 @@ $jsonFilename = $board['dir'] . 'threads.json'; file_write($jsonFilename, $json); } + $antibot = null; + if (!$antibot) { + $antibot = create_antibot($board['uri']); + } + $antibot->reset(); + return Element('index.html', array( 'config' => $config, 'board' => $board, @@ -146,7 +152,8 @@ 'body' => $body, 'mod' => $mod, 'boardlist' => createBoardlist($mod), - 'boards' => $boardsforukko ) + 'boards' => $boardsforukko, + 'antibot' => $antibot ) ); } -- cgit v1.3