mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 15:40:12 +01:00
infinite timeout
This commit is contained in:
parent
9826aae5b9
commit
66df02c2e4
10
kusabax.php
10
kusabax.php
@ -21,6 +21,9 @@
|
|||||||
if(empty($kusabaxc['db']['user']))
|
if(empty($kusabaxc['db']['user']))
|
||||||
die('Did you forget to configure the script?');
|
die('Did you forget to configure the script?');
|
||||||
|
|
||||||
|
// Infinite timeout
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
// KusabaX functions
|
// KusabaX functions
|
||||||
function md5_decrypt($enc_text, $password, $iv_len = 16) {
|
function md5_decrypt($enc_text, $password, $iv_len = 16) {
|
||||||
$enc_text = base64_decode($enc_text);
|
$enc_text = base64_decode($enc_text);
|
||||||
@ -42,12 +45,15 @@
|
|||||||
global $config;
|
global $config;
|
||||||
$body = stripslashes($body);
|
$body = stripslashes($body);
|
||||||
|
|
||||||
// Replace >quotes
|
// >quotes
|
||||||
$body = str_replace('"unkfunc"', '"quote"', $body);
|
$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);
|
$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;
|
return $body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user