From 66df02c2e46a302078f31c4c2e247a4d9d5938b5 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 3 Jun 2011 17:31:01 +1000 Subject: [PATCH] infinite timeout --- kusabax.php | 10 ++++++++-- 1 file 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('//', '', $body); + // Public bans + $body = preg_replace('/
\((.+?)\)<\/b><\/font>/', '$1', $body); + return $body; }