From de7c089d7b9b154a63a55f3ea15604bace2ac9fe Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 9 Oct 2014 16:58:00 -0700 Subject: [PATCH] this download all script doesnt even work --- create.php | 4 +--- inc/instance-config.php | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/create.php b/create.php index 673f8b7c..43d3671e 100644 --- a/create.php +++ b/create.php @@ -10,9 +10,7 @@ $cbRecaptcha = true; include "inc/lib/recaptcha/recaptchalib.php"; } - checkBan('*'); -$bannedWords = array('/^cake$/', '8ch', '/^cp$/', 'child', '/^inc$/', '/^static$/', '/^templates$/', '/^js$/', '/^stylesheets$/', '/^tools$/', '/^pedo$/', '/^reports$/'); $ayah = (($config['ayah_enabled']) ? new AYAH() : false); @@ -78,7 +76,7 @@ foreach (listBoards() as $i => $board) { error(_('Board already exists!')); } -foreach ($bannedWords as $i => $w) { +foreach ($config['banned_boards'] as $i => $w) { if ($w[0] !== '/') { if (strpos($uri,$w) !== false) error(_("Cannot create board with banned word $w")); diff --git a/inc/instance-config.php b/inc/instance-config.php index 2e0ba78f..fc2d868b 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -109,8 +109,6 @@ $config['additional_javascript'][] = 'js/webm-settings.js'; $config['additional_javascript'][] = 'js/expand-video.js'; $config['additional_javascript'][] = 'js/treeview.js'; - $config['additional_javascript'][] = 'js/download-all.js'; - $config['additional_javascript'][] = 'js/jszip.min.js'; $config['additional_javascript'][] = 'js/quick-post-controls.js'; $config['additional_javascript'][] = 'js/expand-too-long.js'; $config['additional_javascript'][] = 'js/settings.js'; @@ -133,8 +131,9 @@ $config['additional_javascript'][] = 'js/id_colors.js'; $config['additional_javascript'][] = 'js/inline.js'; $config['additional_javascript'][] = 'js/infinite-scroll.js'; + $config['additional_javascript'][] = 'js/download-original.js'; - $config['font_awesome_css'] = '/netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'; + //$config['font_awesome_css'] = '/netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'; $config['stylesheets']['Dark'] = 'dark.css'; $config['stylesheets']['Photon'] = 'photon.css'; @@ -144,7 +143,7 @@ $config['markup'][] = array("/\[spoiler\](.+?)\[\/spoiler\]/", "\$1"); $config['markup'][] = array("/~~(.+?)~~/", "\$1"); - $config['boards'] = array(array('' => '/', '' => '/boards.html', '' => '/faq.html', '' => '/random.php', '' => '/create.php', '' => '/search.php', '' => '/mod.php', '' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array(''=>'https://twitter.com/infinitechan')); + $config['boards'] = array(array('' => '/', '' => '/boards.html', '' => '/faq.html', '' => '/random.php', '' => '/create.php', '' => '/bans.html', '' => '/search.php', '' => '/mod.php', '' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array(''=>'https://twitter.com/infinitechan')); //$config['boards'] = array(array('' => '/', '' => '/boards.html', '' => '/faq.html', '' => '/random.php', '' => '/create.php', '' => '/search.php', '' => '/mod.php', '' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array('v', 'a', 'tg', 'fit', 'pol', 'tech', 'mu', 'co', 'sp', 'boards'), array(''=>'https://twitter.com/infinitechan')); $config['footer'][] = 'Contribute to 8chan.co development at github';