288 lines
9.2 KiB
PHP
288 lines
9.2 KiB
PHP
<?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.
|
|
*/
|
|
|
|
/*
|
|
* Front page configurations.
|
|
*/
|
|
|
|
$config['boards'] = array(
|
|
array('leftypol',
|
|
'b',
|
|
'hobby',
|
|
'tech',
|
|
'edu',
|
|
'games',
|
|
'anime'
|
|
) ,
|
|
array('meta')
|
|
);
|
|
// 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(
|
|
'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/'
|
|
),
|
|
);
|
|
|
|
/*
|
|
* Database and site wide configurations
|
|
*/
|
|
|
|
$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';
|
|
|
|
/*
|
|
* Permissions
|
|
*/
|
|
$config['mod']['move'] = MOD;
|
|
$config['mod']['editpost'] = MOD;
|
|
// Raw HTML posting
|
|
$config['mod']['rawhtml'] = MOD;
|
|
|
|
// Max attachments per post
|
|
$config['max_images'] = 5;
|
|
$config['image_reject_repost'] = false;
|
|
|
|
$config['thumb_method'] = 'gm+gifsicle';
|
|
$config['gnu_md5'] = '1';
|
|
// $config['update_on_posts'] = true;
|
|
$config['referer_match'] = false;
|
|
|
|
$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';
|
|
|
|
/*
|
|
* Flags
|
|
*/
|
|
$config['country_flags_condensed'] = false;
|
|
$config['user_flag'] = true;
|
|
$config['user_flags'] = array (
|
|
'4th_International.png' => '4th International',
|
|
'Acceleration.png' => 'Acceleration',
|
|
'AK-47.png' => 'AK-47',
|
|
'Albania.png' => 'Albania',
|
|
'Allende.png' => 'Allende',
|
|
'Anarcha-Feminism.png' => 'Anarcha-Feminism',
|
|
'Anarchism.png' => 'Anarchism',
|
|
'Anarcho-Capitalism.png' => 'Anarcho-Capitalism',
|
|
'Anarcho-Communism.png' => 'Anarcho-Communism',
|
|
'Anarcho-Nihilism.png' => 'Anarcho-Nihilism',
|
|
'Anarcho-Primitivism.png' => 'Anarcho-Primitivism',
|
|
'Athiesm.png' => 'Athiesm',
|
|
'Bolshevik.png' => 'Bolshevik',
|
|
'Brocialism.png' => 'Brocialism',
|
|
'Burkina_Faso.png' => 'Burkina Faso',
|
|
'Chavismo.png' => 'Chavismo',
|
|
'Che.png' => 'Che',
|
|
'China.png' => 'China',
|
|
'Christian_Communism.png' => 'Christian Communism',
|
|
'Cockshott.png' => 'Cockshott',
|
|
'Cuba.png' => 'Cuba',
|
|
'DDR.png' => 'DDR',
|
|
'Democrap.png' => 'Democrap',
|
|
'Democratic_Socialism.png' => 'Democratic Socialism',
|
|
'DPRK.png' => 'DPRK',
|
|
'Eurocommunism.png' => 'Eurocommunism',
|
|
'Fed.png' => 'Fed',
|
|
'Freud.png' => 'Freud',
|
|
'Gadsden.png' => 'Gadsden',
|
|
'Gay_Nazi.png' => 'Gay Nazi',
|
|
'Gentoo.png' => 'Gentoo',
|
|
'Gorro.png' => 'Gorro',
|
|
'Groucho_Marxism.png' => 'Groucho Marxism',
|
|
'Hammer_&_Sickle.png' => 'Hammer & Sickle',
|
|
'International' => 'International Brigade',
|
|
'IRA.png' => 'IRA',
|
|
'Islamic_Communism.png' => 'Islamic Communism',
|
|
'IWW.png' => 'IWW',
|
|
'Juche.png' => 'Juche',
|
|
'Kampuchea.png' => 'Kampuchea',
|
|
'Left_Communism.png' => 'Left Communism',
|
|
'Lenin_Cap.png' => 'Lenin Cap',
|
|
'Luxemburg.png' => 'Luxemburg',
|
|
'Marx.png' => 'Marx',
|
|
'Mutualism.png' => 'Mutualism',
|
|
'Naxalite.png' => 'Naxalite',
|
|
'Nazbol.png' => 'Nazbol',
|
|
'Nazi.png' => 'Nazi',
|
|
'NDFP.png' => 'NDFP',
|
|
'Palestine.png' => 'Palestine',
|
|
'Pan-Africanism.png' => 'Pan-Africanism',
|
|
'Pirate.png' => 'Pirate',
|
|
'Porky.png' => 'Porky',
|
|
'Posadas.png' => 'Posadas',
|
|
'Punk.png' => 'Punk',
|
|
'Raised_Fist.png' => 'Raised Fist',
|
|
'Read_a_Fucking_Book.png' => 'Read a Fucking Book',
|
|
'Rethuglican.png' => 'Rethuglican',
|
|
'Sabo-Tabby.png' => 'Sabo-Tabby',
|
|
'Sandinista.png' => 'Sandinista',
|
|
'Sendero_Luminoso.png' => 'Sendero Luminoso',
|
|
'Slavoj.png' => 'Slavoj',
|
|
'Socialism.png' => 'Socialism',
|
|
'Soviet_Union.png' => 'Soviet Union',
|
|
'Spurdo.png' => 'Spurdo',
|
|
'SSNP.png' => 'SSNP',
|
|
'Stalin.png' => 'Stalin',
|
|
'Syndicalism.png' => 'Syndicalism',
|
|
'Tankie.png' => 'Tankie',
|
|
'Think.png' => 'Think',
|
|
'Viet_Cong.png' => 'Viet Cong',
|
|
'Yugoslavia.png' => 'Yugoslavia',
|
|
'Zapatista.png' => 'Zapatista',
|
|
'ca' => 'Canadien'
|
|
);
|
|
|
|
|
|
// 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;
|
|
|
|
//Changes by Barbara_Pitt
|
|
$config['stylesheets']['Dark'] = 'dark.css';
|
|
$config['stylesheets']['Dark Red'] = 'dark_red.css';
|
|
$config['always_noko'] = true;
|
|
$config['spoiler_images'] = true;
|
|
$config['spoiler_image'] = 'static/spoiler.png';
|
|
$config['image_deleted'] = 'static/deleted.png';
|
|
|
|
//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';
|
|
|
|
/*
|
|
* ====================
|
|
* Javascript
|
|
* ====================
|
|
*/
|
|
|
|
$config['additional_javascript'][] = 'js/local-time.js';
|
|
$config['additional_javascript'][] = 'js/auto-reload.js';
|
|
$config['additional_javascript'][] = 'js/post-hover.js';
|
|
$config['additional_javascript'][] = 'js/style-select.js';
|
|
|
|
$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';
|
|
|
|
$config['additional_javascript'][] = 'js/multi-image.js'; // Support for posting multiple files
|
|
|
|
$config['additional_javascript'][] = 'js/jquery-ui.custom.min.js';
|
|
$config['additional_javascript'][] = 'js/quick-reply.js';
|
|
|
|
$config['additional_javascript'][] = 'js/options.js';
|
|
$config['additional_javascript'][] = 'js/webm-settings.js';
|
|
$config['additional_javascript'][] = 'js/expand-video.js';
|
|
$config['enable_embedding'] = true;
|
|
|
|
$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>';
|
|
|
|
$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';
|