remotes/1693045480750635534/spooky-22
Aevann1 2021-07-25 03:08:32 +02:00
parent cb2532170a
commit 854545dcb5
13 changed files with 24 additions and 44 deletions

View File

@ -25,7 +25,7 @@ beams_client = PushNotifications(
@auth_required
def banawardcomment(comment_id, v):
if not v.banawards > 0: return render_template("errors/banaward.html", v=v)
if not v.banawards > 0: abort(402)
comment = g.db.query(Comment).filter_by(id=comment_id).first()
if not comment: abort(400)

View File

@ -49,7 +49,7 @@ def resize():
@auth_required
def postbanaward(post_id, v):
if not v.banawards > 0: return render_template("errors/banaward.html", v=v)
if not v.banawards > 0: abort(402)
post = g.db.query(Submission).filter_by(id=post_id).first()
if not post: abort(400)

View File

@ -14,10 +14,10 @@
<i class="fad fa-chess-rook text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">401 Not Authorized</h1>
<p class="text-muted mb-5">You need to log in if you want to get into this castle.</p>
<p class="text-muted mb-5">What you're trying to do requires an account. I think. The original error message said something about a castle and I hated that.</p>
<div><a href="/signup" class="btn btn-primary mb-2">Create an account</a></div>
<div><a href="/login" class="text-muted text-small">Or sign in</a></div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -1,19 +1,21 @@
{% extends "errors/default.html" %}
{% extends "default.html" %}
{% block title %}
<title>402 Payment Required</title>
<title>403 Unauthorized</title>
{% endblock %}
{% block pagetype %}error-402{% endblock %}
{% block pagetype %}error-405{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<i class="fad fa-sack-dollar text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">402 Payment Required</h1>
<p class="text-muted mb-5">The royal bank has told us that you owe them some coin. You'll need to pay off your debts before you can continue.</p>
<div><a href="/settings/premium" class="btn btn-primary">Go to Coin settings</a></div>
<i class="fad fa-ban text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">403 Unauthorized</h1>
<p class="text-muted">This page is only available to patrons:</p>
<a href="https://rdrama.gumroad.com/l/tfcvri">https://rdrama.gumroad.com/l/tfcvri</a>
<br>
<a href="https://patreon.com/Aevann">https://patreon.com/Aevann</a>
</div>
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="text-center px-3 my-8">
<i class="fad fa-hat-witch text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">403 Forbidden</h1>
<p class="text-muted mb-5">Our security warlocks have cast an impenetrable shield spell around this page.</p>
<p class="text-muted mb-5">YOU AREN'T WELCOME HERE GO AWAY</p>
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="text-center px-3 my-8">
<i class="fad fa-dungeon text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">404 Page Not Found</h1>
<p class="text-muted mb-5">The internet gremlins have led you to a dark, musty dead-end. There's nothing here.</p>
<p class="text-muted mb-5">Someone typed something wrong and it was probably you, please do better.</p>
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="text-center px-3 my-8">
<i class="fad fa-ban text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">405 Method Not Allowed</h1>
<p class="text-muted mb-5">Careful, stranger. The internet gnomes dont take kindly to outsiders that dont follow their customs.</p>
<p class="text-muted mb-5">idk how anyone gets this error but if you see this, remember to follow @carpathianflorist<BR>the original error text here talked about internet gremlins and wtf</p>
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="text-center px-3 my-8">
<i class="fad fa-laptop-code text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">422 Unprocessable Entity</h1>
<p class="text-muted mb-5">The server thinks you're asking something silly. It might take you more seriously if you take off the jester outfit.</p>
<p class="text-muted mb-5">STOP BREAKING THINGS PLEASE WHY DO WE HAVE SO MANY ERROR CODES</p>
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="text-center px-3 my-8">
<i class="fad fa-tornado text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">429 Too Many Requests</h1>
<p class="text-muted mb-5">Slow down there, friend! The royal guard doesn't like it when you go that fast!</p>
<p class="text-muted mb-5">go spam somewhere else nerd</p>
</div>
</div>
</div>

View File

@ -13,7 +13,7 @@
<i class="fad fa-balance-scale text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">451 Unavailable For Legal Reasons</h1>
<p class="text-muted mb-5">By royal decree, we are unable to show this to you right now.</p>
<p class="text-muted mb-5"><img src=https://i.imgur.com/ykKSTmq.jpg width=500><BR><BR>fool.</p>
</div>
</div>
</div>

View File

@ -12,8 +12,8 @@
<div class="text-center px-3 my-8">
<i class="fad fa-axe-battle text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">500 Internal Server Error</h1>
<p class="text-muted mb-5">Something has broken. A master dwarven computersmith has been dispatched to un-break it.</p>
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
<p class="text-muted mb-5">Hiiiii it's carp! I think this error means that there's a timeout error. And I think that means something took too long to load so it decided not to work at all. If you keep seeing this on the same page <I>but not other pages</I>, then something is probably wrong with that specific function. It may not be called a function, 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</p>
<div><a href="/" class="btn btn-primary">Go to main feed</a></div>
</div>
</div>

View File

@ -82,8 +82,8 @@
<i class="fad fa-fire fa-stack-1x text-danger"></i>
</span>
<h1 class="h5">503 Service Unavailable</h1>
<p class="text-muted">Drama is unavailable.</p>
<p class="text-muted">The server you connected to is most likely being restarted right now. Try again in a few moments.</p>
<p class="text-muted">rDrama is unavailable.</p>
<p class="text-muted">HI IT'S CARP AGAIN<BR>I'm like 95% sure this error means Aevann is restarting the server to apply a change. But I think that's also 520/521? What causes a 503? No one knows. Wait like a minute (maybe two) and see if it's still happening. It shouldn't. Good luck!</p>
<button class="btn btn-primary" onclick="window.location.reload()">
Refresh
</button>
@ -123,4 +123,4 @@
<script src="https://ajax.cloudflare.com/cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js" data-cf-settings="37cef32129ec2b1bc32e9226-|49" defer=""></script></body>
</html>
</html>

View File

@ -1,22 +0,0 @@
{% extends "default.html" %}
{% block title %}
<title>403 Unauthorized</title>
{% endblock %}
{% block pagetype %}error-405{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<i class="fad fa-ban text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">403 Unauthorized</h1>
<p class="text-muted">This page is only available to patrons:</p>
<a href="https://rdrama.gumroad.com/l/tfcvri">https://rdrama.gumroad.com/l/tfcvri</a>
<br>
<a href="https://patreon.com/Aevann">https://patreon.com/Aevann</a>
</div>
</div>
</div>
{% endblock %}