2020-08-30 23:35:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Instance Configuration
|
|
|
|
* ----------------------
|
|
|
|
* Edit this file and not config.php for imageboard configuration.
|
|
|
|
*
|
|
|
|
* You can copy values from config.php (defaults) and paste them here.
|
2020-12-24 00:16:53 +00:00
|
|
|
*/
|
2020-08-30 23:35:42 +00:00
|
|
|
|
2020-12-24 00:16:53 +00:00
|
|
|
/*
|
|
|
|
* Front page configurations.
|
|
|
|
*/
|
|
|
|
|
2020-12-30 08:39:19 +00:00
|
|
|
$config['boards'] = array(
|
|
|
|
array('leftypol',
|
|
|
|
'b',
|
|
|
|
'hobby',
|
|
|
|
'tech',
|
|
|
|
'edu',
|
|
|
|
'games',
|
|
|
|
'anime'
|
|
|
|
) ,
|
|
|
|
array('meta')
|
|
|
|
);
|
|
|
|
$config['foreign_boards'] = array(
|
|
|
|
'GET' => 'https://getchan.net/GET/',
|
|
|
|
'ref' => 'https://getchan.net/ref/'
|
|
|
|
);
|
|
|
|
// Board categories. Only used in the "Categories" theme.
|
|
|
|
$config['categories'] = array(
|
|
|
|
'Leftypol' => array('leftypol',
|
|
|
|
'b',
|
|
|
|
'hobby',
|
|
|
|
'tech',
|
|
|
|
'edu',
|
|
|
|
'games',
|
|
|
|
'anime'
|
|
|
|
),
|
|
|
|
'Meta' => array('meta')
|
|
|
|
);
|
|
|
|
|
|
|
|
// Optional for the Categories theme. This is an array of name => (title, url) groups for categories
|
|
|
|
// with non-board links.
|
|
|
|
$config['custom_categories'] = array(
|
|
|
|
'Our Friends' => array(
|
|
|
|
'GET' => 'https://getchan.net/GET/',
|
|
|
|
'ref' => 'https://getchan.net/ref/'
|
|
|
|
),
|
|
|
|
'Links' => array(
|
|
|
|
'New Multitude' => 'https://newmultitude.org/',
|
|
|
|
'Booru image repository' => 'https://lefty.booru.org/',
|
|
|
|
'Leftypedia' => 'https://leftypedia.org/',
|
|
|
|
'Official chat room' => 'https://app.element.io/#/room/!RQxdjfGouwsFHwUzwL:matrix.org',
|
|
|
|
'Rules' => 'rules.html'
|
|
|
|
),
|
|
|
|
'Learning resources and blogs' => array(
|
|
|
|
'Michael Roberts\' blog' => 'https://thenextrecession.wordpress.com/',
|
|
|
|
'A Critique Of Crisis Theory blog' => 'https://critiqueofcrisistheory.wordpress.com/',
|
|
|
|
'Leftypedia' => 'https://leftypedia.org/',
|
|
|
|
'Marxis Internet Archive' => 'https://www.marxists.org/'
|
|
|
|
),
|
|
|
|
);
|
2020-12-24 00:16:53 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Database and site wide configurations
|
|
|
|
*/
|
2020-08-30 23:35:42 +00:00
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['db']['server'] = 'localhost';
|
|
|
|
$config['db']['database'] = 'lainchan';
|
|
|
|
$config['db']['prefix'] = '';
|
|
|
|
$config['db']['user'] = 'lainchan';
|
|
|
|
$config['db']['password'] = '';
|
|
|
|
|
|
|
|
|
|
|
|
$config['cookies']['mod'] = 'mod';
|
|
|
|
$config['cookies']['salt'] = 'MGYwNjhlNjU5Y2QxNWU3YjQ3MzQ1Yj';
|
|
|
|
|
|
|
|
$config['flood_time'] = 0;
|
|
|
|
$config['flood_time_ip'] = 0;
|
|
|
|
$config['flood_time_same'] = 0;
|
|
|
|
$config['max_body'] = 100000;
|
|
|
|
$config['reply_limit'] = 250;
|
|
|
|
$config['max_links'] = 40;
|
|
|
|
$config['max_filesize'] = 52428800;
|
|
|
|
$config['thumb_width'] = 255;
|
|
|
|
$config['thumb_height'] = 255;
|
|
|
|
$config['max_width'] = 10000;
|
|
|
|
$config['max_height'] = 10000;
|
|
|
|
$config['threads_per_page'] = 10;
|
|
|
|
$config['max_pages'] = 36;
|
|
|
|
$config['threads_preview'] = 5;
|
|
|
|
$config['root'] = '/';
|
|
|
|
$config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW';
|
2020-12-27 22:50:31 +00:00
|
|
|
|
2020-12-27 23:23:33 +00:00
|
|
|
/*
|
|
|
|
* Permissions
|
|
|
|
*/
|
2020-12-27 20:43:50 +00:00
|
|
|
$config['mod']['move'] = MOD;
|
2020-12-27 22:50:31 +00:00
|
|
|
$config['mod']['editpost'] = MOD;
|
2020-12-27 23:23:33 +00:00
|
|
|
// Raw HTML posting
|
|
|
|
$config['mod']['rawhtml'] = MOD;
|
2020-12-24 19:51:44 +00:00
|
|
|
|
2020-12-27 17:21:39 +00:00
|
|
|
// Max attachments per post
|
|
|
|
$config['max_images'] = 5;
|
2020-12-27 20:16:39 +00:00
|
|
|
$config['image_reject_repost'] = false;
|
2020-12-27 17:21:39 +00:00
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['thumb_method'] = 'gm+gifsicle';
|
|
|
|
$config['gnu_md5'] = '1';
|
|
|
|
// $config['update_on_posts'] = true;
|
2020-12-25 22:10:50 +00:00
|
|
|
$config['referer_match'] = false;
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-26 02:04:43 +00:00
|
|
|
$config['allowed_ext'][] = 'mp4';
|
|
|
|
$config['allowed_ext'][] = 'webm';
|
|
|
|
$config['allowed_ext_files'][] = 'webm';
|
|
|
|
$config['webm']['use_ffmpeg'] = true;
|
|
|
|
$config['max_filesize'] = 50 * 1024 * 1024; // 50MB
|
|
|
|
$config['webm']['allow_audio'] = true;
|
|
|
|
$config['webm']['max_length'] = 1000;
|
|
|
|
|
|
|
|
// Allowed image file extensions.
|
|
|
|
$config['allowed_ext'][] = 'jpg';
|
|
|
|
$config['allowed_ext'][] = 'jpeg';
|
|
|
|
$config['allowed_ext'][] = 'bmp';
|
|
|
|
$config['allowed_ext'][] = 'gif';
|
|
|
|
$config['allowed_ext'][] = 'png';
|
|
|
|
|
|
|
|
$config['allowed_ext_files'][] = 'mp4';
|
|
|
|
$config['allowed_ext_files'][] = 'pdf';
|
|
|
|
$config['allowed_ext_files'][] = 'txt';
|
|
|
|
$config['allowed_ext_files'][] = 'zip';
|
|
|
|
$config['allowed_ext_files'][] = 'epub';
|
|
|
|
|
2020-12-30 00:55:38 +00:00
|
|
|
/*
|
|
|
|
* Flags
|
|
|
|
*/
|
|
|
|
$config['country_flags_condensed'] = false;
|
|
|
|
$config['user_flag'] = true;
|
2020-12-30 01:41:25 +00:00
|
|
|
$config['flag_style'] = 'width:auto;height:11px;';
|
2020-12-30 00:55:38 +00:00
|
|
|
$config['user_flags'] = array (
|
2020-12-30 01:32:42 +00:00
|
|
|
'4th_international' => '4th International',
|
|
|
|
'acceleration' => 'Acceleration',
|
|
|
|
'ak-47' => 'AK-47',
|
|
|
|
'albania' => 'Albania',
|
|
|
|
'allende' => 'Allende',
|
|
|
|
'anarcha-feminism' => 'Anarcha-Feminism',
|
|
|
|
'anarchism' => 'Anarchism',
|
|
|
|
'anarcho-capitalism' => 'Anarcho-Capitalism',
|
|
|
|
'anarcho-communism' => 'Anarcho-Communism',
|
|
|
|
'anarcho-nihilism' => 'Anarcho-Nihilism',
|
|
|
|
'anarcho-primitivism' => 'Anarcho-Primitivism',
|
|
|
|
'athiesm' => 'Athiesm',
|
|
|
|
'bolshevik' => 'Bolshevik',
|
|
|
|
'brocialism' => 'Brocialism',
|
|
|
|
'burkina_faso' => 'Burkina Faso',
|
2020-12-31 05:55:19 +00:00
|
|
|
'ca' => 'Canadien',
|
2020-12-30 01:32:42 +00:00
|
|
|
'chavismo' => 'Chavismo',
|
|
|
|
'che' => 'Che',
|
|
|
|
'china' => 'China',
|
|
|
|
'christian_communism' => 'Christian Communism',
|
|
|
|
'cockshott' => 'Cockshott',
|
|
|
|
'cuba' => 'Cuba',
|
|
|
|
'ddr' => 'DDR',
|
|
|
|
'democrap' => 'Democrap',
|
|
|
|
'democratic_socialism' => 'Democratic Socialism',
|
|
|
|
'dprk' => 'DPRK',
|
|
|
|
'eurocommunism' => 'Eurocommunism',
|
2020-12-31 05:55:19 +00:00
|
|
|
'farc' => 'Las FARC',
|
2020-12-30 01:32:42 +00:00
|
|
|
'fed' => 'Fed',
|
|
|
|
'freud' => 'Freud',
|
|
|
|
'gadsden' => 'Gadsden',
|
|
|
|
'gay_nazi' => 'Gay Nazi',
|
|
|
|
'gentoo' => 'Gentoo',
|
|
|
|
'gorro' => 'Gorro',
|
|
|
|
'groucho_marxism' => 'Groucho Marxism',
|
|
|
|
'hammer_&_sickle' => 'Hammer & Sickle',
|
|
|
|
'international_brigade' => 'International Brigade',
|
|
|
|
'ira' => 'IRA',
|
|
|
|
'islamic_communism' => 'Islamic Communism',
|
|
|
|
'iww' => 'IWW',
|
|
|
|
'juche' => 'Juche',
|
|
|
|
'kampuchea' => 'Kampuchea',
|
|
|
|
'left_communism' => 'Left Communism',
|
|
|
|
'lenin_cap' => 'Lenin Cap',
|
|
|
|
'luxemburg' => 'Luxemburg',
|
|
|
|
'marx' => 'Marx',
|
|
|
|
'mutualism' => 'Mutualism',
|
|
|
|
'naxalite' => 'Naxalite',
|
|
|
|
'nazbol' => 'Nazbol',
|
|
|
|
'nazi' => 'Nazi',
|
|
|
|
'ndfp' => 'NDFP',
|
|
|
|
'palestine' => 'Palestine',
|
|
|
|
'pan-africanism' => 'Pan-Africanism',
|
|
|
|
'pirate' => 'Pirate',
|
|
|
|
'porky' => 'Porky',
|
|
|
|
'posadas' => 'Posadas',
|
|
|
|
'punk' => 'Punk',
|
|
|
|
'raised_fist' => 'Raised Fist',
|
|
|
|
'read_a_fucking_book' => 'Read a Fucking Book',
|
|
|
|
'rethuglican' => 'Rethuglican',
|
|
|
|
'sabo-tabby' => 'Sabo-Tabby',
|
|
|
|
'sandinista' => 'Sandinista',
|
|
|
|
'sendero_luminoso' => 'Sendero Luminoso',
|
|
|
|
'slavoj' => 'Slavoj',
|
|
|
|
'socialism' => 'Socialism',
|
|
|
|
'soviet_union' => 'Soviet Union',
|
|
|
|
'spurdo' => 'Spurdo',
|
|
|
|
'ssnp' => 'SSNP',
|
|
|
|
'stalin' => 'Stalin',
|
|
|
|
'syndicalism' => 'Syndicalism',
|
|
|
|
'tankie' => 'Tankie',
|
|
|
|
'think' => 'Think',
|
2020-12-31 05:55:19 +00:00
|
|
|
'united_farm_workers' => 'United Farm Workers',
|
2020-12-30 01:32:42 +00:00
|
|
|
'viet_cong' => 'Viet Cong',
|
|
|
|
'yugoslavia' => 'Yugoslavia',
|
2020-12-31 05:55:19 +00:00
|
|
|
'zapatista' => 'Zapatista'
|
|
|
|
|
2020-12-30 00:55:38 +00:00
|
|
|
);
|
|
|
|
|
2020-12-24 00:16:53 +00:00
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:28:45 -0800:
|
|
|
|
$config['robot_mute'] = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:29:57 -0800:
|
|
|
|
$config['max_links'] = 100;
|
|
|
|
$config['reply_limit'] = 750;
|
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:34:13 -0800:
|
|
|
|
$config['min_body'] = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:37:13 -0800:
|
|
|
|
$config['anti_bump_flood'] = true;
|
|
|
|
|
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:38:21 -0800:
|
|
|
|
$config['delete_time'] = 5;
|
|
|
|
|
|
|
|
|
|
|
|
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 17:20:14 -0800:
|
|
|
|
$config['reply_hard_limit'] = 1000;
|
|
|
|
|
2020-12-25 22:07:47 +00:00
|
|
|
//Changes by Barbara_Pitt
|
|
|
|
$config['stylesheets']['Dark'] = 'dark.css';
|
|
|
|
$config['stylesheets']['Dark Red'] = 'dark_red.css';
|
|
|
|
$config['always_noko'] = true;
|
2020-12-26 22:04:39 +00:00
|
|
|
$config['spoiler_images'] = true;
|
2020-12-27 23:06:07 +00:00
|
|
|
$config['spoiler_image'] = 'static/spoiler.png';
|
|
|
|
$config['image_deleted'] = 'static/deleted.png';
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-26 09:47:17 +00:00
|
|
|
//more themes (issue#26)
|
|
|
|
$config['stylesheets']['Burichan'] = 'burichan.css';
|
|
|
|
$config['stylesheets']['Futaba'] = 'futaba.css';
|
|
|
|
$config['stylesheets']['Gentoochan'] = 'gentoochan.css';
|
|
|
|
$config['stylesheets']['Gurochan'] = 'gurochan.css';
|
|
|
|
$config['stylesheets']['Jungle'] = 'jungle.css';
|
|
|
|
$config['stylesheets']['LainchanJP'] = 'lainchanjp.css';
|
|
|
|
$config['stylesheets']['Miku'] = 'miku.css';
|
|
|
|
$config['stylesheets']['Notsuba'] = 'notsuba.css';
|
|
|
|
$config['stylesheets']['Photon'] = 'photon.css';
|
|
|
|
$config['stylesheets']['Szalet'] = 'szalet.css';
|
|
|
|
$config['stylesheets']['Tsuki'] = 'tsuki.css';
|
|
|
|
|
2020-12-31 06:07:25 +00:00
|
|
|
$config['default_stylesheet'] = array('Dark Red', $config['stylesheets']['Dark Red']);
|
2020-12-24 00:16:53 +00:00
|
|
|
/*
|
|
|
|
* ====================
|
|
|
|
* Javascript
|
|
|
|
* ====================
|
|
|
|
*/
|
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['additional_javascript'][] = 'js/local-time.js';
|
|
|
|
$config['additional_javascript'][] = 'js/auto-reload.js';
|
2020-12-31 07:04:11 +00:00
|
|
|
$config['additional_javascript'][] = 'js/thread-stats.js';
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['additional_javascript'][] = 'js/post-hover.js';
|
|
|
|
$config['additional_javascript'][] = 'js/style-select.js';
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['additional_javascript'][] = 'js/hide-threads.js';
|
|
|
|
$config['additional_javascript'][] = 'js/hide-images.js';
|
|
|
|
$config['additional_javascript'][] = 'js/show-backlinks.js';
|
|
|
|
$config['additional_javascript'][] = 'js/show-op.js';
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-29 22:18:21 +00:00
|
|
|
$config['additional_javascript'][] = 'js/multi-image.js'; // Support for posting multiple files
|
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['additional_javascript'][] = 'js/jquery-ui.custom.min.js';
|
|
|
|
$config['additional_javascript'][] = 'js/quick-reply.js';
|
2021-01-02 07:06:55 +00:00
|
|
|
$config['additional_javascript'][] = 'js/post-filter.js';
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-26 02:04:43 +00:00
|
|
|
$config['additional_javascript'][] = 'js/options.js';
|
|
|
|
$config['additional_javascript'][] = 'js/webm-settings.js';
|
|
|
|
$config['additional_javascript'][] = 'js/expand-video.js';
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['enable_embedding'] = true;
|
2020-12-24 00:16:53 +00:00
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['youtube_js_html'] = '<div class="video-container" data-video="$2">'.
|
|
|
|
'<a href="https://youtu.be/$2" target="_blank" class="file">'.
|
|
|
|
'<img style="width:255px;height:190px;" src="//img.youtube.com/vi/$2/0.jpg" class="post-image"/>'.
|
|
|
|
'</a></div>';
|
2020-08-30 23:35:42 +00:00
|
|
|
|
2020-12-24 19:51:44 +00:00
|
|
|
$config['embedding'] = array();
|
|
|
|
$config['embedding'][0] = array(
|
|
|
|
'/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
|
|
|
$config['youtube_js_html']);
|
|
|
|
$config['additional_javascript'][] = 'js/youtube.js';
|