summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorMichael <savetheinternet@omegasdg.com>2012-07-13 01:27:04 -0700
committerMichael <savetheinternet@omegasdg.com>2012-07-13 01:27:04 -0700
commita6adb8a6a527f7817d631e25463cfe1e9b2e5b58 (patch)
treee7d356077cd2a1351a2752691a56726c05582540 /inc/functions.php
parent8d96bfc3e90dd5293f3b39beac975850822f8a4b (diff)
parent8b4e097b3c9bd974a59a4b3acdad2f957b510a2f (diff)
Merge pull request #54 from stal888/derp
Share an antibot hash set across index pages
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index f175ba05..eedbf9b9 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1202,6 +1202,7 @@ function buildIndex() {
global $board, $config;
$pages = getPages();
+ $antibot = create_antibot($board['uri']);
$page = 1;
while ($page <= $config['max_pages'] && $content = index($page)) {
@@ -1211,7 +1212,7 @@ function buildIndex() {
$content['pages'] = $pages;
$content['pages'][$page-1]['selected'] = true;
$content['btn'] = getPageButtons($content['pages']);
- $content['antibot'] = create_antibot($board['uri']);
+ $content['antibot'] = $antibot;
file_write($filename, Element('index.html', $content));
if (isset($md5) && $md5 == md5_file($filename)) {