From 923c218349dc50ff8f88c9e2c63b847dd7b011c7 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 19:50:02 -0500 Subject: [PATCH 1/8] flags don't need executable permissions --- static/flags/a1.png | Bin static/flags/a2.png | Bin static/flags/ac.png | Bin static/flags/ad.png | Bin static/flags/ae.png | Bin static/flags/af.png | Bin static/flags/ag.png | Bin static/flags/ai.png | Bin static/flags/al.png | Bin static/flags/am.png | Bin static/flags/an.png | Bin static/flags/ao.png | Bin static/flags/ap.png | Bin static/flags/aq.png | Bin static/flags/ar.png | Bin static/flags/as.png | Bin static/flags/at.png | Bin static/flags/au.png | Bin static/flags/aw.png | Bin static/flags/ax.png | Bin static/flags/az.png | Bin static/flags/ba.png | Bin static/flags/bb.png | Bin static/flags/bd.png | Bin static/flags/be.png | Bin static/flags/bf.png | Bin static/flags/bg.png | Bin static/flags/bh.png | Bin static/flags/bi.png | Bin static/flags/bj.png | Bin static/flags/bl.png | Bin static/flags/bm.png | Bin static/flags/bn.png | Bin static/flags/bo.png | Bin static/flags/bq.png | Bin static/flags/br.png | Bin static/flags/bs.png | Bin static/flags/bt.png | Bin static/flags/bu.png | Bin static/flags/bv.png | Bin static/flags/bw.png | Bin static/flags/by.png | Bin static/flags/bz.png | Bin static/flags/ca.png | Bin static/flags/cat.png | Bin static/flags/cc.png | Bin static/flags/cd.png | Bin static/flags/cf.png | Bin static/flags/cg.png | Bin static/flags/ch.png | Bin static/flags/ci.png | Bin static/flags/ck.png | Bin static/flags/cl.png | Bin static/flags/cm.png | Bin static/flags/cn.png | Bin static/flags/co.png | Bin static/flags/cp.png | Bin static/flags/cr.png | Bin static/flags/cs.png | Bin static/flags/cu.png | Bin static/flags/cv.png | Bin static/flags/cw.png | Bin static/flags/cx.png | Bin static/flags/cy.png | Bin static/flags/cz.png | Bin static/flags/de.png | Bin static/flags/dg.png | Bin static/flags/dj.png | Bin static/flags/dk.png | Bin static/flags/dm.png | Bin static/flags/do.png | Bin static/flags/dz.png | Bin static/flags/ea.png | Bin static/flags/ec.png | Bin static/flags/ee.png | Bin static/flags/eg.png | Bin static/flags/eh.png | Bin static/flags/er.png | Bin static/flags/es.png | Bin static/flags/et.png | Bin static/flags/eu.png | Bin static/flags/fi.png | Bin static/flags/fj.png | Bin static/flags/fk.png | Bin static/flags/fm.png | Bin static/flags/fo.png | Bin static/flags/fr.png | Bin static/flags/fx.png | Bin static/flags/ga.png | Bin static/flags/gb.png | Bin static/flags/gd.png | Bin static/flags/ge.png | Bin static/flags/gf.png | Bin static/flags/gg.png | Bin static/flags/gh.png | Bin static/flags/gi.png | Bin static/flags/gl.png | Bin static/flags/gm.png | Bin static/flags/gn.png | Bin static/flags/gp.png | Bin static/flags/gq.png | Bin static/flags/gr.png | Bin static/flags/gs.png | Bin static/flags/gt.png | Bin static/flags/gu.png | Bin static/flags/gw.png | Bin static/flags/gy.png | Bin static/flags/hk.png | Bin static/flags/hm.png | Bin static/flags/hn.png | Bin static/flags/hr.png | Bin static/flags/ht.png | Bin static/flags/hu.png | Bin static/flags/ic.png | Bin static/flags/id.png | Bin static/flags/ie.png | Bin static/flags/il.png | Bin static/flags/im.png | Bin static/flags/in.png | Bin static/flags/io.png | Bin static/flags/iq.png | Bin static/flags/ir.png | Bin static/flags/is.png | Bin static/flags/it.png | Bin static/flags/je.png | Bin static/flags/jm.png | Bin static/flags/jo.png | Bin static/flags/jp.png | Bin static/flags/ke.png | Bin static/flags/kg.png | Bin static/flags/kh.png | Bin static/flags/ki.png | Bin static/flags/km.png | Bin static/flags/kn.png | Bin static/flags/kp.png | Bin static/flags/kr.png | Bin static/flags/kw.png | Bin static/flags/ky.png | Bin static/flags/kz.png | Bin static/flags/la.png | Bin static/flags/lb.png | Bin static/flags/lc.png | Bin static/flags/li.png | Bin static/flags/lk.png | Bin static/flags/lr.png | Bin static/flags/ls.png | Bin static/flags/lt.png | Bin static/flags/lu.png | Bin static/flags/lv.png | Bin static/flags/ly.png | Bin static/flags/ma.png | Bin static/flags/mc.png | Bin static/flags/md.png | Bin static/flags/me.png | Bin static/flags/mf.png | Bin static/flags/mg.png | Bin static/flags/mh.png | Bin static/flags/mk.png | Bin static/flags/ml.png | Bin static/flags/mm.png | Bin static/flags/mn.png | Bin static/flags/mo.png | Bin static/flags/mp.png | Bin static/flags/mq.png | Bin static/flags/mr.png | Bin static/flags/ms.png | Bin static/flags/mt.png | Bin static/flags/mu.png | Bin static/flags/mv.png | Bin static/flags/mw.png | Bin static/flags/mx.png | Bin static/flags/my.png | Bin static/flags/mz.png | Bin static/flags/na.png | Bin static/flags/nc.png | Bin static/flags/ne.png | Bin static/flags/nf.png | Bin static/flags/ng.png | Bin static/flags/ni.png | Bin static/flags/nl.png | Bin static/flags/no.png | Bin static/flags/np.png | Bin static/flags/nr.png | Bin static/flags/nt.png | Bin static/flags/nu.png | Bin static/flags/nz.png | Bin static/flags/o1.png | Bin static/flags/om.png | Bin static/flags/pa.png | Bin static/flags/pe.png | Bin static/flags/pf.png | Bin static/flags/pg.png | Bin static/flags/ph.png | Bin static/flags/pk.png | Bin static/flags/pl.png | Bin static/flags/pm.png | Bin static/flags/pn.png | Bin static/flags/pr.png | Bin static/flags/ps.png | Bin static/flags/pt.png | Bin static/flags/pw.png | Bin static/flags/py.png | Bin static/flags/qa.png | Bin static/flags/re.png | Bin static/flags/ro.png | Bin static/flags/ru.png | Bin static/flags/rw.png | Bin static/flags/sa.png | Bin static/flags/sb.png | Bin static/flags/sc.png | Bin static/flags/sd.png | Bin static/flags/se.png | Bin static/flags/sf.png | Bin static/flags/sg.png | Bin static/flags/sh.png | Bin static/flags/si.png | Bin static/flags/sj.png | Bin static/flags/sk.png | Bin static/flags/sl.png | Bin static/flags/sm.png | Bin static/flags/sn.png | Bin static/flags/so.png | Bin static/flags/sr.png | Bin static/flags/ss.png | Bin static/flags/st.png | Bin static/flags/su.png | Bin static/flags/sv.png | Bin static/flags/sx.png | Bin static/flags/sy.png | Bin static/flags/sz.png | Bin static/flags/ta.png | Bin static/flags/tc.png | Bin static/flags/td.png | Bin static/flags/tf.png | Bin static/flags/tg.png | Bin static/flags/th.png | Bin static/flags/ti.png | Bin static/flags/tj.png | Bin static/flags/tk.png | Bin static/flags/tl.png | Bin static/flags/tm.png | Bin static/flags/tn.png | Bin static/flags/to.png | Bin static/flags/tp.png | Bin static/flags/tr.png | Bin static/flags/tt.png | Bin static/flags/tv.png | Bin static/flags/tw.png | Bin static/flags/tz.png | Bin static/flags/ua.png | Bin static/flags/ug.png | Bin static/flags/uk.png | Bin static/flags/um.png | Bin static/flags/us.png | Bin static/flags/uy.png | Bin static/flags/uz.png | Bin static/flags/va.png | Bin static/flags/vc.png | Bin static/flags/ve.png | Bin static/flags/vg.png | Bin static/flags/vi.png | Bin static/flags/vn.png | Bin static/flags/vu.png | Bin static/flags/wf.png | Bin static/flags/ws.png | Bin static/flags/xx.png | Bin static/flags/ye.png | Bin static/flags/yt.png | Bin static/flags/yu.png | Bin static/flags/za.png | Bin static/flags/zm.png | Bin static/flags/zr.png | Bin static/flags/zw.png | Bin 273 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 static/flags/a1.png mode change 100755 => 100644 static/flags/a2.png mode change 100755 => 100644 static/flags/ac.png mode change 100755 => 100644 static/flags/ad.png mode change 100755 => 100644 static/flags/ae.png mode change 100755 => 100644 static/flags/af.png mode change 100755 => 100644 static/flags/ag.png mode change 100755 => 100644 static/flags/ai.png mode change 100755 => 100644 static/flags/al.png mode change 100755 => 100644 static/flags/am.png mode change 100755 => 100644 static/flags/an.png mode change 100755 => 100644 static/flags/ao.png mode change 100755 => 100644 static/flags/ap.png mode change 100755 => 100644 static/flags/aq.png mode change 100755 => 100644 static/flags/ar.png mode change 100755 => 100644 static/flags/as.png mode change 100755 => 100644 static/flags/at.png mode change 100755 => 100644 static/flags/au.png mode change 100755 => 100644 static/flags/aw.png mode change 100755 => 100644 static/flags/ax.png mode change 100755 => 100644 static/flags/az.png mode change 100755 => 100644 static/flags/ba.png mode change 100755 => 100644 static/flags/bb.png mode change 100755 => 100644 static/flags/bd.png mode change 100755 => 100644 static/flags/be.png mode change 100755 => 100644 static/flags/bf.png mode change 100755 => 100644 static/flags/bg.png mode change 100755 => 100644 static/flags/bh.png mode change 100755 => 100644 static/flags/bi.png mode change 100755 => 100644 static/flags/bj.png mode change 100755 => 100644 static/flags/bl.png mode change 100755 => 100644 static/flags/bm.png mode change 100755 => 100644 static/flags/bn.png mode change 100755 => 100644 static/flags/bo.png mode change 100755 => 100644 static/flags/bq.png mode change 100755 => 100644 static/flags/br.png mode change 100755 => 100644 static/flags/bs.png mode change 100755 => 100644 static/flags/bt.png mode change 100755 => 100644 static/flags/bu.png mode change 100755 => 100644 static/flags/bv.png mode change 100755 => 100644 static/flags/bw.png mode change 100755 => 100644 static/flags/by.png mode change 100755 => 100644 static/flags/bz.png mode change 100755 => 100644 static/flags/ca.png mode change 100755 => 100644 static/flags/cat.png mode change 100755 => 100644 static/flags/cc.png mode change 100755 => 100644 static/flags/cd.png mode change 100755 => 100644 static/flags/cf.png mode change 100755 => 100644 static/flags/cg.png mode change 100755 => 100644 static/flags/ch.png mode change 100755 => 100644 static/flags/ci.png mode change 100755 => 100644 static/flags/ck.png mode change 100755 => 100644 static/flags/cl.png mode change 100755 => 100644 static/flags/cm.png mode change 100755 => 100644 static/flags/cn.png mode change 100755 => 100644 static/flags/co.png mode change 100755 => 100644 static/flags/cp.png mode change 100755 => 100644 static/flags/cr.png mode change 100755 => 100644 static/flags/cs.png mode change 100755 => 100644 static/flags/cu.png mode change 100755 => 100644 static/flags/cv.png mode change 100755 => 100644 static/flags/cw.png mode change 100755 => 100644 static/flags/cx.png mode change 100755 => 100644 static/flags/cy.png mode change 100755 => 100644 static/flags/cz.png mode change 100755 => 100644 static/flags/de.png mode change 100755 => 100644 static/flags/dg.png mode change 100755 => 100644 static/flags/dj.png mode change 100755 => 100644 static/flags/dk.png mode change 100755 => 100644 static/flags/dm.png mode change 100755 => 100644 static/flags/do.png mode change 100755 => 100644 static/flags/dz.png mode change 100755 => 100644 static/flags/ea.png mode change 100755 => 100644 static/flags/ec.png mode change 100755 => 100644 static/flags/ee.png mode change 100755 => 100644 static/flags/eg.png mode change 100755 => 100644 static/flags/eh.png mode change 100755 => 100644 static/flags/er.png mode change 100755 => 100644 static/flags/es.png mode change 100755 => 100644 static/flags/et.png mode change 100755 => 100644 static/flags/eu.png mode change 100755 => 100644 static/flags/fi.png mode change 100755 => 100644 static/flags/fj.png mode change 100755 => 100644 static/flags/fk.png mode change 100755 => 100644 static/flags/fm.png mode change 100755 => 100644 static/flags/fo.png mode change 100755 => 100644 static/flags/fr.png mode change 100755 => 100644 static/flags/fx.png mode change 100755 => 100644 static/flags/ga.png mode change 100755 => 100644 static/flags/gb.png mode change 100755 => 100644 static/flags/gd.png mode change 100755 => 100644 static/flags/ge.png mode change 100755 => 100644 static/flags/gf.png mode change 100755 => 100644 static/flags/gg.png mode change 100755 => 100644 static/flags/gh.png mode change 100755 => 100644 static/flags/gi.png mode change 100755 => 100644 static/flags/gl.png mode change 100755 => 100644 static/flags/gm.png mode change 100755 => 100644 static/flags/gn.png mode change 100755 => 100644 static/flags/gp.png mode change 100755 => 100644 static/flags/gq.png mode change 100755 => 100644 static/flags/gr.png mode change 100755 => 100644 static/flags/gs.png mode change 100755 => 100644 static/flags/gt.png mode change 100755 => 100644 static/flags/gu.png mode change 100755 => 100644 static/flags/gw.png mode change 100755 => 100644 static/flags/gy.png mode change 100755 => 100644 static/flags/hk.png mode change 100755 => 100644 static/flags/hm.png mode change 100755 => 100644 static/flags/hn.png mode change 100755 => 100644 static/flags/hr.png mode change 100755 => 100644 static/flags/ht.png mode change 100755 => 100644 static/flags/hu.png mode change 100755 => 100644 static/flags/ic.png mode change 100755 => 100644 static/flags/id.png mode change 100755 => 100644 static/flags/ie.png mode change 100755 => 100644 static/flags/il.png mode change 100755 => 100644 static/flags/im.png mode change 100755 => 100644 static/flags/in.png mode change 100755 => 100644 static/flags/io.png mode change 100755 => 100644 static/flags/iq.png mode change 100755 => 100644 static/flags/ir.png mode change 100755 => 100644 static/flags/is.png mode change 100755 => 100644 static/flags/it.png mode change 100755 => 100644 static/flags/je.png mode change 100755 => 100644 static/flags/jm.png mode change 100755 => 100644 static/flags/jo.png mode change 100755 => 100644 static/flags/jp.png mode change 100755 => 100644 static/flags/ke.png mode change 100755 => 100644 static/flags/kg.png mode change 100755 => 100644 static/flags/kh.png mode change 100755 => 100644 static/flags/ki.png mode change 100755 => 100644 static/flags/km.png mode change 100755 => 100644 static/flags/kn.png mode change 100755 => 100644 static/flags/kp.png mode change 100755 => 100644 static/flags/kr.png mode change 100755 => 100644 static/flags/kw.png mode change 100755 => 100644 static/flags/ky.png mode change 100755 => 100644 static/flags/kz.png mode change 100755 => 100644 static/flags/la.png mode change 100755 => 100644 static/flags/lb.png mode change 100755 => 100644 static/flags/lc.png mode change 100755 => 100644 static/flags/li.png mode change 100755 => 100644 static/flags/lk.png mode change 100755 => 100644 static/flags/lr.png mode change 100755 => 100644 static/flags/ls.png mode change 100755 => 100644 static/flags/lt.png mode change 100755 => 100644 static/flags/lu.png mode change 100755 => 100644 static/flags/lv.png mode change 100755 => 100644 static/flags/ly.png mode change 100755 => 100644 static/flags/ma.png mode change 100755 => 100644 static/flags/mc.png mode change 100755 => 100644 static/flags/md.png mode change 100755 => 100644 static/flags/me.png mode change 100755 => 100644 static/flags/mf.png mode change 100755 => 100644 static/flags/mg.png mode change 100755 => 100644 static/flags/mh.png mode change 100755 => 100644 static/flags/mk.png mode change 100755 => 100644 static/flags/ml.png mode change 100755 => 100644 static/flags/mm.png mode change 100755 => 100644 static/flags/mn.png mode change 100755 => 100644 static/flags/mo.png mode change 100755 => 100644 static/flags/mp.png mode change 100755 => 100644 static/flags/mq.png mode change 100755 => 100644 static/flags/mr.png mode change 100755 => 100644 static/flags/ms.png mode change 100755 => 100644 static/flags/mt.png mode change 100755 => 100644 static/flags/mu.png mode change 100755 => 100644 static/flags/mv.png mode change 100755 => 100644 static/flags/mw.png mode change 100755 => 100644 static/flags/mx.png mode change 100755 => 100644 static/flags/my.png mode change 100755 => 100644 static/flags/mz.png mode change 100755 => 100644 static/flags/na.png mode change 100755 => 100644 static/flags/nc.png mode change 100755 => 100644 static/flags/ne.png mode change 100755 => 100644 static/flags/nf.png mode change 100755 => 100644 static/flags/ng.png mode change 100755 => 100644 static/flags/ni.png mode change 100755 => 100644 static/flags/nl.png mode change 100755 => 100644 static/flags/no.png mode change 100755 => 100644 static/flags/np.png mode change 100755 => 100644 static/flags/nr.png mode change 100755 => 100644 static/flags/nt.png mode change 100755 => 100644 static/flags/nu.png mode change 100755 => 100644 static/flags/nz.png mode change 100755 => 100644 static/flags/o1.png mode change 100755 => 100644 static/flags/om.png mode change 100755 => 100644 static/flags/pa.png mode change 100755 => 100644 static/flags/pe.png mode change 100755 => 100644 static/flags/pf.png mode change 100755 => 100644 static/flags/pg.png mode change 100755 => 100644 static/flags/ph.png mode change 100755 => 100644 static/flags/pk.png mode change 100755 => 100644 static/flags/pl.png mode change 100755 => 100644 static/flags/pm.png mode change 100755 => 100644 static/flags/pn.png mode change 100755 => 100644 static/flags/pr.png mode change 100755 => 100644 static/flags/ps.png mode change 100755 => 100644 static/flags/pt.png mode change 100755 => 100644 static/flags/pw.png mode change 100755 => 100644 static/flags/py.png mode change 100755 => 100644 static/flags/qa.png mode change 100755 => 100644 static/flags/re.png mode change 100755 => 100644 static/flags/ro.png mode change 100755 => 100644 static/flags/ru.png mode change 100755 => 100644 static/flags/rw.png mode change 100755 => 100644 static/flags/sa.png mode change 100755 => 100644 static/flags/sb.png mode change 100755 => 100644 static/flags/sc.png mode change 100755 => 100644 static/flags/sd.png mode change 100755 => 100644 static/flags/se.png mode change 100755 => 100644 static/flags/sf.png mode change 100755 => 100644 static/flags/sg.png mode change 100755 => 100644 static/flags/sh.png mode change 100755 => 100644 static/flags/si.png mode change 100755 => 100644 static/flags/sj.png mode change 100755 => 100644 static/flags/sk.png mode change 100755 => 100644 static/flags/sl.png mode change 100755 => 100644 static/flags/sm.png mode change 100755 => 100644 static/flags/sn.png mode change 100755 => 100644 static/flags/so.png mode change 100755 => 100644 static/flags/sr.png mode change 100755 => 100644 static/flags/ss.png mode change 100755 => 100644 static/flags/st.png mode change 100755 => 100644 static/flags/su.png mode change 100755 => 100644 static/flags/sv.png mode change 100755 => 100644 static/flags/sx.png mode change 100755 => 100644 static/flags/sy.png mode change 100755 => 100644 static/flags/sz.png mode change 100755 => 100644 static/flags/ta.png mode change 100755 => 100644 static/flags/tc.png mode change 100755 => 100644 static/flags/td.png mode change 100755 => 100644 static/flags/tf.png mode change 100755 => 100644 static/flags/tg.png mode change 100755 => 100644 static/flags/th.png mode change 100755 => 100644 static/flags/ti.png mode change 100755 => 100644 static/flags/tj.png mode change 100755 => 100644 static/flags/tk.png mode change 100755 => 100644 static/flags/tl.png mode change 100755 => 100644 static/flags/tm.png mode change 100755 => 100644 static/flags/tn.png mode change 100755 => 100644 static/flags/to.png mode change 100755 => 100644 static/flags/tp.png mode change 100755 => 100644 static/flags/tr.png mode change 100755 => 100644 static/flags/tt.png mode change 100755 => 100644 static/flags/tv.png mode change 100755 => 100644 static/flags/tw.png mode change 100755 => 100644 static/flags/tz.png mode change 100755 => 100644 static/flags/ua.png mode change 100755 => 100644 static/flags/ug.png mode change 100755 => 100644 static/flags/uk.png mode change 100755 => 100644 static/flags/um.png mode change 100755 => 100644 static/flags/us.png mode change 100755 => 100644 static/flags/uy.png mode change 100755 => 100644 static/flags/uz.png mode change 100755 => 100644 static/flags/va.png mode change 100755 => 100644 static/flags/vc.png mode change 100755 => 100644 static/flags/ve.png mode change 100755 => 100644 static/flags/vg.png mode change 100755 => 100644 static/flags/vi.png mode change 100755 => 100644 static/flags/vn.png mode change 100755 => 100644 static/flags/vu.png mode change 100755 => 100644 static/flags/wf.png mode change 100755 => 100644 static/flags/ws.png mode change 100755 => 100644 static/flags/xx.png mode change 100755 => 100644 static/flags/ye.png mode change 100755 => 100644 static/flags/yt.png mode change 100755 => 100644 static/flags/yu.png mode change 100755 => 100644 static/flags/za.png mode change 100755 => 100644 static/flags/zm.png mode change 100755 => 100644 static/flags/zr.png mode change 100755 => 100644 static/flags/zw.png diff --git a/static/flags/a1.png b/static/flags/a1.png old mode 100755 new mode 100644 diff --git a/static/flags/a2.png b/static/flags/a2.png old mode 100755 new mode 100644 diff --git a/static/flags/ac.png b/static/flags/ac.png old mode 100755 new mode 100644 diff --git a/static/flags/ad.png b/static/flags/ad.png old mode 100755 new mode 100644 diff --git a/static/flags/ae.png b/static/flags/ae.png old mode 100755 new mode 100644 diff --git a/static/flags/af.png b/static/flags/af.png old mode 100755 new mode 100644 diff --git a/static/flags/ag.png b/static/flags/ag.png old mode 100755 new mode 100644 diff --git a/static/flags/ai.png b/static/flags/ai.png old mode 100755 new mode 100644 diff --git a/static/flags/al.png b/static/flags/al.png old mode 100755 new mode 100644 diff --git a/static/flags/am.png b/static/flags/am.png old mode 100755 new mode 100644 diff --git a/static/flags/an.png b/static/flags/an.png old mode 100755 new mode 100644 diff --git a/static/flags/ao.png b/static/flags/ao.png old mode 100755 new mode 100644 diff --git a/static/flags/ap.png b/static/flags/ap.png old mode 100755 new mode 100644 diff --git a/static/flags/aq.png b/static/flags/aq.png old mode 100755 new mode 100644 diff --git a/static/flags/ar.png b/static/flags/ar.png old mode 100755 new mode 100644 diff --git a/static/flags/as.png b/static/flags/as.png old mode 100755 new mode 100644 diff --git a/static/flags/at.png b/static/flags/at.png old mode 100755 new mode 100644 diff --git a/static/flags/au.png b/static/flags/au.png old mode 100755 new mode 100644 diff --git a/static/flags/aw.png b/static/flags/aw.png old mode 100755 new mode 100644 diff --git a/static/flags/ax.png b/static/flags/ax.png old mode 100755 new mode 100644 diff --git a/static/flags/az.png b/static/flags/az.png old mode 100755 new mode 100644 diff --git a/static/flags/ba.png b/static/flags/ba.png old mode 100755 new mode 100644 diff --git a/static/flags/bb.png b/static/flags/bb.png old mode 100755 new mode 100644 diff --git a/static/flags/bd.png b/static/flags/bd.png old mode 100755 new mode 100644 diff --git a/static/flags/be.png b/static/flags/be.png old mode 100755 new mode 100644 diff --git a/static/flags/bf.png b/static/flags/bf.png old mode 100755 new mode 100644 diff --git a/static/flags/bg.png b/static/flags/bg.png old mode 100755 new mode 100644 diff --git a/static/flags/bh.png b/static/flags/bh.png old mode 100755 new mode 100644 diff --git a/static/flags/bi.png b/static/flags/bi.png old mode 100755 new mode 100644 diff --git a/static/flags/bj.png b/static/flags/bj.png old mode 100755 new mode 100644 diff --git a/static/flags/bl.png b/static/flags/bl.png old mode 100755 new mode 100644 diff --git a/static/flags/bm.png b/static/flags/bm.png old mode 100755 new mode 100644 diff --git a/static/flags/bn.png b/static/flags/bn.png old mode 100755 new mode 100644 diff --git a/static/flags/bo.png b/static/flags/bo.png old mode 100755 new mode 100644 diff --git a/static/flags/bq.png b/static/flags/bq.png old mode 100755 new mode 100644 diff --git a/static/flags/br.png b/static/flags/br.png old mode 100755 new mode 100644 diff --git a/static/flags/bs.png b/static/flags/bs.png old mode 100755 new mode 100644 diff --git a/static/flags/bt.png b/static/flags/bt.png old mode 100755 new mode 100644 diff --git a/static/flags/bu.png b/static/flags/bu.png old mode 100755 new mode 100644 diff --git a/static/flags/bv.png b/static/flags/bv.png old mode 100755 new mode 100644 diff --git a/static/flags/bw.png b/static/flags/bw.png old mode 100755 new mode 100644 diff --git a/static/flags/by.png b/static/flags/by.png old mode 100755 new mode 100644 diff --git a/static/flags/bz.png b/static/flags/bz.png old mode 100755 new mode 100644 diff --git a/static/flags/ca.png b/static/flags/ca.png old mode 100755 new mode 100644 diff --git a/static/flags/cat.png b/static/flags/cat.png old mode 100755 new mode 100644 diff --git a/static/flags/cc.png b/static/flags/cc.png old mode 100755 new mode 100644 diff --git a/static/flags/cd.png b/static/flags/cd.png old mode 100755 new mode 100644 diff --git a/static/flags/cf.png b/static/flags/cf.png old mode 100755 new mode 100644 diff --git a/static/flags/cg.png b/static/flags/cg.png old mode 100755 new mode 100644 diff --git a/static/flags/ch.png b/static/flags/ch.png old mode 100755 new mode 100644 diff --git a/static/flags/ci.png b/static/flags/ci.png old mode 100755 new mode 100644 diff --git a/static/flags/ck.png b/static/flags/ck.png old mode 100755 new mode 100644 diff --git a/static/flags/cl.png b/static/flags/cl.png old mode 100755 new mode 100644 diff --git a/static/flags/cm.png b/static/flags/cm.png old mode 100755 new mode 100644 diff --git a/static/flags/cn.png b/static/flags/cn.png old mode 100755 new mode 100644 diff --git a/static/flags/co.png b/static/flags/co.png old mode 100755 new mode 100644 diff --git a/static/flags/cp.png b/static/flags/cp.png old mode 100755 new mode 100644 diff --git a/static/flags/cr.png b/static/flags/cr.png old mode 100755 new mode 100644 diff --git a/static/flags/cs.png b/static/flags/cs.png old mode 100755 new mode 100644 diff --git a/static/flags/cu.png b/static/flags/cu.png old mode 100755 new mode 100644 diff --git a/static/flags/cv.png b/static/flags/cv.png old mode 100755 new mode 100644 diff --git a/static/flags/cw.png b/static/flags/cw.png old mode 100755 new mode 100644 diff --git a/static/flags/cx.png b/static/flags/cx.png old mode 100755 new mode 100644 diff --git a/static/flags/cy.png b/static/flags/cy.png old mode 100755 new mode 100644 diff --git a/static/flags/cz.png b/static/flags/cz.png old mode 100755 new mode 100644 diff --git a/static/flags/de.png b/static/flags/de.png old mode 100755 new mode 100644 diff --git a/static/flags/dg.png b/static/flags/dg.png old mode 100755 new mode 100644 diff --git a/static/flags/dj.png b/static/flags/dj.png old mode 100755 new mode 100644 diff --git a/static/flags/dk.png b/static/flags/dk.png old mode 100755 new mode 100644 diff --git a/static/flags/dm.png b/static/flags/dm.png old mode 100755 new mode 100644 diff --git a/static/flags/do.png b/static/flags/do.png old mode 100755 new mode 100644 diff --git a/static/flags/dz.png b/static/flags/dz.png old mode 100755 new mode 100644 diff --git a/static/flags/ea.png b/static/flags/ea.png old mode 100755 new mode 100644 diff --git a/static/flags/ec.png b/static/flags/ec.png old mode 100755 new mode 100644 diff --git a/static/flags/ee.png b/static/flags/ee.png old mode 100755 new mode 100644 diff --git a/static/flags/eg.png b/static/flags/eg.png old mode 100755 new mode 100644 diff --git a/static/flags/eh.png b/static/flags/eh.png old mode 100755 new mode 100644 diff --git a/static/flags/er.png b/static/flags/er.png old mode 100755 new mode 100644 diff --git a/static/flags/es.png b/static/flags/es.png old mode 100755 new mode 100644 diff --git a/static/flags/et.png b/static/flags/et.png old mode 100755 new mode 100644 diff --git a/static/flags/eu.png b/static/flags/eu.png old mode 100755 new mode 100644 diff --git a/static/flags/fi.png b/static/flags/fi.png old mode 100755 new mode 100644 diff --git a/static/flags/fj.png b/static/flags/fj.png old mode 100755 new mode 100644 diff --git a/static/flags/fk.png b/static/flags/fk.png old mode 100755 new mode 100644 diff --git a/static/flags/fm.png b/static/flags/fm.png old mode 100755 new mode 100644 diff --git a/static/flags/fo.png b/static/flags/fo.png old mode 100755 new mode 100644 diff --git a/static/flags/fr.png b/static/flags/fr.png old mode 100755 new mode 100644 diff --git a/static/flags/fx.png b/static/flags/fx.png old mode 100755 new mode 100644 diff --git a/static/flags/ga.png b/static/flags/ga.png old mode 100755 new mode 100644 diff --git a/static/flags/gb.png b/static/flags/gb.png old mode 100755 new mode 100644 diff --git a/static/flags/gd.png b/static/flags/gd.png old mode 100755 new mode 100644 diff --git a/static/flags/ge.png b/static/flags/ge.png old mode 100755 new mode 100644 diff --git a/static/flags/gf.png b/static/flags/gf.png old mode 100755 new mode 100644 diff --git a/static/flags/gg.png b/static/flags/gg.png old mode 100755 new mode 100644 diff --git a/static/flags/gh.png b/static/flags/gh.png old mode 100755 new mode 100644 diff --git a/static/flags/gi.png b/static/flags/gi.png old mode 100755 new mode 100644 diff --git a/static/flags/gl.png b/static/flags/gl.png old mode 100755 new mode 100644 diff --git a/static/flags/gm.png b/static/flags/gm.png old mode 100755 new mode 100644 diff --git a/static/flags/gn.png b/static/flags/gn.png old mode 100755 new mode 100644 diff --git a/static/flags/gp.png b/static/flags/gp.png old mode 100755 new mode 100644 diff --git a/static/flags/gq.png b/static/flags/gq.png old mode 100755 new mode 100644 diff --git a/static/flags/gr.png b/static/flags/gr.png old mode 100755 new mode 100644 diff --git a/static/flags/gs.png b/static/flags/gs.png old mode 100755 new mode 100644 diff --git a/static/flags/gt.png b/static/flags/gt.png old mode 100755 new mode 100644 diff --git a/static/flags/gu.png b/static/flags/gu.png old mode 100755 new mode 100644 diff --git a/static/flags/gw.png b/static/flags/gw.png old mode 100755 new mode 100644 diff --git a/static/flags/gy.png b/static/flags/gy.png old mode 100755 new mode 100644 diff --git a/static/flags/hk.png b/static/flags/hk.png old mode 100755 new mode 100644 diff --git a/static/flags/hm.png b/static/flags/hm.png old mode 100755 new mode 100644 diff --git a/static/flags/hn.png b/static/flags/hn.png old mode 100755 new mode 100644 diff --git a/static/flags/hr.png b/static/flags/hr.png old mode 100755 new mode 100644 diff --git a/static/flags/ht.png b/static/flags/ht.png old mode 100755 new mode 100644 diff --git a/static/flags/hu.png b/static/flags/hu.png old mode 100755 new mode 100644 diff --git a/static/flags/ic.png b/static/flags/ic.png old mode 100755 new mode 100644 diff --git a/static/flags/id.png b/static/flags/id.png old mode 100755 new mode 100644 diff --git a/static/flags/ie.png b/static/flags/ie.png old mode 100755 new mode 100644 diff --git a/static/flags/il.png b/static/flags/il.png old mode 100755 new mode 100644 diff --git a/static/flags/im.png b/static/flags/im.png old mode 100755 new mode 100644 diff --git a/static/flags/in.png b/static/flags/in.png old mode 100755 new mode 100644 diff --git a/static/flags/io.png b/static/flags/io.png old mode 100755 new mode 100644 diff --git a/static/flags/iq.png b/static/flags/iq.png old mode 100755 new mode 100644 diff --git a/static/flags/ir.png b/static/flags/ir.png old mode 100755 new mode 100644 diff --git a/static/flags/is.png b/static/flags/is.png old mode 100755 new mode 100644 diff --git a/static/flags/it.png b/static/flags/it.png old mode 100755 new mode 100644 diff --git a/static/flags/je.png b/static/flags/je.png old mode 100755 new mode 100644 diff --git a/static/flags/jm.png b/static/flags/jm.png old mode 100755 new mode 100644 diff --git a/static/flags/jo.png b/static/flags/jo.png old mode 100755 new mode 100644 diff --git a/static/flags/jp.png b/static/flags/jp.png old mode 100755 new mode 100644 diff --git a/static/flags/ke.png b/static/flags/ke.png old mode 100755 new mode 100644 diff --git a/static/flags/kg.png b/static/flags/kg.png old mode 100755 new mode 100644 diff --git a/static/flags/kh.png b/static/flags/kh.png old mode 100755 new mode 100644 diff --git a/static/flags/ki.png b/static/flags/ki.png old mode 100755 new mode 100644 diff --git a/static/flags/km.png b/static/flags/km.png old mode 100755 new mode 100644 diff --git a/static/flags/kn.png b/static/flags/kn.png old mode 100755 new mode 100644 diff --git a/static/flags/kp.png b/static/flags/kp.png old mode 100755 new mode 100644 diff --git a/static/flags/kr.png b/static/flags/kr.png old mode 100755 new mode 100644 diff --git a/static/flags/kw.png b/static/flags/kw.png old mode 100755 new mode 100644 diff --git a/static/flags/ky.png b/static/flags/ky.png old mode 100755 new mode 100644 diff --git a/static/flags/kz.png b/static/flags/kz.png old mode 100755 new mode 100644 diff --git a/static/flags/la.png b/static/flags/la.png old mode 100755 new mode 100644 diff --git a/static/flags/lb.png b/static/flags/lb.png old mode 100755 new mode 100644 diff --git a/static/flags/lc.png b/static/flags/lc.png old mode 100755 new mode 100644 diff --git a/static/flags/li.png b/static/flags/li.png old mode 100755 new mode 100644 diff --git a/static/flags/lk.png b/static/flags/lk.png old mode 100755 new mode 100644 diff --git a/static/flags/lr.png b/static/flags/lr.png old mode 100755 new mode 100644 diff --git a/static/flags/ls.png b/static/flags/ls.png old mode 100755 new mode 100644 diff --git a/static/flags/lt.png b/static/flags/lt.png old mode 100755 new mode 100644 diff --git a/static/flags/lu.png b/static/flags/lu.png old mode 100755 new mode 100644 diff --git a/static/flags/lv.png b/static/flags/lv.png old mode 100755 new mode 100644 diff --git a/static/flags/ly.png b/static/flags/ly.png old mode 100755 new mode 100644 diff --git a/static/flags/ma.png b/static/flags/ma.png old mode 100755 new mode 100644 diff --git a/static/flags/mc.png b/static/flags/mc.png old mode 100755 new mode 100644 diff --git a/static/flags/md.png b/static/flags/md.png old mode 100755 new mode 100644 diff --git a/static/flags/me.png b/static/flags/me.png old mode 100755 new mode 100644 diff --git a/static/flags/mf.png b/static/flags/mf.png old mode 100755 new mode 100644 diff --git a/static/flags/mg.png b/static/flags/mg.png old mode 100755 new mode 100644 diff --git a/static/flags/mh.png b/static/flags/mh.png old mode 100755 new mode 100644 diff --git a/static/flags/mk.png b/static/flags/mk.png old mode 100755 new mode 100644 diff --git a/static/flags/ml.png b/static/flags/ml.png old mode 100755 new mode 100644 diff --git a/static/flags/mm.png b/static/flags/mm.png old mode 100755 new mode 100644 diff --git a/static/flags/mn.png b/static/flags/mn.png old mode 100755 new mode 100644 diff --git a/static/flags/mo.png b/static/flags/mo.png old mode 100755 new mode 100644 diff --git a/static/flags/mp.png b/static/flags/mp.png old mode 100755 new mode 100644 diff --git a/static/flags/mq.png b/static/flags/mq.png old mode 100755 new mode 100644 diff --git a/static/flags/mr.png b/static/flags/mr.png old mode 100755 new mode 100644 diff --git a/static/flags/ms.png b/static/flags/ms.png old mode 100755 new mode 100644 diff --git a/static/flags/mt.png b/static/flags/mt.png old mode 100755 new mode 100644 diff --git a/static/flags/mu.png b/static/flags/mu.png old mode 100755 new mode 100644 diff --git a/static/flags/mv.png b/static/flags/mv.png old mode 100755 new mode 100644 diff --git a/static/flags/mw.png b/static/flags/mw.png old mode 100755 new mode 100644 diff --git a/static/flags/mx.png b/static/flags/mx.png old mode 100755 new mode 100644 diff --git a/static/flags/my.png b/static/flags/my.png old mode 100755 new mode 100644 diff --git a/static/flags/mz.png b/static/flags/mz.png old mode 100755 new mode 100644 diff --git a/static/flags/na.png b/static/flags/na.png old mode 100755 new mode 100644 diff --git a/static/flags/nc.png b/static/flags/nc.png old mode 100755 new mode 100644 diff --git a/static/flags/ne.png b/static/flags/ne.png old mode 100755 new mode 100644 diff --git a/static/flags/nf.png b/static/flags/nf.png old mode 100755 new mode 100644 diff --git a/static/flags/ng.png b/static/flags/ng.png old mode 100755 new mode 100644 diff --git a/static/flags/ni.png b/static/flags/ni.png old mode 100755 new mode 100644 diff --git a/static/flags/nl.png b/static/flags/nl.png old mode 100755 new mode 100644 diff --git a/static/flags/no.png b/static/flags/no.png old mode 100755 new mode 100644 diff --git a/static/flags/np.png b/static/flags/np.png old mode 100755 new mode 100644 diff --git a/static/flags/nr.png b/static/flags/nr.png old mode 100755 new mode 100644 diff --git a/static/flags/nt.png b/static/flags/nt.png old mode 100755 new mode 100644 diff --git a/static/flags/nu.png b/static/flags/nu.png old mode 100755 new mode 100644 diff --git a/static/flags/nz.png b/static/flags/nz.png old mode 100755 new mode 100644 diff --git a/static/flags/o1.png b/static/flags/o1.png old mode 100755 new mode 100644 diff --git a/static/flags/om.png b/static/flags/om.png old mode 100755 new mode 100644 diff --git a/static/flags/pa.png b/static/flags/pa.png old mode 100755 new mode 100644 diff --git a/static/flags/pe.png b/static/flags/pe.png old mode 100755 new mode 100644 diff --git a/static/flags/pf.png b/static/flags/pf.png old mode 100755 new mode 100644 diff --git a/static/flags/pg.png b/static/flags/pg.png old mode 100755 new mode 100644 diff --git a/static/flags/ph.png b/static/flags/ph.png old mode 100755 new mode 100644 diff --git a/static/flags/pk.png b/static/flags/pk.png old mode 100755 new mode 100644 diff --git a/static/flags/pl.png b/static/flags/pl.png old mode 100755 new mode 100644 diff --git a/static/flags/pm.png b/static/flags/pm.png old mode 100755 new mode 100644 diff --git a/static/flags/pn.png b/static/flags/pn.png old mode 100755 new mode 100644 diff --git a/static/flags/pr.png b/static/flags/pr.png old mode 100755 new mode 100644 diff --git a/static/flags/ps.png b/static/flags/ps.png old mode 100755 new mode 100644 diff --git a/static/flags/pt.png b/static/flags/pt.png old mode 100755 new mode 100644 diff --git a/static/flags/pw.png b/static/flags/pw.png old mode 100755 new mode 100644 diff --git a/static/flags/py.png b/static/flags/py.png old mode 100755 new mode 100644 diff --git a/static/flags/qa.png b/static/flags/qa.png old mode 100755 new mode 100644 diff --git a/static/flags/re.png b/static/flags/re.png old mode 100755 new mode 100644 diff --git a/static/flags/ro.png b/static/flags/ro.png old mode 100755 new mode 100644 diff --git a/static/flags/ru.png b/static/flags/ru.png old mode 100755 new mode 100644 diff --git a/static/flags/rw.png b/static/flags/rw.png old mode 100755 new mode 100644 diff --git a/static/flags/sa.png b/static/flags/sa.png old mode 100755 new mode 100644 diff --git a/static/flags/sb.png b/static/flags/sb.png old mode 100755 new mode 100644 diff --git a/static/flags/sc.png b/static/flags/sc.png old mode 100755 new mode 100644 diff --git a/static/flags/sd.png b/static/flags/sd.png old mode 100755 new mode 100644 diff --git a/static/flags/se.png b/static/flags/se.png old mode 100755 new mode 100644 diff --git a/static/flags/sf.png b/static/flags/sf.png old mode 100755 new mode 100644 diff --git a/static/flags/sg.png b/static/flags/sg.png old mode 100755 new mode 100644 diff --git a/static/flags/sh.png b/static/flags/sh.png old mode 100755 new mode 100644 diff --git a/static/flags/si.png b/static/flags/si.png old mode 100755 new mode 100644 diff --git a/static/flags/sj.png b/static/flags/sj.png old mode 100755 new mode 100644 diff --git a/static/flags/sk.png b/static/flags/sk.png old mode 100755 new mode 100644 diff --git a/static/flags/sl.png b/static/flags/sl.png old mode 100755 new mode 100644 diff --git a/static/flags/sm.png b/static/flags/sm.png old mode 100755 new mode 100644 diff --git a/static/flags/sn.png b/static/flags/sn.png old mode 100755 new mode 100644 diff --git a/static/flags/so.png b/static/flags/so.png old mode 100755 new mode 100644 diff --git a/static/flags/sr.png b/static/flags/sr.png old mode 100755 new mode 100644 diff --git a/static/flags/ss.png b/static/flags/ss.png old mode 100755 new mode 100644 diff --git a/static/flags/st.png b/static/flags/st.png old mode 100755 new mode 100644 diff --git a/static/flags/su.png b/static/flags/su.png old mode 100755 new mode 100644 diff --git a/static/flags/sv.png b/static/flags/sv.png old mode 100755 new mode 100644 diff --git a/static/flags/sx.png b/static/flags/sx.png old mode 100755 new mode 100644 diff --git a/static/flags/sy.png b/static/flags/sy.png old mode 100755 new mode 100644 diff --git a/static/flags/sz.png b/static/flags/sz.png old mode 100755 new mode 100644 diff --git a/static/flags/ta.png b/static/flags/ta.png old mode 100755 new mode 100644 diff --git a/static/flags/tc.png b/static/flags/tc.png old mode 100755 new mode 100644 diff --git a/static/flags/td.png b/static/flags/td.png old mode 100755 new mode 100644 diff --git a/static/flags/tf.png b/static/flags/tf.png old mode 100755 new mode 100644 diff --git a/static/flags/tg.png b/static/flags/tg.png old mode 100755 new mode 100644 diff --git a/static/flags/th.png b/static/flags/th.png old mode 100755 new mode 100644 diff --git a/static/flags/ti.png b/static/flags/ti.png old mode 100755 new mode 100644 diff --git a/static/flags/tj.png b/static/flags/tj.png old mode 100755 new mode 100644 diff --git a/static/flags/tk.png b/static/flags/tk.png old mode 100755 new mode 100644 diff --git a/static/flags/tl.png b/static/flags/tl.png old mode 100755 new mode 100644 diff --git a/static/flags/tm.png b/static/flags/tm.png old mode 100755 new mode 100644 diff --git a/static/flags/tn.png b/static/flags/tn.png old mode 100755 new mode 100644 diff --git a/static/flags/to.png b/static/flags/to.png old mode 100755 new mode 100644 diff --git a/static/flags/tp.png b/static/flags/tp.png old mode 100755 new mode 100644 diff --git a/static/flags/tr.png b/static/flags/tr.png old mode 100755 new mode 100644 diff --git a/static/flags/tt.png b/static/flags/tt.png old mode 100755 new mode 100644 diff --git a/static/flags/tv.png b/static/flags/tv.png old mode 100755 new mode 100644 diff --git a/static/flags/tw.png b/static/flags/tw.png old mode 100755 new mode 100644 diff --git a/static/flags/tz.png b/static/flags/tz.png old mode 100755 new mode 100644 diff --git a/static/flags/ua.png b/static/flags/ua.png old mode 100755 new mode 100644 diff --git a/static/flags/ug.png b/static/flags/ug.png old mode 100755 new mode 100644 diff --git a/static/flags/uk.png b/static/flags/uk.png old mode 100755 new mode 100644 diff --git a/static/flags/um.png b/static/flags/um.png old mode 100755 new mode 100644 diff --git a/static/flags/us.png b/static/flags/us.png old mode 100755 new mode 100644 diff --git a/static/flags/uy.png b/static/flags/uy.png old mode 100755 new mode 100644 diff --git a/static/flags/uz.png b/static/flags/uz.png old mode 100755 new mode 100644 diff --git a/static/flags/va.png b/static/flags/va.png old mode 100755 new mode 100644 diff --git a/static/flags/vc.png b/static/flags/vc.png old mode 100755 new mode 100644 diff --git a/static/flags/ve.png b/static/flags/ve.png old mode 100755 new mode 100644 diff --git a/static/flags/vg.png b/static/flags/vg.png old mode 100755 new mode 100644 diff --git a/static/flags/vi.png b/static/flags/vi.png old mode 100755 new mode 100644 diff --git a/static/flags/vn.png b/static/flags/vn.png old mode 100755 new mode 100644 diff --git a/static/flags/vu.png b/static/flags/vu.png old mode 100755 new mode 100644 diff --git a/static/flags/wf.png b/static/flags/wf.png old mode 100755 new mode 100644 diff --git a/static/flags/ws.png b/static/flags/ws.png old mode 100755 new mode 100644 diff --git a/static/flags/xx.png b/static/flags/xx.png old mode 100755 new mode 100644 diff --git a/static/flags/ye.png b/static/flags/ye.png old mode 100755 new mode 100644 diff --git a/static/flags/yt.png b/static/flags/yt.png old mode 100755 new mode 100644 diff --git a/static/flags/yu.png b/static/flags/yu.png old mode 100755 new mode 100644 diff --git a/static/flags/za.png b/static/flags/za.png old mode 100755 new mode 100644 diff --git a/static/flags/zm.png b/static/flags/zm.png old mode 100755 new mode 100644 diff --git a/static/flags/zr.png b/static/flags/zr.png old mode 100755 new mode 100644 diff --git a/static/flags/zw.png b/static/flags/zw.png old mode 100755 new mode 100644 From bd1a25bc9bcf036d6457191692f7da36ac57fd89 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 19:55:38 -0500 Subject: [PATCH 2/8] Add flags --- inc/instance-config.php | 82 +++++++++++++++++++++++++ static/flags/4th_International.png | Bin 0 -> 160 bytes static/flags/AK-47.png | Bin 0 -> 379 bytes static/flags/Acceleration.png | Bin 0 -> 266 bytes static/flags/Albania.png | Bin 0 -> 1035 bytes static/flags/Allende.png | Bin 0 -> 636 bytes static/flags/Anarcha-Feminism.png | Bin 0 -> 1014 bytes static/flags/Anarchism.png | Bin 0 -> 335 bytes static/flags/Anarcho-Capitalism.png | Bin 0 -> 1010 bytes static/flags/Anarcho-Communism.png | Bin 0 -> 1016 bytes static/flags/Anarcho-Nihilism.png | Bin 0 -> 3011 bytes static/flags/Anarcho-Primitivism.png | Bin 0 -> 1009 bytes static/flags/Athiesm.png | Bin 0 -> 1214 bytes static/flags/Bolshevik.png | Bin 0 -> 453 bytes static/flags/Brocialism.png | Bin 0 -> 460 bytes static/flags/Burkina_Faso.png | Bin 0 -> 903 bytes static/flags/Chavismo.png | Bin 0 -> 500 bytes static/flags/Che.png | Bin 0 -> 621 bytes static/flags/China.png | Bin 0 -> 253 bytes static/flags/Christian_Communism.png | Bin 0 -> 152 bytes static/flags/Cockshott.png | Bin 0 -> 750 bytes static/flags/Cuba.png | Bin 0 -> 940 bytes static/flags/DDR.png | Bin 0 -> 779 bytes static/flags/DPRK.png | Bin 0 -> 390 bytes static/flags/Democrap.png | Bin 0 -> 603 bytes static/flags/Democratic_Socialism.png | Bin 0 -> 190 bytes static/flags/Eurocommunism.png | Bin 0 -> 303 bytes static/flags/Fed.png | Bin 0 -> 183 bytes static/flags/Freud.png | Bin 0 -> 738 bytes static/flags/Gadsden.png | Bin 0 -> 937 bytes static/flags/Gay_Nazi.png | Bin 0 -> 567 bytes static/flags/Gentoo.png | Bin 0 -> 695 bytes static/flags/Gorro.png | Bin 0 -> 909 bytes static/flags/Groucho_Marxism.png | Bin 0 -> 938 bytes static/flags/Hammer_&_Sickle.png | Bin 0 -> 3209 bytes static/flags/IRA.png | Bin 0 -> 590 bytes static/flags/IWW.png | Bin 0 -> 230 bytes static/flags/International Brigade.png | Bin 0 -> 1022 bytes static/flags/Islamic_Communism.png | Bin 0 -> 448 bytes static/flags/Juche.png | Bin 0 -> 607 bytes static/flags/Kampuchea.png | Bin 0 -> 335 bytes static/flags/Left_Communism.png | Bin 0 -> 780 bytes static/flags/Lenin_Cap.png | Bin 0 -> 408 bytes static/flags/Luxemburg.png | Bin 0 -> 1267 bytes static/flags/Marx.png | Bin 0 -> 888 bytes static/flags/Mutualism.png | Bin 0 -> 1010 bytes static/flags/NDFP.png | Bin 0 -> 1000 bytes static/flags/Naxalite.png | Bin 0 -> 775 bytes static/flags/Nazbol.png | Bin 0 -> 627 bytes static/flags/Nazi.png | Bin 0 -> 452 bytes static/flags/Palestine.png | Bin 0 -> 408 bytes static/flags/Pan-Africanism.png | Bin 0 -> 1007 bytes static/flags/Pirate.png | Bin 0 -> 381 bytes static/flags/Porky.png | Bin 0 -> 233 bytes static/flags/Posadas.png | Bin 0 -> 198 bytes static/flags/Punk.png | Bin 0 -> 1053 bytes static/flags/Raised_Fist.png | Bin 0 -> 270 bytes static/flags/Read_a_Fucking_Book.png | Bin 0 -> 693 bytes static/flags/Rethuglican.png | Bin 0 -> 481 bytes static/flags/SSNP.png | Bin 0 -> 874 bytes static/flags/Sabo-Tabby.png | Bin 0 -> 144 bytes static/flags/Sandinista.png | Bin 0 -> 441 bytes static/flags/Sendero_Luminoso.png | Bin 0 -> 736 bytes static/flags/Slavoj.png | Bin 0 -> 871 bytes static/flags/Socialism.png | Bin 0 -> 1010 bytes static/flags/Soviet_Union.png | Bin 0 -> 419 bytes static/flags/Spurdo.png | Bin 0 -> 156 bytes static/flags/Stalin.png | Bin 0 -> 3655 bytes static/flags/Syndicalism.png | Bin 0 -> 574 bytes static/flags/Tankie.png | Bin 0 -> 276 bytes static/flags/Think.png | Bin 0 -> 584 bytes static/flags/Viet_Cong.png | Bin 0 -> 1033 bytes static/flags/Yugoslavia.png | Bin 0 -> 1015 bytes static/flags/Zapatista.png | Bin 0 -> 782 bytes 74 files changed, 82 insertions(+) create mode 100644 static/flags/4th_International.png create mode 100644 static/flags/AK-47.png create mode 100644 static/flags/Acceleration.png create mode 100644 static/flags/Albania.png create mode 100644 static/flags/Allende.png create mode 100644 static/flags/Anarcha-Feminism.png create mode 100644 static/flags/Anarchism.png create mode 100644 static/flags/Anarcho-Capitalism.png create mode 100644 static/flags/Anarcho-Communism.png create mode 100644 static/flags/Anarcho-Nihilism.png create mode 100644 static/flags/Anarcho-Primitivism.png create mode 100644 static/flags/Athiesm.png create mode 100644 static/flags/Bolshevik.png create mode 100644 static/flags/Brocialism.png create mode 100644 static/flags/Burkina_Faso.png create mode 100644 static/flags/Chavismo.png create mode 100644 static/flags/Che.png create mode 100644 static/flags/China.png create mode 100644 static/flags/Christian_Communism.png create mode 100644 static/flags/Cockshott.png create mode 100644 static/flags/Cuba.png create mode 100644 static/flags/DDR.png create mode 100644 static/flags/DPRK.png create mode 100644 static/flags/Democrap.png create mode 100644 static/flags/Democratic_Socialism.png create mode 100644 static/flags/Eurocommunism.png create mode 100644 static/flags/Fed.png create mode 100644 static/flags/Freud.png create mode 100644 static/flags/Gadsden.png create mode 100644 static/flags/Gay_Nazi.png create mode 100644 static/flags/Gentoo.png create mode 100644 static/flags/Gorro.png create mode 100644 static/flags/Groucho_Marxism.png create mode 100644 static/flags/Hammer_&_Sickle.png create mode 100644 static/flags/IRA.png create mode 100644 static/flags/IWW.png create mode 100644 static/flags/International Brigade.png create mode 100644 static/flags/Islamic_Communism.png create mode 100644 static/flags/Juche.png create mode 100644 static/flags/Kampuchea.png create mode 100644 static/flags/Left_Communism.png create mode 100644 static/flags/Lenin_Cap.png create mode 100644 static/flags/Luxemburg.png create mode 100644 static/flags/Marx.png create mode 100644 static/flags/Mutualism.png create mode 100644 static/flags/NDFP.png create mode 100644 static/flags/Naxalite.png create mode 100644 static/flags/Nazbol.png create mode 100644 static/flags/Nazi.png create mode 100644 static/flags/Palestine.png create mode 100644 static/flags/Pan-Africanism.png create mode 100644 static/flags/Pirate.png create mode 100644 static/flags/Porky.png create mode 100644 static/flags/Posadas.png create mode 100644 static/flags/Punk.png create mode 100644 static/flags/Raised_Fist.png create mode 100644 static/flags/Read_a_Fucking_Book.png create mode 100644 static/flags/Rethuglican.png create mode 100644 static/flags/SSNP.png create mode 100644 static/flags/Sabo-Tabby.png create mode 100644 static/flags/Sandinista.png create mode 100644 static/flags/Sendero_Luminoso.png create mode 100644 static/flags/Slavoj.png create mode 100644 static/flags/Socialism.png create mode 100644 static/flags/Soviet_Union.png create mode 100644 static/flags/Spurdo.png create mode 100644 static/flags/Stalin.png create mode 100644 static/flags/Syndicalism.png create mode 100644 static/flags/Tankie.png create mode 100644 static/flags/Think.png create mode 100644 static/flags/Viet_Cong.png create mode 100644 static/flags/Yugoslavia.png create mode 100644 static/flags/Zapatista.png diff --git a/inc/instance-config.php b/inc/instance-config.php index ce25a6b1..346cb50d 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -122,6 +122,88 @@ $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; diff --git a/static/flags/4th_International.png b/static/flags/4th_International.png new file mode 100644 index 0000000000000000000000000000000000000000..533f03dabb0b9bf0642e7c6c0cb0c45d86f36caf GIT binary patch literal 160 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W|!2~2fWLtqaEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaN*JY5_^G|neiXfJN+{8yjEu&}Ch&8C7Q4Z-S@(sppP@TyA|ymHwpxk&1) z0^6E(N7qYspFJVv@!5D*@Wx$pIL>BtNSqDnUbS$6B!k-#g9tB=Sx0fhdEP)Px$B}qgF570hX4Q@*Zw(OeO`h)F4cVEw zb%puGO@RTyYr?&p=AP_}ow2skx7WeWIm^n*HX$@Ll-b_ip2fhxOrK$9j$6RPnb94W z+k6)9srH+?vcP#>TA25vw3O8UAe<1F@V}&}^nYf0_Vyxy@`{U4sreIpu7I_86O`_a=w^ztrma|46m-wT=0<4e6eysp&qJU+k={ zeFOaitGvCu|C^ecr`pTQbJ#O5u;BGxtg}Jg002ovPDHLkV1ix=xEBBb literal 0 HcmV?d00001 diff --git a/static/flags/Acceleration.png b/static/flags/Acceleration.png new file mode 100644 index 0000000000000000000000000000000000000000..d285ff4b2a728fd9a6c577ec08cea3f1c1e47c9d GIT binary patch literal 266 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF~Cd`NQ};uWlLd z4q1y6UU4})^(K@DKYzB%RnPtTv`b0Lf>ttT8J(Ht6)^dN@QXXf=Gz7TCA~Q%tY#M> z{8#Pa#($4@`XA6cBCy^;?ccwTK@3rT`Y#!HqL!?7+rz$em402Uq{4ZA@gy~%lNdZ* L{an^LB{Ts5V%}xz literal 0 HcmV?d00001 diff --git a/static/flags/Albania.png b/static/flags/Albania.png new file mode 100644 index 0000000000000000000000000000000000000000..8699a5587030f1529c7e16f303a8eb55258150b0 GIT binary patch literal 1035 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;%aGV;9_f=V`1#( z<`(Pa5fU5}9TXHF9bMq=Tp1Z&-;g|qfnlnp;VK4(?LecvJ^GX5C*)+V_Hf+p<*+$A zcyn^h{@k=93=C%(7*5GDU1ean#=&r#nc=(w(^Xx$^R@=pOjK`JYTvduJmX|~)4}ML zo5f8}n>#-C=hB&u!~|Uqa=#PcayQiDa%}LUAlC!8A18!7N{xJy75_Xh`B_QU zn}W30rCF~k@?X^yzpF3ZGt;2EC;!l5t9vW_@2?Gc-BSJIhw0m%=6933KlZnOnBEWc z@+cS$0U|?SMagw-pweDX7sn8ZaMptdy_y^u+%8&Qo-sl2hLSj&qFXmd&Hv>E50!Lo z?GP^(T=ehr-E*473!bDM3Tz2}JU3w7)a9#V_e=koXyw4hnZPyc{7$_(uL;L~Zri=7=>Nk7 fQzQ$RSUCPLTTF=idx*36Jjf58u6{1-oD!MNn~YUU{dpRaSYK2W|U@n@|S@j{WwGHVTQ=V4AF-ff)8?fPgBsaRMIe$Q8AHH zHc87W{qp6@=g*%%e*F0U{rk7?-!lN!Rd0QA>-G1lZBMi3of4AP(bBdkj8EP+Z}FnO zsVQOcYd38D`Sa(GA3wf-|Ni>*YX+d%_uu}w_3HbLSKr-><|KOiJYP5S&-DxcpTGS7 z^!c}w2b)SNfJ(o8`vxRmz682B@^I_kXV+hTn|S!Sf5pPt>5-0XGcY7xF5CG!V)@gMWlzJVo?4a{wiWyhZby{+rJ95fJ63INC_g)?>D~P5GY&>T)t>|e zJ{uX`2SprELt5G|7nfi5_CKwxwp&?lNcDd_zwLBy{q_Fpmvbtvt0{iu=ljUb{YhUR zq~SZzlEkE6v9UiRB0h$MWqHPiSy~-zEO@nf#oNtGc4maWH#PlaWCT?GNk``{P{UUS zhR+NP9~l_lv9m8rZxGRpnb literal 0 HcmV?d00001 diff --git a/static/flags/Anarcha-Feminism.png b/static/flags/Anarcha-Feminism.png new file mode 100644 index 0000000000000000000000000000000000000000..8a3690273124a39892eab77d51b84b5f2d08032c GIT binary patch literal 1014 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;tEv2!yqUqBq$*v zAt@=TsHmu3Ha2Dqflm594pz>-W|0v# zX$}q!E-o(K-rhbwJ`p~#K|#SGAt4cwk=YCj(hZu5OefUaE~t*}n#6E>hS90T3}2Qr z{94KIZ?WyQwfb+joBr5t{$rcfmt8hLcia8!aa*@A=;T`WhkG4$ZXUO}=<~z&{qp3Qj*|{7Wn^GD ZAkTL&rS$at`)(k|dAjNn{1`ISV`@iy0XB4ude`@%$AjKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I z13e?dj|!Pnfr|Efx;Tbt1kastkgLf-#Pu(0^h=}ZD-9fXNHDj1h--1ESv0LJ5?|Dq z`|Fq9dCh~ZLG9aj6`wcwyrsUPR-!HazP&;DBeyH1x~GlK>u1jLJ2Z7dXlwIFo;e-N z4=v8cIPBKw(mDOeqHmE0$HU+Io>%s4oSPdxt<{CIqH{{oPFwM?+ii&oAx_szSLZea zaOU1#B-^%-gXx^*z86B#PWN9(TsHZBCe-P&$?3O+0)B_ey>DbrQb~X0aUtxguGbGn b-)iQA_Yytw#5{n3!NB0@>gTe~DWM4f54nDX literal 0 HcmV?d00001 diff --git a/static/flags/Anarcho-Capitalism.png b/static/flags/Anarcho-Capitalism.png new file mode 100644 index 0000000000000000000000000000000000000000..56a8e2bcd778b080e002f59a4b27c6d6aae4b969 GIT binary patch literal 1010 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;tEtCD99ivBq$*v zAt@=TsHmu-MAkMoHi1D5&dyfe-UgA8 zW@%|w4h{}3E-v2Q-abA)v9UfuLBSy*ArX<0&CSLWCYa8jZ@q9K!@6~Lot-gv?=hS{ zZFcRN_5J%cpFS~s`^ND5H^bk*4Da8YefeVj{kzT2pVmKr0!iDGCqsVya{T?<<@ay* z-+#RS{PFquGxYD@z`uWk|NV>l|3Bu7T3LN)}Hh(uC!*a)a(Dsv7n^;#AFX!$?2ch)?4~vA0xy6jdx?`@GT3A2RYT#)z4*}Q$iB} DzI?k| literal 0 HcmV?d00001 diff --git a/static/flags/Anarcho-Communism.png b/static/flags/Anarcho-Communism.png new file mode 100644 index 0000000000000000000000000000000000000000..4ca49ae027e4c66c4f8bac46008181c4a40aaf49 GIT binary patch literal 1016 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;tEv2%fKKgBq$*v zAt@=TsHmu4Ud zXk$}vVBp~3;Ns%q?d|R3;}hfK6BHC25)u*-899}Kp~uv8maT0|Z0rg*w_6Mh$Bm6H z+S+~ryX+qW!yA2r&sJ7HOih27Tl}=K`Dtf&EGX!%yZd)H*I$kfznmO@IXnM!arx!$ z_RHP|`&U@>udM8URTa?JqhK@yfFY1LM>rfvRe8ENhDb=V z9`qJEm>|%4@xA}omW8}CHvJb}nbg#=NNN4;+PRm{F*F!Xs4ZYhzCG=Izhc6%+q*K? zR@L#bBxq)TzSQr>6n)C4mtT@YXYIQ8*^^GrJg_$V^M&O;K`pVrVwW%R*rif%_nxxr>mdKI;Vst0EQK|@c;k- literal 0 HcmV?d00001 diff --git a/static/flags/Anarcho-Nihilism.png b/static/flags/Anarcho-Nihilism.png new file mode 100644 index 0000000000000000000000000000000000000000..230c4ce4a977106010abb0502ab06d024ce1f7cc GIT binary patch literal 3011 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 literal 0 HcmV?d00001 diff --git a/static/flags/Bolshevik.png b/static/flags/Bolshevik.png new file mode 100644 index 0000000000000000000000000000000000000000..1f8be7c63b5f221de8c02414a3f4978248a30abe GIT binary patch literal 453 zcmV;$0XqJPP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0a{5!K~yMHT~Rwu z12GVt@g|$iLLi9(gwRnSproNl%KM}pk!(kAgd))pLyR zd(yio+QHXTb`+AdS&KurMM8|3dV{=At vpMT9CXj`X-{@R5srgRfSB*5zP3>d&KVo{zf{`}Dp00000NkvXXu0mjf$YiPx#1ZP1_K>z@;j|==^1poj6c1c7*R5(wSlg%qcVHC#C49Z6~A`1%>8_GgV`6!Bf zl*ZOV%Em_7DVEmr2iQ=W|3FRI$Vk~3JF?I$&`6C?C=w=q&wcOQ>8^~Yex36^?>X;# z@0mLht3VfKNy3_2l~rkTKcUC1Y#9bz`VVo)7W}}8V(4a!R>CZF!aHOk!<9w$(*9lw zjugFSHll~r_cgf%)vhA z#|d*v5}?PL!Uzd34SL5X$U(Kg7tHG%R_fHzngmgA%v)do`Y6_h>zB`<_gxPftbyaEHZZcuGm zY$PEMp;KAc`l<2-_=0xda>8ha0%)?KX-ar;c!o{i3KZorABhP#t}*-e+^{sPJDA}B z{qBJ({bT5}J%oA~<3i2D8`z(s_@1EQT|=EbGqYcnTxM{b*Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0~|?2K~yMHMN`j< z6h{<()!nn}^voDEI6-G+32sCYe+N_;3A+dJ?vF$M08i`1gGS;h7eVo+S3&TSV*-M^ zLO{tOusQhS>W;dbCBfZsrh9g#yQ*GQ`BlwgipT5sUR8Zv@B6C6i2Q&TbdSy-KEE

(|K` z$4u5brL0m;N*};WnJ+FT_?0V5ySj>;_A<3f=On)znpY##quslu@9Z|s&(6Q!e6Ng> zMxNX;ERFu-KZ#hfY*kxJ_m>3SqEj=cj5dZ1D`t(4kA1}$YwX&Kwg3AY53~qVTUlsV z&do)~kCSuG7}9K&Kk3%NrIekHUqQ_#G260qO431P{v29a*inHMoTibp7Srg{cmAzO z?vmT5Q3*v2FfsSrTysYg?UY$Ml`PlsHg z3lw4KPPBh*H+DA07~Y!_fdoTbD8r5AdMw&Pl%nVrMYqsh%^Pettk@9odYp8Vd?ojM zL^CsDYHEuCsDZQlk0a}R0^xidMhLu=!FzT;ed6`?_-CLTI|kbP(t4e0HIb&SQlW_n zcq;_O5k>OLEET$NQD%3q3 zWJ2%ExGNsT?+I$bFaZOWIKatcTX|~To-%&sk|$1_z)q;4gZH4MfQXla8+V6h_s?oHoIIF?#!85T>8oovWZOl@j?-P-llu8C-}8dtZ))!?^P zqv~XoB2JSOHYw6trB+Ys^|%h-s5G`uG|N!`V4LzpQtWC8}R@D002ovPDHLkV1l6BvEBdx literal 0 HcmV?d00001 diff --git a/static/flags/Chavismo.png b/static/flags/Chavismo.png new file mode 100644 index 0000000000000000000000000000000000000000..aad7b22817aa4674f3a81c2ac50fa20532d9c070 GIT binary patch literal 500 zcmV7f6gQ|6MP_Vpn1TMV4fYP8YRfbjndToClN!}PzH!GCV~XABJIaue47 z*>zY*i6Z3I>MNoKiEb9369`bH$_+8JK6;Nc?)t z4^alyb8kBcoth+}z`!s&$A5lB^yby`Pimatkyx({q{$Q3ll`x9IOvsm=>}wF#)J;Uv)%hu;msLJ-7lOg6jFiAOk@K z7Fu&+%`eTXI5e~A{@V5?f4zKX)uXCc8Tm#SY%M$x{4VQ zLe~mR7)6kyP_Q6p2C32Z?#-9i*KLNHZtTzV{Q7*zG)*uwq?D*sDtPni^__)rYh z&%2P6lgY7@I zSj=S9hbyz<*V>9;F#hfCkP!Nd@cVsW&D0r-sltYf*>qZW_x8~F{(fOurr6%y)`8Z; z2!-0%lzisKJBvISp0S@L}DZ?PAzj&NICJbJ@bJ&qxH z;nOyIQ_I7$KP(&$c%O3mb@2HA8|0U6%ZxB6xk@MUN|f2ad)>o}2p5{8;e2ENvq(A)u2PJYD@<);T3K0RRJY BX7&I8 literal 0 HcmV?d00001 diff --git a/static/flags/Christian_Communism.png b/static/flags/Christian_Communism.png new file mode 100644 index 0000000000000000000000000000000000000000..904172393f0488a3fa381cbe33717a6dd974bcad GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^B0wy_!3HG7B;uukRJ^B)V@SoVvr``O0VP`A|BaV2 zJ~PWIaYts|*R|^y;xv{BfBLFyaJXv&_u8pn9ilS5H#sq^y>QUwfzopr07O+b A_W%F@ literal 0 HcmV?d00001 diff --git a/static/flags/Cockshott.png b/static/flags/Cockshott.png new file mode 100644 index 0000000000000000000000000000000000000000..08a3cd1e1a25a40a6d36a6c9d05c0f99740d7b71 GIT binary patch literal 750 zcmVw%7I#sJC=00l+rYoqg*SYthopW;3yvNx)Y143f>>A(8a}PJk zWeODXLs;pAUcJFeYnAcJc7mbqWhwonH90YbZ)j*L=8-**ve9f}4;JaH++?-A&Od$| zQ`yPQcI_7_RKUX3t2lASW*?|InmY1LWwTU2`unw<`=?@<~p1EBAJ{-7hrw!JZ&&r=yIk+DrgO0xgK zY0O+2H}L5OejF=t4L}EY=lBO_tkTwRDw%EAj=@B+%t)p{N@R)A&<*kW3&-C589;7c zcw?=5;^pbb4kliN>i7Be+8iCvN7KdeH$R>^{l8l`J9FgyPuoksKU;6FH*Pd*i(wpo g`1$PYxBoT&0y3B?RPx# literal 0 HcmV?d00001 diff --git a/static/flags/Cuba.png b/static/flags/Cuba.png new file mode 100644 index 0000000000000000000000000000000000000000..e620bf5cac64a4879f1d80c70e5b76d7b1497d75 GIT binary patch literal 940 zcmV;d15^BoP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D13^hdK~yMHT~keL zR8P`3%f@al2DttVac+s z#)UDo#-&E032Dca9~sh02AQGr-pusfd(ZJZZz>_&cXQu)=ic+3?|kPz^J}(s;MG&? z%7%&D&`_UzXtwPBf?dViCx)4a$0j3e=^P)&w{tFz<65m2IJlm!-oNu0F6WtqHIj(L z*G1~=YvQAzbkef5^wkv+_TCo?g+Q$1eBK>BGPL=luo^G^F&pse)4Nx`^{HUedw?x2 z>{dSJ(xt1xI|XX?EbuzZ&P!~O4m9|??`HzdRC42ae-n>BO|FZXTb%Ls77EhFD)&ZkZAIQ)6g2Azo!NKK&?|+?r7onJ_)H;C?$1ZmM$>V?ZgyeGMoP0S! zZEauxxCR@HN~L1>*fHwrl6)RfvTfT`&!?y*soBSli9^Fjj+)t7o}c5XZ)7c=PVc(5 z@jV;+HS4YQ&DpAPeSMV6$)-)Ryqun%p=?u0+fgQdu4Q#f4yh6P_G(V3!gCu5n*nIp6WwQ++oN5fM^*O#_7^*7jJ26I=FPojOOC}>xRc5B; z#trQkinsQM4QWn0<4Nh9CmxE!*)>pD?wbHHMZYqlO_tWv?W^`0;&QW(4PfUoj zgi||mbB9jc4z?$nV^Ipw6BkOQ^1it_Q;kYXf88=Mbm{Fi9UW9G0w2ND+M2p>!L+wG z>OdqGwUY5dMdfn2SS*@|D1G>Fde5E*yz%;my?>`(#-&Vp(;%-bKnpgwBorD>oyJhO zT3q<^NApWl%lWPS`Cv2tZv5$pB|`Ys4H*k}m+ME?OMJlZr*Fz@jI O0000Px%wMj%lR5;63kIRl!RTPHT+V{OrS653_0|gkW3<(%W z2brPKIMDb24o!@{fn$fhjbp+MSkAd=8i9zz;m{ZpW8BPIBj0~VU!9tR-=)&#)-^L<$cIM)83TY)%4XJk-?usE zbzLtO3n9eiiTdi(YIf21XkI+hTQW}1hU=H*-jsd&Jshw4*9L=u5W;)UwbrB22mnF| z+XMCWm({tEt>y+F%iHJmwSnYE43NVP&MwgY8k>(faE z&*bh5d04mYmltywOXx^r+`;kA( z46t^d+K!|I&Z%t$a}KTTh1(LQvac`RyYR=K%`j)zbrf z@EsTnZv`^*6y7V;1$nPojk{m5J6-r&pNH%3M&NG%N(fH{unL$3%D}>O54JDC%VT&l zPbYWF&R?PU_HXNlAEY-g<;gfs&bCkzumAu+K>%}r8W;y=kjijW_J7Lxd3sUVD*6=l z^MP}R;mL8g_nAdL1WNrZd7zBtk1y7~04e|(C{c+icJWpC^SEQ=FI2T02FU|L=)a@f zXK5h46o3jSK=B(BsKe4pXykT#b*q6=_r20V41KMaOP@dh^dBf(U8^1i3lsnV002ov JPDHLkV1lH4Y8LKWm4MgvPLOuirz4h^Zmy&vcfdQo9 zXJsW2{XTW-*UOi`9zFcl-Tm3c6^PzjTfa9mduL$qMqB%hs_GkOXQ&3C*}qSm__=s7 zko-P#=I?uVKl=EfseUOd`^MH5q~Q$%1JD^jMZYdz1~Pyo&>ov%gO>GkRKjBgd2~h`niC>D?>w=hSD-%XaIu(XfQA| zfSv=|4)g=iNT4F1&S$Es&)}ZkeD*seu#v+Xf-crnCjbBd07*qoM6N<$g7$E*VgLXD literal 0 HcmV?d00001 diff --git a/static/flags/Democrap.png b/static/flags/Democrap.png new file mode 100644 index 0000000000000000000000000000000000000000..70cfe3ac77d15a9fce0a7d7f13771b82d470538f GIT binary patch literal 603 zcmV-h0;K(kP)%KxT@-;g zVo=nbtVKytE-P0Po11H!&NjEf=9cAbFX>*-&NPv&VV6BM(YyF+?4;xMZN)MmZfh_Gaiqop}1V2R2*!z%(KgZgcq2UwYsh8l%7if6Af;u`}@}ahy^7sUZS<7Z~R(>#gn2e?+ z`A0|xj)Xz61Snq=3@`zzTCanTc4rhzdyG6@un|=P@?~k`xSdQ?&vb pzB{OHYzVq=aZovZ%1+zc_z&kf7am65^g{pu002ovPDHLkV1nc43lsnV literal 0 HcmV?d00001 diff --git a/static/flags/Democratic_Socialism.png b/static/flags/Democratic_Socialism.png new file mode 100644 index 0000000000000000000000000000000000000000..420b0a12ad4b4058f7bbac7664ae826ac68b39fb GIT binary patch literal 190 zcmeAS@N?(olHy`uVBq!ia0vp^B0wy_!2~2{R-NzxQY`6?zK#qG8~eHcB(ehejKx9j zP7LeL$-D$|GCW-zLo7}&on*-8pvd7|&Ef8z{{HDh+va+O`3F6gZe-3(n#U^g+L435 z?xaCOj?Tq?qWBc6bOY9GJpJjdC+7u47lfl!~&t;ucLK6V$j6)#+ literal 0 HcmV?d00001 diff --git a/static/flags/Eurocommunism.png b/static/flags/Eurocommunism.png new file mode 100644 index 0000000000000000000000000000000000000000..3d73f8b8f7b2de8dae11d41dcd8552a38c3e40f2 GIT binary patch literal 303 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!2~3KHq6QcQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`ISV`@iy0XB4ude`@%$AjK*1xPE{-7@!Ko8Bavd@dXj}hs*#*~_rjk|N z>mNRv{mS{pE9D(8k|yc}i5&D~`ggK^iRW*@NxSd;f3CM>hxf5i|MS8At*ZGe*7AOI zxLqp6s?jRn$hq-L+O%~)SFN;PQ*m*<&c89Rkye@oi>)F{N?lqgrzIZv9y74dHGxxCcxi<`^r*CXDFc02PZTTj^nDwwn;E|n% yoa^jEW=e@v3x0{pwi5U&_>Vn*hEb@tQvJ-iPP=CRc8~-5hr!d;&t;ucLK6UGmwGz@ literal 0 HcmV?d00001 diff --git a/static/flags/Fed.png b/static/flags/Fed.png new file mode 100644 index 0000000000000000000000000000000000000000..0030a0261b1c8f94d72ac81623415ad7b472b610 GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^B0wy_!VDyzm^oeiu~l)K3-KQ8mZz&~XL^WtrL? zI^RDyv6OXlgm`=t6KlPD%xPA$=u5Bp#c`rL*~1gh-n-o&)SKC#efEw|ZDQ=_9)mtv e|Ht{cK6Q*wS)bjToo)rRi^0>?&t;ucLK6TRY(p*p literal 0 HcmV?d00001 diff --git a/static/flags/Freud.png b/static/flags/Freud.png new file mode 100644 index 0000000000000000000000000000000000000000..2e077c5f307e701ee893a8359fe869c9b9b36be7 GIT binary patch literal 738 zcmV<80v-K{P)w76P0hzb#U&NfRcYKfb@ONR0{`+!P!3a z#XJB@00|HeSb+n;2+#_s#fF%buS=6wuq$H~j#Sz6;?&4JrRL-iu>gQ&zvM|kH!vy+ z6GERg7$o?M;%Li@qBc|dy?$fZxHC(hFBS-p089brghMOwH5#QHv8(AWOXFmvg3-3+ zG+Bb*Teb2-^IZ!B0eav(;1fa!(O{HzwpkQEhIT7?I26qE$WjLDWVrM)%n7nfhPX)M zJhFShWkCHq?AoE|xOr^l%;fMgM!iw=SDWZ4(NU2eK~7xQbYirudJbVEa1kg6Vt}CE z;hPB&)Kj;nzPn2Cu+^&KgiB9;xinI}*(^cU;N~JP-mQeERyX}Bv&QA7K z7AibeP1ix2=Hro)WcyGq+OO@! zI(jQioZe-kuUwBiJC=Oy>bsiQ2qzE@>;}pfw6nTAeU;ayf8=*$5ZIPQf7J#~)vU)` zpvGlTzD-xj-9QKsve4~{meRcBW^2koeQwH^CX1G%Wk!zgFw(U%8*f9+JHP+1$L)59 zi+{zrDQ&wWYwf+p+$4N99m4?+k0&R&J~8pFGte<6{s+5xeL}4zt+z2Z=~I_yC(}=+ zcrpEyvx5V##A2w<(Ky`>%k67dugqK@AH(PMJ`jt=Y%s_#44-ke?%i|CR#4FL6C?|A U96X#28~^|S07*qoM6N<$f{`Lx?f?J) literal 0 HcmV?d00001 diff --git a/static/flags/Gadsden.png b/static/flags/Gadsden.png new file mode 100644 index 0000000000000000000000000000000000000000..3ffae9fa493495a6bb8540ab2de37f1a8f0f469e GIT binary patch literal 937 zcmV;a16KTrP)004R= z004l4008;_004mL004C`008P>0026e000+nl3&F}0009-Nkl%H;-+yyV>2@nc110neQR=_k*-vm6XODKples%BDhpXt-QR>K60puz+dI zvEY(nB8kKlFy|a0OcP`y+{E#T0`aqS{KuV5t7_l;C|W$JIJ$Y}$sH0_RNX_`aFj-z z*hq4WF+vEU-FbjSq@tiW`FPOUqm3O~t;GG5cL(&K-9A2FKK(>!O9AnMZf7Ip0{|cl zSyM~%38Gt3GO+Zb;0Ht<<#Ek{q0mvi2P>bH&tF_$oH@=jp31I*HFO`9%#wmihzyIT zX;)WGN~S}WUb`g@`>I*FxBj31$lb}=Bb&Nj6w<&sNGXL7nClMJH8~bqrg~6CGFh)5 zKL5-<8^kV3rs&*-OU}x*1A-P%?Aj~?0DK<=%~=J!B>UTt(*PtE+SRMkP=z1H#@(cy#L2Wb7y7-rV+9 z3dHUOU6xPUM^s35Dt;INENtx#zyCHbJ(S=0R6lu+)*kJ^=z*|{T8CRR3*`^r-9LNQ zT3RB((AGrj%F7n*Xrs?>E#CNQ=qE}ZjF&q2x1agB7y7I3@vVP0Uw^Co*_V03?DD*` z`fKm@hEst2r58_xbOW+_VUT*e9fhIPbF)@s!Y5%jrhl$!{q5}OXS3R|+_RLaiVmV< zDP@pcK@Q1x)1#SK>5Muz_==P$tn>h{+7M2r>Q#{28(irfkL5Dj|>kIT_58mtva`bV+v!GQ>60q{9~EXNO>? zROljgC=p^^VkoSGmO*naWt(g(SBtgnec$Kl>h1SqKLAKk5C8xK008hK769@{k%*B; z)lL}9z8Q^B4ZL+Z}uP-)rwILJ*N80svnB+bR_p-g7a34{QUFbz_4#* zy7u-Cav&tlL7Ga;cf|@;3n9tl*M$&vyRBF(&doi^WHPB#>RBRgAM}V;g%DILXmw&M zJLq&EfTi$pb$2%(i9|+6!&_TllF8)q^3v3!*v-Jn>d!JtvfJSB5ZFqN3@;J2BSTl8 z&L)DvpwH(!)7v{S@gN>ga49BVU#m4h3g~pgUK!ZNr%2845aODr6rGALEW8MZL#AnN zf8B02o158E`ptmkZOM7J-<{2!W(S3f9;OpY^HsCkT^}DGTU=a9r_-ismVasYAAYWu z&&pOy^0wZvSHEj4P~P!?-r-=9#QSJI+uwDn@7(R7vDM_}`iF1**pyx_kfW51deNd( zm{W3_&~yYz0!i*~?B~~WLJEmoC&4t5DhUKsfs^P^}oo+5{(}A5HX_1h@OIAu`-Ad!Uv0*tmRs+H5@EgNc12rYq&+| z!rBO_B@83NXo-ka7L~5V(rmM2FPmrQ{HVcT{^`QycfA)s=X<{A`}^^D|GE6t)p@%e z9qr%r`uUJf7rRSt$w|jpH%9J(XBqhPcB45t9jmJw33kRQeFw zwp3DbJtx?9OUunegTZvVumET4>u|QV28opwh)qvJcx2=f`fIbkeh61Vc3^Y!{pjT6 zPXe8LJdkj^Av`<`J1Q0IcXtC8gT2m9z{0TA&@hhgxr{)pY(yYa#?)cUr0TOw2HvtV zI2;^gzjxJYz~TfooO`|3(gMH8i>Syu;9tM#wi)5S%IjE%v;zyJh$dttw;ixtMUKc)p@ zqPVxboDGA#B;a?a6OJtw<|#o5j&TB)Tpq|e90c1h)iL1eD$wMkQ&S8?-!PwGkx1aJ zMB>N@3-$Nw{()T#hrEp0Y;ZC&1A7_`fdD%>_LP=B$P^nzWOOu1abX}_2}b@A@MvO! z1_47N5xf!#lk+l}CZjr>n3a5r&&@FayDy$8gZ`Qtc*^I)6F&a{VQpEx^H){*aQ_0T zgd?+=trU|$V;c$%i2cZA}002ovPDHLkV1fpRMe6_n literal 0 HcmV?d00001 diff --git a/static/flags/Gorro.png b/static/flags/Gorro.png new file mode 100644 index 0000000000000000000000000000000000000000..c43af7549bffd2aec3ddbdeed6acaf89b98baeeb GIT binary patch literal 909 zcmV;819JR{P)5c!pmb3*1*tBySrlw3Wm?;`V300K zAt2Z+w4epSO;>J27lNWqaY$0bl-4BEB-N;$q)n5_WWF+Q=6&3IWu7r9H2x3V#ews? z|8vi|LS;MB?Q2b7wzj-~al-&jKwiB*!+G_>#q(b|k|aeMg0v{>WFgw5(yzbiGY=g~{0|S* zW;QNe8W4p-PRZtSM{QW$%wc=BN18uR-A}*V7H@;&I0!*tSlcghG(&bHs` z?;qOebsb9G)2bqw9C>T|&L~Rx0`!0nRFWWssGD1F22dq}8P$)H$q{WKC=CsrOQ%vV zfo#s(1&)u8ADGMh)k68d#Xi3e%(0(&a3AORTlHZP5}@gb0+>2~=2O!p(f_8*Fnas; zfl|c)vn=?74PcCexUuQ3E-z1Mo{kv{8 j$_@(i2Ke6C9RTHW)ZN@g=M*n!*wW0Jo9)N6G8S|ZAx%=U7zo`cAtY8vnOUZES+PuQ zDrpcKBx!kpA`Fru5w(l6D2R|qCEuRU3c`kU;P8I$$9d0l&Uwx`l)+%oipAn{p`oGA zSuEB#lgS)sv)SVT0RbzCtFGIRLr`yf``!>rF6vQsO-9YyrNwa7W!DL)r$SuBFhbdfq^3w(&~wgjkWl7 zxModUW%0Jj39oZ*w7X$u|90z0R@N%HKij0Fq^&4fHx(BbcN%H$_h+K|;Ex_58m(%dHz5d(uVEgRU zqgFC_qk7I}$*NiEte~JknVg(_J2f@cNEH$=>~f-`qp#_7y7M6RCs`JYMXcBB%TR|# zolf5YqMD>~<&nErPhFpS=$iKpy2*Q_{nm5wQ_I=I4SJp40TP;F*8vV1ah6q7RQydA z5QOpZ@xt=*a-naa#rC$x`OeqpB6M^g23pA*ZxfmDT>3QDUB8>QK^F+=H`Kp`5W;xZ z<2>-9tAV_{bAkB!Zjq@6H^?*h8S<*@Jej=jtnm$d0;vBL8rht&%3(I7&Tn47dd7YB z@Jw4xCD~#$klc)v&-tdcCsCgNbGT!NEk!JmH1l{XX4y;@;jq{wO1zRpKv`@qVd0K3 zn*||t7)#Nz&a76eKqiwqu>cky(nF60uz>kp;IP^BQdnRx=%oN44u@b%)uO!w%Q;kl zZ7=3>80Z~fvN0ke!j2Xy!O|!}&)R8Lv7tK9yTfQRZ((7f;!htx092ncM!(Ud*Z=?k M07*qoM6N<$f|t+4=>Px# literal 0 HcmV?d00001 diff --git a/static/flags/Hammer_&_Sickle.png b/static/flags/Hammer_&_Sickle.png new file mode 100644 index 0000000000000000000000000000000000000000..e3f7f54f623dc889f0059540482832534f7778ed GIT binary patch literal 3209 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 vRL(sVQa;t3_md!s?7P00000NkvXXu0mjfrS18$ literal 0 HcmV?d00001 diff --git a/static/flags/IRA.png b/static/flags/IRA.png new file mode 100644 index 0000000000000000000000000000000000000000..5fc50ec49bc080d884e9c06a8d4643a708189246 GIT binary patch literal 590 zcmV-U0x7~ZBhtfV;sjE zd3b*N;qOS>=%vTd=&9|CNJ+|~OtDx*DTOfxt+n-iC&xe~7#R`Bn1zoYwgggJiR(5h ztqH>r$8nHS+FUAI_VsEmm@BS%-2^qOsnrG-uZU2Om%i?9TWHK4+EiElfO;7P@VVASdg@gsjU75sXF&=7t5=`h-F|e%KrP; cyHN%<0d80*i{P+Tpa1{>07*qoM6N<$f?4enWdHyG literal 0 HcmV?d00001 diff --git a/static/flags/IWW.png b/static/flags/IWW.png new file mode 100644 index 0000000000000000000000000000000000000000..8d3f6358c433e036aaab87cb7449779b9e245bda GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|Ydu{YLo80WPBP>>tia`OB|VFGOSQzmS=?>f e4{u3ssby>sR8UZey5s_MID@CFpUXO@geCxJUs=5X literal 0 HcmV?d00001 diff --git a/static/flags/International Brigade.png b/static/flags/International Brigade.png new file mode 100644 index 0000000000000000000000000000000000000000..98e6129f2a604131a62d079ab6c859ae81ea3f73 GIT binary patch literal 1022 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;+n#6JeA>82E(~5 zhAVjtcS;3rRfycKlDJ(Xd#8}$;Tr~qFJM#tF)(~pQU0o_`Ay&8hpFjL8=I#-4F7@| zzK0lok1+p|rua2W{ae27_hRE8<(5CI?Y?_^|8jEtzwLtwKFy25CM}GcvN&<-(v%s?GiI;Nn6@T=-kPHMn@i@cFIl*` zX8A;ydsDscPj-1U)&22Qp9eGiAIuJUI5+&!{Fui-`b>XLwE4DG>&G6O->qK1JN*9k zg#7D|{5L7)|FX)Tm#m&WWBB`*;nOGK&z~i~e3Ae9Rpskf)o3FY52#+<*Vdwl%ES*}QsJ`?`Zu zcL8Hz6b#M~u(oLd<`aenPZ!4!2}#z2cexl7MI0{LTJ~!A3h_S(+S9P(`y;)nj}9qo zXa@hws!5MtEyc*7q;OEiGfZ{SsYXIB}TO~w1J_CqdsF!p6UOF R>D8c6@^tlcS?83{1OPA7B)I?p literal 0 HcmV?d00001 diff --git a/static/flags/Islamic_Communism.png b/static/flags/Islamic_Communism.png new file mode 100644 index 0000000000000000000000000000000000000000..87bad7a9751a3e565e7a6afe27f9fbe7e5acf45f GIT binary patch literal 448 zcmV;x0YCnUP)E*BU&t$C5<{xUEu`^~^$3$d7iiJ)O}(`*El<~naxoa_3Qcc!t(e+C97AXWlm zFCdQi$G~s_Xz0~H3=A1SoCg$h1Y+FYmzig$3JkA9Ko?$Om}$%k5(8?G1{$&yXxRV% z2>b^q)&Qhg@VZcBrmZ9}@OLZCaef2}OPDxNBNq_Q1{(SaNdExhCqT?eTo}%E?g571 zHVW0>MxmuocxBJ$pi7{&u@CQZ3prx&aASl>aC>GWl>=YD&oq`A=g0-bV5p1;5#$FVx z1QCCO8jXoYCE491v-2H`w^GD%4alBHrmwcY-8kH%~FY@zj)g(f*D z#@fgTkag>{r6nmZl&_K`C)*}EL8voyiQ!S&5W#lpl9p;i8XncQN9sGKXt(ESFW`XT z_cLa$v*rjJuaV%d&Lm}ZZ5~&ss`XsIZaV`9s{(lf=P>()aD&0~)OOGYAhRTC!)b-8 zBrUyn15(!vNYI4A!)fq5jVCO;MfP8vp-`OE^hK{d%GRrnu-Hl|rFNtV8;&w?mY?_d zaDf;JHc$ytCQV&YR&#US%~RfZlPy=%tY>0Z@F5ye^1Al62%U$ t_U$XHmA}VjGQqI4+)_#@*yW}}!XIYEY1Cmo;8_3w002ovPDHLkV1mWx8HWG> literal 0 HcmV?d00001 diff --git a/static/flags/Kampuchea.png b/static/flags/Kampuchea.png new file mode 100644 index 0000000000000000000000000000000000000000..6df06b21beed08f353d3c6d4389b1c173f53b81d GIT binary patch literal 335 zcmV-V0kHmwP)$? zF-}7<5JaCpKOjUIgb)ohkw`(q321Wwu0cVW8*l<{LB}aL0wqOiq=bC$ti2Tegdj16 zHCny#j^$MOUk-rnO$Go`g|u9@QMd!hqjfY!hCOK9mq&V6Fb+v5)B%n7qlH&Y4B)m`yIdhQ{Fbth6u1bQCfC6d# h_ak@8KSt2drf=~40WAE;#{mEU002ovPDHLkV1h8Vj}ZU> literal 0 HcmV?d00001 diff --git a/static/flags/Left_Communism.png b/static/flags/Left_Communism.png new file mode 100644 index 0000000000000000000000000000000000000000..0ba0c5fa97e7ad1c04a00e1fd73ed6ea34c70e52 GIT binary patch literal 780 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 O0000 literal 0 HcmV?d00001 diff --git a/static/flags/Mutualism.png b/static/flags/Mutualism.png new file mode 100644 index 0000000000000000000000000000000000000000..d41efd1b0caf6981976053e760ba855f331a7f37 GIT binary patch literal 1010 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;tEtCz`-CWBq$*v zAt@=TsHmutE+2hple`YU}9ooW@ct>VP;u91U91;=|5gFMOW!#@^HZRwDK>)+rGP{nVn7jE5pDG!? zRWtmqWB6OoaH_%VYKQf`KAZQG%)U&w{yxj*=Pc`=vu%FPu|3fj@@t;s?*%Tu7rOsh z;{9id&(Gzdf0qaTT@n0mP1OH&F>h97{9c#vXJhK0jcI?kWdGfo`+Ixwzg=ZO?~H=c z5FkDTmhJml090M#>Eak7A<25s(C>(Y0LuZRTP#L$4h|*%|BG&FV1BJ~`t&)I(A&HY zF8kWHJG`Fp`LW#&rI+ubj{nQbQCeDk_U}Za30_rl^R*?GT(bOL>>As)?u*U7Y}ZWY z+IQ)hPgnN5`}y1WbWjOT>7Tte;W5(={bpnM!@Tu)>@wF!b231#^>p=fS?83{1OR`U Bt#JSV literal 0 HcmV?d00001 diff --git a/static/flags/NDFP.png b/static/flags/NDFP.png new file mode 100644 index 0000000000000000000000000000000000000000..428f7e21f53cc727efe236dabe91d8a6eedcac26 GIT binary patch literal 1000 zcmV>P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1AR$EK~yMHRa4z- z6ju~KcV>6pkL)JRj)E3`dx=5XiUbAR{ze)o)c z0-XR*1%jsBgpz7-_>w!P04&fjcI1Y>zw_-qSG>HvZ)t0-@pPqlVg-_Mh_w|)4_+tF zoV%M|-}U87G&UOu0oDNx@!ozK9cuimTl92^_KX5DF2uH;O!k|pO|c&*_qXjHinsYJ zTTf1$H8Rr)`E;owt7N-aqA&)Cq_i6yMM{z_NlJ7iIkNK8uRcDCY=?@^_*;ZFWNv=N zGqc^JRIP&TKx4uI^1YfH8LNM7e%ccFE#-#&kvT%>&Tg2`q_1P%6~lv-a~Xt{u5>$B_@` zypl@`pfqxUh_Sx+%U=(;B-U-tz<}Q%SWOo&M%P-cI)aVoq8?mBjP2m^k-ywS%f_Wo*;pTVamLyA21<_zm ztmNP}fm1t;%x6aHWiT58)A{yRpX2Z%imtvhiFkxiv7uI~rU%v{uCA0kJvL@VOS&ci zu@LU-MV5eX%`>K18**3h1Fj=O>gBS2zGO~7Qf%#H*+>Ye3qxH9!a)r9DBwrGFEX;6 zI{84Aea_=Z4T86VWGN&_$IQOM%IL)v!#kCiy~DNU3{OE#T1WQ`Hx$kp>0_z0SA)G< zSXScwO1gq_fqxocA);yUg2*Nk$&(c>PCjtT*?0X zK1uB!rui5Y;gGf}s{BIK=RWM)-k$GhURbPpVlh`dRoKzLJ*V#tg7Ziu57Xi`5gj&i z*RM|A`R2xNjNql|=5(Y~oSK=s!<`~oc7CK}iYy?UKb`By*D*sg{|kU{m2Ua8HW+_5 zn2KaRzBtQDvrEZPnn;_0SZ`B09*;*&(};xqpMNr%cFw5koC*%`wQ>)+(R0nRKKfvD z)6BLvPTcPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf0-Q-iK~y+Tg_6HZ zTtN`WXWx6Cgm{Jc<2)k=D%vDMEbib!f+(0&1{1Kc5v{B&;(uVNwS|o#5v-C*JH3dF zRkRYp$|M}99R7%$B;MQI$#-_2XPIHyH~V(xGrv|@`j5cC+vt0xE_X!i6i4anQ@NZw z5;K!^#<*w8*0NIkq>Fx>Sm+Skx&_5(tuHUl`MFTk=qTm$WK4qb3QUbt|3bA_eh>FLLqq z-czI(;_MI!@%Wf46|=QvN~K_YTr!O!)sdA*STe7Nxks}3T4anYx-84r*LrHoR;%bv zYV~6@GoyNX`S-P0BC2o>x%?8Lh+?FG(?zA z6xqE!b9gA7#;VoK!NH@=&2VVQuB|1;#wCu5VnX`jY@5>jxQWwgl`p7F#_aBzN`;%7 zxuu2L+NiZv5&wPvE-sZQo2AZ9*&`_hJyBJVa=9Rrkvat@15*9{e0Ihc7czL{ig4}` z;Yz~*B6Z8}`1ZDTb0d_xNM4EhAZT9wCjdBl<>9pu{R1m?HXg8Jn1cWS002ovPDHLk FV1my8Ycl`< literal 0 HcmV?d00001 diff --git a/static/flags/Nazbol.png b/static/flags/Nazbol.png new file mode 100644 index 0000000000000000000000000000000000000000..13a0d8833f73dbe2aed59c1b718de38a5f23460e GIT binary patch literal 627 zcmV-(0*w8MP)Px#1ZP1_K>z@;j|==^1poj6J5WqiMO)7LaMSpL+WT{Qm!~r=wI)OV7;7`~Lsd&fE2=xb?io|NZ@?p`AQ9G;L^O^6~Gl ztEUqX4Y;+k^}EIT=<1r5kp%<;0|EiGud9E0b{ZEI^6>BZ=IQ(0gNUp1pfW~`}_L(`T6$s^j1+#HZm^fe|h{{4lpb~QI@(PMd z?Ci=as%j7s26Zsd(B#+B*3o6x(-$*nyN83Pje!?f1ZugrkFTG9fMQ@!a7ZXb1S%009>LBY85M01 z6B`E+fq5`q5NtAgLLyWE>VF1?q+~XBcD9sMC>I%|rKe{=nYaN10{|+mAuPftgDL<3 N002ovPDHLkV1m@MHP-+D literal 0 HcmV?d00001 diff --git a/static/flags/Nazi.png b/static/flags/Nazi.png new file mode 100644 index 0000000000000000000000000000000000000000..096153b672e50c75ce74387815b1c62183483bbb GIT binary patch literal 452 zcmV;#0XzPQP)$C zJ!=9%5FHP}Li8ZSq!1e$MImWK5$rAe11V3i$rWm0b&ZN*)LQ%t5qlBAN((`-@h?b% zdV&bi``W$D++9p8GR3evyf<&&jLU@ogV&Dj0+TypPB2c3Tw1?RGn#&wIUIB9W*!8Y~cClrob#bJz+LZIPF3R#6l|5O|(X zrBae46$*t$y$&CrNI((Juy)1~XC#w)X0uwgn#p9k-LB8)JDpC*=T|F`_lRcHBm~`n zy(OCf!=Wb_ER{-w!C<(H literal 0 HcmV?d00001 diff --git a/static/flags/Palestine.png b/static/flags/Palestine.png new file mode 100644 index 0000000000000000000000000000000000000000..c92eafa6138534a598f19eb6ed8d16704bd94c67 GIT binary patch literal 408 zcmV;J0cZY+P)v zLMnfdSomcVdT^Mh#FYbSK{d zB=qh07%xZXKd*0H^TFR!|IqLE0C-9t)!pr{j85yz=4F0u`6mG8G8_)4)2UYgECBi90C#HRRFNs)(1P64!XVa^f?Ow(2WGmSV)qkGz-0V zuU>m7&$e;r`sl^E6YM=hAxIRW03-QHQc$n_IP7}!$1ltbO{L|)P#f-YNF=Pl>7m-t)|b=aI8510000b0~VPF8-7|p;C!@!Wrz>v$pP{P1a%^+1SC0#BpS1G4nukPUB z;O6G$<>lq??;jEp5)l!RpPye+Qpy0dyoW(*g_Kr` z>$UVZ>YHvcwcKoJwav>`md#4Fb?vvfUr+Ej=3~=1;=(5whA-gY_{YHTRYm!$rsg+&gCC}*KW%Id`uiUV2{{%Sc|11u zQdQM=Z|`4Dj=$X9fBX9W2nzZW6!bG9;#X|!zsSgcv9Z4s6aS>8{mIJuo0s>mu;^b| z+5f64U>J^qAsPaVb^q;wPA~LyaSV~T9D3Z4>rj9I!^NM8zAh|^YiAi({y)YX!O`g< z^v7B(vt(7}(__;(JPOzXx6Ybxm~e2`t`%|}FIWCD3ypntDD`&W)PENb^cOGrX)JU+ zG0cCZ{?`5O`}Iwq>uoJvn(bVkn11$(>B1QGKp~Nb+(%eTnA-0vTm*%ir>mdKI;Vst E03&(G*Z=?k literal 0 HcmV?d00001 diff --git a/static/flags/Pirate.png b/static/flags/Pirate.png new file mode 100644 index 0000000000000000000000000000000000000000..854a584d3580d76b9d4ec6036e50672e7e049521 GIT binary patch literal 381 zcmV-@0fPRCP)8ZR6ovB_(kZT)6>5+yE+S2aAP82_5N(Dy1wyP%5sCp9sWe-Lh)5j@ItYP)NcLpQ zpEuYaEL*grswZ7bUYq;o@W?_Wm%FWuL1aESr$dn^E}`8KPz>+-A<_wOAV4+4NC`h=h5yhsGXXI(lqTBX%^Irz zNx{hauo`x!JQ9py;RFJ>#9)S?8;;^KQVfI{iflNB%aGaV8j!`&F-`+vlISibhL6)g zLN38;7`maLa6;FJYyeCiuVL6?`2C$3SZQR#ZkI*C48$-LtO402xY#g*ZWe~Z#bK7A j7>10AP1NZ6KxP2|3T(|GknA)d00000NkvXXu0mjf?+ tzHi;WuEKF;m4kP!x^~*Ho%76B7Bf5*za4+)wiw8j44$rjF6*2UngGz3Mgsr< literal 0 HcmV?d00001 diff --git a/static/flags/Punk.png b/static/flags/Punk.png new file mode 100644 index 0000000000000000000000000000000000000000..feb9a01bb736aec01304b334ea612278d93a8616 GIT binary patch literal 1053 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;tEv2!N4FWBq$;z zC@Cqaz`&p;A)%zCq@$ywtE+3RrDbTKYhYktVq#)#V&ccZ;3g>wV;yN~8f$D^&cINhq*SesVbP@G zlGP3lt0N=#7Zx2>R61j3c1uI!j;_uX6O-!}=2vZOZO@i z@4dah`}_a)@OYb*1q{hiFyumjwcz+(prhw|x;TbNgeNC7FnQKVoW616#)-SumgXlN zf@4DkRTeCLD*9e#x{#30!PAU_1zrJVJ%-ywzdui!o}Q3kaH*s0!nuHnoDU4AGI3X^ zq%BWdcKfGWR8%x)myvDQ7J=ARXoj!XpyPH`wPipEObn=$3i9Z>jsy85}S Ib4q9e0B8}?SO5S3 literal 0 HcmV?d00001 diff --git a/static/flags/Raised_Fist.png b/static/flags/Raised_Fist.png new file mode 100644 index 0000000000000000000000000000000000000000..e1920ba9dbeb458c09f380eb6bbe242c0eee0834 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^+#t-s0wkH2?q3U}6p}rHd>I(3R2di=ni&{={s+=8 z85l|p7#Ln9FfdrnU|pA>)84XAddr;B5V#`(~58@-$o8QLB$H&%I}@KAw+H@1CC zg{)p|OLud%^WmGj8sYN?_A*{| zyO938*yS_6XFR{XdgZ>^%4tWN*7Z%>*4wy?r!w~7@@ilCHnDeeikIc+MZAivG!L{~ z8@`q`S-HA%wXl2AL9fg6+cau}h5uB2UOFS`iQ@-l!@`M0e#ft!xe~z0xA3Luah-SK RmOw`{c)I$ztaD0e0s#20X8r&G literal 0 HcmV?d00001 diff --git a/static/flags/Read_a_Fucking_Book.png b/static/flags/Read_a_Fucking_Book.png new file mode 100644 index 0000000000000000000000000000000000000000..1a4ccf52839239138b7fdb2a45e005d24391f37f GIT binary patch literal 693 zcmV;m0!safP)k)z#Iqt5&UIW`KgUv^1`aj0~NK(9opt z(9j+yTl<-2#>TTPOidTfm^N+Qw{PE~8SdV`{W3Wr@&A-blm2g9zy9z1dGmg^wY2_B zOG)_{=;wdZ(bl#zEh)*_+ruN&$<}UJR9M8FlER|zlO|03w_@4y|64Y1{$Es3@V~da z`~Rg&mmV?9oipcOT5`(&^XJa}|M%}782|b6=l{ER@BW`TefnQ_XV+gBC#TmyOW!SD zw(Q^CyLbNsUGo3$-@kD6GpEn^-_hFkzoxS4AH(#i)8GbT10c=Cg@yl@EnNyW1RH=E zn4OXNAH%@q%a?;(2Btya_wV2TE6d9NuV1$g>>7~E(beEJ5C&ixu^EW02AhHZNp&Gf z22$OH=zuN;5{eX(3?wGmP-Gx-!iF1|7#IJ)ucrsBY3r6P|BoIy`v1=D+y6g)_<&;I zub)5vzj*QD|D}r;|L@zo_y5KX8~(3byY_!>b~eJmiTxA)_xJYxudb;4-`v>vzqY#O ze^Gt`Sh6rLA8dO<>Y`ZX{@jR-_qCw*0*KTrvEuvS^pVa z93Ah61&2I}iHv%lm7ejow5aGyYg6;@i4!LLo6y()ueQ4Szm=K!|JbPL|6T1J|L4q_ z^>50g$^V)gn|=c=`IVoW`ztpq`!|sOSXb0_k+ym{f6vn5fW7yH z0I6kpU~IH_I62vxU;WXRFn+vg_}c=BQcAc1!_oiYhEYbDJ&r{DttgkxPghP%TgoM1#3-YdY XO8bw?#0f$k00000NkvXXu0mjfH-*JB literal 0 HcmV?d00001 diff --git a/static/flags/SSNP.png b/static/flags/SSNP.png new file mode 100644 index 0000000000000000000000000000000000000000..949d777d504b8d17144ab3d0518eb21146e40fe7 GIT binary patch literal 874 zcmV-w1C{)VP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0{=-wK~yMHol-qW zTTv8#?TZ|T|LyALiu;Sn#I9MGVOoKvjFcmk6wRLb15u#wB zIMi0!!RVmUxK)eYsx7Ic1cNb&$;*9z{jRUHP)diM$Gz{|@1FbJ@0@d)U&dlct1GOv zOj}c9Js!`?@3DI-qrn$oO0z~!r{eIj)M6s^6ZfNKc zv$HdIc(}K>CyJt~GMk%kDBI|$x2LB^-r52i>A0VFxx|G9_*GR^ZEbCo977OtsZ?ru ze;+=-y~7R+=!b^~2M1GWe1Fybf5y7qZimA`(-ZPO-{V`6_n+_Fot&J^WwUugqR}Xg zuv)E1>c!d`PKaY;{LBm-htr854kk%5A*7_Zn2}{A999n^LPrN`U23t&Koo^j6qy!= z5JX7NpQ%LTeLjZg0Sba3NfIIyY@eK*Fb0F+)dthlr1N+fjywKzjJqU>=*r8>&1SQn z=T|~2jg1W!1OHJ~J3Bj#CZnF$gPrE{Z=*e`udlDJuGZE_TN8-xz;rs!WHMzk8Fcse zE)7sIpgbOrpPilQv4>}1x7%Z}m=-6=a?e9*lm_WcOz5Ylksnr}P-uRB9*&k_MMVW> zu+T08y1qb0by14hVDKkJE+=+(tBG@EcNb3qK!1P#`uck2>MEU1Lmf0C9yrxP<$;0_ z%n)VS4oe>nS-oD3$CYG~IX_qYex|aLHJ7NFE87EigVPy_L~tI@5=X#5>(budj?$pv zkPlr;OG`GJ4LC!Ha&RCnE~;O@+<5zrH5!4Po}Ri~E+mfbTdk#uL?RmfMl*s6$U{$Q zUvs(M-rnWqWy)eOa4juNLBY+futpJ_4L09yCL$3fF;DO|L_8zlR7*`w4KCM&pf{)x z8g%`abvj*PVd3TFB}#xuT6;;-94!|VD49(D0A;xBrDfwty8r+H07*qoM6N<$g8y)f A=Kufz literal 0 HcmV?d00001 diff --git a/static/flags/Sabo-Tabby.png b/static/flags/Sabo-Tabby.png new file mode 100644 index 0000000000000000000000000000000000000000..2f7fabfd60479adb75cb8ac2f882d8fed8fc8d38 GIT binary patch literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~q0VEhsNCp|* zE0$<%=6a1?;4v@rnT=-_YB6jrojr-YHNcc>N&PeCU6SP=CuKZ*!zFm^2gBsdH&^^T sFHcpJnE6bpsLZz{=Iz=ShmGp07;hES?XOZOodB}R)78&qol`;+04W7C3IG5A literal 0 HcmV?d00001 diff --git a/static/flags/Sandinista.png b/static/flags/Sandinista.png new file mode 100644 index 0000000000000000000000000000000000000000..72f85eec40ad8d956a18cb31f77bb336d506bfe9 GIT binary patch literal 441 zcmV;q0Y?6bP)Z~ z$H0IU{Q{#eNazh1f#m*IRYB0dvN8}VEc%<5_a`gsPg>gV#Kd2*u|Fdsegp-5_x46; z_!k=sLXnYwf`Weg`u=iv|K;TP)5hk9sp&U;gRh#JUsaTmG&D5)>+k>9)AKhq^-p>E zpVpS2o}Rx_Q-7FSd^a-u5f%AWTl<@f%Qs)&rw|SQy1W0MJ^Qb{{cmyczY7=sOq}qi zzV7eIliy8DzU%4zIdI@tfB&z^lfOkqf;7}IFdXjaeD~{1~6!CZQZw;LN9fBEtyBqRi)o}r|qBr`M9)z#I(-aa)owYqWnyBY3kHf{08|P`KtY6t*x1;J$Vi~2K|#UZ-rg=? jU;_pwU;r_NfeZiuoQ%xN@Yes}00000NkvXXu0mjfPlejZ literal 0 HcmV?d00001 diff --git a/static/flags/Sendero_Luminoso.png b/static/flags/Sendero_Luminoso.png new file mode 100644 index 0000000000000000000000000000000000000000..b3f159fc5f504eb9d5ef4627f70f43bd63c47acf GIT binary patch literal 736 zcmV<60w4W}P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0(D75K~y+Tg;G6h zRY4G)eJ_gQ2Smgafu~WTm?n8>3@BETKOkZ$SZE(fA&3@sLA0_Ah`mL+SlL)8+Gt@A zn-s>xNQe>=^WNQ=J)W8S60vf)?47&!%-M5hHWm3#5Kv=uC)tgz2qFoV;o;P3#isy} z5@7yEVP3cuo1Vs(10pw7U0=7=RcA?)lQKRoW<8oZA=C;?QA~~(=~uinbd4~mIwsb< zxL7SL?69=kSXrrAh$~g)Xg*BH!lbQo1Gv{MUo$k5LQEScPvxa0vNXJMH~f4rt_8E+ zEl|?=5Ja*-6qnQ@gl!>=NTnY&U)vLvc{EM#?VNgS8- zCz(+^$k=cANQx|<6<;!LX1QRvWLTte*G`ItY2pOQ!X*X~ZRh_DR#rG$$#hrlC)^d> z7EB3#D4uk2rjnOL2AH?bin66-@hjSMM1_#Ci~$-p9Aa5Vj<69b$4ovM`q&`DtJ(`! zez`R=^k(D=$ug*z{+)g%nd+1G1w$Fr9eK8m*==0u;+siF@u=g-c>G$kmW|jFX--Tu zM@En{4ys%)@}giR?(2yP=duhI$ps&(G;cCmY|P|o2;nH3&F!_d&E@5^NjWE% StuibC000000001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y9E;VFFSW*B00@z7JK~y+TRgzmslK~ipe*#lTr66o3TAGN5 znn`4?O)orUvpMJHmbrPRrEcn+PN$elr{gCq0jC2K78k)&E|Alug$o5RblN^6<7`R#Y2{6RptErBS(8=Cqo@= zY+c!<&vnuS6!T9YKRyt7asH6T`=eQrJvA|C_OM5{FlaP%SsG`pkVivdG99wSU?^Br z)N_L{tmHtGMnhAHXwGIbIoTD0P|GqWlTLb~C^isErZ3b2KbW%^cvh2&k6pPKujWCX z9EwJHmU>elO(sf8ByF8bbAv@1g^?;Y-n2@vWU0cp9u*di6?om8g}j(U$mN9n+}u_r zm$T>rK4=uPu+XQ#%Hwvd&JJRAhQzNi6TbGU@xiD>Wg-=EAry2plm!!f*4Zne0TdX^ z1z3D=4O6-zXazJ_Wr-NL$V5df6^8scXoL|6^K!vuF+Y_kNEc*Fg-lFzmg0S{60OM* zkcN3|BuJ9nox_e=88hqf^y2^f_WR+=Dc}9l{jT&Zq$soeHtv2jd-CgKppoe(vG=8#q@wNhXMV@(?|OC zicR4^C7GGRVPi9%n6wyDr6Y)(IrE*M;13Fl$Tk(%gV) zeH9vuggET(gnSWu+8*7>K)*>!KOM5lVnw35NCc&rjZ?=DVy~;?5|0`c+NstGfCpJ-x3Q8ecUvziDfI)6xE>qw`%?_q(3nH+}tY`Uank zjlUZjem4Rlqwglh-%U)uo0)z$H~VU1^TX8ihnd+AbBmuA7C$U4e_C1n1Pa>P{k>Ec#bg_P?qM7<8jx*oQ#iw?a>#CrdnC977}|Sq~oMJ!Bx_axndL)0`De z^H$7ED(Y7Hv-frCGFyfQ0RPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0XRuSK~yMHT~M)3 z!!Qs%r-Y`op%jXcD6B~Q0}|@Y&dR`s_y}NRV`gRGI}ihW17hk@)Y6nhiCrg-dA3nx z@pOvrF7Lg&Gn*Y9(?4WFYt8c?q)HU3Tp=m#ABKQ{PbRghY==N~$tc`}bVDn|q*e-p&|o z2Qy*ohVkbxc}&Dx^>tZnj6<;TEHK95=CM4m>F$UpGh}rIfEb!ecjJA9iT#uQZrjGpF={a$9Tm=^f;-wBCTSH~0vMegRbOm(`zZu;~B* N002ovPDHLkV1o51vn2ok literal 0 HcmV?d00001 diff --git a/static/flags/Spurdo.png b/static/flags/Spurdo.png new file mode 100644 index 0000000000000000000000000000000000000000..0f8997cd12ea7af1f24994d8d6f4d8a0592cf812 GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^B0$W|!2~2fWLtqaEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaOGJY5_^G|nf_5Km@z=doZ|CK6&h%P(c~hYsThLA{~&WzK~wkEJUv+sxjc zrgU+^r9V%P%5WU&NiWe{bL#Ujy7!PC{xWt~$(699a6 BGJpU8 literal 0 HcmV?d00001 diff --git a/static/flags/Stalin.png b/static/flags/Stalin.png new file mode 100644 index 0000000000000000000000000000000000000000..e52410c0285dbaa8bf444c46f9eca625e4b51929 GIT binary patch literal 3655 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 M07*qoM6N<$g6P!@`Tzg` literal 0 HcmV?d00001 diff --git a/static/flags/Tankie.png b/static/flags/Tankie.png new file mode 100644 index 0000000000000000000000000000000000000000..abeb2d73c9ebec427e8f95e9a11ccae0924229ca GIT binary patch literal 276 zcmeAS@N?(olHy`uVBq!ia0vp^B0wy_!3HG7B;uuk6kC$Fy96P=~|9_31SD_;79~V5V?+WIb)c8M8sY#~cN$M$HXQL?-XYFih z1cJ`S#zg)$ZqAR!lCun+bPKRa3FQj(oIe@R9xCU}_)%VJ*^^Hz=jSk7v#?j5r6aux P=vW3%S3j3^P6Px$@<~KNR5;6pl1pe)K@^5Z5L~3vhR|rc@KMlWeW437NLqU1Cy1-pok)Js|gIPEXb zhUfE>0pwo>@YA4x7_?POBsA6p$+zKv|Ot@zpdP-`xVFUx*YeVuR0jpcwPohKfNk zrEkYl=2$Z*=p6zhyj}`s%4`VcJwJ+ZU;Q#0LM3$&*3)e$J=)a#mmjpP^}jSi!{&Gw zmPgxQ-tB~W-(Oo7qa7$EHlm!|>n!uCJvoI@e^43SQl-0k8*3W5r7`cJR$zH@k9zv5 z6f7;d7F;pl=?Gc9tb0DYL36zOyqrGVN&Xd!x7KVf=$?!M3c4p>&^-@}QD67p{J#JX WkO!s`+$LE700004}P$lo%yY(d6)C-&yI7xyU+XLzTk)7l5buMe*`T47QXy@;PPMLD}RNq_#LtG zchu_Nv8#T>uK8Wjc_L-qnXHY6^EV$Z+kP~8-Ot2zf08!*N!{=(b<>~BO}}!t{4U(~ zyL9KD%H4lz_x^p#!0?8F;S1P5|9}hyg|Dir-?X&8>F9hj*8Xm2_}$#>tBuW18{2O# zF5kVqe>ph(@%H{3e=x<2K&xnX$v9bRmBmc$5{weqRotXG1E$vTM*5ACme}zT= z%F6y%RsA|(|NWA|_urg9esg~Ps`CB2!H*xNKY!Z%KI8J|s`sy7j_uQrHcdL;KK)|X ztjqJ(+y(~hC>RDIa5qKY9q5g2PZ!4!iE!0(hC&AeBw8>2ew5mh=(aH6MTwTNX6|t< zT_>>wMz>TqN1^xo=PRYNs?Rlb^l*x-=41>gs7zle{&45MM4NEcPJ^>*J`$T0_AKto zt!kK>Cf=a5W8Z^<^SAG#k@Wm-Q^^3@v&x2r8W gmz@~ literal 0 HcmV?d00001 diff --git a/static/flags/Yugoslavia.png b/static/flags/Yugoslavia.png new file mode 100644 index 0000000000000000000000000000000000000000..d316bc7ecb69215f512557672c0c5e896c791495 GIT binary patch literal 1015 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~o!3-oFZT@ltDaPU;cPGZ1Cw1z99ED_$AYTTC zDm4a%h86~fUqGRT7Yq!g1`G_Z5*Qe)W-u^_7tGleXv4t3%n;xc;>y6_!N8Ehz)-=! z(5|Di(8Oe!rR7>z*Y!R=8-s(lMMmt5iP@cyus1dJKu*rV;^L!KRVVA}PTXZ+xW~$R zkB#jC1H)4WhBpihpBWfF^78%wGQ`9lsjENI(DX)3HKPf3+D=H?WEt;IQ zw7L0oSJ(Oe373{Ex%I25>33JxyOk?Hu3h_Q!GaHa_I%mD|MBtT&rYBI`tae`$B%zJ zdGho5^S>`%eE$6T3lMz$`t94dU%!6+{{8#UpFjWp{R0NbC>RX^cnG|btP%opDm`5s zLnI_w4{qdRbQE#8_`B@bt(29SD%x7{kN#InO?6wOa4aQ#eX$Z_Lj%K1U4=!fR1dFN zq>)x+)x9EoV#s5ohNJDfBeJLPcPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0;5SpK~yMHjg!4^ z(?A%;V<&au6k4iEtyHyJhmJu}2hs&q3>lbEnb_GobVFihL}Ec=g$``ctrGkPOzc$s zP^r??v7Man&S#t7`A`Rz@<=(~$MZh#d(XXT+@i_v+0IUs=WcD$91e#+=I4)ARygx33;_~;U*RZ62(cItPUs+vUTU%RRUJk=BiXvZ1l_tp- zA?`&{9LKQyIG!+jI3E8TjnZk#mK8fVI4Fuj>%4|$M@pGxS+2Fx`uO;`#g-7++1aUv zrPM&lw$g_}2&FP1*4Nh|SQ24Lk|@HJdRbLUsdwZ~Vv0`U2!c)5@Ar`*V^Nf3sH(~s zLt-XnS#oPQcfi}--R<>yL}Zy{q-t^!U6-U!PJY>H&d<+L<{;0_b0t4WNnRKr2m;@j z!d|z&kx}vm(~R4Q>1;+AVt%86GN+2bH`b#3y)l`TR0|Ih8U~}BU8hRD72={^Bx&M# z9goGdQqin?`HikCzl;){^p*5bZR@1=q!#i!8%akftf3C|DKh=UrG^K$o(w z^v9w&D$CEt%xQh7^>?k0v>Md$xC#v}S>2VLimAI)I~^w9WcGAAeI*2MM}<{kUQ79C zI{PXFX4Hu!@lNPgh4!~CWHtEIPnu`h6Jv&P+>7JKaWcsBX8q1L(alWEbgpY_WMS-I z*}f4^y|uLkgZixRjAdDO8RFVmhCZV+l@KNvL Date: Tue, 29 Dec 2020 19:59:33 -0500 Subject: [PATCH 3/8] fix flag array (remove .png from filename) --- inc/instance-config.php | 144 ++++++++++++++++++++-------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/inc/instance-config.php b/inc/instance-config.php index 346cb50d..54eccf29 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -128,79 +128,79 @@ $config['allowed_ext_files'][] = 'epub'; $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', + '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' => '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', + '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' ); From d0540a71d0ea59982c01b583917550e7d00f2810 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:10:49 -0500 Subject: [PATCH 4/8] Remove debugging print statements I put in a long time ago from post.php --- post.php | 193 +------------------------------------------------------ 1 file changed, 1 insertion(+), 192 deletions(-) diff --git a/post.php b/post.php index cf4df990..aa2aa310 100644 --- a/post.php +++ b/post.php @@ -396,20 +396,13 @@ function handle_report(){ } -print_err("Hello Top Level"); - function handle_post(){ global $config,$dropped_post,$board, $mod,$pdo; - print_err("Hello Debugging"); - if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) { - print_err("We are a bot 1"); error($config['error']['bot']); } - print_err("Not a bot 1"); - $post = array('board' => $_POST['board'], 'files' => array()); // Check if board exists @@ -445,8 +438,6 @@ function handle_post(){ if (!$dropped_post) { - print_err("not a dropped post"); - // Check for CAPTCHA right after opening the board so the "return" link is in there if ($config['recaptcha']) { if (!isset($_POST['g-recaptcha-response'])) @@ -462,8 +453,6 @@ function handle_post(){ } } - print_err("pass captcha block"); - if(isset($config['securimage']) && $config['secureimage']){ if(!isset($_POST['captcha'])){ error($config['error']['securimage']['missing']); @@ -481,36 +470,24 @@ function handle_post(){ } } - print_err("pass securimage block"); - if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) || (!$post['op'] && $_POST['post'] == $config['button_reply']))) { - print_err("we are a bot 2"); error($config['error']['bot']); } - print_err("we are not a bot 2"); - // Check the referrer if ($config['referer_match'] !== false && (!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], rawurldecode($_SERVER['HTTP_REFERER'])))) { - - print_err("Missing REFERRER"); - print_err($config['referer_match']); error($config['error']['referer']); } - print_err("ReferrerOK"); - checkDNSBL(); // Check if banned checkBan($board['uri']); - print_err("Not banned"); - if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { check_login(false); if (!$mod) { @@ -530,8 +507,6 @@ function handle_post(){ error($config['error']['noaccess']); } - print_err("Mod block 1 pass"); - if (!$post['mod'] && $config['spam']['enabled'] == true) { $post['antispam_hash'] = checkSpam( array($board['uri'], @@ -540,7 +515,6 @@ function handle_post(){ //$post['antispam_hash'] = checkSpam(); if ($post['antispam_hash'] === true) { - print_err("Anti spam triggered"); error($config['error']['spam']); } } @@ -548,15 +522,11 @@ function handle_post(){ if ($config['robot_enable'] && $config['robot_mute']) { checkMute(); } - - print_err("Mod block 2 pass"); } else { $mod = $post['mod'] = false; } - print_err("not dropped block pass"); - //Check if thread exists if (!$post['op']) { $query = prepare(sprintf("SELECT `sticky`,`locked`,`cycle`,`sage`,`slug` FROM ``posts_%s`` WHERE `id` = :id AND `thread` IS NULL LIMIT 1", $board['uri'])); @@ -572,8 +542,6 @@ function handle_post(){ $thread = false; } - print_err("check OP ok"); - // Check for an embed field if ($config['enable_embedding'] && isset($_POST['embed']) && !empty($_POST['embed'])) { @@ -593,8 +561,6 @@ function handle_post(){ } } - print_err("embed field block pass"); - if (!hasPermission($config['mod']['bypass_field_disable'], $board['uri'])) { if ($config['field_disable_name']) $_POST['name'] = $config['anonymous']; // "forced anonymous" @@ -609,8 +575,6 @@ function handle_post(){ $_POST['subject'] = ''; } - print_err("mod bypass block ok"); - if ($config['allow_upload_by_url'] && isset($_POST['file_url1']) && !empty($_POST['file_url1'])) { function unlink_tmp_file($file) { @unlink($file); @@ -678,8 +642,6 @@ function handle_post(){ } - print_err("allow upload by url block ok"); - $post['name'] = $_POST['name'] != '' ? $_POST['name'] : $config['anonymous']; $post['subject'] = $_POST['subject']; $post['email'] = str_replace(' ', '%20', htmlspecialchars($_POST['email'])); @@ -687,52 +649,10 @@ function handle_post(){ $post['password'] = $_POST['password']; $post['has_file'] = (!isset($post['embed']) && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || count($_FILES) > 0)); - print_err("post vars set"); - if (!$dropped_post) { - print_err("not dropped post"); - if (!($post['has_file'] || isset($post['embed'])) || (($post['op'] && $config['force_body_op']) || (!$post['op'] && $config['force_body']))) { - if (!$post['has_file']) { - print_err("post has no file"); - } else { - print_err("post has file"); - } - - if (!isset($post['embed'])) { - print_err("post has no embed"); - } else { - print_err("post has embed"); - } - - if (!$post['op']) { - print_err("post is not op"); - } else { - print_err("post is op"); - } - - if (!$config['force_body_op']) { - print_err("force body op is off"); - } else { - print_err("force body op is on"); - } - - if (!$config['force_body']) { - print_err("force body is off"); - } else { - print_err("force body is on"); - } - - print_err("post body:\n" . $post['body']); $stripped_whitespace = preg_replace('/[\s]/u', '', $post['body']); - - print_err(print_r(preg_last_error(), true)); - if (preg_last_error() == PREG_BAD_UTF8_ERROR) { - print_err("Bad unicode preg error"); - } - if ($stripped_whitespace == '') { - print_err("error: body too short!"); error($config['error']['tooshort_body']); } } @@ -741,7 +661,6 @@ function handle_post(){ // Check if thread is locked // but allow mods to post if ($thread['locked'] && !hasPermission($config['mod']['postinlocked'], $board['uri'])) { - print_err("error thread locked"); error($config['error']['locked']); } @@ -751,25 +670,20 @@ function handle_post(){ $imagethreshold = isset($thread['cycle']) && $thread['cycle'] ? $numposts['images'] - 1 : $numposts['images']; if ($config['reply_hard_limit'] != 0 && $config['reply_hard_limit'] <= $replythreshold) { - print_err("reply hard limit"); error($config['error']['reply_hard_limit']); } if ($post['has_file'] && $config['image_hard_limit'] != 0 && $config['image_hard_limit'] <= $imagethreshold) { - print_err("image hard limit"); error($config['error']['image_hard_limit']); } } } else { - print_err("dropped post active"); if (!$post['op']) { - $numposts = numPosts($post['thread']); + $numposts = numPosts($post['thread']); } } - print_err("Not dropped post block 2 OK"); - if ($post['has_file']) { // Determine size sanity $size = 0; @@ -805,8 +719,6 @@ function handle_post(){ $post['filesize'] = $size; } - print_err("has File block OK"); - $post['capcode'] = false; if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches)) { @@ -872,22 +784,18 @@ function handle_post(){ } } - print_err("has File block 2 OK"); - if (empty($post['files'])) $post['has_file'] = false; if (!$dropped_post) { // Check for a file if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) { if (!$post['has_file'] && $config['force_image_op']) { - print_err("error No Image"); error($config['error']['noimage']); } } // Check for too many files if (sizeof($post['files']) > $config['max_images']) { - print_err("Too many images"); error($config['error']['toomanyimages']); } } @@ -899,46 +807,32 @@ function handle_post(){ $post['body'] = strip_combining_chars($post['body']); } - print_err("post fields strip"); - if (!$dropped_post) { // Check string lengths if (mb_strlen($post['name']) > 35) { - print_err("name too long"); error(sprintf($config['error']['toolong'], 'name')); } if (mb_strlen($post['email']) > 40) { - print_err("email too long"); error(sprintf($config['error']['toolong'], 'email')); } if (mb_strlen($post['subject']) > 100) { - print_err("subject too long"); error(sprintf($config['error']['toolong'], 'subject')); } if (!$mod && mb_strlen($post['body']) > $config['max_body']) { - print_err("body too long"); error($config['error']['toolong_body']); } if (!$mod && mb_strlen($post['body']) > 0 && (mb_strlen($post['body']) < $config['min_body'])) { - print_err("body too short"); error($config['error']['tooshort_body']); } if (mb_strlen($post['password']) > 20) { - print_err("password too long"); error(sprintf($config['error']['toolong'], 'password')); } } - print_err("wordfilters"); - wordfilters($post['body']); - print_err("Process post body"); - $post['body'] = escape_markup_modifiers($post['body']); - print_err("body escaped"); - if ($mod && isset($post['raw']) && $post['raw']) { $post['body'] .= "\n1"; } @@ -967,8 +861,6 @@ function handle_post(){ } } - print_err("flag stuff block OK"); - if ($config['user_flag'] && isset($_POST['user_flag'])) if (!empty($_POST['user_flag']) ){ @@ -983,22 +875,16 @@ function handle_post(){ "\n" . $flag_alt . ""; } - print_err("user flag block ok"); - if ($config['allowed_tags'] && $post['op'] && isset($_POST['tag']) && isset($config['allowed_tags'][$_POST['tag']])) { $post['body'] .= "\n" . $_POST['tag'] . ""; } - print_err("allowed tags block ok"); - if (!$dropped_post) if ($config['proxy_save'] && isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $proxy = preg_replace("/[^0-9a-fA-F.,: ]/", '', $_SERVER['HTTP_X_FORWARDED_FOR']); $post['body'] .= "\n".$proxy.""; } - print_err("proxy save block ok"); - if (mysql_version() >= 50503) { $post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset } else { @@ -1016,13 +902,8 @@ function handle_post(){ } } - print_err("body nomarkup block OK"); - $post['tracked_cites'] = markup($post['body'], true); - print_err("Process post tags flags and other stuff"); - - if ($post['has_file']) { $md5cmd = false; if ($config['bsd_md5']) $md5cmd = '/sbin/md5 -r'; @@ -1033,11 +914,9 @@ function handle_post(){ foreach ($post['files'] as $key => &$file) { if ($post['op'] && $config['allowed_ext_op']) { if (!in_array($file['extension'], $config['allowed_ext_op'])) { - print_err("Unknown extension (1)!"); error($config['error']['unknownext']); } } elseif (!in_array($file['extension'], $config['allowed_ext']) && !in_array($file['extension'], $config['allowed_ext_files'])) { - print_err("Unknown extension (2)!"); error($config['error']['unknownext']); } @@ -1072,29 +951,20 @@ function handle_post(){ } } - print_err("has file block 2 OK"); - if (!hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { require_once 'inc/filters.php'; - print_err("doing filters"); do_filters($post); - print_err("filters OK"); } - print_err("filters block OK"); - if ($post['has_file']) { - print_err("files block 3 start!"); foreach ($post['files'] as $key => &$file) { if ($file['is_an_image']) { - print_err("file is an image"); if ($config['ie_mime_type_detection'] !== false) { // Check IE MIME type detection XSS exploit $buffer = file_get_contents($upload, null, null, null, 255); if (preg_match($config['ie_mime_type_detection'], $buffer)) { undoImage($post); - print_err("error mime exploit"); error($config['error']['mime_exploit']); } } @@ -1103,20 +973,15 @@ function handle_post(){ // find dimensions of an image using GD if (!$size = @getimagesize($file['tmp_name'])) { - print_err("error invalid image"); error($config['error']['invalidimg']); } if (!in_array($size[2], array(IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_BMP))) { - print_err("error invalid image2"); error($config['error']['invalidimg']); } if ($size[0] > $config['max_width'] || $size[1] > $config['max_height']) { - print_err("error invalid maxsize"); error($config['error']['maxsize']); } - print_err("initial image checks OK"); - if ($config['convert_auto_orient'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')) { // The following code corrects the image orientation. // Currently only works with the 'convert' option selected but it could easily be expanded to work with the rest if you can be bothered. @@ -1147,7 +1012,6 @@ function handle_post(){ escapeshellarg($file['tmp_name']) . ' -auto-orient ' . escapeshellarg($upload)); } if ($error) { - print_err("Could not auto-orient image!"); error(_('Could not auto-orient image!'), null, $error); } $size = @getimagesize($file['tmp_name']); @@ -1158,26 +1022,18 @@ function handle_post(){ } } - print_err("convert auto orient block OK"); - // create image object $image = new Image($file['tmp_name'], $file['extension'], $size); if ($image->size->width > $config['max_width'] || $image->size->height > $config['max_height']) { $image->delete(); - print_err("image too large"); error($config['error']['maxsize']); } - print_err("create image object ok"); - $file['width'] = $image->size->width; $file['height'] = $image->size->height; - print_err("image size width and height"); - if ($config['spoiler_images'] && isset($_POST['spoiler'])) { - print_err("spoiler set"); $file['thumb'] = 'spoiler'; $size = @getimagesize($config['spoiler_image']); @@ -1188,33 +1044,26 @@ function handle_post(){ $image->size->height <= $config['thumb_height'] && $file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])) { - print_err("minimum copy resize"); // Copy, because there's nothing to resize copy($file['tmp_name'], $file['thumb']); $file['thumbwidth'] = $image->size->width; $file['thumbheight'] = $image->size->height; } else { - print_err("thumbnail resize"); $thumb = $image->resize( $config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'], $post['op'] ? $config['thumb_op_width'] : $config['thumb_width'], $post['op'] ? $config['thumb_op_height'] : $config['thumb_height'] ); - print_err("thumbnail resize ok"); $thumb->to($file['thumb']); - print_err("thumbnail save ok"); - $file['thumbwidth'] = $thumb->width; $file['thumbheight'] = $thumb->height; $thumb->_destroy(); } - print_err("something to do with thumbnails block OK"); - if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'))) { if (!$config['redraw_image'] && $config['use_exiftool']) { if($error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' . @@ -1329,8 +1178,6 @@ function handle_post(){ } } - print_err("is an image block OK"); - if ($config['tesseract_ocr'] && $file['thumb'] != 'file') { // Let's OCR it! $fname = $file['tmp_name']; @@ -1359,8 +1206,6 @@ function handle_post(){ } } - print_err("OCR block pass"); - if (!isset($dont_copy_file) || !$dont_copy_file) { if (isset($file['file_tmp'])) { if (!@rename($file['tmp_name'], $file['file'])) @@ -1371,12 +1216,9 @@ function handle_post(){ } } - print_err("image reject repost begin"); - if ($config['image_reject_repost']) { if ($p = getPostByHash($post['filehash'])) { undoImage($post); - print_err("file exists!"); error(sprintf($config['error']['fileexists'], ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . ($board['dir'] . $config['dir']['res'] . @@ -1390,7 +1232,6 @@ function handle_post(){ } else if (!$post['op'] && $config['image_reject_repost_in_thread']) { if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) { undoImage($post); - print_err("file exists ITT!"); error(sprintf($config['error']['fileexistsinthread'], ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . ($board['dir'] . $config['dir']['res'] . @@ -1403,24 +1244,18 @@ function handle_post(){ } } - print_err("End of has file block 3"); } - print_err("has file block 3 OK"); - // Do filters again if OCRing if ($config['tesseract_ocr'] && !hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { do_filters($post); } if (!hasPermission($config['mod']['postunoriginal'], $board['uri']) && $config['robot_enable'] && checkRobot($post['body_nomarkup']) && !$dropped_post) { - print_err("muted or unoriginal"); undoImage($post); if ($config['robot_mute']) { - print_err("muted"); error(sprintf($config['error']['muted'], mute())); } else { - print_err("unoriginal"); error($config['error']['unoriginal']); } } @@ -1436,41 +1271,28 @@ function handle_post(){ } } - print_err("has file block 5 OK"); - $post = (object)$post; $post->files = array_map(function($a) { return (object)$a; }, $post->files); $error = event('post', $post); $post->files = array_map(function($a) { return (array)$a; }, $post->files); - print_err("post set files map"); - if ($error) { - print_err("Error " . $error); undoImage((array)$post); error($error); } - print_err("no error yet"); - $post = (array)$post; if ($post['files']) { $post['files'] = $post['files']; } - print_err("no error yet2"); - $post['num_files'] = sizeof($post['files']); - print_err("no error yet3"); $post['id'] = $id = post($post); - print_err("no error yet 4"); $post['slug'] = slugify($post); - print_err("Set post props OK"); - if ($dropped_post && $dropped_post['from_nntp']) { $query = prepare("INSERT INTO ``nntp_references`` (`board`, `id`, `message_id`, `message_id_digest`, `own`, `headers`) VALUES ". "(:board , :id , :message_id , :message_id_digest , false, :headers)"); @@ -1506,7 +1328,6 @@ function handle_post(){ nntp_publish($message, $msgid); } - print_err("insert flood post"); insertFloodPost($post); // Handle cyclical threads @@ -1518,7 +1339,6 @@ function handle_post(){ $query->execute() or error(db_error($query)); } - print_err("increment antispam"); if (isset($post['antispam_hash'])) { incrementSpamHash($post['antispam_hash']); } @@ -1533,14 +1353,10 @@ function handle_post(){ query('INSERT INTO ``cites`` VALUES ' . implode(', ', $insert_rows)) or error(db_error()); } - print_err("tracked cites block ok"); - if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) { bumpThread($post['thread']); } - print_err("thread bumped"); - if (isset($_SERVER['HTTP_REFERER'])) { // Tell Javascript that we posted successfully if (isset($_COOKIE[$config['cookies']['js']])) @@ -1578,12 +1394,8 @@ function handle_post(){ } - print_err("Redirect or noko block OK"); - buildThread($post['op'] ? $id : $post['thread']); - print_err("build thread OK"); - if ($config['syslog']) _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . link_for($post) . (!$post['op'] ? '#' . $id : '')); @@ -1621,9 +1433,6 @@ function handle_post(){ } else { rebuildThemes('post', $board['uri']); } - - - print_err("handle post DONE"); } function handle_appeal(){ From ab09d5dfd881dfa7e443ab21951307255979e50f Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:12:43 -0500 Subject: [PATCH 5/8] don't print START every time to the debug file (unless print_err is not commented out) --- inc/anti-bot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/anti-bot.php b/inc/anti-bot.php index d2b6d467..b6be5e60 100644 --- a/inc/anti-bot.php +++ b/inc/anti-bot.php @@ -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; From dfcb1c6fbdeab492532f0374c2013f839e2fbdf7 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:14:42 -0500 Subject: [PATCH 6/8] Retab post.php so that tabs are now 4 spaces. - I will be doing this for any file I edit from here on in --- post.php | 2832 +++++++++++++++++++++++++++--------------------------- 1 file changed, 1416 insertions(+), 1416 deletions(-) diff --git a/post.php b/post.php index aa2aa310..e4f2a63f 100644 --- a/post.php +++ b/post.php @@ -9,341 +9,341 @@ require_once 'inc/bans.php'; // Fix for magic quotes if (get_magic_quotes_gpc()) { - function strip_array($var) { - return is_array($var) ? array_map('strip_array', $var) : stripslashes($var); - } - - $_GET = strip_array($_GET); - $_POST = strip_array($_POST); + function strip_array($var) { + return is_array($var) ? array_map('strip_array', $var) : stripslashes($var); + } + + $_GET = strip_array($_GET); + $_POST = strip_array($_POST); } $dropped_post = false; function handle_nntpchan() { - global $config; - if ($_SERVER['REMOTE_ADDR'] != $config['nntpchan']['trusted_peer']) { - error("NNTPChan: Forbidden. $_SERVER[REMOTE_ADDR] is not a trusted peer"); - } - - $_POST = array(); - $_POST['json_response'] = true; - - $headers = json_encode($_GET); - - if (!isset ($_GET['Message-Id'])) { - if (!isset ($_GET['Message-ID'])) { - error("NNTPChan: No message ID"); - } - else $msgid = $_GET['Message-ID']; - } - else $msgid = $_GET['Message-Id']; - - $groups = preg_split("/,\s*/", $_GET['Newsgroups']); - if (count($groups) != 1) { - error("NNTPChan: Messages can go to only one newsgroup"); - } - $group = $groups[0]; - - if (!isset($config['nntpchan']['dispatch'][$group])) { - error("NNTPChan: We don't synchronize $group"); - } - $xboard = $config['nntpchan']['dispatch'][$group]; - - $ref = null; - if (isset ($_GET['References'])) { - $refs = preg_split("/,\s*/", $_GET['References']); - - if (count($refs) > 1) { - error("NNTPChan: We don't support multiple references"); - } - - $ref = $refs[0]; - - $query = prepare("SELECT `board`,`id` FROM ``nntp_references`` WHERE `message_id` = :ref"); - $query->bindValue(':ref', $ref); - $query->execute() or error(db_error($query)); - - $ary = $query->fetchAll(PDO::FETCH_ASSOC); - - if (count($ary) == 0) { - error("NNTPChan: We don't have $ref that $msgid references"); - } - - $p_id = $ary[0]['id']; - $p_board = $ary[0]['board']; - - if ($p_board != $xboard) { - error("NNTPChan: Cross board references not allowed. Tried to reference $p_board on $xboard"); - } - - $_POST['thread'] = $p_id; - } - - $date = isset($_GET['Date']) ? strtotime($_GET['Date']) : time(); - - list($ct) = explode('; ', $_GET['Content-Type']); - - $query = prepare("SELECT COUNT(*) AS `c` FROM ``nntp_references`` WHERE `message_id` = :msgid"); - $query->bindValue(":msgid", $msgid); - $query->execute() or error(db_error($query)); - - $a = $query->fetch(PDO::FETCH_ASSOC); - if ($a['c'] > 0) { - error("NNTPChan: We already have this post. Post discarded."); - } - - if ($ct == 'text/plain') { - $content = file_get_contents("php://input"); - } - elseif ($ct == 'multipart/mixed' || $ct == 'multipart/form-data') { - _syslog(LOG_INFO, "MM: Files: ".print_r($GLOBALS, true)); // Debug - - $content = ''; - - $newfiles = array(); - foreach ($_FILES['attachment']['error'] as $id => $error) { - if ($_FILES['attachment']['type'][$id] == 'text/plain') { - $content .= file_get_contents($_FILES['attachment']['tmp_name'][$id]); - } - elseif ($_FILES['attachment']['type'][$id] == 'message/rfc822') { // Signed message, ignore for now - } - else { // A real attachment :^) - $file = array(); - $file['name'] = $_FILES['attachment']['name'][$id]; - $file['type'] = $_FILES['attachment']['type'][$id]; - $file['size'] = $_FILES['attachment']['size'][$id]; - $file['tmp_name'] = $_FILES['attachment']['tmp_name'][$id]; - $file['error'] = $_FILES['attachment']['error'][$id]; - - $newfiles["file$id"] = $file; - } - } - - $_FILES = $newfiles; - } - else { - error("NNTPChan: Wrong mime type: $ct"); - } - - $_POST['subject'] = isset($_GET['Subject']) ? ($_GET['Subject'] == 'None' ? '' : $_GET['Subject']) : ''; - $_POST['board'] = $xboard; - - if (isset ($_GET['From'])) { - list($name, $mail) = explode(" <", $_GET['From'], 2); - $mail = preg_replace('/>\s+$/', '', $mail); - - $_POST['name'] = $name; - //$_POST['email'] = $mail; - $_POST['email'] = ''; - } - - if (isset ($_GET['X_Sage'])) { - $_POST['email'] = 'sage'; - } - - $content = preg_replace_callback('/>>([0-9a-fA-F]{6,})/', function($id) use ($xboard) { - $id = $id[1]; - - $query = prepare("SELECT `board`,`id` FROM ``nntp_references`` WHERE `message_id_digest` LIKE :rule"); - $idx = $id . "%"; - $query->bindValue(':rule', $idx); - $query->execute() or error(db_error($query)); - - $ary = $query->fetchAll(PDO::FETCH_ASSOC); - if (count($ary) == 0) { - return ">>>>$id"; - } - else { - $ret = array(); - foreach ($ary as $v) { - if ($v['board'] != $xboard) { - $ret[] = ">>>/".$v['board']."/".$v['id']; - } - else { - $ret[] = ">>".$v['id']; - } - } - return implode($ret, ", "); - } - }, $content); - - $_POST['body'] = $content; - - $dropped_post = array( - 'date' => $date, - 'board' => $xboard, - 'msgid' => $msgid, - 'headers' => $headers, - 'from_nntp' => true, - ); - + global $config; + if ($_SERVER['REMOTE_ADDR'] != $config['nntpchan']['trusted_peer']) { + error("NNTPChan: Forbidden. $_SERVER[REMOTE_ADDR] is not a trusted peer"); + } + + $_POST = array(); + $_POST['json_response'] = true; + + $headers = json_encode($_GET); + + if (!isset ($_GET['Message-Id'])) { + if (!isset ($_GET['Message-ID'])) { + error("NNTPChan: No message ID"); + } + else $msgid = $_GET['Message-ID']; + } + else $msgid = $_GET['Message-Id']; + + $groups = preg_split("/,\s*/", $_GET['Newsgroups']); + if (count($groups) != 1) { + error("NNTPChan: Messages can go to only one newsgroup"); + } + $group = $groups[0]; + + if (!isset($config['nntpchan']['dispatch'][$group])) { + error("NNTPChan: We don't synchronize $group"); + } + $xboard = $config['nntpchan']['dispatch'][$group]; + + $ref = null; + if (isset ($_GET['References'])) { + $refs = preg_split("/,\s*/", $_GET['References']); + + if (count($refs) > 1) { + error("NNTPChan: We don't support multiple references"); + } + + $ref = $refs[0]; + + $query = prepare("SELECT `board`,`id` FROM ``nntp_references`` WHERE `message_id` = :ref"); + $query->bindValue(':ref', $ref); + $query->execute() or error(db_error($query)); + + $ary = $query->fetchAll(PDO::FETCH_ASSOC); + + if (count($ary) == 0) { + error("NNTPChan: We don't have $ref that $msgid references"); + } + + $p_id = $ary[0]['id']; + $p_board = $ary[0]['board']; + + if ($p_board != $xboard) { + error("NNTPChan: Cross board references not allowed. Tried to reference $p_board on $xboard"); + } + + $_POST['thread'] = $p_id; + } + + $date = isset($_GET['Date']) ? strtotime($_GET['Date']) : time(); + + list($ct) = explode('; ', $_GET['Content-Type']); + + $query = prepare("SELECT COUNT(*) AS `c` FROM ``nntp_references`` WHERE `message_id` = :msgid"); + $query->bindValue(":msgid", $msgid); + $query->execute() or error(db_error($query)); + + $a = $query->fetch(PDO::FETCH_ASSOC); + if ($a['c'] > 0) { + error("NNTPChan: We already have this post. Post discarded."); + } + + if ($ct == 'text/plain') { + $content = file_get_contents("php://input"); + } + elseif ($ct == 'multipart/mixed' || $ct == 'multipart/form-data') { + _syslog(LOG_INFO, "MM: Files: ".print_r($GLOBALS, true)); // Debug + + $content = ''; + + $newfiles = array(); + foreach ($_FILES['attachment']['error'] as $id => $error) { + if ($_FILES['attachment']['type'][$id] == 'text/plain') { + $content .= file_get_contents($_FILES['attachment']['tmp_name'][$id]); + } + elseif ($_FILES['attachment']['type'][$id] == 'message/rfc822') { // Signed message, ignore for now + } + else { // A real attachment :^) + $file = array(); + $file['name'] = $_FILES['attachment']['name'][$id]; + $file['type'] = $_FILES['attachment']['type'][$id]; + $file['size'] = $_FILES['attachment']['size'][$id]; + $file['tmp_name'] = $_FILES['attachment']['tmp_name'][$id]; + $file['error'] = $_FILES['attachment']['error'][$id]; + + $newfiles["file$id"] = $file; + } + } + + $_FILES = $newfiles; + } + else { + error("NNTPChan: Wrong mime type: $ct"); + } + + $_POST['subject'] = isset($_GET['Subject']) ? ($_GET['Subject'] == 'None' ? '' : $_GET['Subject']) : ''; + $_POST['board'] = $xboard; + + if (isset ($_GET['From'])) { + list($name, $mail) = explode(" <", $_GET['From'], 2); + $mail = preg_replace('/>\s+$/', '', $mail); + + $_POST['name'] = $name; + //$_POST['email'] = $mail; + $_POST['email'] = ''; + } + + if (isset ($_GET['X_Sage'])) { + $_POST['email'] = 'sage'; + } + + $content = preg_replace_callback('/>>([0-9a-fA-F]{6,})/', function($id) use ($xboard) { + $id = $id[1]; + + $query = prepare("SELECT `board`,`id` FROM ``nntp_references`` WHERE `message_id_digest` LIKE :rule"); + $idx = $id . "%"; + $query->bindValue(':rule', $idx); + $query->execute() or error(db_error($query)); + + $ary = $query->fetchAll(PDO::FETCH_ASSOC); + if (count($ary) == 0) { + return ">>>>$id"; + } + else { + $ret = array(); + foreach ($ary as $v) { + if ($v['board'] != $xboard) { + $ret[] = ">>>/".$v['board']."/".$v['id']; + } + else { + $ret[] = ">>".$v['id']; + } + } + return implode($ret, ", "); + } + }, $content); + + $_POST['body'] = $content; + + $dropped_post = array( + 'date' => $date, + 'board' => $xboard, + 'msgid' => $msgid, + 'headers' => $headers, + 'from_nntp' => true, + ); + } function handle_delete(){ - // Delete - global $config,$board; - if (!isset($_POST['board'], $_POST['password'])) - error($config['error']['bot']); - - $password = &$_POST['password']; - - if ($password == '') - error($config['error']['invalidpassword']); - - $delete = array(); - foreach ($_POST as $post => $value) { - if (preg_match('/^delete_(\d+)$/', $post, $m)) { - $delete[] = (int)$m[1]; - } - } - - checkDNSBL(); - - // Check if board exists - if (!openBoard($_POST['board'])) - error($config['error']['noboard']); - - // Check if banned - checkBan($board['uri']); - - // Check if deletion enabled - if (!$config['allow_delete']) - error(_('Post deletion is not allowed!')); - - if (empty($delete)) - error($config['error']['nodelete']); - - foreach ($delete as &$id) { - $query = prepare(sprintf("SELECT `thread`, `time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); - $query->bindValue(':id', $id, PDO::PARAM_INT); - $query->execute() or error(db_error($query)); - - if ($post = $query->fetch(PDO::FETCH_ASSOC)) { - $thread = false; - if ($config['user_moderation'] && $post['thread']) { - $thread_query = prepare(sprintf("SELECT `time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); - $thread_query->bindValue(':id', $post['thread'], PDO::PARAM_INT); - $thread_query->execute() or error(db_error($query)); - - $thread = $thread_query->fetch(PDO::FETCH_ASSOC); - } - - if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password)) - error($config['error']['invalidpassword']); - - if ($post['time'] > time() - $config['delete_time'] && (!$thread || $thread['password'] != $password)) { - error(sprintf($config['error']['delete_too_soon'], until($post['time'] + $config['delete_time']))); - } - - if (isset($_POST['file'])) { - // Delete just the file - deleteFile($id); - modLog("User deleted file from his own post #$id"); - } else { - // Delete entire post - deletePost($id); - modLog("User deleted his own post #$id"); - } - - _syslog(LOG_INFO, 'Deleted post: ' . - '/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['thread'] ? $post['thread'] : $id) . ($post['thread'] ? '#' . $id : '') - ); - } - } - - buildIndex(); - - $is_mod = isset($_POST['mod']) && $_POST['mod']; - $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; - - if (!isset($_POST['json_response'])) { - header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); - } else { - header('Content-Type: text/json'); - echo json_encode(array('success' => true)); - } + // Delete + global $config,$board; + if (!isset($_POST['board'], $_POST['password'])) + error($config['error']['bot']); + + $password = &$_POST['password']; + + if ($password == '') + error($config['error']['invalidpassword']); + + $delete = array(); + foreach ($_POST as $post => $value) { + if (preg_match('/^delete_(\d+)$/', $post, $m)) { + $delete[] = (int)$m[1]; + } + } + + checkDNSBL(); + + // Check if board exists + if (!openBoard($_POST['board'])) + error($config['error']['noboard']); + + // Check if banned + checkBan($board['uri']); + + // Check if deletion enabled + if (!$config['allow_delete']) + error(_('Post deletion is not allowed!')); + + if (empty($delete)) + error($config['error']['nodelete']); + + foreach ($delete as &$id) { + $query = prepare(sprintf("SELECT `thread`, `time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); + $query->bindValue(':id', $id, PDO::PARAM_INT); + $query->execute() or error(db_error($query)); + + if ($post = $query->fetch(PDO::FETCH_ASSOC)) { + $thread = false; + if ($config['user_moderation'] && $post['thread']) { + $thread_query = prepare(sprintf("SELECT `time`,`password` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); + $thread_query->bindValue(':id', $post['thread'], PDO::PARAM_INT); + $thread_query->execute() or error(db_error($query)); + + $thread = $thread_query->fetch(PDO::FETCH_ASSOC); + } + + if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password)) + error($config['error']['invalidpassword']); + + if ($post['time'] > time() - $config['delete_time'] && (!$thread || $thread['password'] != $password)) { + error(sprintf($config['error']['delete_too_soon'], until($post['time'] + $config['delete_time']))); + } + + if (isset($_POST['file'])) { + // Delete just the file + deleteFile($id); + modLog("User deleted file from his own post #$id"); + } else { + // Delete entire post + deletePost($id); + modLog("User deleted his own post #$id"); + } + + _syslog(LOG_INFO, 'Deleted post: ' . + '/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['thread'] ? $post['thread'] : $id) . ($post['thread'] ? '#' . $id : '') + ); + } + } + + buildIndex(); + + $is_mod = isset($_POST['mod']) && $_POST['mod']; + $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; + + if (!isset($_POST['json_response'])) { + header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); + } else { + header('Content-Type: text/json'); + echo json_encode(array('success' => true)); + } // We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI) if (function_exists('fastcgi_finish_request')) @fastcgi_finish_request(); - rebuildThemes('post-delete', $board['uri']); + rebuildThemes('post-delete', $board['uri']); } function handle_report(){ - global $config,$board; - if (!isset($_POST['board'], $_POST['reason'])) - error($config['error']['bot']); - - $report = array(); - foreach ($_POST as $post => $value) { - if (preg_match('/^delete_(\d+)$/', $post, $m)) { - $report[] = (int)$m[1]; - } - } - - checkDNSBL(); - - // Check if board exists - if (!openBoard($_POST['board'])) - error($config['error']['noboard']); - - // Check if banned - checkBan($board['uri']); - - if (empty($report)) - error($config['error']['noreport']); - - if (count($report) > $config['report_limit']) - error($config['error']['toomanyreports']); - - if ($config['report_captcha'] && !isset($_POST['captcha_text'], $_POST['captcha_cookie'])) { - error($config['error']['bot']); - } - - if ($config['report_captcha']) { - $resp = file_get_contents($config['captcha']['provider_check'] . "?" . http_build_query([ - 'mode' => 'check', - 'text' => $_POST['captcha_text'], - 'extra' => $config['captcha']['extra'], - 'cookie' => $_POST['captcha_cookie'] - ])); - - if ($resp !== '1') { + global $config,$board; + if (!isset($_POST['board'], $_POST['reason'])) + error($config['error']['bot']); + + $report = array(); + foreach ($_POST as $post => $value) { + if (preg_match('/^delete_(\d+)$/', $post, $m)) { + $report[] = (int)$m[1]; + } + } + + checkDNSBL(); + + // Check if board exists + if (!openBoard($_POST['board'])) + error($config['error']['noboard']); + + // Check if banned + checkBan($board['uri']); + + if (empty($report)) + error($config['error']['noreport']); + + if (count($report) > $config['report_limit']) + error($config['error']['toomanyreports']); + + if ($config['report_captcha'] && !isset($_POST['captcha_text'], $_POST['captcha_cookie'])) { + error($config['error']['bot']); + } + + if ($config['report_captcha']) { + $resp = file_get_contents($config['captcha']['provider_check'] . "?" . http_build_query([ + 'mode' => 'check', + 'text' => $_POST['captcha_text'], + 'extra' => $config['captcha']['extra'], + 'cookie' => $_POST['captcha_cookie'] + ])); + + if ($resp !== '1') { error($config['error']['captcha']); - } - } - - $reason = escape_markup_modifiers($_POST['reason']); - markup($reason); - - foreach ($report as &$id) { - $query = prepare(sprintf("SELECT `id`,`thread` , `body_nomarkup` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); - $query->bindValue(':id', $id, PDO::PARAM_INT); - $query->execute() or error(db_error($query)); - - $thread = $query->fetch(PDO::FETCH_ASSOC); - - $error = event('report', array('ip' => $_SERVER['REMOTE_ADDR'], 'board' => $board['uri'], 'post' => $post, 'reason' => $reason, 'link' => link_for($post))); - if ($error) { - error($error); - } - - if ($config['syslog']) - _syslog(LOG_INFO, 'Reported post: ' . - '/' . $board['dir'] . $config['dir']['res'] . link_for($thread) . ($thread['thread'] ? '#' . $id : '') . - ' for "' . $reason . '"' - ); - $query = prepare("INSERT INTO ``reports`` VALUES (NULL, :time, :ip, :board, :post, :reason)"); - $query->bindValue(':time', time(), PDO::PARAM_INT); - $query->bindValue(':ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); - $query->bindValue(':board', $board['uri'], PDO::PARAM_STR); - $query->bindValue(':post', $id, PDO::PARAM_INT); - $query->bindValue(':reason', $reason, PDO::PARAM_STR); - $query->execute() or error(db_error($query)); + } + } + + $reason = escape_markup_modifiers($_POST['reason']); + markup($reason); + + foreach ($report as &$id) { + $query = prepare(sprintf("SELECT `id`,`thread` , `body_nomarkup` FROM ``posts_%s`` WHERE `id` = :id", $board['uri'])); + $query->bindValue(':id', $id, PDO::PARAM_INT); + $query->execute() or error(db_error($query)); + + $thread = $query->fetch(PDO::FETCH_ASSOC); + + $error = event('report', array('ip' => $_SERVER['REMOTE_ADDR'], 'board' => $board['uri'], 'post' => $post, 'reason' => $reason, 'link' => link_for($post))); + if ($error) { + error($error); + } + + if ($config['syslog']) + _syslog(LOG_INFO, 'Reported post: ' . + '/' . $board['dir'] . $config['dir']['res'] . link_for($thread) . ($thread['thread'] ? '#' . $id : '') . + ' for "' . $reason . '"' + ); + $query = prepare("INSERT INTO ``reports`` VALUES (NULL, :time, :ip, :board, :post, :reason)"); + $query->bindValue(':time', time(), PDO::PARAM_INT); + $query->bindValue(':ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); + $query->bindValue(':board', $board['uri'], PDO::PARAM_STR); + $query->bindValue(':post', $id, PDO::PARAM_INT); + $query->bindValue(':reason', $reason, PDO::PARAM_STR); + $query->execute() or error(db_error($query)); if ($config['slack']) { @@ -369,1141 +369,1141 @@ function handle_report(){ return $result; } - - $postcontent = mb_substr($thread['body_nomarkup'], 0, 120) . '... _*(POST TRIMMED)*_'; - $slackmessage = '<' .$config['domain'] . "/mod.php?/" . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') . '> \n ' . $reason . '\n ' . $postcontent . '\n'; + + $postcontent = mb_substr($thread['body_nomarkup'], 0, 120) . '... _*(POST TRIMMED)*_'; + $slackmessage = '<' .$config['domain'] . "/mod.php?/" . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') . '> \n ' . $reason . '\n ' . $postcontent . '\n'; - $slackresult = slack($slackmessage, $config['slack_channel']); + $slackresult = slack($slackmessage, $config['slack_channel']); } - } - - $is_mod = isset($_POST['mod']) && $_POST['mod']; - $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; - - if (!isset($_POST['json_response'])) { - $index = $root . $board['dir'] . $config['file_index']; - $reported_post = $root . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') ; - //header('Location: ' . $reported_post); + } + + $is_mod = isset($_POST['mod']) && $_POST['mod']; + $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; + + if (!isset($_POST['json_response'])) { + $index = $root . $board['dir'] . $config['file_index']; + $reported_post = $root . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') ; + //header('Location: ' . $reported_post); echo Element('page.html', array('config' => $config, 'body' => '

', 'title' => _('Report submitted!'))); - } else { - header('Content-Type: text/json'); - echo json_encode(array('success' => true)); - } + } else { + header('Content-Type: text/json'); + echo json_encode(array('success' => true)); + } } function handle_post(){ - global $config,$dropped_post,$board, $mod,$pdo; - - if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) { - error($config['error']['bot']); - } - - $post = array('board' => $_POST['board'], 'files' => array()); - - // Check if board exists - if (!openBoard($post['board'])) - error($config['error']['noboard']); - - $board_locked_check = (!isset($_POST['mod']) || !$_POST['mod']) - && ($config['board_locked']===true - || (is_array($config['board_locked']) && in_array(strtolower($_POST['board']), $config['board_locked']))); - - if ($board_locked_check){ - error("Board is locked"); - } - - if (!isset($_POST['name'])) - $_POST['name'] = $config['anonymous']; - - if (!isset($_POST['email'])) - $_POST['email'] = ''; - - if (!isset($_POST['subject'])) - $_POST['subject'] = ''; - - if (!isset($_POST['password'])) - $_POST['password'] = ''; - - if (isset($_POST['thread'])) { - $post['op'] = false; - $post['thread'] = round($_POST['thread']); - } else { - $post['op'] = true; - } - - - if (!$dropped_post) { - // Check for CAPTCHA right after opening the board so the "return" link is in there - if ($config['recaptcha']) { - if (!isset($_POST['g-recaptcha-response'])) - error($config['error']['bot']); - // Check what reCAPTCHA has to say... - $resp = json_decode(file_get_contents(sprintf('https://www.google.com/recaptcha/api/siteverify?secret=%s&response=%s&remoteip=%s', - $config['recaptcha_private'], - urlencode($_POST['g-recaptcha-response']), - $_SERVER['REMOTE_ADDR'])), true); - - if (!$resp['success']) { - error($config['error']['captcha']); - } - } - - if(isset($config['securimage']) && $config['secureimage']){ - if(!isset($_POST['captcha'])){ - error($config['error']['securimage']['missing']); - } - if(empty($_POST['captcha'])){ - error($config['error']['securimage']['empty']); - } - $query=prepare('DELETE FROM captchas WHERE timebindValue(':ip', $_SERVER['REMOTE_ADDR']); - $query->bindValue(':code', $_POST['captcha']); - $query->execute(); - if($query->rowCount()==0){ - error($config['error']['securimage']['bad']); - } - } - - - if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) || - (!$post['op'] && $_POST['post'] == $config['button_reply']))) { - - error($config['error']['bot']); - } - - // Check the referrer - if ($config['referer_match'] !== false && - (!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], rawurldecode($_SERVER['HTTP_REFERER'])))) { - error($config['error']['referer']); - } - - checkDNSBL(); - - // Check if banned - checkBan($board['uri']); - - if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { - check_login(false); - if (!$mod) { - // Liar. You're not a mod. - error($config['error']['notamod']); - } - - $post['sticky'] = $post['op'] && isset($_POST['sticky']); - $post['locked'] = $post['op'] && isset($_POST['lock']); - $post['raw'] = isset($_POST['raw']); - - if ($post['sticky'] && !hasPermission($config['mod']['sticky'], $board['uri'])) - error($config['error']['noaccess']); - if ($post['locked'] && !hasPermission($config['mod']['lock'], $board['uri'])) - error($config['error']['noaccess']); - if ($post['raw'] && !hasPermission($config['mod']['rawhtml'], $board['uri'])) - error($config['error']['noaccess']); - } - - if (!$post['mod'] && $config['spam']['enabled'] == true) { - $post['antispam_hash'] = checkSpam( - array($board['uri'], - isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null)) - ); - //$post['antispam_hash'] = checkSpam(); - - if ($post['antispam_hash'] === true) { - error($config['error']['spam']); - } - } - - if ($config['robot_enable'] && $config['robot_mute']) { - checkMute(); - } - } - else { - $mod = $post['mod'] = false; - } - - //Check if thread exists - if (!$post['op']) { - $query = prepare(sprintf("SELECT `sticky`,`locked`,`cycle`,`sage`,`slug` FROM ``posts_%s`` WHERE `id` = :id AND `thread` IS NULL LIMIT 1", $board['uri'])); - $query->bindValue(':id', $post['thread'], PDO::PARAM_INT); - $query->execute() or error(db_error()); - - if (!$thread = $query->fetch(PDO::FETCH_ASSOC)) { - // Non-existant - error($config['error']['nonexistant']); - } - } - else { - $thread = false; - } - - - // Check for an embed field - if ($config['enable_embedding'] && isset($_POST['embed']) && !empty($_POST['embed'])) { - // yep; validate it - $value = $_POST['embed']; - foreach ($config['embedding'] as &$embed) { - if (preg_match($embed[0], $value)) { - // Valid link - $post['embed'] = $value; - // This is bad, lol. - $post['no_longer_require_an_image_for_op'] = true; - break; - } - } - if (!isset($post['embed'])) { - error($config['error']['invalid_embed']); - } - } - - if (!hasPermission($config['mod']['bypass_field_disable'], $board['uri'])) { - if ($config['field_disable_name']) - $_POST['name'] = $config['anonymous']; // "forced anonymous" - - if ($config['field_disable_email']) - $_POST['email'] = ''; - - if ($config['field_disable_password']) - $_POST['password'] = ''; - - if ($config['field_disable_subject'] || (!$post['op'] && $config['field_disable_reply_subject'])) - $_POST['subject'] = ''; - } - - if ($config['allow_upload_by_url'] && isset($_POST['file_url1']) && !empty($_POST['file_url1'])) { - function unlink_tmp_file($file) { - @unlink($file); - fatal_error_handler(); - } - - function upload_by_url($config,$post,$url) { - $post['file_url'] = $url; - if (!preg_match('@^https?://@', $post['file_url'])) - error($config['error']['invalidimg']); - - if (mb_strpos($post['file_url'], '?') !== false) - $url_without_params = mb_substr($post['file_url'], 0, mb_strpos($post['file_url'], '?')); - else - $url_without_params = $post['file_url']; - - $post['extension'] = strtolower(mb_substr($url_without_params, mb_strrpos($url_without_params, '.') + 1)); - - if ($post['op'] && $config['allowed_ext_op']) { - if (!in_array($post['extension'], $config['allowed_ext_op'])) - error($config['error']['unknownext']); - } - else if (!in_array($post['extension'], $config['allowed_ext']) && !in_array($post['extension'], $config['allowed_ext_files'])) - error($config['error']['unknownext']); - - $post['file_tmp'] = tempnam($config['tmp'], 'url'); - register_shutdown_function('unlink_tmp_file', $post['file_tmp']); - - $fp = fopen($post['file_tmp'], 'w'); - - $curl = curl_init(); - curl_setopt($curl, CURLOPT_URL, $post['file_url']); - curl_setopt($curl, CURLOPT_FAILONERROR, true); - curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); - curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); - curl_setopt($curl, CURLOPT_TIMEOUT, $config['upload_by_url_timeout']); - curl_setopt($curl, CURLOPT_USERAGENT, 'Tinyboard'); - curl_setopt($curl, CURLOPT_BINARYTRANSFER, true); - curl_setopt($curl, CURLOPT_FILE, $fp); - curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); - curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); - - if (curl_exec($curl) === false) - error($config['error']['nomove'] . '
Curl says: ' . curl_error($curl)); - - curl_close($curl); - - fclose($fp); - - $_FILES[$post['file_tmp']] = array( - 'name' => basename($url_without_params), - 'tmp_name' => $post['file_tmp'], - 'file_tmp' => true, - 'error' => 0, - 'size' => filesize($post['file_tmp']) - ); - } - - for( $counter = 1; $counter <= $config['max_images']; $counter++ ) { - $varname = "file_url". $counter; - if (isset($_POST[$varname]) && !empty($_POST[$varname])){ - upload_by_url($config,$post,$_POST[$varname]); - } - } - - } - - $post['name'] = $_POST['name'] != '' ? $_POST['name'] : $config['anonymous']; - $post['subject'] = $_POST['subject']; - $post['email'] = str_replace(' ', '%20', htmlspecialchars($_POST['email'])); - $post['body'] = $_POST['body']; - $post['password'] = $_POST['password']; - $post['has_file'] = (!isset($post['embed']) && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || count($_FILES) > 0)); - - if (!$dropped_post) { - if (!($post['has_file'] || isset($post['embed'])) || (($post['op'] && $config['force_body_op']) || (!$post['op'] && $config['force_body']))) { - $stripped_whitespace = preg_replace('/[\s]/u', '', $post['body']); - if ($stripped_whitespace == '') { - error($config['error']['tooshort_body']); - } - } - - if (!$post['op']) { - // Check if thread is locked - // but allow mods to post - if ($thread['locked'] && !hasPermission($config['mod']['postinlocked'], $board['uri'])) { - error($config['error']['locked']); - } - - $numposts = numPosts($post['thread']); - - $replythreshold = isset($thread['cycle']) && $thread['cycle'] ? $numposts['replies'] - 1 : $numposts['replies']; - $imagethreshold = isset($thread['cycle']) && $thread['cycle'] ? $numposts['images'] - 1 : $numposts['images']; - - if ($config['reply_hard_limit'] != 0 && $config['reply_hard_limit'] <= $replythreshold) { - error($config['error']['reply_hard_limit']); - } - - if ($post['has_file'] && $config['image_hard_limit'] != 0 && $config['image_hard_limit'] <= $imagethreshold) { - error($config['error']['image_hard_limit']); - } - } - } - else { - if (!$post['op']) { + global $config,$dropped_post,$board, $mod,$pdo; + + if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) { + error($config['error']['bot']); + } + + $post = array('board' => $_POST['board'], 'files' => array()); + + // Check if board exists + if (!openBoard($post['board'])) + error($config['error']['noboard']); + + $board_locked_check = (!isset($_POST['mod']) || !$_POST['mod']) + && ($config['board_locked']===true + || (is_array($config['board_locked']) && in_array(strtolower($_POST['board']), $config['board_locked']))); + + if ($board_locked_check){ + error("Board is locked"); + } + + if (!isset($_POST['name'])) + $_POST['name'] = $config['anonymous']; + + if (!isset($_POST['email'])) + $_POST['email'] = ''; + + if (!isset($_POST['subject'])) + $_POST['subject'] = ''; + + if (!isset($_POST['password'])) + $_POST['password'] = ''; + + if (isset($_POST['thread'])) { + $post['op'] = false; + $post['thread'] = round($_POST['thread']); + } else { + $post['op'] = true; + } + + + if (!$dropped_post) { + // Check for CAPTCHA right after opening the board so the "return" link is in there + if ($config['recaptcha']) { + if (!isset($_POST['g-recaptcha-response'])) + error($config['error']['bot']); + // Check what reCAPTCHA has to say... + $resp = json_decode(file_get_contents(sprintf('https://www.google.com/recaptcha/api/siteverify?secret=%s&response=%s&remoteip=%s', + $config['recaptcha_private'], + urlencode($_POST['g-recaptcha-response']), + $_SERVER['REMOTE_ADDR'])), true); + + if (!$resp['success']) { + error($config['error']['captcha']); + } + } + + if(isset($config['securimage']) && $config['secureimage']){ + if(!isset($_POST['captcha'])){ + error($config['error']['securimage']['missing']); + } + if(empty($_POST['captcha'])){ + error($config['error']['securimage']['empty']); + } + $query=prepare('DELETE FROM captchas WHERE timebindValue(':ip', $_SERVER['REMOTE_ADDR']); + $query->bindValue(':code', $_POST['captcha']); + $query->execute(); + if($query->rowCount()==0){ + error($config['error']['securimage']['bad']); + } + } + + + if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) || + (!$post['op'] && $_POST['post'] == $config['button_reply']))) { + + error($config['error']['bot']); + } + + // Check the referrer + if ($config['referer_match'] !== false && + (!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], rawurldecode($_SERVER['HTTP_REFERER'])))) { + error($config['error']['referer']); + } + + checkDNSBL(); + + // Check if banned + checkBan($board['uri']); + + if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { + check_login(false); + if (!$mod) { + // Liar. You're not a mod. + error($config['error']['notamod']); + } + + $post['sticky'] = $post['op'] && isset($_POST['sticky']); + $post['locked'] = $post['op'] && isset($_POST['lock']); + $post['raw'] = isset($_POST['raw']); + + if ($post['sticky'] && !hasPermission($config['mod']['sticky'], $board['uri'])) + error($config['error']['noaccess']); + if ($post['locked'] && !hasPermission($config['mod']['lock'], $board['uri'])) + error($config['error']['noaccess']); + if ($post['raw'] && !hasPermission($config['mod']['rawhtml'], $board['uri'])) + error($config['error']['noaccess']); + } + + if (!$post['mod'] && $config['spam']['enabled'] == true) { + $post['antispam_hash'] = checkSpam( + array($board['uri'], + isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null)) + ); + //$post['antispam_hash'] = checkSpam(); + + if ($post['antispam_hash'] === true) { + error($config['error']['spam']); + } + } + + if ($config['robot_enable'] && $config['robot_mute']) { + checkMute(); + } + } + else { + $mod = $post['mod'] = false; + } + + //Check if thread exists + if (!$post['op']) { + $query = prepare(sprintf("SELECT `sticky`,`locked`,`cycle`,`sage`,`slug` FROM ``posts_%s`` WHERE `id` = :id AND `thread` IS NULL LIMIT 1", $board['uri'])); + $query->bindValue(':id', $post['thread'], PDO::PARAM_INT); + $query->execute() or error(db_error()); + + if (!$thread = $query->fetch(PDO::FETCH_ASSOC)) { + // Non-existant + error($config['error']['nonexistant']); + } + } + else { + $thread = false; + } + + + // Check for an embed field + if ($config['enable_embedding'] && isset($_POST['embed']) && !empty($_POST['embed'])) { + // yep; validate it + $value = $_POST['embed']; + foreach ($config['embedding'] as &$embed) { + if (preg_match($embed[0], $value)) { + // Valid link + $post['embed'] = $value; + // This is bad, lol. + $post['no_longer_require_an_image_for_op'] = true; + break; + } + } + if (!isset($post['embed'])) { + error($config['error']['invalid_embed']); + } + } + + if (!hasPermission($config['mod']['bypass_field_disable'], $board['uri'])) { + if ($config['field_disable_name']) + $_POST['name'] = $config['anonymous']; // "forced anonymous" + + if ($config['field_disable_email']) + $_POST['email'] = ''; + + if ($config['field_disable_password']) + $_POST['password'] = ''; + + if ($config['field_disable_subject'] || (!$post['op'] && $config['field_disable_reply_subject'])) + $_POST['subject'] = ''; + } + + if ($config['allow_upload_by_url'] && isset($_POST['file_url1']) && !empty($_POST['file_url1'])) { + function unlink_tmp_file($file) { + @unlink($file); + fatal_error_handler(); + } + + function upload_by_url($config,$post,$url) { + $post['file_url'] = $url; + if (!preg_match('@^https?://@', $post['file_url'])) + error($config['error']['invalidimg']); + + if (mb_strpos($post['file_url'], '?') !== false) + $url_without_params = mb_substr($post['file_url'], 0, mb_strpos($post['file_url'], '?')); + else + $url_without_params = $post['file_url']; + + $post['extension'] = strtolower(mb_substr($url_without_params, mb_strrpos($url_without_params, '.') + 1)); + + if ($post['op'] && $config['allowed_ext_op']) { + if (!in_array($post['extension'], $config['allowed_ext_op'])) + error($config['error']['unknownext']); + } + else if (!in_array($post['extension'], $config['allowed_ext']) && !in_array($post['extension'], $config['allowed_ext_files'])) + error($config['error']['unknownext']); + + $post['file_tmp'] = tempnam($config['tmp'], 'url'); + register_shutdown_function('unlink_tmp_file', $post['file_tmp']); + + $fp = fopen($post['file_tmp'], 'w'); + + $curl = curl_init(); + curl_setopt($curl, CURLOPT_URL, $post['file_url']); + curl_setopt($curl, CURLOPT_FAILONERROR, true); + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); + curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); + curl_setopt($curl, CURLOPT_TIMEOUT, $config['upload_by_url_timeout']); + curl_setopt($curl, CURLOPT_USERAGENT, 'Tinyboard'); + curl_setopt($curl, CURLOPT_BINARYTRANSFER, true); + curl_setopt($curl, CURLOPT_FILE, $fp); + curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); + curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); + + if (curl_exec($curl) === false) + error($config['error']['nomove'] . '
Curl says: ' . curl_error($curl)); + + curl_close($curl); + + fclose($fp); + + $_FILES[$post['file_tmp']] = array( + 'name' => basename($url_without_params), + 'tmp_name' => $post['file_tmp'], + 'file_tmp' => true, + 'error' => 0, + 'size' => filesize($post['file_tmp']) + ); + } + + for( $counter = 1; $counter <= $config['max_images']; $counter++ ) { + $varname = "file_url". $counter; + if (isset($_POST[$varname]) && !empty($_POST[$varname])){ + upload_by_url($config,$post,$_POST[$varname]); + } + } + + } + + $post['name'] = $_POST['name'] != '' ? $_POST['name'] : $config['anonymous']; + $post['subject'] = $_POST['subject']; + $post['email'] = str_replace(' ', '%20', htmlspecialchars($_POST['email'])); + $post['body'] = $_POST['body']; + $post['password'] = $_POST['password']; + $post['has_file'] = (!isset($post['embed']) && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || count($_FILES) > 0)); + + if (!$dropped_post) { + if (!($post['has_file'] || isset($post['embed'])) || (($post['op'] && $config['force_body_op']) || (!$post['op'] && $config['force_body']))) { + $stripped_whitespace = preg_replace('/[\s]/u', '', $post['body']); + if ($stripped_whitespace == '') { + error($config['error']['tooshort_body']); + } + } + + if (!$post['op']) { + // Check if thread is locked + // but allow mods to post + if ($thread['locked'] && !hasPermission($config['mod']['postinlocked'], $board['uri'])) { + error($config['error']['locked']); + } + + $numposts = numPosts($post['thread']); + + $replythreshold = isset($thread['cycle']) && $thread['cycle'] ? $numposts['replies'] - 1 : $numposts['replies']; + $imagethreshold = isset($thread['cycle']) && $thread['cycle'] ? $numposts['images'] - 1 : $numposts['images']; + + if ($config['reply_hard_limit'] != 0 && $config['reply_hard_limit'] <= $replythreshold) { + error($config['error']['reply_hard_limit']); + } + + if ($post['has_file'] && $config['image_hard_limit'] != 0 && $config['image_hard_limit'] <= $imagethreshold) { + error($config['error']['image_hard_limit']); + } + } + } + else { + if (!$post['op']) { $numposts = numPosts($post['thread']); - } - } - - if ($post['has_file']) { - // Determine size sanity - $size = 0; - if ($config['multiimage_method'] == 'split') { - foreach ($_FILES as $key => $file) { - $size += $file['size']; - } - } elseif ($config['multiimage_method'] == 'each') { - foreach ($_FILES as $key => $file) { - if ($file['size'] > $size) { - $size = $file['size']; - } - } - } else { - error(_('Unrecognized file size determination method.')); - } - $max_size = $config['max_filesize']; - - if (array_key_exists('board_specific',$config)){ - if (array_key_exists($board['uri'],$config['board_specific'])){ - if (array_key_exists('max_filesize',$config['board_specific'][$board['uri']])){ - $max_size = $config['board_specific'][$board['uri']]['max_filesize']; - } - } - } - - if ($size > $max_size) - error(sprintf3($config['error']['filesize'], array( - 'sz' => number_format($size), - 'filesz' => number_format($size), - 'maxsz' => number_format($config['max_filesize']) - ))); - $post['filesize'] = $size; - } - - $post['capcode'] = false; - - if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches)) { - $name = $matches[2] != '' ? $matches[2] : $config['anonymous']; - $cap = $matches[3]; - - if (isset($config['mod']['capcode'][$mod['type']])) { - if ( $config['mod']['capcode'][$mod['type']] === true || - (is_array($config['mod']['capcode'][$mod['type']]) && - in_array($cap, $config['mod']['capcode'][$mod['type']]) - )) { - - $post['capcode'] = utf8tohtml($cap); - $post['name'] = $name; - } - } - } - else if ($config['joke_capcode']) { - if (strtolower($post['email']) == 'joke') { - if (isset($config['joke_capcode_default'])){ - $cap = $config['joke_capcode_default']; - } - else { - $cap = "joke"; - } - $post['capcode'] = utf8tohtml($cap); - $post['email'] = ''; - } - } - - $trip = generate_tripcode($post['name']); - $post['name'] = $trip[0]; - $post['trip'] = isset($trip[1]) ? $trip[1] : ''; // XX: Dropped posts and tripcodes - - $noko = false; - if (strtolower($post['email']) == 'noko') { - $noko = true; - $post['email'] = ''; - } elseif (strtolower($post['email']) == 'nonoko'){ - $noko = false; - $post['email'] = ''; - } else $noko = $config['always_noko']; - - if ($post['has_file']) { - $i = 0; - foreach ($_FILES as $key => $file) { - if ($file['size'] && $file['tmp_name']) { - $file['filename'] = urldecode($file['name']); - $file['extension'] = strtolower(mb_substr($file['filename'], mb_strrpos($file['filename'], '.') + 1)); - if (isset($config['filename_func'])) - $file['file_id'] = $config['filename_func']($file); - else - $file['file_id'] = time() . substr(microtime(), 2, 3); - - if (sizeof($_FILES) > 1) - $file['file_id'] .= "-$i"; - - $file['file'] = $board['dir'] . $config['dir']['img'] . $file['file_id'] . '.' . $file['extension']; - $file['thumb'] = $board['dir'] . $config['dir']['thumb'] . $file['file_id'] . '.' . ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension']); - $post['files'][] = $file; - $i++; - } - } - } - - if (empty($post['files'])) $post['has_file'] = false; - - if (!$dropped_post) { - // Check for a file - if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) { - if (!$post['has_file'] && $config['force_image_op']) { - error($config['error']['noimage']); - } - } - - // Check for too many files - if (sizeof($post['files']) > $config['max_images']) { - error($config['error']['toomanyimages']); - } - } - - if ($config['strip_combining_chars']) { - $post['name'] = strip_combining_chars($post['name']); - $post['email'] = strip_combining_chars($post['email']); - $post['subject'] = strip_combining_chars($post['subject']); - $post['body'] = strip_combining_chars($post['body']); - } - - if (!$dropped_post) { - // Check string lengths - if (mb_strlen($post['name']) > 35) { - error(sprintf($config['error']['toolong'], 'name')); - } - if (mb_strlen($post['email']) > 40) { - error(sprintf($config['error']['toolong'], 'email')); - } - if (mb_strlen($post['subject']) > 100) { - error(sprintf($config['error']['toolong'], 'subject')); - } - if (!$mod && mb_strlen($post['body']) > $config['max_body']) { - error($config['error']['toolong_body']); - } - if (!$mod && mb_strlen($post['body']) > 0 && (mb_strlen($post['body']) < $config['min_body'])) { - error($config['error']['tooshort_body']); - } - if (mb_strlen($post['password']) > 20) { - error(sprintf($config['error']['toolong'], 'password')); - } - } - - wordfilters($post['body']); - - $post['body'] = escape_markup_modifiers($post['body']); - - if ($mod && isset($post['raw']) && $post['raw']) { - $post['body'] .= "\n1"; - } - - if (!$dropped_post) - if (($config['country_flags'] && !$config['allow_no_country']) || ($config['country_flags'] && $config['allow_no_country'] && !isset($_POST['no_country']))) { - require 'inc/lib/geoip/geoip.inc'; - $gi=geoip\geoip_open('inc/lib/geoip/GeoIPv6.dat', GEOIP_STANDARD); - - function ipv4to6($ip) { - if (strpos($ip, ':') !== false) { - if (strpos($ip, '.') > 0) - $ip = substr($ip, strrpos($ip, ':')+1); - else return $ip; //native ipv6 - } - $iparr = array_pad(explode('.', $ip), 4, 0); - $part7 = base_convert(($iparr[0] * 256) + $iparr[1], 10, 16); - $part8 = base_convert(($iparr[2] * 256) + $iparr[3], 10, 16); - return '::ffff:'.$part7.':'.$part8; - } - - if ($country_code = geoip\geoip_country_code_by_addr_v6($gi, ipv4to6($_SERVER['REMOTE_ADDR']))) { - if (!in_array(strtolower($country_code), array('eu', 'ap', 'o1', 'a1', 'a2'))) - $post['body'] .= "\n".strtolower($country_code)."". - "\n".geoip\geoip_country_name_by_addr_v6($gi, ipv4to6($_SERVER['REMOTE_ADDR'])).""; - } - } - - if ($config['user_flag'] && isset($_POST['user_flag'])) - if (!empty($_POST['user_flag']) ){ - - $user_flag = $_POST['user_flag']; - - if (!isset($config['user_flags'][$user_flag])) - error(_('Invalid flag selection!')); - - $flag_alt = isset($user_flag_alt) ? $user_flag_alt : $config['user_flags'][$user_flag]; - - $post['body'] .= "\n" . strtolower($user_flag) . "" . - "\n" . $flag_alt . ""; - } - - if ($config['allowed_tags'] && $post['op'] && isset($_POST['tag']) && isset($config['allowed_tags'][$_POST['tag']])) { - $post['body'] .= "\n" . $_POST['tag'] . ""; - } - - if (!$dropped_post) + } + } + + if ($post['has_file']) { + // Determine size sanity + $size = 0; + if ($config['multiimage_method'] == 'split') { + foreach ($_FILES as $key => $file) { + $size += $file['size']; + } + } elseif ($config['multiimage_method'] == 'each') { + foreach ($_FILES as $key => $file) { + if ($file['size'] > $size) { + $size = $file['size']; + } + } + } else { + error(_('Unrecognized file size determination method.')); + } + $max_size = $config['max_filesize']; + + if (array_key_exists('board_specific',$config)){ + if (array_key_exists($board['uri'],$config['board_specific'])){ + if (array_key_exists('max_filesize',$config['board_specific'][$board['uri']])){ + $max_size = $config['board_specific'][$board['uri']]['max_filesize']; + } + } + } + + if ($size > $max_size) + error(sprintf3($config['error']['filesize'], array( + 'sz' => number_format($size), + 'filesz' => number_format($size), + 'maxsz' => number_format($config['max_filesize']) + ))); + $post['filesize'] = $size; + } + + $post['capcode'] = false; + + if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches)) { + $name = $matches[2] != '' ? $matches[2] : $config['anonymous']; + $cap = $matches[3]; + + if (isset($config['mod']['capcode'][$mod['type']])) { + if ( $config['mod']['capcode'][$mod['type']] === true || + (is_array($config['mod']['capcode'][$mod['type']]) && + in_array($cap, $config['mod']['capcode'][$mod['type']]) + )) { + + $post['capcode'] = utf8tohtml($cap); + $post['name'] = $name; + } + } + } + else if ($config['joke_capcode']) { + if (strtolower($post['email']) == 'joke') { + if (isset($config['joke_capcode_default'])){ + $cap = $config['joke_capcode_default']; + } + else { + $cap = "joke"; + } + $post['capcode'] = utf8tohtml($cap); + $post['email'] = ''; + } + } + + $trip = generate_tripcode($post['name']); + $post['name'] = $trip[0]; + $post['trip'] = isset($trip[1]) ? $trip[1] : ''; // XX: Dropped posts and tripcodes + + $noko = false; + if (strtolower($post['email']) == 'noko') { + $noko = true; + $post['email'] = ''; + } elseif (strtolower($post['email']) == 'nonoko'){ + $noko = false; + $post['email'] = ''; + } else $noko = $config['always_noko']; + + if ($post['has_file']) { + $i = 0; + foreach ($_FILES as $key => $file) { + if ($file['size'] && $file['tmp_name']) { + $file['filename'] = urldecode($file['name']); + $file['extension'] = strtolower(mb_substr($file['filename'], mb_strrpos($file['filename'], '.') + 1)); + if (isset($config['filename_func'])) + $file['file_id'] = $config['filename_func']($file); + else + $file['file_id'] = time() . substr(microtime(), 2, 3); + + if (sizeof($_FILES) > 1) + $file['file_id'] .= "-$i"; + + $file['file'] = $board['dir'] . $config['dir']['img'] . $file['file_id'] . '.' . $file['extension']; + $file['thumb'] = $board['dir'] . $config['dir']['thumb'] . $file['file_id'] . '.' . ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension']); + $post['files'][] = $file; + $i++; + } + } + } + + if (empty($post['files'])) $post['has_file'] = false; + + if (!$dropped_post) { + // Check for a file + if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) { + if (!$post['has_file'] && $config['force_image_op']) { + error($config['error']['noimage']); + } + } + + // Check for too many files + if (sizeof($post['files']) > $config['max_images']) { + error($config['error']['toomanyimages']); + } + } + + if ($config['strip_combining_chars']) { + $post['name'] = strip_combining_chars($post['name']); + $post['email'] = strip_combining_chars($post['email']); + $post['subject'] = strip_combining_chars($post['subject']); + $post['body'] = strip_combining_chars($post['body']); + } + + if (!$dropped_post) { + // Check string lengths + if (mb_strlen($post['name']) > 35) { + error(sprintf($config['error']['toolong'], 'name')); + } + if (mb_strlen($post['email']) > 40) { + error(sprintf($config['error']['toolong'], 'email')); + } + if (mb_strlen($post['subject']) > 100) { + error(sprintf($config['error']['toolong'], 'subject')); + } + if (!$mod && mb_strlen($post['body']) > $config['max_body']) { + error($config['error']['toolong_body']); + } + if (!$mod && mb_strlen($post['body']) > 0 && (mb_strlen($post['body']) < $config['min_body'])) { + error($config['error']['tooshort_body']); + } + if (mb_strlen($post['password']) > 20) { + error(sprintf($config['error']['toolong'], 'password')); + } + } + + wordfilters($post['body']); + + $post['body'] = escape_markup_modifiers($post['body']); + + if ($mod && isset($post['raw']) && $post['raw']) { + $post['body'] .= "\n1"; + } + + if (!$dropped_post) + if (($config['country_flags'] && !$config['allow_no_country']) || ($config['country_flags'] && $config['allow_no_country'] && !isset($_POST['no_country']))) { + require 'inc/lib/geoip/geoip.inc'; + $gi=geoip\geoip_open('inc/lib/geoip/GeoIPv6.dat', GEOIP_STANDARD); + + function ipv4to6($ip) { + if (strpos($ip, ':') !== false) { + if (strpos($ip, '.') > 0) + $ip = substr($ip, strrpos($ip, ':')+1); + else return $ip; //native ipv6 + } + $iparr = array_pad(explode('.', $ip), 4, 0); + $part7 = base_convert(($iparr[0] * 256) + $iparr[1], 10, 16); + $part8 = base_convert(($iparr[2] * 256) + $iparr[3], 10, 16); + return '::ffff:'.$part7.':'.$part8; + } + + if ($country_code = geoip\geoip_country_code_by_addr_v6($gi, ipv4to6($_SERVER['REMOTE_ADDR']))) { + if (!in_array(strtolower($country_code), array('eu', 'ap', 'o1', 'a1', 'a2'))) + $post['body'] .= "\n".strtolower($country_code)."". + "\n".geoip\geoip_country_name_by_addr_v6($gi, ipv4to6($_SERVER['REMOTE_ADDR'])).""; + } + } + + if ($config['user_flag'] && isset($_POST['user_flag'])) + if (!empty($_POST['user_flag']) ){ + + $user_flag = $_POST['user_flag']; + + if (!isset($config['user_flags'][$user_flag])) + error(_('Invalid flag selection!')); + + $flag_alt = isset($user_flag_alt) ? $user_flag_alt : $config['user_flags'][$user_flag]; + + $post['body'] .= "\n" . strtolower($user_flag) . "" . + "\n" . $flag_alt . ""; + } + + if ($config['allowed_tags'] && $post['op'] && isset($_POST['tag']) && isset($config['allowed_tags'][$_POST['tag']])) { + $post['body'] .= "\n" . $_POST['tag'] . ""; + } + + if (!$dropped_post) if ($config['proxy_save'] && isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { - $proxy = preg_replace("/[^0-9a-fA-F.,: ]/", '', $_SERVER['HTTP_X_FORWARDED_FOR']); - $post['body'] .= "\n".$proxy.""; - } - - if (mysql_version() >= 50503) { - $post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset - } else { - // MySQL's `utf8` charset only supports up to 3-byte symbols - // Remove anything >= 0x010000 - - $chars = preg_split('//u', $post['body'], -1, PREG_SPLIT_NO_EMPTY); - $post['body_nomarkup'] = ''; - foreach ($chars as $char) { - $o = 0; - $ord = ordutf8($char, $o); - if ($ord >= 0x010000) - continue; - $post['body_nomarkup'] .= $char; - } - } - - $post['tracked_cites'] = markup($post['body'], true); - - if ($post['has_file']) { - $md5cmd = false; - if ($config['bsd_md5']) $md5cmd = '/sbin/md5 -r'; - if ($config['gnu_md5']) $md5cmd = 'md5sum'; - - $allhashes = ''; - - foreach ($post['files'] as $key => &$file) { - if ($post['op'] && $config['allowed_ext_op']) { - if (!in_array($file['extension'], $config['allowed_ext_op'])) { - error($config['error']['unknownext']); - } - } elseif (!in_array($file['extension'], $config['allowed_ext']) && !in_array($file['extension'], $config['allowed_ext_files'])) { - error($config['error']['unknownext']); - } - - $file['is_an_image'] = !in_array($file['extension'], $config['allowed_ext_files']); - - // Truncate filename if it is too long - $file['filename'] = mb_substr($file['filename'], 0, $config['max_filename_len']); - - $upload = $file['tmp_name']; - - if (!is_readable($upload)) - error($config['error']['nomove']); - - if ($md5cmd) { - $output = shell_exec_error($md5cmd . " " . escapeshellarg($upload)); - $output = explode(' ', $output); - $hash = $output[0]; - } - else { - $hash = md5_file($upload); - } - - $file['hash'] = $hash; - $allhashes .= $hash; - } - - if (count ($post['files']) == 1) { - $post['filehash'] = $hash; - } - else { - $post['filehash'] = md5($allhashes); - } - } - - if (!hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { - require_once 'inc/filters.php'; - - do_filters($post); - } - - if ($post['has_file']) { - foreach ($post['files'] as $key => &$file) { - if ($file['is_an_image']) { - if ($config['ie_mime_type_detection'] !== false) { - // Check IE MIME type detection XSS exploit - $buffer = file_get_contents($upload, null, null, null, 255); - if (preg_match($config['ie_mime_type_detection'], $buffer)) { - undoImage($post); - error($config['error']['mime_exploit']); - } - } - - require_once 'inc/image.php'; - - // find dimensions of an image using GD - if (!$size = @getimagesize($file['tmp_name'])) { - error($config['error']['invalidimg']); - } - if (!in_array($size[2], array(IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_BMP))) { - error($config['error']['invalidimg']); - } - if ($size[0] > $config['max_width'] || $size[1] > $config['max_height']) { - error($config['error']['maxsize']); - } - - if ($config['convert_auto_orient'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')) { - // The following code corrects the image orientation. - // Currently only works with the 'convert' option selected but it could easily be expanded to work with the rest if you can be bothered. - if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['use_exiftool']) && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')))) { - if (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) { - $exif = @exif_read_data($file['tmp_name']); - $gm = in_array($config['thumb_method'], array('gm', 'gm+gifsicle')); - if (isset($exif['Orientation']) && $exif['Orientation'] != 1) { - if ($config['convert_manual_orient']) { - $error = shell_exec_error(($gm ? 'gm ' : '') . 'convert ' . - escapeshellarg($file['tmp_name']) . ' ' . - ImageConvert::jpeg_exif_orientation(false, $exif) . ' ' . - ($config['strip_exif'] ? '+profile "*"' : - ($config['use_exiftool'] ? '' : '+profile "*"') - ) . ' ' . - escapeshellarg($file['tmp_name'])); - if ($config['use_exiftool'] && !$config['strip_exif']) { - if ($exiftool_error = shell_exec_error( - 'exiftool -overwrite_original -q -q -orientation=1 -n ' . - escapeshellarg($file['tmp_name']))) - error(_('exiftool failed!'), null, $exiftool_error); - } else { - // TODO: Find another way to remove the Orientation tag from the EXIF profile - // without needing `exiftool`. - } - } else { - $error = shell_exec_error(($gm ? 'gm ' : '') . 'convert ' . - escapeshellarg($file['tmp_name']) . ' -auto-orient ' . escapeshellarg($upload)); - } - if ($error) { - error(_('Could not auto-orient image!'), null, $error); - } - $size = @getimagesize($file['tmp_name']); - if ($config['strip_exif']) - $file['exif_stripped'] = true; - } - } - } - } - - // create image object - $image = new Image($file['tmp_name'], $file['extension'], $size); - if ($image->size->width > $config['max_width'] || $image->size->height > $config['max_height']) { - $image->delete(); - - error($config['error']['maxsize']); - } - - $file['width'] = $image->size->width; - $file['height'] = $image->size->height; - - if ($config['spoiler_images'] && isset($_POST['spoiler'])) { - $file['thumb'] = 'spoiler'; - - $size = @getimagesize($config['spoiler_image']); - $file['thumbwidth'] = $size[0]; - $file['thumbheight'] = $size[1]; - } elseif ($config['minimum_copy_resize'] && - $image->size->width <= $config['thumb_width'] && - $image->size->height <= $config['thumb_height'] && - $file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])) { - - // Copy, because there's nothing to resize - copy($file['tmp_name'], $file['thumb']); - - $file['thumbwidth'] = $image->size->width; - $file['thumbheight'] = $image->size->height; - } else { - $thumb = $image->resize( - $config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'], - $post['op'] ? $config['thumb_op_width'] : $config['thumb_width'], - $post['op'] ? $config['thumb_op_height'] : $config['thumb_height'] - ); - - $thumb->to($file['thumb']); - - $file['thumbwidth'] = $thumb->width; - $file['thumbheight'] = $thumb->height; - - $thumb->_destroy(); - } - - if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'))) { - if (!$config['redraw_image'] && $config['use_exiftool']) { - if($error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' . - escapeshellarg($file['tmp_name']))) - error(_('Could not strip EXIF metadata!'), null, $error); - } else { - $image->to($file['file']); - $dont_copy_file = true; - } - } - $image->destroy(); - } else { - if (($file['extension'] == "pdf" && $config['pdf_file_thumbnail']) || - ($file['extension'] == "djvu" && $config['djvu_file_thumbnail']) ){ - $path = $file['thumb']; - $error = shell_exec_error( 'convert -thumbnail x300 -background white -alpha remove ' . - escapeshellarg($file['tmp_name']. '[0]') . ' ' . - escapeshellarg($file['thumb'])); - - if ($error){ - $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); - } - - $file['thumb'] = basename($file['thumb']); - $size = @getimagesize($path); - $file['thumbwidth'] = $size[0]; - $file['thumbheight'] = $size[1]; - $file['width'] = $size[0]; - $file['height'] = $size[1]; - } - /*if (($file['extension'] == "epub" && $config['epub_file_thumbnail'])){ - $path = $file['thumb']; - // Open epub - // Get file list - // Check if cover file exists according to regex if it does use it - // Otherwise check if metadata file exists, and if does get rootfile and search for manifest for cover file name - // Otherwise Check if other image files exist and use them, based on criteria to pick the best one. - // Once we have filename extract said file from epub to file['thumb'] location. - $zip = new ZipArchive(); - if(@$zip->open($path)){ - $filename = ""; - // Go looking for a file name, current implementation just uses regex but should fallback to - // getting all images and then choosing one. - for( $i = 0; $i < $zip->numFiles; $i++ ){ - $stat = $zip->statIndex( $i ); - $matches = array(); - if (preg_match('/.*cover.*\.(jpg|jpeg|png)/', $stat['name'], $matches)) { - $filename = $matches[0]; - break; - } - } - // We have a cover filename to extract. - if (strlen($filename) > 0){ - //$zip->extractTo(dirname($file['thumb']), array($filename)); - } - else { - $error = 1; - } - - } - else { - $error = 1; - } - - if ($error){ - $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); - } - - $file['thumb'] = basename($file['thumb']); - $size = @getimagesize($path); - $file['thumbwidth'] = $size[0]; - $file['thumbheight'] = $size[1]; - $file['width'] = $size[0]; - $file['height'] = $size[1]; - }*/ - else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){ - $path = $file['thumb']; - $error = shell_exec_error( 'convert -thumbnail x300 xc:white -pointsize 12 -fill black -annotate +15+15 ' . - escapeshellarg( '@' . $file['tmp_name']) . ' ' . - escapeshellarg($file['thumb'])); - - if ($error){ - $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); - } - - $file['thumb'] = basename($file['thumb']); - $size = @getimagesize($path); - $file['thumbwidth'] = $size[0]; - $file['thumbheight'] = $size[1]; - $file['width'] = $size[0]; - $file['height'] = $size[1]; - } - else if ($file['extension'] == "svg"){ - // Copy, because there's nothing to resize - $file['thumb'] = substr_replace($file['thumb'] , $file['extension'], strrpos($file['thumb'] , '.') +1); - copy($file['tmp_name'], $file['thumb']); - $file['thumbwidth'] = $config['thumb_width']; - $file['thumbheight'] = $config['thumb_height']; - $file['thumb'] = basename($file['thumb']); - - } - else { - // not an image - //copy($config['file_thumb'], $post['thumb']); - $file['thumb'] = 'file'; - - $size = @getimagesize(sprintf($config['file_thumb'], - isset($config['file_icons'][$file['extension']]) ? - $config['file_icons'][$file['extension']] : $config['file_icons']['default'])); - $file['thumbwidth'] = $size[0]; - $file['thumbheight'] = $size[1]; - } - } - - if ($config['tesseract_ocr'] && $file['thumb'] != 'file') { // Let's OCR it! - $fname = $file['tmp_name']; - - if ($file['height'] > 500 || $file['width'] > 500) { - $fname = $file['thumb']; - } - - if ($fname == 'spoiler') { // We don't have that much CPU time, do we? - } - else { - $tmpname = __DIR__ . "/tmp/tesseract/".rand(0,10000000); - - // Preprocess command is an ImageMagick b/w quantization - $error = shell_exec_error(sprintf($config['tesseract_preprocess_command'], escapeshellarg($fname)) . " | " . + $proxy = preg_replace("/[^0-9a-fA-F.,: ]/", '', $_SERVER['HTTP_X_FORWARDED_FOR']); + $post['body'] .= "\n".$proxy.""; + } + + if (mysql_version() >= 50503) { + $post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset + } else { + // MySQL's `utf8` charset only supports up to 3-byte symbols + // Remove anything >= 0x010000 + + $chars = preg_split('//u', $post['body'], -1, PREG_SPLIT_NO_EMPTY); + $post['body_nomarkup'] = ''; + foreach ($chars as $char) { + $o = 0; + $ord = ordutf8($char, $o); + if ($ord >= 0x010000) + continue; + $post['body_nomarkup'] .= $char; + } + } + + $post['tracked_cites'] = markup($post['body'], true); + + if ($post['has_file']) { + $md5cmd = false; + if ($config['bsd_md5']) $md5cmd = '/sbin/md5 -r'; + if ($config['gnu_md5']) $md5cmd = 'md5sum'; + + $allhashes = ''; + + foreach ($post['files'] as $key => &$file) { + if ($post['op'] && $config['allowed_ext_op']) { + if (!in_array($file['extension'], $config['allowed_ext_op'])) { + error($config['error']['unknownext']); + } + } elseif (!in_array($file['extension'], $config['allowed_ext']) && !in_array($file['extension'], $config['allowed_ext_files'])) { + error($config['error']['unknownext']); + } + + $file['is_an_image'] = !in_array($file['extension'], $config['allowed_ext_files']); + + // Truncate filename if it is too long + $file['filename'] = mb_substr($file['filename'], 0, $config['max_filename_len']); + + $upload = $file['tmp_name']; + + if (!is_readable($upload)) + error($config['error']['nomove']); + + if ($md5cmd) { + $output = shell_exec_error($md5cmd . " " . escapeshellarg($upload)); + $output = explode(' ', $output); + $hash = $output[0]; + } + else { + $hash = md5_file($upload); + } + + $file['hash'] = $hash; + $allhashes .= $hash; + } + + if (count ($post['files']) == 1) { + $post['filehash'] = $hash; + } + else { + $post['filehash'] = md5($allhashes); + } + } + + if (!hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { + require_once 'inc/filters.php'; + + do_filters($post); + } + + if ($post['has_file']) { + foreach ($post['files'] as $key => &$file) { + if ($file['is_an_image']) { + if ($config['ie_mime_type_detection'] !== false) { + // Check IE MIME type detection XSS exploit + $buffer = file_get_contents($upload, null, null, null, 255); + if (preg_match($config['ie_mime_type_detection'], $buffer)) { + undoImage($post); + error($config['error']['mime_exploit']); + } + } + + require_once 'inc/image.php'; + + // find dimensions of an image using GD + if (!$size = @getimagesize($file['tmp_name'])) { + error($config['error']['invalidimg']); + } + if (!in_array($size[2], array(IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_BMP))) { + error($config['error']['invalidimg']); + } + if ($size[0] > $config['max_width'] || $size[1] > $config['max_height']) { + error($config['error']['maxsize']); + } + + if ($config['convert_auto_orient'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')) { + // The following code corrects the image orientation. + // Currently only works with the 'convert' option selected but it could easily be expanded to work with the rest if you can be bothered. + if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['use_exiftool']) && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')))) { + if (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) { + $exif = @exif_read_data($file['tmp_name']); + $gm = in_array($config['thumb_method'], array('gm', 'gm+gifsicle')); + if (isset($exif['Orientation']) && $exif['Orientation'] != 1) { + if ($config['convert_manual_orient']) { + $error = shell_exec_error(($gm ? 'gm ' : '') . 'convert ' . + escapeshellarg($file['tmp_name']) . ' ' . + ImageConvert::jpeg_exif_orientation(false, $exif) . ' ' . + ($config['strip_exif'] ? '+profile "*"' : + ($config['use_exiftool'] ? '' : '+profile "*"') + ) . ' ' . + escapeshellarg($file['tmp_name'])); + if ($config['use_exiftool'] && !$config['strip_exif']) { + if ($exiftool_error = shell_exec_error( + 'exiftool -overwrite_original -q -q -orientation=1 -n ' . + escapeshellarg($file['tmp_name']))) + error(_('exiftool failed!'), null, $exiftool_error); + } else { + // TODO: Find another way to remove the Orientation tag from the EXIF profile + // without needing `exiftool`. + } + } else { + $error = shell_exec_error(($gm ? 'gm ' : '') . 'convert ' . + escapeshellarg($file['tmp_name']) . ' -auto-orient ' . escapeshellarg($upload)); + } + if ($error) { + error(_('Could not auto-orient image!'), null, $error); + } + $size = @getimagesize($file['tmp_name']); + if ($config['strip_exif']) + $file['exif_stripped'] = true; + } + } + } + } + + // create image object + $image = new Image($file['tmp_name'], $file['extension'], $size); + if ($image->size->width > $config['max_width'] || $image->size->height > $config['max_height']) { + $image->delete(); + + error($config['error']['maxsize']); + } + + $file['width'] = $image->size->width; + $file['height'] = $image->size->height; + + if ($config['spoiler_images'] && isset($_POST['spoiler'])) { + $file['thumb'] = 'spoiler'; + + $size = @getimagesize($config['spoiler_image']); + $file['thumbwidth'] = $size[0]; + $file['thumbheight'] = $size[1]; + } elseif ($config['minimum_copy_resize'] && + $image->size->width <= $config['thumb_width'] && + $image->size->height <= $config['thumb_height'] && + $file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])) { + + // Copy, because there's nothing to resize + copy($file['tmp_name'], $file['thumb']); + + $file['thumbwidth'] = $image->size->width; + $file['thumbheight'] = $image->size->height; + } else { + $thumb = $image->resize( + $config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'], + $post['op'] ? $config['thumb_op_width'] : $config['thumb_width'], + $post['op'] ? $config['thumb_op_height'] : $config['thumb_height'] + ); + + $thumb->to($file['thumb']); + + $file['thumbwidth'] = $thumb->width; + $file['thumbheight'] = $thumb->height; + + $thumb->_destroy(); + } + + if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'))) { + if (!$config['redraw_image'] && $config['use_exiftool']) { + if($error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' . + escapeshellarg($file['tmp_name']))) + error(_('Could not strip EXIF metadata!'), null, $error); + } else { + $image->to($file['file']); + $dont_copy_file = true; + } + } + $image->destroy(); + } else { + if (($file['extension'] == "pdf" && $config['pdf_file_thumbnail']) || + ($file['extension'] == "djvu" && $config['djvu_file_thumbnail']) ){ + $path = $file['thumb']; + $error = shell_exec_error( 'convert -thumbnail x300 -background white -alpha remove ' . + escapeshellarg($file['tmp_name']. '[0]') . ' ' . + escapeshellarg($file['thumb'])); + + if ($error){ + $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); + } + + $file['thumb'] = basename($file['thumb']); + $size = @getimagesize($path); + $file['thumbwidth'] = $size[0]; + $file['thumbheight'] = $size[1]; + $file['width'] = $size[0]; + $file['height'] = $size[1]; + } + /*if (($file['extension'] == "epub" && $config['epub_file_thumbnail'])){ + $path = $file['thumb']; + // Open epub + // Get file list + // Check if cover file exists according to regex if it does use it + // Otherwise check if metadata file exists, and if does get rootfile and search for manifest for cover file name + // Otherwise Check if other image files exist and use them, based on criteria to pick the best one. + // Once we have filename extract said file from epub to file['thumb'] location. + $zip = new ZipArchive(); + if(@$zip->open($path)){ + $filename = ""; + // Go looking for a file name, current implementation just uses regex but should fallback to + // getting all images and then choosing one. + for( $i = 0; $i < $zip->numFiles; $i++ ){ + $stat = $zip->statIndex( $i ); + $matches = array(); + if (preg_match('/.*cover.*\.(jpg|jpeg|png)/', $stat['name'], $matches)) { + $filename = $matches[0]; + break; + } + } + // We have a cover filename to extract. + if (strlen($filename) > 0){ + //$zip->extractTo(dirname($file['thumb']), array($filename)); + } + else { + $error = 1; + } + + } + else { + $error = 1; + } + + if ($error){ + $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); + } + + $file['thumb'] = basename($file['thumb']); + $size = @getimagesize($path); + $file['thumbwidth'] = $size[0]; + $file['thumbheight'] = $size[1]; + $file['width'] = $size[0]; + $file['height'] = $size[1]; + }*/ + else if ($file['extension'] == "txt" && $config['txt_file_thumbnail']){ + $path = $file['thumb']; + $error = shell_exec_error( 'convert -thumbnail x300 xc:white -pointsize 12 -fill black -annotate +15+15 ' . + escapeshellarg( '@' . $file['tmp_name']) . ' ' . + escapeshellarg($file['thumb'])); + + if ($error){ + $path = sprintf($config['file_thumb'],isset($config['file_icons'][$file['extension']]) ? $config['file_icons'][$file['extension']] : $config['file_icons']['default']); + } + + $file['thumb'] = basename($file['thumb']); + $size = @getimagesize($path); + $file['thumbwidth'] = $size[0]; + $file['thumbheight'] = $size[1]; + $file['width'] = $size[0]; + $file['height'] = $size[1]; + } + else if ($file['extension'] == "svg"){ + // Copy, because there's nothing to resize + $file['thumb'] = substr_replace($file['thumb'] , $file['extension'], strrpos($file['thumb'] , '.') +1); + copy($file['tmp_name'], $file['thumb']); + $file['thumbwidth'] = $config['thumb_width']; + $file['thumbheight'] = $config['thumb_height']; + $file['thumb'] = basename($file['thumb']); + + } + else { + // not an image + //copy($config['file_thumb'], $post['thumb']); + $file['thumb'] = 'file'; + + $size = @getimagesize(sprintf($config['file_thumb'], + isset($config['file_icons'][$file['extension']]) ? + $config['file_icons'][$file['extension']] : $config['file_icons']['default'])); + $file['thumbwidth'] = $size[0]; + $file['thumbheight'] = $size[1]; + } + } + + if ($config['tesseract_ocr'] && $file['thumb'] != 'file') { // Let's OCR it! + $fname = $file['tmp_name']; + + if ($file['height'] > 500 || $file['width'] > 500) { + $fname = $file['thumb']; + } + + if ($fname == 'spoiler') { // We don't have that much CPU time, do we? + } + else { + $tmpname = __DIR__ . "/tmp/tesseract/".rand(0,10000000); + + // Preprocess command is an ImageMagick b/w quantization + $error = shell_exec_error(sprintf($config['tesseract_preprocess_command'], escapeshellarg($fname)) . " | " . 'tesseract stdin '.escapeshellarg($tmpname).' '.$config['tesseract_params']); - $tmpname .= ".txt"; - - $value = @file_get_contents($tmpname); - @unlink($tmpname); - - if ($value && trim($value)) { - // This one has an effect, that the body is appended to a post body. So you can write a correct - // spamfilter. - $post['body_nomarkup'] .= "".htmlspecialchars($value).""; - } - } - } - - if (!isset($dont_copy_file) || !$dont_copy_file) { - if (isset($file['file_tmp'])) { - if (!@rename($file['tmp_name'], $file['file'])) - error($config['error']['nomove']); - chmod($file['file'], 0644); - } elseif (!@move_uploaded_file($file['tmp_name'], $file['file'])) - error($config['error']['nomove']); - } - } - - if ($config['image_reject_repost']) { - if ($p = getPostByHash($post['filehash'])) { - undoImage($post); - error(sprintf($config['error']['fileexists'], - ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . - ($board['dir'] . $config['dir']['res'] . - ($p['thread'] ? - $p['thread'] . '.html#' . $p['id'] - : - $p['id'] . '.html' - )) - )); - } - } else if (!$post['op'] && $config['image_reject_repost_in_thread']) { - if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) { - undoImage($post); - error(sprintf($config['error']['fileexistsinthread'], - ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . - ($board['dir'] . $config['dir']['res'] . - ($p['thread'] ? - $p['thread'] . '.html#' . $p['id'] - : - $p['id'] . '.html' - )) - )); - } - } - - } - - // Do filters again if OCRing - if ($config['tesseract_ocr'] && !hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { - do_filters($post); - } - - if (!hasPermission($config['mod']['postunoriginal'], $board['uri']) && $config['robot_enable'] && checkRobot($post['body_nomarkup']) && !$dropped_post) { - undoImage($post); - if ($config['robot_mute']) { - error(sprintf($config['error']['muted'], mute())); - } else { - error($config['error']['unoriginal']); - } - } - - // Remove board directories before inserting them into the database. - if ($post['has_file']) { - foreach ($post['files'] as $key => &$file) { - $file['file_path'] = $file['file']; - $file['thumb_path'] = $file['thumb']; - $file['file'] = mb_substr($file['file'], mb_strlen($board['dir'] . $config['dir']['img'])); - if ($file['is_an_image'] && $file['thumb'] != 'spoiler') - $file['thumb'] = mb_substr($file['thumb'], mb_strlen($board['dir'] . $config['dir']['thumb'])); - } - } - - $post = (object)$post; - $post->files = array_map(function($a) { return (object)$a; }, $post->files); - - $error = event('post', $post); - $post->files = array_map(function($a) { return (array)$a; }, $post->files); - - if ($error) { - undoImage((array)$post); - error($error); - } - - $post = (array)$post; - - if ($post['files']) { - $post['files'] = $post['files']; - } - - $post['num_files'] = sizeof($post['files']); - - $post['id'] = $id = post($post); - $post['slug'] = slugify($post); - - if ($dropped_post && $dropped_post['from_nntp']) { - $query = prepare("INSERT INTO ``nntp_references`` (`board`, `id`, `message_id`, `message_id_digest`, `own`, `headers`) VALUES ". - "(:board , :id , :message_id , :message_id_digest , false, :headers)"); - - $query->bindValue(':board', $dropped_post['board']); - $query->bindValue(':id', $id); - $query->bindValue(':message_id', $dropped_post['msgid']); - $query->bindValue(':message_id_digest', sha1($dropped_post['msgid'])); - $query->bindValue(':headers', $dropped_post['headers']); - $query->execute() or error(db_error($query)); - } // ^^^^^ For inbound posts ^^^^^ - elseif ($config['nntpchan']['enabled'] && $config['nntpchan']['group']) { - // vvvvv For outbound posts vvvvv - - require_once('inc/nntpchan/nntpchan.php'); - $msgid = gen_msgid($post['board'], $post['id']); - - list($headers, $files) = post2nntp($post, $msgid); - - $message = gen_nntp($headers, $files); - - $query = prepare("INSERT INTO ``nntp_references`` (`board`, `id`, `message_id`, `message_id_digest`, `own`, `headers`) VALUES ". - "(:board , :id , :message_id , :message_id_digest , true , :headers)"); - - $query->bindValue(':board', $post['board']); + $tmpname .= ".txt"; + + $value = @file_get_contents($tmpname); + @unlink($tmpname); + + if ($value && trim($value)) { + // This one has an effect, that the body is appended to a post body. So you can write a correct + // spamfilter. + $post['body_nomarkup'] .= "".htmlspecialchars($value).""; + } + } + } + + if (!isset($dont_copy_file) || !$dont_copy_file) { + if (isset($file['file_tmp'])) { + if (!@rename($file['tmp_name'], $file['file'])) + error($config['error']['nomove']); + chmod($file['file'], 0644); + } elseif (!@move_uploaded_file($file['tmp_name'], $file['file'])) + error($config['error']['nomove']); + } + } + + if ($config['image_reject_repost']) { + if ($p = getPostByHash($post['filehash'])) { + undoImage($post); + error(sprintf($config['error']['fileexists'], + ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . + ($board['dir'] . $config['dir']['res'] . + ($p['thread'] ? + $p['thread'] . '.html#' . $p['id'] + : + $p['id'] . '.html' + )) + )); + } + } else if (!$post['op'] && $config['image_reject_repost_in_thread']) { + if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) { + undoImage($post); + error(sprintf($config['error']['fileexistsinthread'], + ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . + ($board['dir'] . $config['dir']['res'] . + ($p['thread'] ? + $p['thread'] . '.html#' . $p['id'] + : + $p['id'] . '.html' + )) + )); + } + } + + } + + // Do filters again if OCRing + if ($config['tesseract_ocr'] && !hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) { + do_filters($post); + } + + if (!hasPermission($config['mod']['postunoriginal'], $board['uri']) && $config['robot_enable'] && checkRobot($post['body_nomarkup']) && !$dropped_post) { + undoImage($post); + if ($config['robot_mute']) { + error(sprintf($config['error']['muted'], mute())); + } else { + error($config['error']['unoriginal']); + } + } + + // Remove board directories before inserting them into the database. + if ($post['has_file']) { + foreach ($post['files'] as $key => &$file) { + $file['file_path'] = $file['file']; + $file['thumb_path'] = $file['thumb']; + $file['file'] = mb_substr($file['file'], mb_strlen($board['dir'] . $config['dir']['img'])); + if ($file['is_an_image'] && $file['thumb'] != 'spoiler') + $file['thumb'] = mb_substr($file['thumb'], mb_strlen($board['dir'] . $config['dir']['thumb'])); + } + } + + $post = (object)$post; + $post->files = array_map(function($a) { return (object)$a; }, $post->files); + + $error = event('post', $post); + $post->files = array_map(function($a) { return (array)$a; }, $post->files); + + if ($error) { + undoImage((array)$post); + error($error); + } + + $post = (array)$post; + + if ($post['files']) { + $post['files'] = $post['files']; + } + + $post['num_files'] = sizeof($post['files']); + + $post['id'] = $id = post($post); + $post['slug'] = slugify($post); + + if ($dropped_post && $dropped_post['from_nntp']) { + $query = prepare("INSERT INTO ``nntp_references`` (`board`, `id`, `message_id`, `message_id_digest`, `own`, `headers`) VALUES ". + "(:board , :id , :message_id , :message_id_digest , false, :headers)"); + + $query->bindValue(':board', $dropped_post['board']); + $query->bindValue(':id', $id); + $query->bindValue(':message_id', $dropped_post['msgid']); + $query->bindValue(':message_id_digest', sha1($dropped_post['msgid'])); + $query->bindValue(':headers', $dropped_post['headers']); + $query->execute() or error(db_error($query)); + } // ^^^^^ For inbound posts ^^^^^ + elseif ($config['nntpchan']['enabled'] && $config['nntpchan']['group']) { + // vvvvv For outbound posts vvvvv + + require_once('inc/nntpchan/nntpchan.php'); + $msgid = gen_msgid($post['board'], $post['id']); + + list($headers, $files) = post2nntp($post, $msgid); + + $message = gen_nntp($headers, $files); + + $query = prepare("INSERT INTO ``nntp_references`` (`board`, `id`, `message_id`, `message_id_digest`, `own`, `headers`) VALUES ". + "(:board , :id , :message_id , :message_id_digest , true , :headers)"); + + $query->bindValue(':board', $post['board']); $query->bindValue(':id', $post['id']); $query->bindValue(':message_id', $msgid); $query->bindValue(':message_id_digest', sha1($msgid)); $query->bindValue(':headers', json_encode($headers)); $query->execute() or error(db_error($query)); - // Let's broadcast it! - nntp_publish($message, $msgid); - } - - insertFloodPost($post); - - // Handle cyclical threads - if (!$post['op'] && isset($thread['cycle']) && $thread['cycle']) { - // Query is a bit weird due to "This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'" (MariaDB Ver 15.1 Distrib 10.0.17-MariaDB, for Linux (x86_64)) - $query = prepare(sprintf('DELETE FROM ``posts_%s`` WHERE `thread` = :thread AND `id` NOT IN (SELECT `id` FROM (SELECT `id` FROM ``posts_%s`` WHERE `thread` = :thread ORDER BY `id` DESC LIMIT :limit) i)', $board['uri'], $board['uri'])); - $query->bindValue(':thread', $post['thread']); - $query->bindValue(':limit', $config['cycle_limit'], PDO::PARAM_INT); - $query->execute() or error(db_error($query)); - } - - if (isset($post['antispam_hash'])) { - incrementSpamHash($post['antispam_hash']); - } - - if (isset($post['tracked_cites']) && !empty($post['tracked_cites'])) { - $insert_rows = array(); - foreach ($post['tracked_cites'] as $cite) { - $insert_rows[] = '(' . - $pdo->quote($board['uri']) . ', ' . (int)$id . ', ' . - $pdo->quote($cite[0]) . ', ' . (int)$cite[1] . ')'; - } - query('INSERT INTO ``cites`` VALUES ' . implode(', ', $insert_rows)) or error(db_error()); - } - - if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) { - bumpThread($post['thread']); - } - - if (isset($_SERVER['HTTP_REFERER'])) { - // Tell Javascript that we posted successfully - if (isset($_COOKIE[$config['cookies']['js']])) - $js = json_decode($_COOKIE[$config['cookies']['js']]); - else - $js = (object) array(); - // Tell it to delete the cached post for referer - $js->{$_SERVER['HTTP_REFERER']} = true; - // Encode and set cookie - setcookie($config['cookies']['js'], json_encode($js), 0, $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, false); - } - - $root = $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; - - if ($noko) { - $redirect = $root . $board['dir'] . $config['dir']['res'] . - link_for($post, false, false, $thread) . (!$post['op'] ? '#' . $id : ''); - - if (!$post['op'] && isset($_SERVER['HTTP_REFERER'])) { - $regex = array( - 'board' => str_replace('%s', '(\w{1,8})', preg_quote($config['board_path'], '/')), - 'page' => str_replace('%d', '(\d+)', preg_quote($config['file_page'], '/')), - 'page50' => '(' . str_replace('%d', '(\d+)', preg_quote($config['file_page50'], '/')) . '|' . - str_replace(array('%d', '%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page50_slug'], '/')) . ')', - 'res' => preg_quote($config['dir']['res'], '/'), - ); - - if (preg_match('/\/' . $regex['board'] . $regex['res'] . $regex['page50'] . '([?&].*)?$/', $_SERVER['HTTP_REFERER'])) { - $redirect = $root . $board['dir'] . $config['dir']['res'] . - link_for($post, true, false, $thread) . (!$post['op'] ? '#' . $id : ''); - } - } - } else { - $redirect = $root . $board['dir'] . $config['file_index']; - - } - - buildThread($post['op'] ? $id : $post['thread']); - - if ($config['syslog']) - _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . - link_for($post) . (!$post['op'] ? '#' . $id : '')); - - if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"'); - - if (!isset($_POST['json_response'])) { - header('Location: ' . $redirect, true, $config['redirect_http']); - } else { - header('Content-Type: text/json; charset=utf-8'); - echo json_encode(array( - 'redirect' => $redirect, - 'noko' => $noko, - 'id' => $id - )); - } - - if ($config['try_smarter'] && $post['op']) - $build_pages = range(1, $config['max_pages']); - - if ($post['op']) - clean($id); - - event('post-after', $post); - - buildIndex(); - - // We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI) - if (function_exists('fastcgi_finish_request')) { - @fastcgi_finish_request(); - } - - if ($post['op']) { - rebuildThemes('post-thread', $board['uri']); - } else { - rebuildThemes('post', $board['uri']); - } + // Let's broadcast it! + nntp_publish($message, $msgid); + } + + insertFloodPost($post); + + // Handle cyclical threads + if (!$post['op'] && isset($thread['cycle']) && $thread['cycle']) { + // Query is a bit weird due to "This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'" (MariaDB Ver 15.1 Distrib 10.0.17-MariaDB, for Linux (x86_64)) + $query = prepare(sprintf('DELETE FROM ``posts_%s`` WHERE `thread` = :thread AND `id` NOT IN (SELECT `id` FROM (SELECT `id` FROM ``posts_%s`` WHERE `thread` = :thread ORDER BY `id` DESC LIMIT :limit) i)', $board['uri'], $board['uri'])); + $query->bindValue(':thread', $post['thread']); + $query->bindValue(':limit', $config['cycle_limit'], PDO::PARAM_INT); + $query->execute() or error(db_error($query)); + } + + if (isset($post['antispam_hash'])) { + incrementSpamHash($post['antispam_hash']); + } + + if (isset($post['tracked_cites']) && !empty($post['tracked_cites'])) { + $insert_rows = array(); + foreach ($post['tracked_cites'] as $cite) { + $insert_rows[] = '(' . + $pdo->quote($board['uri']) . ', ' . (int)$id . ', ' . + $pdo->quote($cite[0]) . ', ' . (int)$cite[1] . ')'; + } + query('INSERT INTO ``cites`` VALUES ' . implode(', ', $insert_rows)) or error(db_error()); + } + + if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) { + bumpThread($post['thread']); + } + + if (isset($_SERVER['HTTP_REFERER'])) { + // Tell Javascript that we posted successfully + if (isset($_COOKIE[$config['cookies']['js']])) + $js = json_decode($_COOKIE[$config['cookies']['js']]); + else + $js = (object) array(); + // Tell it to delete the cached post for referer + $js->{$_SERVER['HTTP_REFERER']} = true; + // Encode and set cookie + setcookie($config['cookies']['js'], json_encode($js), 0, $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, false); + } + + $root = $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; + + if ($noko) { + $redirect = $root . $board['dir'] . $config['dir']['res'] . + link_for($post, false, false, $thread) . (!$post['op'] ? '#' . $id : ''); + + if (!$post['op'] && isset($_SERVER['HTTP_REFERER'])) { + $regex = array( + 'board' => str_replace('%s', '(\w{1,8})', preg_quote($config['board_path'], '/')), + 'page' => str_replace('%d', '(\d+)', preg_quote($config['file_page'], '/')), + 'page50' => '(' . str_replace('%d', '(\d+)', preg_quote($config['file_page50'], '/')) . '|' . + str_replace(array('%d', '%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page50_slug'], '/')) . ')', + 'res' => preg_quote($config['dir']['res'], '/'), + ); + + if (preg_match('/\/' . $regex['board'] . $regex['res'] . $regex['page50'] . '([?&].*)?$/', $_SERVER['HTTP_REFERER'])) { + $redirect = $root . $board['dir'] . $config['dir']['res'] . + link_for($post, true, false, $thread) . (!$post['op'] ? '#' . $id : ''); + } + } + } else { + $redirect = $root . $board['dir'] . $config['file_index']; + + } + + buildThread($post['op'] ? $id : $post['thread']); + + if ($config['syslog']) + _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . + link_for($post) . (!$post['op'] ? '#' . $id : '')); + + if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"'); + + if (!isset($_POST['json_response'])) { + header('Location: ' . $redirect, true, $config['redirect_http']); + } else { + header('Content-Type: text/json; charset=utf-8'); + echo json_encode(array( + 'redirect' => $redirect, + 'noko' => $noko, + 'id' => $id + )); + } + + if ($config['try_smarter'] && $post['op']) + $build_pages = range(1, $config['max_pages']); + + if ($post['op']) + clean($id); + + event('post-after', $post); + + buildIndex(); + + // We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI) + if (function_exists('fastcgi_finish_request')) { + @fastcgi_finish_request(); + } + + if ($post['op']) { + rebuildThemes('post-thread', $board['uri']); + } else { + rebuildThemes('post', $board['uri']); + } } function handle_appeal(){ - global $config; - if (!isset($_POST['ban_id'])) - error($config['error']['bot']); - - $ban_id = (int)$_POST['ban_id']; - - $bans = Bans::find($_SERVER['REMOTE_ADDR']); - foreach ($bans as $_ban) { - if ($_ban['id'] == $ban_id) { - $ban = $_ban; - break; - } - } - - if (!isset($ban)) { - error(_("That ban doesn't exist or is not for you.")); - } - - if ($ban['expires'] && $ban['expires'] - $ban['created'] <= $config['ban_appeals_min_length']) { - error(_("You cannot appeal a ban of this length.")); - } - - $query = query("SELECT `denied` FROM ``ban_appeals`` WHERE `ban_id` = $ban_id") or error(db_error()); - $ban_appeals = $query->fetchAll(PDO::FETCH_COLUMN); - - if (count($ban_appeals) >= $config['ban_appeals_max']) { - error(_("You cannot appeal this ban again.")); - } - - foreach ($ban_appeals as $is_denied) { - if (!$is_denied) - error(_("There is already a pending appeal for this ban.")); - } - - $query = prepare("INSERT INTO ``ban_appeals`` VALUES (NULL, :ban_id, :time, :message, 0)"); - $query->bindValue(':ban_id', $ban_id, PDO::PARAM_INT); - $query->bindValue(':time', time(), PDO::PARAM_INT); - $query->bindValue(':message', $_POST['appeal']); - $query->execute() or error(db_error($query)); - - displayBan($ban); + global $config; + if (!isset($_POST['ban_id'])) + error($config['error']['bot']); + + $ban_id = (int)$_POST['ban_id']; + + $bans = Bans::find($_SERVER['REMOTE_ADDR']); + foreach ($bans as $_ban) { + if ($_ban['id'] == $ban_id) { + $ban = $_ban; + break; + } + } + + if (!isset($ban)) { + error(_("That ban doesn't exist or is not for you.")); + } + + if ($ban['expires'] && $ban['expires'] - $ban['created'] <= $config['ban_appeals_min_length']) { + error(_("You cannot appeal a ban of this length.")); + } + + $query = query("SELECT `denied` FROM ``ban_appeals`` WHERE `ban_id` = $ban_id") or error(db_error()); + $ban_appeals = $query->fetchAll(PDO::FETCH_COLUMN); + + if (count($ban_appeals) >= $config['ban_appeals_max']) { + error(_("You cannot appeal this ban again.")); + } + + foreach ($ban_appeals as $is_denied) { + if (!$is_denied) + error(_("There is already a pending appeal for this ban.")); + } + + $query = prepare("INSERT INTO ``ban_appeals`` VALUES (NULL, :ban_id, :time, :message, 0)"); + $query->bindValue(':ban_id', $ban_id, PDO::PARAM_INT); + $query->bindValue(':time', time(), PDO::PARAM_INT); + $query->bindValue(':message', $_POST['appeal']); + $query->execute() or error(db_error($query)); + + displayBan($ban); } // Is it a post coming from NNTP? Let's extract it and pretend it's a normal post. if (isset($_GET['Newsgroups'])) { - if($config['nntpchan']['enabled']){ - handle_nntpchan(); - } - else { - error("NNTPChan: NNTPChan support is disabled"); - } + if($config['nntpchan']['enabled']){ + handle_nntpchan(); + } + else { + error("NNTPChan: NNTPChan support is disabled"); + } } if (isset($_POST['delete'])) { - handle_delete(); + handle_delete(); } elseif (isset($_POST['report'])) { - handle_report(); + handle_report(); } elseif (isset($_POST['post']) || $dropped_post) { - handle_post(); + handle_post(); } elseif (isset($_POST['appeal'])) { - handle_appeal(); + handle_appeal(); } else { - if (!file_exists($config['has_installed'])) { - header('Location: install.php', true, $config['redirect_http']); - } else { - // They opened post.php in their browser manually. - error($config['error']['nopost']); - } + if (!file_exists($config['has_installed'])) { + header('Location: install.php', true, $config['redirect_http']); + } else { + // They opened post.php in their browser manually. + error($config['error']['nopost']); + } } From 9bd1535e240bf8baf1aa6f307a52405811a7904a Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:32:42 -0500 Subject: [PATCH 7/8] Fix flag filenames --- inc/instance-config.php | 146 +++++++++--------- ...nternational.png => 4th_international.png} | Bin .../{Acceleration.png => acceleration.png} | Bin static/flags/{AK-47.png => ak-47.png} | Bin static/flags/{Albania.png => albania.png} | Bin static/flags/{Allende.png => allende.png} | Bin ...rcha-Feminism.png => anarcha-feminism.png} | Bin static/flags/{Anarchism.png => anarchism.png} | Bin ...-Capitalism.png => anarcho-capitalism.png} | Bin ...ho-Communism.png => anarcho-communism.png} | Bin ...rcho-Nihilism.png => anarcho-nihilism.png} | Bin ...rimitivism.png => anarcho-primitivism.png} | Bin static/flags/{Athiesm.png => athiesm.png} | Bin static/flags/{Bolshevik.png => bolshevik.png} | Bin .../flags/{Brocialism.png => brocialism.png} | Bin .../{Burkina_Faso.png => burkina_faso.png} | Bin static/flags/{Chavismo.png => chavismo.png} | Bin static/flags/{Che.png => che.png} | Bin static/flags/{China.png => china.png} | Bin ..._Communism.png => christian_communism.png} | Bin static/flags/{Cockshott.png => cockshott.png} | Bin static/flags/{Cuba.png => cuba.png} | Bin static/flags/{DDR.png => ddr.png} | Bin static/flags/{Democrap.png => democrap.png} | Bin ...Socialism.png => democratic_socialism.png} | Bin static/flags/{DPRK.png => dprk.png} | Bin .../{Eurocommunism.png => eurocommunism.png} | Bin static/flags/{Fed.png => fed.png} | Bin static/flags/{Freud.png => freud.png} | Bin static/flags/{Gadsden.png => gadsden.png} | Bin static/flags/{Gay_Nazi.png => gay_nazi.png} | Bin static/flags/{Gentoo.png => gentoo.png} | Bin static/flags/{Gorro.png => gorro.png} | Bin ...roucho_Marxism.png => groucho_marxism.png} | Bin ...ammer_&_Sickle.png => hammer_&_sickle.png} | Bin ... Brigade.png => international_brigade.png} | Bin static/flags/{IRA.png => ira.png} | Bin ...ic_Communism.png => islamic_communism.png} | Bin static/flags/{IWW.png => iww.png} | Bin static/flags/{Juche.png => juche.png} | Bin static/flags/{Kampuchea.png => kampuchea.png} | Bin ...{Left_Communism.png => left_communism.png} | Bin static/flags/{Lenin_Cap.png => lenin_cap.png} | Bin static/flags/{Luxemburg.png => luxemburg.png} | Bin static/flags/{Marx.png => marx.png} | Bin static/flags/{Mutualism.png => mutualism.png} | Bin static/flags/{Naxalite.png => naxalite.png} | Bin static/flags/{Nazbol.png => nazbol.png} | Bin static/flags/{Nazi.png => nazi.png} | Bin static/flags/{NDFP.png => ndfp.png} | Bin static/flags/{Palestine.png => palestine.png} | Bin ...{Pan-Africanism.png => pan-africanism.png} | Bin static/flags/{Pirate.png => pirate.png} | Bin static/flags/{Porky.png => porky.png} | Bin static/flags/{Posadas.png => posadas.png} | Bin static/flags/{Punk.png => punk.png} | Bin .../{Raised_Fist.png => raised_fist.png} | Bin ...cking_Book.png => read_a_fucking_book.png} | Bin .../{Rethuglican.png => rethuglican.png} | Bin .../flags/{Sabo-Tabby.png => sabo-tabby.png} | Bin .../flags/{Sandinista.png => sandinista.png} | Bin ...dero_Luminoso.png => sendero_luminoso.png} | Bin static/flags/{Slavoj.png => slavoj.png} | Bin static/flags/{Socialism.png => socialism.png} | Bin .../{Soviet_Union.png => soviet_union.png} | Bin static/flags/{Spurdo.png => spurdo.png} | Bin static/flags/{SSNP.png => ssnp.png} | Bin static/flags/{Stalin.png => stalin.png} | Bin .../{Syndicalism.png => syndicalism.png} | Bin static/flags/{Tankie.png => tankie.png} | Bin static/flags/{Think.png => think.png} | Bin static/flags/{Viet_Cong.png => viet_cong.png} | Bin .../flags/{Yugoslavia.png => yugoslavia.png} | Bin static/flags/{Zapatista.png => zapatista.png} | Bin 74 files changed, 73 insertions(+), 73 deletions(-) rename static/flags/{4th_International.png => 4th_international.png} (100%) rename static/flags/{Acceleration.png => acceleration.png} (100%) rename static/flags/{AK-47.png => ak-47.png} (100%) rename static/flags/{Albania.png => albania.png} (100%) rename static/flags/{Allende.png => allende.png} (100%) rename static/flags/{Anarcha-Feminism.png => anarcha-feminism.png} (100%) rename static/flags/{Anarchism.png => anarchism.png} (100%) rename static/flags/{Anarcho-Capitalism.png => anarcho-capitalism.png} (100%) rename static/flags/{Anarcho-Communism.png => anarcho-communism.png} (100%) rename static/flags/{Anarcho-Nihilism.png => anarcho-nihilism.png} (100%) rename static/flags/{Anarcho-Primitivism.png => anarcho-primitivism.png} (100%) rename static/flags/{Athiesm.png => athiesm.png} (100%) rename static/flags/{Bolshevik.png => bolshevik.png} (100%) rename static/flags/{Brocialism.png => brocialism.png} (100%) rename static/flags/{Burkina_Faso.png => burkina_faso.png} (100%) rename static/flags/{Chavismo.png => chavismo.png} (100%) rename static/flags/{Che.png => che.png} (100%) rename static/flags/{China.png => china.png} (100%) rename static/flags/{Christian_Communism.png => christian_communism.png} (100%) rename static/flags/{Cockshott.png => cockshott.png} (100%) rename static/flags/{Cuba.png => cuba.png} (100%) rename static/flags/{DDR.png => ddr.png} (100%) rename static/flags/{Democrap.png => democrap.png} (100%) rename static/flags/{Democratic_Socialism.png => democratic_socialism.png} (100%) rename static/flags/{DPRK.png => dprk.png} (100%) rename static/flags/{Eurocommunism.png => eurocommunism.png} (100%) rename static/flags/{Fed.png => fed.png} (100%) rename static/flags/{Freud.png => freud.png} (100%) rename static/flags/{Gadsden.png => gadsden.png} (100%) rename static/flags/{Gay_Nazi.png => gay_nazi.png} (100%) rename static/flags/{Gentoo.png => gentoo.png} (100%) rename static/flags/{Gorro.png => gorro.png} (100%) rename static/flags/{Groucho_Marxism.png => groucho_marxism.png} (100%) rename static/flags/{Hammer_&_Sickle.png => hammer_&_sickle.png} (100%) rename static/flags/{International Brigade.png => international_brigade.png} (100%) rename static/flags/{IRA.png => ira.png} (100%) rename static/flags/{Islamic_Communism.png => islamic_communism.png} (100%) rename static/flags/{IWW.png => iww.png} (100%) rename static/flags/{Juche.png => juche.png} (100%) rename static/flags/{Kampuchea.png => kampuchea.png} (100%) rename static/flags/{Left_Communism.png => left_communism.png} (100%) rename static/flags/{Lenin_Cap.png => lenin_cap.png} (100%) rename static/flags/{Luxemburg.png => luxemburg.png} (100%) rename static/flags/{Marx.png => marx.png} (100%) rename static/flags/{Mutualism.png => mutualism.png} (100%) rename static/flags/{Naxalite.png => naxalite.png} (100%) rename static/flags/{Nazbol.png => nazbol.png} (100%) rename static/flags/{Nazi.png => nazi.png} (100%) rename static/flags/{NDFP.png => ndfp.png} (100%) rename static/flags/{Palestine.png => palestine.png} (100%) rename static/flags/{Pan-Africanism.png => pan-africanism.png} (100%) rename static/flags/{Pirate.png => pirate.png} (100%) rename static/flags/{Porky.png => porky.png} (100%) rename static/flags/{Posadas.png => posadas.png} (100%) rename static/flags/{Punk.png => punk.png} (100%) rename static/flags/{Raised_Fist.png => raised_fist.png} (100%) rename static/flags/{Read_a_Fucking_Book.png => read_a_fucking_book.png} (100%) rename static/flags/{Rethuglican.png => rethuglican.png} (100%) rename static/flags/{Sabo-Tabby.png => sabo-tabby.png} (100%) rename static/flags/{Sandinista.png => sandinista.png} (100%) rename static/flags/{Sendero_Luminoso.png => sendero_luminoso.png} (100%) rename static/flags/{Slavoj.png => slavoj.png} (100%) rename static/flags/{Socialism.png => socialism.png} (100%) rename static/flags/{Soviet_Union.png => soviet_union.png} (100%) rename static/flags/{Spurdo.png => spurdo.png} (100%) rename static/flags/{SSNP.png => ssnp.png} (100%) rename static/flags/{Stalin.png => stalin.png} (100%) rename static/flags/{Syndicalism.png => syndicalism.png} (100%) rename static/flags/{Tankie.png => tankie.png} (100%) rename static/flags/{Think.png => think.png} (100%) rename static/flags/{Viet_Cong.png => viet_cong.png} (100%) rename static/flags/{Yugoslavia.png => yugoslavia.png} (100%) rename static/flags/{Zapatista.png => zapatista.png} (100%) diff --git a/inc/instance-config.php b/inc/instance-config.php index 54eccf29..61910d60 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -128,79 +128,79 @@ $config['allowed_ext_files'][] = 'epub'; $config['country_flags_condensed'] = false; $config['user_flag'] = true; $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' => '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', + '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' ); diff --git a/static/flags/4th_International.png b/static/flags/4th_international.png similarity index 100% rename from static/flags/4th_International.png rename to static/flags/4th_international.png diff --git a/static/flags/Acceleration.png b/static/flags/acceleration.png similarity index 100% rename from static/flags/Acceleration.png rename to static/flags/acceleration.png diff --git a/static/flags/AK-47.png b/static/flags/ak-47.png similarity index 100% rename from static/flags/AK-47.png rename to static/flags/ak-47.png diff --git a/static/flags/Albania.png b/static/flags/albania.png similarity index 100% rename from static/flags/Albania.png rename to static/flags/albania.png diff --git a/static/flags/Allende.png b/static/flags/allende.png similarity index 100% rename from static/flags/Allende.png rename to static/flags/allende.png diff --git a/static/flags/Anarcha-Feminism.png b/static/flags/anarcha-feminism.png similarity index 100% rename from static/flags/Anarcha-Feminism.png rename to static/flags/anarcha-feminism.png diff --git a/static/flags/Anarchism.png b/static/flags/anarchism.png similarity index 100% rename from static/flags/Anarchism.png rename to static/flags/anarchism.png diff --git a/static/flags/Anarcho-Capitalism.png b/static/flags/anarcho-capitalism.png similarity index 100% rename from static/flags/Anarcho-Capitalism.png rename to static/flags/anarcho-capitalism.png diff --git a/static/flags/Anarcho-Communism.png b/static/flags/anarcho-communism.png similarity index 100% rename from static/flags/Anarcho-Communism.png rename to static/flags/anarcho-communism.png diff --git a/static/flags/Anarcho-Nihilism.png b/static/flags/anarcho-nihilism.png similarity index 100% rename from static/flags/Anarcho-Nihilism.png rename to static/flags/anarcho-nihilism.png diff --git a/static/flags/Anarcho-Primitivism.png b/static/flags/anarcho-primitivism.png similarity index 100% rename from static/flags/Anarcho-Primitivism.png rename to static/flags/anarcho-primitivism.png diff --git a/static/flags/Athiesm.png b/static/flags/athiesm.png similarity index 100% rename from static/flags/Athiesm.png rename to static/flags/athiesm.png diff --git a/static/flags/Bolshevik.png b/static/flags/bolshevik.png similarity index 100% rename from static/flags/Bolshevik.png rename to static/flags/bolshevik.png diff --git a/static/flags/Brocialism.png b/static/flags/brocialism.png similarity index 100% rename from static/flags/Brocialism.png rename to static/flags/brocialism.png diff --git a/static/flags/Burkina_Faso.png b/static/flags/burkina_faso.png similarity index 100% rename from static/flags/Burkina_Faso.png rename to static/flags/burkina_faso.png diff --git a/static/flags/Chavismo.png b/static/flags/chavismo.png similarity index 100% rename from static/flags/Chavismo.png rename to static/flags/chavismo.png diff --git a/static/flags/Che.png b/static/flags/che.png similarity index 100% rename from static/flags/Che.png rename to static/flags/che.png diff --git a/static/flags/China.png b/static/flags/china.png similarity index 100% rename from static/flags/China.png rename to static/flags/china.png diff --git a/static/flags/Christian_Communism.png b/static/flags/christian_communism.png similarity index 100% rename from static/flags/Christian_Communism.png rename to static/flags/christian_communism.png diff --git a/static/flags/Cockshott.png b/static/flags/cockshott.png similarity index 100% rename from static/flags/Cockshott.png rename to static/flags/cockshott.png diff --git a/static/flags/Cuba.png b/static/flags/cuba.png similarity index 100% rename from static/flags/Cuba.png rename to static/flags/cuba.png diff --git a/static/flags/DDR.png b/static/flags/ddr.png similarity index 100% rename from static/flags/DDR.png rename to static/flags/ddr.png diff --git a/static/flags/Democrap.png b/static/flags/democrap.png similarity index 100% rename from static/flags/Democrap.png rename to static/flags/democrap.png diff --git a/static/flags/Democratic_Socialism.png b/static/flags/democratic_socialism.png similarity index 100% rename from static/flags/Democratic_Socialism.png rename to static/flags/democratic_socialism.png diff --git a/static/flags/DPRK.png b/static/flags/dprk.png similarity index 100% rename from static/flags/DPRK.png rename to static/flags/dprk.png diff --git a/static/flags/Eurocommunism.png b/static/flags/eurocommunism.png similarity index 100% rename from static/flags/Eurocommunism.png rename to static/flags/eurocommunism.png diff --git a/static/flags/Fed.png b/static/flags/fed.png similarity index 100% rename from static/flags/Fed.png rename to static/flags/fed.png diff --git a/static/flags/Freud.png b/static/flags/freud.png similarity index 100% rename from static/flags/Freud.png rename to static/flags/freud.png diff --git a/static/flags/Gadsden.png b/static/flags/gadsden.png similarity index 100% rename from static/flags/Gadsden.png rename to static/flags/gadsden.png diff --git a/static/flags/Gay_Nazi.png b/static/flags/gay_nazi.png similarity index 100% rename from static/flags/Gay_Nazi.png rename to static/flags/gay_nazi.png diff --git a/static/flags/Gentoo.png b/static/flags/gentoo.png similarity index 100% rename from static/flags/Gentoo.png rename to static/flags/gentoo.png diff --git a/static/flags/Gorro.png b/static/flags/gorro.png similarity index 100% rename from static/flags/Gorro.png rename to static/flags/gorro.png diff --git a/static/flags/Groucho_Marxism.png b/static/flags/groucho_marxism.png similarity index 100% rename from static/flags/Groucho_Marxism.png rename to static/flags/groucho_marxism.png diff --git a/static/flags/Hammer_&_Sickle.png b/static/flags/hammer_&_sickle.png similarity index 100% rename from static/flags/Hammer_&_Sickle.png rename to static/flags/hammer_&_sickle.png diff --git a/static/flags/International Brigade.png b/static/flags/international_brigade.png similarity index 100% rename from static/flags/International Brigade.png rename to static/flags/international_brigade.png diff --git a/static/flags/IRA.png b/static/flags/ira.png similarity index 100% rename from static/flags/IRA.png rename to static/flags/ira.png diff --git a/static/flags/Islamic_Communism.png b/static/flags/islamic_communism.png similarity index 100% rename from static/flags/Islamic_Communism.png rename to static/flags/islamic_communism.png diff --git a/static/flags/IWW.png b/static/flags/iww.png similarity index 100% rename from static/flags/IWW.png rename to static/flags/iww.png diff --git a/static/flags/Juche.png b/static/flags/juche.png similarity index 100% rename from static/flags/Juche.png rename to static/flags/juche.png diff --git a/static/flags/Kampuchea.png b/static/flags/kampuchea.png similarity index 100% rename from static/flags/Kampuchea.png rename to static/flags/kampuchea.png diff --git a/static/flags/Left_Communism.png b/static/flags/left_communism.png similarity index 100% rename from static/flags/Left_Communism.png rename to static/flags/left_communism.png diff --git a/static/flags/Lenin_Cap.png b/static/flags/lenin_cap.png similarity index 100% rename from static/flags/Lenin_Cap.png rename to static/flags/lenin_cap.png diff --git a/static/flags/Luxemburg.png b/static/flags/luxemburg.png similarity index 100% rename from static/flags/Luxemburg.png rename to static/flags/luxemburg.png diff --git a/static/flags/Marx.png b/static/flags/marx.png similarity index 100% rename from static/flags/Marx.png rename to static/flags/marx.png diff --git a/static/flags/Mutualism.png b/static/flags/mutualism.png similarity index 100% rename from static/flags/Mutualism.png rename to static/flags/mutualism.png diff --git a/static/flags/Naxalite.png b/static/flags/naxalite.png similarity index 100% rename from static/flags/Naxalite.png rename to static/flags/naxalite.png diff --git a/static/flags/Nazbol.png b/static/flags/nazbol.png similarity index 100% rename from static/flags/Nazbol.png rename to static/flags/nazbol.png diff --git a/static/flags/Nazi.png b/static/flags/nazi.png similarity index 100% rename from static/flags/Nazi.png rename to static/flags/nazi.png diff --git a/static/flags/NDFP.png b/static/flags/ndfp.png similarity index 100% rename from static/flags/NDFP.png rename to static/flags/ndfp.png diff --git a/static/flags/Palestine.png b/static/flags/palestine.png similarity index 100% rename from static/flags/Palestine.png rename to static/flags/palestine.png diff --git a/static/flags/Pan-Africanism.png b/static/flags/pan-africanism.png similarity index 100% rename from static/flags/Pan-Africanism.png rename to static/flags/pan-africanism.png diff --git a/static/flags/Pirate.png b/static/flags/pirate.png similarity index 100% rename from static/flags/Pirate.png rename to static/flags/pirate.png diff --git a/static/flags/Porky.png b/static/flags/porky.png similarity index 100% rename from static/flags/Porky.png rename to static/flags/porky.png diff --git a/static/flags/Posadas.png b/static/flags/posadas.png similarity index 100% rename from static/flags/Posadas.png rename to static/flags/posadas.png diff --git a/static/flags/Punk.png b/static/flags/punk.png similarity index 100% rename from static/flags/Punk.png rename to static/flags/punk.png diff --git a/static/flags/Raised_Fist.png b/static/flags/raised_fist.png similarity index 100% rename from static/flags/Raised_Fist.png rename to static/flags/raised_fist.png diff --git a/static/flags/Read_a_Fucking_Book.png b/static/flags/read_a_fucking_book.png similarity index 100% rename from static/flags/Read_a_Fucking_Book.png rename to static/flags/read_a_fucking_book.png diff --git a/static/flags/Rethuglican.png b/static/flags/rethuglican.png similarity index 100% rename from static/flags/Rethuglican.png rename to static/flags/rethuglican.png diff --git a/static/flags/Sabo-Tabby.png b/static/flags/sabo-tabby.png similarity index 100% rename from static/flags/Sabo-Tabby.png rename to static/flags/sabo-tabby.png diff --git a/static/flags/Sandinista.png b/static/flags/sandinista.png similarity index 100% rename from static/flags/Sandinista.png rename to static/flags/sandinista.png diff --git a/static/flags/Sendero_Luminoso.png b/static/flags/sendero_luminoso.png similarity index 100% rename from static/flags/Sendero_Luminoso.png rename to static/flags/sendero_luminoso.png diff --git a/static/flags/Slavoj.png b/static/flags/slavoj.png similarity index 100% rename from static/flags/Slavoj.png rename to static/flags/slavoj.png diff --git a/static/flags/Socialism.png b/static/flags/socialism.png similarity index 100% rename from static/flags/Socialism.png rename to static/flags/socialism.png diff --git a/static/flags/Soviet_Union.png b/static/flags/soviet_union.png similarity index 100% rename from static/flags/Soviet_Union.png rename to static/flags/soviet_union.png diff --git a/static/flags/Spurdo.png b/static/flags/spurdo.png similarity index 100% rename from static/flags/Spurdo.png rename to static/flags/spurdo.png diff --git a/static/flags/SSNP.png b/static/flags/ssnp.png similarity index 100% rename from static/flags/SSNP.png rename to static/flags/ssnp.png diff --git a/static/flags/Stalin.png b/static/flags/stalin.png similarity index 100% rename from static/flags/Stalin.png rename to static/flags/stalin.png diff --git a/static/flags/Syndicalism.png b/static/flags/syndicalism.png similarity index 100% rename from static/flags/Syndicalism.png rename to static/flags/syndicalism.png diff --git a/static/flags/Tankie.png b/static/flags/tankie.png similarity index 100% rename from static/flags/Tankie.png rename to static/flags/tankie.png diff --git a/static/flags/Think.png b/static/flags/think.png similarity index 100% rename from static/flags/Think.png rename to static/flags/think.png diff --git a/static/flags/Viet_Cong.png b/static/flags/viet_cong.png similarity index 100% rename from static/flags/Viet_Cong.png rename to static/flags/viet_cong.png diff --git a/static/flags/Yugoslavia.png b/static/flags/yugoslavia.png similarity index 100% rename from static/flags/Yugoslavia.png rename to static/flags/yugoslavia.png diff --git a/static/flags/Zapatista.png b/static/flags/zapatista.png similarity index 100% rename from static/flags/Zapatista.png rename to static/flags/zapatista.png From 20ab9f0af5416d43801f259db8b338e321869679 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:41:25 -0500 Subject: [PATCH 8/8] fix flag style --- inc/instance-config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/instance-config.php b/inc/instance-config.php index 61910d60..14aa4e1b 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -127,6 +127,7 @@ $config['allowed_ext_files'][] = 'epub'; */ $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',