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' ,
2021-04-01 04:07:01 +00:00
'anime' ,
'music'
2020-12-30 08:39:19 +00:00
) ,
array ( 'meta' )
);
2021-01-09 23:01:44 +00:00
$config [ 'prepended_foreign_boards' ] = array (
2021-01-11 16:36:29 +00:00
'overboard' => '/overboard/' ,
2021-01-18 04:00:01 +00:00
'cytube' => 'https://tv.leftypol.org/'
2021-01-09 23:01:44 +00:00
);
2020-12-30 08:39:19 +00:00
$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' ,
2021-04-01 04:07:01 +00:00
'anime' ,
'music'
2020-12-30 08:39:19 +00:00
),
'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/' ,
2021-01-18 02:42:23 +00:00
'Marxist Internet Archive' => 'https://www.marxists.org/'
2020-12-30 08:39:19 +00:00
),
);
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' ;
2021-04-15 02:55:10 +00:00
$config [ 'search' ][ 'enable' ] = true ;
2021-01-24 18:49:56 +00:00
$config [ 'flood_cache' ] = 60 * 15 ; // 15 minutes. The oldest a post can be in the flood table
$config [ 'flood_time_any' ] = 40 ; // time between thread creation
2021-01-17 19:38:09 +00:00
$config [ 'flood_time' ] = 30 ;
$config [ 'flood_time_ip' ] = 60 ;
$config [ 'flood_time_same' ] = 60 ;
2020-12-24 19:51:44 +00:00
$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
2021-01-09 22:11:28 +00:00
//Banners
$config [ 'url_banner' ] = '/banners.php' ;
2021-01-04 06:12:42 +00:00
/*
* Some users are having trouble posting when this is on ,
* with the message 'Your request looks automated; Post discarded.'
*
* This did not affect all users , and for some users only for some posts .
*
* If we are getting spammed hard , try turning this on .
*/
$config [ 'spam' ][ 'enabled' ] = false ;
2021-05-05 12:29:06 +00:00
/*
* Basic captcha . See also : captchaconfig . php
*/
$config [ 'securimage' ] = false ;
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 ;
2021-01-10 00:14:33 +00:00
$config [ 'mod' ][ 'mod_board_log' ] = MOD ;
2021-01-18 02:42:23 +00:00
$config [ 'mod' ][ 'ip_recentposts' ] = 350 ;
2020-12-24 19:51:44 +00:00
2021-04-01 04:07:01 +00:00
// Post news entries
$config [ 'mod' ][ 'news' ] = MOD ;
// Custom name when posting news
$config [ 'mod' ][ 'news_custom' ] = MOD ;
// Delete news entries
$config [ 'mod' ][ 'news_delete' ] = MOD ;
2021-04-01 04:15:59 +00:00
// Number of news entries to display per page.
$config [ 'mod' ][ 'news_page' ] = 5 ;
2021-04-01 04:07:01 +00:00
2021-01-18 03:31:06 +00:00
// Allow everyone to see bumplocks
$config [ 'mod' ][ 'view_bumplock' ] = - 1 ;
2021-01-10 01:24:53 +00:00
$config [ 'allow_thread_deletion' ] = false ;
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 ;
2021-02-20 22:44:16 +00:00
$config [ 'max_filesize' ] = 80 * 1024 * 1024 ; // 50MB
2020-12-26 02:04:43 +00:00
$config [ 'webm' ][ 'allow_audio' ] = true ;
2021-02-20 22:44:16 +00:00
$config [ 'webm' ][ 'max_length' ] = 7200 ;
2020-12-26 02:04:43 +00:00
2021-01-09 21:08:24 +00:00
$config [ 'pdf_file_thumbnail' ] = true ;
$config [ 'djvu_file_thumbnail' ] = true ;
2020-12-26 02:04:43 +00:00
// Allowed image file extensions.
$config [ 'allowed_ext' ][] = 'jpg' ;
$config [ 'allowed_ext' ][] = 'jpeg' ;
$config [ 'allowed_ext' ][] = 'bmp' ;
$config [ 'allowed_ext' ][] = 'gif' ;
$config [ 'allowed_ext' ][] = 'png' ;
2021-01-03 09:50:06 +00:00
$config [ 'allowed_ext_files' ][] = 'mp3' ;
2020-12-26 02:04:43 +00:00
$config [ 'allowed_ext_files' ][] = 'mp4' ;
$config [ 'allowed_ext_files' ][] = 'pdf' ;
$config [ 'allowed_ext_files' ][] = 'txt' ;
$config [ 'allowed_ext_files' ][] = 'epub' ;
2021-01-18 04:57:46 +00:00
// Compressed files
$config [ 'allowed_ext_files' ][] = 'zip' ;
$config [ 'allowed_ext_files' ][] = 'gz' ;
$config [ 'allowed_ext_files' ][] = 'bz2' ;
2020-12-26 02:04:43 +00:00
2020-12-30 00:55:38 +00:00
/*
* Flags
*/
$config [ 'country_flags_condensed' ] = false ;
$config [ 'user_flag' ] = true ;
2021-05-06 00:28:25 +00:00
$config [ 'flag_style' ] = 'width:auto;max-height:16px;' ;
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' ,
2021-03-04 20:52:44 +00:00
'antifa' => 'Antifa' ,
2021-04-25 04:47:26 +00:00
'armchair' => 'Armchair' ,
2020-12-30 01:32:42 +00:00
'athiesm' => 'Athiesm' ,
'bolshevik' => 'Bolshevik' ,
'brocialism' => 'Brocialism' ,
'burkina_faso' => 'Burkina Faso' ,
2020-12-31 05:55:19 +00:00
'ca' => 'Canadien' ,
2021-04-25 04:47:26 +00:00
'carlism' => 'Carlism' ,
2020-12-30 01:32:42 +00:00
'chavismo' => 'Chavismo' ,
'che' => 'Che' ,
'china' => 'China' ,
2021-03-04 20:52:44 +00:00
'christian_anarchism' => 'Christian Anarchism' ,
2020-12-30 01:32:42 +00:00
'christian_communism' => 'Christian Communism' ,
'cockshott' => 'Cockshott' ,
2021-03-04 20:52:44 +00:00
'council_communism' => 'Council Communism' ,
2020-12-30 01:32:42 +00:00
'cuba' => 'Cuba' ,
'ddr' => 'DDR' ,
'democrap' => 'Democrap' ,
'democratic_socialism' => 'Democratic Socialism' ,
2021-04-25 04:47:26 +00:00
'directx' => 'Direct X' ,
2020-12-30 01:32:42 +00:00
'dprk' => 'DPRK' ,
2021-04-25 04:47:26 +00:00
'egalitarianism' => 'Egalitarianism' ,
2021-03-04 20:52:44 +00:00
'egoism' => 'Egoism' ,
'eureka' => 'Eureka' ,
2020-12-30 01:32:42 +00:00
'eurocommunism' => 'Eurocommunism' ,
2020-12-31 05:55:19 +00:00
'farc' => 'Las FARC' ,
2020-12-30 01:32:42 +00:00
'fed' => 'Fed' ,
2021-03-04 20:52:44 +00:00
'flq' => 'Front de libération du Québec' ,
2020-12-30 01:32:42 +00:00
'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' ,
2021-04-25 04:47:26 +00:00
'luck_o_the_irish' => 'Luck O\' The Irish' ,
2020-12-30 01:32:42 +00:00
'luxemburg' => 'Luxemburg' ,
'marx' => 'Marx' ,
'mutualism' => 'Mutualism' ,
'naxalite' => 'Naxalite' ,
'nazbol' => 'Nazbol' ,
'nazi' => 'Nazi' ,
'ndfp' => 'NDFP' ,
'palestine' => 'Palestine' ,
'pan-africanism' => 'Pan-Africanism' ,
2021-04-25 04:47:26 +00:00
'phrygian_cap' => 'Phrygian Cap' ,
2020-12-30 01:32:42 +00:00
'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' ,
2021-04-25 04:47:26 +00:00
'snibeti_snab' => 'Snibeti Snab' ,
2020-12-30 01:32:42 +00:00
'socialism' => 'Socialism' ,
'soviet_union' => 'Soviet Union' ,
'spurdo' => 'Spurdo' ,
'ssnp' => 'SSNP' ,
'stalin' => 'Stalin' ,
'syndicalism' => 'Syndicalism' ,
'tankie' => 'Tankie' ,
2021-04-25 04:47:26 +00:00
'technocracy' => 'Technocracy' ,
2020-12-30 01:32:42 +00:00
'think' => 'Think' ,
2021-04-25 04:47:26 +00:00
'transhumanism' => 'Transhumanism' ,
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' ,
2021-04-25 04:47:26 +00:00
'ypg' => 'YPG' ,
2020-12-30 01:32:42 +00:00
'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-24 00:16:53 +00:00
2021-02-20 22:46:03 +00:00
//Changes made by Coma
$config [ 'markup_code' ] = ( " / \ [code \ ](.*?) \ [ \ /code \ ]/is " );
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' ;
2021-01-17 21:10:56 +00:00
$config [ 'stylesheets' ][ 'DemainLight' ] = 'demain_light.css' ;
$config [ 'stylesheets' ][ 'DemainDark' ] = 'demain_dark.css' ;
$config [ 'stylesheets' ][ 'TempDark' ] = 'temp_dark.css' ;
$config [ 'stylesheets' ][ 'TempDarkRed' ] = 'temp_dark_red.css' ;
$config [ 'stylesheets' ][ 'AnonsDarkRed' ] = 'anons_dark_red.css' ;
2021-01-17 21:17:37 +00:00
$config [ 'stylesheets' ][ 'BunkerLike' ] = 'bunker_like.css' ;
2020-12-26 09:47:17 +00:00
2021-04-02 18:17:13 +00:00
$config [ 'default_stylesheet' ] = array ( 'Dark Red' , $config [ 'stylesheets' ][ 'Dark Red' ]);
2020-12-24 00:16:53 +00:00
/*
* ====================
* Javascript
* ====================
*/
2021-01-02 06:56:43 +00:00
$config [ 'additional_javascript' ][] = 'js/jquery-ui.custom.min.js' ;
$config [ 'additional_javascript' ][] = 'js/ajax.js' ;
2021-01-18 09:13:09 +00:00
$config [ 'additional_javascript' ][] = 'js/options.js' ;
2020-12-24 19:51:44 +00:00
$config [ 'additional_javascript' ][] = 'js/local-time.js' ;
$config [ 'additional_javascript' ][] = 'js/auto-reload.js' ;
2021-01-02 16:29:41 +00:00
$config [ 'additional_javascript' ][] = 'js/auto-scroll.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' ;
2021-01-02 06:56:43 +00:00
$config [ 'additional_javascript' ][] = 'js/show-own-posts.js' ;
2020-12-24 00:16:53 +00:00
2020-12-24 19:51:44 +00:00
$config [ 'additional_javascript' ][] = 'js/quick-reply.js' ;
2021-01-02 07:18:21 +00:00
$config [ 'additional_javascript' ][] = 'js/post-menu.js' ;
2021-01-02 07:06:55 +00:00
$config [ 'additional_javascript' ][] = 'js/post-filter.js' ;
2020-12-24 00:16:53 +00:00
2021-01-02 16:29:41 +00:00
$config [ 'additional_javascript' ][] = 'js/options/general.js' ;
$config [ 'additional_javascript' ][] = 'js/options/user-css.js' ;
$config [ 'additional_javascript' ][] = 'js/options/user-js.js' ;
$config [ 'additional_javascript' ][] = 'js/thread-watcher.js' ;
$config [ 'additional_javascript' ][] = 'js/catalog-search.js' ;
$config [ 'additional_javascript' ][] = 'js/gallery-view.js' ;
$config [ 'additional_javascript' ][] = 'js/expand.js' ;
$config [ 'additional_javascript' ][] = 'js/file-selector.js' ;
$config [ 'additional_javascript' ][] = 'js/save-user_flag.js' ;
2020-12-26 02:04:43 +00:00
$config [ 'additional_javascript' ][] = 'js/webm-settings.js' ;
$config [ 'additional_javascript' ][] = 'js/expand-video.js' ;
2021-01-10 01:46:41 +00:00
$config [ 'additional_javascript' ][] = 'js/download-original.js' ;
2021-01-02 16:29:41 +00:00
2020-12-24 19:51:44 +00:00
$config [ 'enable_embedding' ] = true ;
2020-12-24 00:16:53 +00:00
2021-04-03 02:06:42 +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="/vi/$2/0.jpg" class="post-image"/>'
. '</a></div>' ;
2020-12-24 19:51:44 +00:00
$config [ 'embedding' ] = array ();
2021-04-03 02:06:42 +00:00
$config [ 'embedding' ][ 0 ] =
array (
'/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i' ,
$config [ 'youtube_js_html' ]
);
2020-12-24 19:51:44 +00:00
$config [ 'additional_javascript' ][] = 'js/youtube.js' ;
2021-01-04 21:59:59 +00:00
/*
* ====================
* Markup
* ====================
*/
$config [ 'markup' ][] = array ( " /^ \ s*<.* $ /m " , '<span class="orangeQuote">$0</span>' );
$config [ 'markup' ][] = array ( " /__(.+?)__/ " , " <span class= \" underline \" > \$ 1</span> " );
2021-01-05 02:23:32 +00:00
$config [ 'markup' ][] = array ( " /~~(.+?)~~/ " , " <span class= \" strikethrough \" > \$ 1</span> " );
2021-02-20 22:44:16 +00:00
2021-05-02 01:49:33 +00:00
/*
2021-05-08 04:47:08 +00:00
* Original wordfilters ( Obsolete , this is the basic form of the newer version below )
2021-05-02 01:49:33 +00:00
*/
2021-05-02 01:43:59 +00:00
// $config['wordfilters'][] = array('/trann(y|ie)?/i', 'transhumanist', true);
// $config['wordfilters'][] = array('/nigger/i', 'uyghur', true);
// $config['wordfilters'][] = array('/nigg/i', 'uygh', true);
2021-05-02 01:49:33 +00:00
/*
* Traditional word filters . Expires 31 - 12 - 2021.
*
* So , there are too flags at the end of each regex pattern , the " im " at the end . Case Insensitive and Multiline
* let ' s take the third one as an example .
*
2021-05-08 04:47:08 +00:00
* n + [ ^ a - z ] * i + [ ^ a - z ] * g + [ ^ a - z ] * g + ( [ $x_alias ] is just a set of common lookalike characters for x )
2021-05-02 01:49:33 +00:00
*
* Basic regex syntax : * means the preceeding element will be matched if it repeats 0 or more times . + will match 1 or more times
* so a + matches cat or caaat
2021-05-08 04:47:08 +00:00
*
2021-05-02 01:49:33 +00:00
* [] denotes a set of possible matches , so c [ au ] t matches 'cat' and 'cut'
2021-05-08 04:47:08 +00:00
* [ a - z ] means any character from a to z and [ ^ a - z ] means any character that isn ' t in the alphabet ( the starting ^ inverts the set )
* We have the case insensitive flag so captials are included .
2021-05-02 01:49:33 +00:00
*
2021-05-08 04:47:08 +00:00
* The [ $n_alias ] + means that nnnnnnigg still matches due to repetition
* The [ ^ a - z ] * means that if someone does 'n..i..g..g' , then the 0 or more non - alphabet padding
2021-05-02 01:49:33 +00:00
* characters between the n , i , g , g are still matching . Note that it 's 0 or more, not 1 or more, so ' nigg ' still matches .
*
* Example :
2021-05-08 04:47:08 +00:00
* https :// regex101 . com / r / 31 wYx0 / 2
2021-05-02 01:49:33 +00:00
*
*/
2021-05-08 04:47:08 +00:00
$a_alias = 'a4@ÁÀȦÂÄǞǍĂĀÃÅǺǼǢáàȧâäǟǎăāãåǻǽǣĄA̧Ą̊ąa̧ą̊æɑ ÆⱭ' ;
2021-05-11 13:07:15 +00:00
$g_alias = 'gǵġĝǧğg̃ǥɠǤƓǴĠĜǦĞG̃Ģ' ;
2021-05-08 04:47:08 +00:00
$i_alias = 'i1L|ı ɩ įi̧ɨɨ̧ĮI̧ƗƗ̧íìiîïǐĭīĩịÍÌİÎÏǏĬĪĨỊĺļľŀḷḽ' ;
$n_alias = 'nŋʼnńn̂ṅn̈ňn̄ñņṋNŃN̂ṄN̈ŇN̄ÑŅṊ' ;
2021-05-11 13:07:15 +00:00
$config [ 'wordfilters' ][] = array ( '/TRANN(Y|IE)?/' , 'TRANSHUMANIST' , true );
$config [ 'wordfilters' ][] = array ( '/NIGGA/' , 'UYGHA' , true );
$config [ 'wordfilters' ][] = array ( '/NIGGER/' , 'UYGHUR' , true );
2021-05-20 00:24:17 +00:00
$config [ 'wordfilters' ][] = array ( " /t[^ \ p { L}0-9]*r+[^ \ p { L}0-9]*[ $a_alias ]+[^ \ p { L}0-9]*[ $n_alias ]+[^ \ p { L}0-9]*[ $n_alias ]+[^ \ p { L}0-9]*(y|[ $i_alias ]+[^ \ p { L}0-9]*[e3]+)?/im " , 'transhumanist' , true );
$config [ 'wordfilters' ][] = array ( " /[ $n_alias ][^ \ p { L}0-9]*[ $i_alias ]+[^ \ p { L}0-9]*[ $g_alias ]+[^ \ p { L}0-9]*[ $g_alias ]+[^ \ p { L}0-9]*[e3]+[^ \ p { L}0-9]*r/im " , 'uyghur' , true );
$config [ 'wordfilters' ][] = array ( " /[ $n_alias ][^ \ p { L}0-9]*[ $i_alias ]+[^ \ p { L}0-9]*[ $g_alias ]+[^ \ p { L}0-9]*[ $g_alias ]+/im " , 'uygh' , true );
2021-05-20 00:24:42 +00:00
$config [ 'wordfilters' ][] = array ( '/ewish uyghur/i' , 'ewish nigger' , true );
2021-05-08 04:47:08 +00:00
/*
* Filters for diverting anorectal violence spammer
*/
$fakereason_ano = 'Due to automated child pornography and gore spam by /pol/, all posting now requires a pass.<br>To receive a one-week pass, email a short explanation of the Labor Theory of Value to space@national.shitposting.agency .' ;
$config [ 'filters' ][] = array (
'condition' => array (
'subject' => '/anorectal/i' , // Typical thread subject used
),
'action' => 'reject' ,
'message' => " $fakereason_ano "
);
$config [ 'filters' ][] = array (
'condition' => array (
'filename' => '/(TAKE ACTION v|trends.*associations|anusporn|anal insanity|anorectal risks|TAv[0-9]+|arisks)/' , // Typical opening filename format. Their usual evasion strategy is to post only the image.
),
'action' => 'reject' ,
'message' => " $fakereason_ano "
);
// Favorite names and buzzterms
$config [ 'filters' ][] = array (
'condition' => array (
'body' => '/(Rocco Siff|Evil Angel|Xavier Becerra|AdultDVDTalk|painal|Roughanal|anoreceptive|ltimately this is not about me|Logically-fallacious diversionary tactics)/' ,
),
'action' => 'reject' ,
'message' => " $fakereason_ano "
);
/*
* Filters for diverting TheThingN0ticer ban evader
*/
$fakereason_thing = 'Due to automated child pornography and gore spam by /pol/, all posting now requires a pass.<br>To receive a one-week pass, email a short explanation of the Labor Theory of Value to space@national.shitposting.agency .' ;
event_handler ( 'post' , function ( $post ) {
$fakereason_thing = 'Due to automated child pornography and gore spam by /pol/, all posting now requires a pass.<br>To receive a one-week pass, email a short explanation of the Labor Theory of Value to space@national.shitposting.agency .' ;
// Detects posts in the /ITG/ with the filename "Untitled.png" and a Nazi flag
if ( ! $post -> op && $post -> board == 'leftypol' && $post -> thread == 110463 && $post -> has_file &&
$post -> files [ 0 ] -> filename == 'Untitled.png' &&
strpos ( $post -> body_nomarkup , " Nazi</tinyboard> " ) !== false ) { /* has Nazi flag, hack */
return $fakereason_thing ;
// Detects posts with the Nazi flag and their favorite Twitter links
} else if ( strpos ( $post -> body_nomarkup , " Nazi</tinyboard> " ) !== false && /* has Nazi flag, hack */
preg_match ( '/\/(WokeCapital|NickJFuentes|af_clips)/' , $post -> body )) {
return $fakereason_thing ;
}
});
$config [ 'filters' ][] = array (
'condition' => array (
'name' => '/Chauvinist/' , // Current name as of April.
),
'action' => 'reject' ,
'message' => $fakereason_thing
);
2021-04-01 04:07:01 +00:00
2021-05-04 22:23:28 +00:00
2021-02-20 22:44:16 +00:00
// Changes made via web editor by "zul_admin" @ Fri, 19 Feb 2021 15:06:33 -0800:
$config [ 'reply_limit' ] = 800 ;
2021-05-02 01:43:59 +00:00
// Changes made via web editor by "zul_admin" @ Tue, 27 Apr 2021 15:37:26 -0700:
$config [ 'reply_limit' ] = 600 ;
// Changes made via web editor by "zul_admin" @ Tue, 27 Apr 2021 15:39:19 -0700:
$config [ 'max_body' ] = 80000 ;