Merge pull request #64 from towards-a-new-leftypol/flags

Flags
This commit is contained in:
nonmakina 2020-12-29 21:48:54 -06:00 committed by GitHub
commit 4ea8aa0f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
349 changed files with 1407 additions and 1514 deletions

View File

@ -9,7 +9,6 @@ defined('TINYBOARD') or exit;
$hidden_inputs_twig = array();
$logfile = "/tmp/lainchan_err.out";
file_put_contents($logfile, "\n\nSTART\n\n", FILE_APPEND);
function print_err($s) {
// global $logfile;
@ -20,6 +19,8 @@ function print_err2($s) {
print_err($s);
}
print_err("\n\nSTART\n\n");
class AntiBot {
public $salt, $inputs = array(), $index = 0;

View File

@ -122,6 +122,89 @@ $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['flag_style'] = 'width:auto;height:11px;';
$config['user_flags'] = array (
'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',
'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',
'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',
'viet_cong' => 'Viet Cong',
'yugoslavia' => 'Yugoslavia',
'zapatista' => 'Zapatista',
'ca' => 'Canadien'
);
// Changes made via web editor by "krates" @ Tue, 22 Dec 2020 16:28:45 -0800:
$config['robot_mute'] = false;

2835
post.php

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

0
static/flags/a1.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

0
static/flags/a2.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

0
static/flags/ac.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

0
static/flags/ad.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

0
static/flags/ae.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

0
static/flags/af.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

0
static/flags/ag.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 455 B

0
static/flags/ai.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 516 B

BIN
static/flags/ak-47.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

0
static/flags/al.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 431 B

BIN
static/flags/albania.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/flags/allende.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

0
static/flags/am.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

0
static/flags/an.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

BIN
static/flags/anarchism.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1016 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

0
static/flags/ao.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

0
static/flags/ap.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

0
static/flags/aq.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

0
static/flags/ar.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

0
static/flags/as.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 538 B

0
static/flags/at.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

BIN
static/flags/athiesm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

0
static/flags/au.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 579 B

0
static/flags/aw.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 393 B

After

Width:  |  Height:  |  Size: 393 B

0
static/flags/ax.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 476 B

0
static/flags/az.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 420 B

After

Width:  |  Height:  |  Size: 420 B

0
static/flags/ba.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 469 B

0
static/flags/bb.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

0
static/flags/bd.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

0
static/flags/be.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 294 B

0
static/flags/bf.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

0
static/flags/bg.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 320 B

0
static/flags/bh.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

0
static/flags/bi.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

0
static/flags/bj.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

0
static/flags/bl.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

0
static/flags/bm.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

0
static/flags/bn.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 500 B

0
static/flags/bo.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

BIN
static/flags/bolshevik.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

0
static/flags/bq.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 309 B

0
static/flags/br.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 477 B

BIN
static/flags/brocialism.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

0
static/flags/bs.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 391 B

0
static/flags/bt.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

0
static/flags/bu.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 336 B

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

0
static/flags/bv.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 397 B

After

Width:  |  Height:  |  Size: 397 B

0
static/flags/bw.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

0
static/flags/by.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 382 B

0
static/flags/bz.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

0
static/flags/ca.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

0
static/flags/cat.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 353 B

0
static/flags/cc.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 493 B

After

Width:  |  Height:  |  Size: 493 B

0
static/flags/cd.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

0
static/flags/cf.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 454 B

After

Width:  |  Height:  |  Size: 454 B

0
static/flags/cg.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

0
static/flags/ch.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

BIN
static/flags/chavismo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

BIN
static/flags/che.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
static/flags/china.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

0
static/flags/ci.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 304 B

0
static/flags/ck.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 488 B

0
static/flags/cl.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

0
static/flags/cm.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 347 B

0
static/flags/cn.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

0
static/flags/co.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

BIN
static/flags/cockshott.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

0
static/flags/cp.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

0
static/flags/cr.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

0
static/flags/cs.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 321 B

0
static/flags/cu.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 440 B

BIN
static/flags/cuba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

0
static/flags/cv.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 437 B

0
static/flags/cw.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

0
static/flags/cx.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

0
static/flags/cy.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

0
static/flags/cz.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 363 B

BIN
static/flags/ddr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

0
static/flags/de.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 359 B

BIN
static/flags/democrap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

0
static/flags/dg.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 575 B

After

Width:  |  Height:  |  Size: 575 B

0
static/flags/dj.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

0
static/flags/dk.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B

0
static/flags/dm.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

0
static/flags/do.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

BIN
static/flags/dprk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

0
static/flags/dz.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 452 B

Some files were not shown because too many files have changed in this diff Show More