summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-02-08 20:51:45 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-02-08 20:51:45 +0100
commitcde6a01b90b199cd9d42a8e23a61d467992b6d67 (patch)
tree67a5511a8ce19f62d3f11a007dc856caf8dc6ffe /lib
parentbc6ecc12f39db1fe4b3e22e2a939f70691d6d1fc (diff)
downloadrpg-cde6a01b90b199cd9d42a8e23a61d467992b6d67.tar.gz
rpg-cde6a01b90b199cd9d42a8e23a61d467992b6d67.tar.bz2
workaround config for FS#852
On certain platforms the ignore_user_abort function does not work as expected, resulting in a non working indexer webbug. Users with such a broken system (IIS+PHP as CGI) can enable this option to work around the problem (resulting in longer load times for the webbug). darcs-hash:20070208195145-7ad00-8fc14f9da535a70fa837066773e15a3926b077c7.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/indexer.php2
-rw-r--r--lib/plugins/config/lang/en/lang.php1
-rw-r--r--lib/plugins/config/settings/config.metadata.php1
3 files changed, 3 insertions, 1 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php
index bb79bf2cc..da79db0e0 100644
--- a/lib/exe/indexer.php
+++ b/lib/exe/indexer.php
@@ -20,7 +20,7 @@ define('INDEXER_VERSION', 1);
@ignore_user_abort(true);
// check if user abort worked, if yes send output early
-if(@ignore_user_abort()){
+if(@ignore_user_abort() && !$conf['broken_iua']){
sendGIF(); // send gif
$defer = false;
}else{
diff --git a/lib/plugins/config/lang/en/lang.php b/lib/plugins/config/lang/en/lang.php
index a415ca464..9f3df88bb 100644
--- a/lib/plugins/config/lang/en/lang.php
+++ b/lib/plugins/config/lang/en/lang.php
@@ -121,6 +121,7 @@ $lang['compress'] = 'Compact CSS and javascript output';
$lang['hidepages'] = 'Hide matching pages (regular expressions)';
$lang['send404'] = 'Send "HTTP 404/Page Not Found" for non existing pages';
$lang['sitemap'] = 'Generate Google sitemap (days)';
+$lang['broken_iua'] = 'Is the ignore_user_abort function broken on your system? This could cause a non working search index. IIS+PHP/CGI is known to be broken. See <a href="http://bugs.splitbrain.org/?do=details&id=852">Bug 852</a> for more info.';
$lang['rss_type'] = 'XML feed type';
$lang['rss_linkto'] = 'XML feed links to';
diff --git a/lib/plugins/config/settings/config.metadata.php b/lib/plugins/config/settings/config.metadata.php
index 3ef6c79b1..d1456b3e9 100644
--- a/lib/plugins/config/settings/config.metadata.php
+++ b/lib/plugins/config/settings/config.metadata.php
@@ -165,6 +165,7 @@ $meta['rss_linkto'] = array('multichoice','_choices' => array('diff','page','re
$meta['rss_update'] = array('numeric');
$meta['recent_days'] = array('numeric');
$meta['rss_show_summary'] = array('onoff');
+$meta['broken_iua'] = array('onoff');
$meta['test_indexer'] = array('numeric'); // FIXME: delete when no longer needed
$meta['_network'] = array('fieldset');