diff --git a/files/assets/images/PCM/banners_event/2022christmas1.webp b/files/assets/images/PCM/banners_event/2022christmas1.webp new file mode 100644 index 000000000..0e464b8ba Binary files /dev/null and b/files/assets/images/PCM/banners_event/2022christmas1.webp differ diff --git a/files/helpers/const.py b/files/helpers/const.py index 1b7b145bf..075c051a8 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -580,6 +580,12 @@ elif SITE == 'pcmemes.net': PIN_LIMIT = 10 FEATURES['REPOST_DETECTION'] = False FEATURES['STREAMERS'] = True + + PERMS['SITE_SETTINGS'] = 2 + PERMS['SITE_SETTINGS_UNDER_ATTACK'] = 2 + PERMS['SITE_CACHE_PURGE_CDN'] = 2 + PERMS['SITE_CACHE_DUMP_INTERNAL'] = 2 + ERROR_MSGS[500] = "Hiiiii it's nigger! I think this error means that there's a nigger error. And I think that means something took too long to load so it decided to be a nigger. If you keep seeing this on the same page but not other pages, then something its probably a niggerfaggot. It may not be called a nigger, but that sounds right to me. Anyway, ping me and I'll whine to someone smarter to fix it. Don't bother them. Thanks ily <3" ERROR_MARSEYS[500] = "wholesome" POST_RATE_LIMIT = '1/second;4/minute;20/hour;100/day' diff --git a/files/templates/default.html b/files/templates/default.html index a6f8fbe8c..1516ea209 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -8,13 +8,15 @@ {% if EVENT_BANNER and not sub %} {% include 'event/' + EVENT_BANNER %} {% else %} - {% if sub and SITE_NAME != WPD %} + {% if sub %} {% set src = sub.banner_url %} {% set alt = ['/h/', sub, 'banner']|join %} {% set class = 'site-banner-hole' %} {% elif SITE_NAME == "rDrama" %} {% set href = "https://secure.transequality.org/site/Donation2?df_id=1480" %} {% set expand = false %} + {% elif SITE_NAME == 'PCM' %}{# special case: christmas #} + {% set src = "/i/PCM/banners_event/2022christmas1.webp" %} {% endif %} {{macros.banner(src, href, alt, expand, class)}} {% endif %}