@ -44,7 +44,6 @@
'name' => $this->settings['title'],
'name' => $this->settings['title'],
'title' => sprintf($this->settings['subtitle'], $this->settings['thread_limit'])
'title' => sprintf($this->settings['subtitle'], $this->settings['thread_limit'])
);
);
$boardsforukko2 = array();
$boardsforukko2 = array();
$query = '';
$query = '';
foreach($boards as & $_board) {
foreach($boards as & $_board) {
@ -139,6 +138,12 @@
$jsonFilename = $board['dir'] . 'threads.json';
$jsonFilename = $board['dir'] . 'threads.json';
file_write($jsonFilename, $json);
file_write($jsonFilename, $json);
}
}
$antibot = null;
if (!$antibot) {
$antibot = create_antibot($board['uri']);
}
$antibot->reset();
return Element('index.html', array(
return Element('index.html', array(
'config' => $config,
'config' => $config,
'board' => $board,
'board' => $board,
@ -146,7 +151,8 @@
'body' => $body,
'body' => $body,
'mod' => $mod,
'mod' => $mod,
'boardlist' => createBoardlist($mod),
'boardlist' => createBoardlist($mod),
'boards' => $boardsforukko2 )
'boards' => $boardsforukko2,
'antibot' => $antibot )
);
);
}
}