From 49938c49c6446c8e17deaaaa2898722dffb5e7bd Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 23 Sep 2014 15:31:11 +0000 Subject: [PATCH 1/3] Sometimes board_create can fail I guess --- expire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expire.php b/expire.php index 8ed2f9a7..ef5c90bd 100644 --- a/expire.php +++ b/expire.php @@ -48,7 +48,7 @@ foreach($boards as $board) { } else {// no one ever logged in, try board creation time $query = query("SELECT UNIX_TIMESTAMP(time) AS time FROM board_create WHERE uri = '$board'"); $crt = $query->fetchAll(PDO::FETCH_COLUMN); - $last_activity_date->setTimestamp($crt[0]); + if (!empty($crt)) $last_activity_date->setTimestamp($crt[0]); $last_mod_date = false; } } From a2a15c761cb8bb967eece6768db33b4e008e74fe Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 23 Sep 2014 15:31:52 +0000 Subject: [PATCH 2/3] 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 = << Date: Tue, 23 Sep 2014 15:32:12 +0000 Subject: [PATCH 3/3] Fix too many mentions overflowing container --- stylesheets/style.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stylesheets/style.css b/stylesheets/style.css index ffd26e7d..827974b5 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -720,3 +720,6 @@ pre { height: 100%; margin-top: 0px; } +.mentioned { + word-wrap: break-word; +}