summaryrefslogtreecommitdiff
path: root/kusabax.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-03 17:31:01 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-03 17:31:01 +1000
commit66df02c2e46a302078f31c4c2e247a4d9d5938b5 (patch)
tree8f9649126ab13ecf7cdebe7208557b81f03f98cc /kusabax.php
parent9826aae5b9e69f3e87905d86e1ad948b1a669be4 (diff)
infinite timeout
Diffstat (limited to 'kusabax.php')
-rwxr-xr-xkusabax.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/kusabax.php b/kusabax.php
index 317c8ebf..f1ae080c 100755
--- a/kusabax.php
+++ b/kusabax.php
@@ -21,6 +21,9 @@
if(empty($kusabaxc['db']['user']))
die('Did you forget to configure the script?');
+ // Infinite timeout
+ set_time_limit(0);
+
// KusabaX functions
function md5_decrypt($enc_text, $password, $iv_len = 16) {
$enc_text = base64_decode($enc_text);
@@ -42,12 +45,15 @@
global $config;
$body = stripslashes($body);
- // Replace >quotes
+ // >quotes
$body = str_replace('"unkfunc"', '"quote"', $body);
- // Replace >>cites
+ // >>cites
$body = preg_replace('/<a href="[^"]+?\/(\w+)\/res\/(\d+).html#(\d+)" onclick="return highlight\(\'\d+\', true\);" class="[^"]+">/', '<a onclick="highlightReply(\'$3\');" href="' . $config['root'] . '$1/res/$2.html#$3">', $body);
+ // Public bans
+ $body = preg_replace('/<br \/><font color="#FF0000"><b>\((.+?)\)<\/b><\/font>/', '<span class="public_ban">$1</span>', $body);
+
return $body;
}