Add boykisser, add gandalf gif to 403

This commit is contained in:
askiiart 2023-11-09 09:09:48 -06:00
parent f6da1671aa
commit b2d721e9bc
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
4 changed files with 5 additions and 4 deletions

BIN
boykisser.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View file

@ -6,6 +6,7 @@ import json
url_404 = 'https://askiiart.net/sdlfjsadljfs' url_404 = 'https://askiiart.net/sdlfjsadljfs'
html_404 = str(requests.get(url_404).text) html_404 = str(requests.get(url_404).text)
boykisser_url = 'https://askiiart.net/assets/boykisser.png' boykisser_url = 'https://askiiart.net/assets/boykisser.png'
gandalf_url = '/you.gif'
try: try:
os.mkdir('pages') os.mkdir('pages')
@ -26,8 +27,8 @@ for code in codes_dict:
# - (300 Multiple Choices is the actual error code? Geddit?) # - (300 Multiple Choices is the actual error code? Geddit?)
new_html = new_html.replace( new_html = new_html.replace(
'<h1>300 Poll</h1>', '<h1>300 Poll</h1><br>57% Yes, 43% No<br>(300 Multiple Choices is the actual error code? Geddit?)') '<h1>300 Poll</h1>', '<h1>300 Poll</h1><br>57% Yes, 43% No<br>(300 Multiple Choices is the actual error code? Geddit?)')
elif code == "403":
new_html = new_html.replace('<h1>403 You Shall Not Pass</h1>',
f'<h1>403 You Shall Not Pass</h1><br><img src={gandalf_url} alt=\"gandalf saying you looped infinitely\" width=\"350\"')
with open(f'pages/{code}.html', 'w') as new_file: with open(f'pages/{code}.html', 'w') as new_file:
new_file.write(new_html) new_file.write(new_html)
exit()

View file

@ -1,7 +1,7 @@
<html> <html>
<head><title>403 You Shall Not Pass</title></head> <head><title>403 You Shall Not Pass</title></head>
<body> <body>
<center><h1>403 You Shall Not Pass</h1></center> <center><h1>403 You Shall Not Pass</h1><br><img src=/you.gif alt="gandalf saying you looped infinitely" width="350"</center>
<hr><center>nginx/1.25.3</center> <hr><center>nginx/1.25.3</center>
</body> </body>
</html> </html>

BIN
you.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB