From a2a15c761cb8bb967eece6768db33b4e008e74fe Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 23 Sep 2014 15:31:52 +0000 Subject: [PATCH] Allow SWF, fix \rule breaking /b/ (temporarily) --- inc/instance-config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/instance-config.php b/inc/instance-config.php index c3de0cfb..de409e63 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -75,6 +75,7 @@ require_once "8chan-functions.php"; $config['mod']['search'] = SUPERMOD; $config['mod']['debug_recent'] = ADMIN; $config['mod']['debug_antispam'] = ADMIN; + $config['mod']['recent_reports'] = 65535; // Board shit $config['url_banner'] = '/banners.php'; @@ -142,6 +143,8 @@ require_once "8chan-functions.php"; // Same as above but by a different IP address. (Same content, not necessarily same IP address.) $config['flood_time_same'] = 30; + $config['wordfilters'][] = array('\rule', ''); // 'true' means it's a regular expression + if (!function_exists('prettify_textarea')){ function prettify_textarea($s){ return str_replace("\t", ' ', str_replace("\n", ' ', htmlentities($s))); @@ -244,6 +247,7 @@ require_once "8chan-functions.php"; $auto_unicode = isset($_POST['auto_unicode']) ? 'true' : 'false'; $meta_noindex = isset($_POST['meta_noindex']) ? 'true' : 'false'; $allow_roll = isset($_POST['allow_roll']) ? 'true' : 'false'; + $allow_flash = isset($_POST['allow_flash']) ? '$config[\'allowed_ext_files\'][] = \'swf\';' : ''; $code_tags = isset($_POST['code_tags']) ? '$config[\'additional_javascript\'][] = \'js/code_tags/run_prettify.js\';$config[\'markup\'][] = array("/\[code\](.+?)\[\/code\]/ms", "
\$1
");' : ''; $katex = isset($_POST['katex']) ? '$config[\'katex\'] = true;$config[\'additional_javascript\'][] = \'js/katex/katex.min.js\'; $config[\'markup\'][] = array("/\[tex\](.+?)\[\/tex\]/ms", "\$1"); $config[\'additional_javascript\'][] = \'js/katex-enable.js\';' : ''; $oekaki_js = <<