diff --git a/static/icons/8831/cronut.cafe.gif b/static/icons/8831/cronut.cafe.gif deleted file mode 100755 index 989d890..0000000 Binary files a/static/icons/8831/cronut.cafe.gif and /dev/null differ diff --git a/webpage/static/icons/8831/lavenderfield.xyz.gif b/static/icons/8831/lavenderfield.xyz.gif similarity index 100% rename from webpage/static/icons/8831/lavenderfield.xyz.gif rename to static/icons/8831/lavenderfield.xyz.gif diff --git a/static/icons/8831/lustli.online.png b/static/icons/8831/lustli.online.png deleted file mode 100644 index 64381be..0000000 Binary files a/static/icons/8831/lustli.online.png and /dev/null differ diff --git a/static/icons/8831/remiiiiii.online.png b/static/icons/8831/remiiiiii.online.png old mode 100755 new mode 100644 diff --git a/webpage/static/icons/8831/sugui.fai.st.gif b/static/icons/8831/sugui.fai.st.gif similarity index 100% rename from webpage/static/icons/8831/sugui.fai.st.gif rename to static/icons/8831/sugui.fai.st.gif diff --git a/static/icons/fediring.png b/static/icons/fediring.png deleted file mode 100755 index 72cca9e..0000000 Binary files a/static/icons/fediring.png and /dev/null differ diff --git a/static/icons/last.png b/static/icons/last.png deleted file mode 100755 index 590c3da..0000000 Binary files a/static/icons/last.png and /dev/null differ diff --git a/static/icons/next.png b/static/icons/next.png deleted file mode 100755 index d61590b..0000000 Binary files a/static/icons/next.png and /dev/null differ diff --git a/webpage/forms.py b/webpage/forms.py deleted file mode 100644 index d3ea14e..0000000 --- a/webpage/forms.py +++ /dev/null @@ -1,16 +0,0 @@ -from re import Pattern -from django import forms -from django.core.exceptions import ValidationError -from django.utils.translation import gettext_lazy as txt - -class SignbookForm(forms.Form): - name = forms.CharField(label="Name") - website = forms.CharField(label="Website", required=False) - email = forms.EmailField(label="Email", required=False) - comment = forms.CharField(label="Comment", required=False) - capcha = forms.CharField(label="Tell me that you love 'me'") - - def validate_capcha(self): - if self.cleaned_data["capcha"].lower() != "i love me": - raise ValidationError(txt('Invalid captcha'), code="invalid") - return self \ No newline at end of file diff --git a/webpage/models.py b/webpage/models.py deleted file mode 100644 index 23eba28..0000000 --- a/webpage/models.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.db import models -# Create your models here. - -class Booksigner(models.Model): - name = models.CharField(max_length=50) - website = models.CharField(blank=True, max_length=200) - email = models.EmailField(blank=True, ) - comment = models.CharField(blank=True, max_length=500) \ No newline at end of file diff --git a/webpage/static/ads/ads b/webpage/static/ads/ads deleted file mode 100755 index ac97b27..0000000 --- a/webpage/static/ads/ads +++ /dev/null @@ -1,6 +0,0 @@ -Silly ad of engarging your orb -Silly ad of internet explorer 3.0 -Download more RAM -Insert lies here! -Cute trans girls in my CS class? -Little gay people on my machine? \ No newline at end of file diff --git a/webpage/static/ads/hor/buynow.gif b/webpage/static/ads/hor/buynow.gif deleted file mode 100755 index 71eae59..0000000 Binary files a/webpage/static/ads/hor/buynow.gif and /dev/null differ diff --git a/webpage/static/ads/hor/catgirl.png b/webpage/static/ads/hor/catgirl.png deleted file mode 100755 index e697171..0000000 Binary files a/webpage/static/ads/hor/catgirl.png and /dev/null differ diff --git a/webpage/static/ads/hor/gay.jpg b/webpage/static/ads/hor/gay.jpg deleted file mode 100755 index 95bce69..0000000 Binary files a/webpage/static/ads/hor/gay.jpg and /dev/null differ diff --git a/webpage/static/ads/hor/ie.png b/webpage/static/ads/hor/ie.png deleted file mode 100755 index 726de91..0000000 Binary files a/webpage/static/ads/hor/ie.png and /dev/null differ diff --git a/webpage/static/ads/hor/lies.jpg b/webpage/static/ads/hor/lies.jpg deleted file mode 100755 index 8f73d46..0000000 Binary files a/webpage/static/ads/hor/lies.jpg and /dev/null differ diff --git a/webpage/static/ads/hor/orb.gif b/webpage/static/ads/hor/orb.gif deleted file mode 100755 index d6cdfc2..0000000 Binary files a/webpage/static/ads/hor/orb.gif and /dev/null differ diff --git a/webpage/static/ads/hor/ram.png b/webpage/static/ads/hor/ram.png deleted file mode 100755 index 9a376a0..0000000 Binary files a/webpage/static/ads/hor/ram.png and /dev/null differ diff --git a/webpage/static/background/about.png b/webpage/static/background/about.png deleted file mode 100755 index d54e168..0000000 Binary files a/webpage/static/background/about.png and /dev/null differ diff --git a/webpage/static/background/index.png b/webpage/static/background/index.png deleted file mode 100755 index 64eab64..0000000 Binary files a/webpage/static/background/index.png and /dev/null differ diff --git a/webpage/static/icon.png b/webpage/static/icon.png deleted file mode 100755 index aa08def..0000000 Binary files a/webpage/static/icon.png and /dev/null differ diff --git a/webpage/static/icons/8831/dendy.cat.png b/webpage/static/icons/8831/dendy.cat.png deleted file mode 100755 index 0f50a49..0000000 Binary files a/webpage/static/icons/8831/dendy.cat.png and /dev/null differ diff --git a/webpage/static/icons/8831/moth.monster.png b/webpage/static/icons/8831/moth.monster.png deleted file mode 100755 index 2c3ab9e..0000000 Binary files a/webpage/static/icons/8831/moth.monster.png and /dev/null differ diff --git a/webpage/static/icons/8831/remiiiiii.online.png b/webpage/static/icons/8831/remiiiiii.online.png deleted file mode 100644 index 49f7969..0000000 Binary files a/webpage/static/icons/8831/remiiiiii.online.png and /dev/null differ diff --git a/webpage/static/icons/banner/discord.gif b/webpage/static/icons/banner/discord.gif deleted file mode 100755 index 4ee8d64..0000000 Binary files a/webpage/static/icons/banner/discord.gif and /dev/null differ diff --git a/webpage/static/icons/banner/gay.png b/webpage/static/icons/banner/gay.png deleted file mode 100755 index a47a015..0000000 Binary files a/webpage/static/icons/banner/gay.png and /dev/null differ diff --git a/webpage/static/icons/banner/html.gif b/webpage/static/icons/banner/html.gif deleted file mode 100755 index dd832a0..0000000 Binary files a/webpage/static/icons/banner/html.gif and /dev/null differ diff --git a/webpage/static/icons/banner/ie.gif b/webpage/static/icons/banner/ie.gif deleted file mode 100755 index 0a2a038..0000000 Binary files a/webpage/static/icons/banner/ie.gif and /dev/null differ diff --git a/webpage/static/icons/banner/linux.png b/webpage/static/icons/banner/linux.png deleted file mode 100755 index c316e4d..0000000 Binary files a/webpage/static/icons/banner/linux.png and /dev/null differ diff --git a/webpage/static/icons/banner/nft.gif b/webpage/static/icons/banner/nft.gif deleted file mode 100644 index 1a4caf0..0000000 Binary files a/webpage/static/icons/banner/nft.gif and /dev/null differ diff --git a/webpage/static/icons/banner/showbroslove.jpg b/webpage/static/icons/banner/showbroslove.jpg deleted file mode 100755 index c7ac476..0000000 Binary files a/webpage/static/icons/banner/showbroslove.jpg and /dev/null differ diff --git a/webpage/static/icons/banner/thiswebsiteisgay.gif b/webpage/static/icons/banner/thiswebsiteisgay.gif deleted file mode 100644 index 4546ff3..0000000 Binary files a/webpage/static/icons/banner/thiswebsiteisgay.gif and /dev/null differ diff --git a/webpage/static/icons/banner/transgender.png b/webpage/static/icons/banner/transgender.png deleted file mode 100644 index b27d303..0000000 Binary files a/webpage/static/icons/banner/transgender.png and /dev/null differ diff --git a/webpage/static/icons/banner/www.gif b/webpage/static/icons/banner/www.gif deleted file mode 100755 index 48fbd13..0000000 Binary files a/webpage/static/icons/banner/www.gif and /dev/null differ diff --git a/webpage/static/icons/banner/xenia.gif b/webpage/static/icons/banner/xenia.gif deleted file mode 100644 index aa37d52..0000000 Binary files a/webpage/static/icons/banner/xenia.gif and /dev/null differ diff --git a/webpage/static/icons/bizcochito.gif b/webpage/static/icons/bizcochito.gif deleted file mode 100755 index e9a168a..0000000 Binary files a/webpage/static/icons/bizcochito.gif and /dev/null differ diff --git a/webpage/static/icons/coconut.png b/webpage/static/icons/coconut.png deleted file mode 100755 index 3a37c65..0000000 Binary files a/webpage/static/icons/coconut.png and /dev/null differ diff --git a/webpage/static/icons/fediring.png b/webpage/static/icons/fediring.png deleted file mode 100755 index 72cca9e..0000000 Binary files a/webpage/static/icons/fediring.png and /dev/null differ diff --git a/webpage/static/icons/gif/I‘m-not-a-robot.gif b/webpage/static/icons/gif/I‘m-not-a-robot.gif deleted file mode 100755 index c0af564..0000000 Binary files a/webpage/static/icons/gif/I‘m-not-a-robot.gif and /dev/null differ diff --git a/webpage/static/icons/gif/banana.gif b/webpage/static/icons/gif/banana.gif deleted file mode 100755 index 981da58..0000000 Binary files a/webpage/static/icons/gif/banana.gif and /dev/null differ diff --git a/webpage/static/icons/gif/blobcat.gif b/webpage/static/icons/gif/blobcat.gif deleted file mode 100755 index bdd9b53..0000000 Binary files a/webpage/static/icons/gif/blobcat.gif and /dev/null differ diff --git a/webpage/static/icons/gif/cassette.gif b/webpage/static/icons/gif/cassette.gif deleted file mode 100755 index 8fe6c9b..0000000 Binary files a/webpage/static/icons/gif/cassette.gif and /dev/null differ diff --git a/webpage/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg b/webpage/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg deleted file mode 100644 index 38f4088..0000000 Binary files a/webpage/static/icons/gif/deviantart_321712895_Catgirls Stamp-web.jpg and /dev/null differ diff --git a/webpage/static/icons/gif/drancingmoe.gif b/webpage/static/icons/gif/drancingmoe.gif deleted file mode 100755 index bd00129..0000000 Binary files a/webpage/static/icons/gif/drancingmoe.gif and /dev/null differ diff --git a/webpage/static/icons/gif/enby.gif b/webpage/static/icons/gif/enby.gif deleted file mode 100755 index 886017f..0000000 Binary files a/webpage/static/icons/gif/enby.gif and /dev/null differ diff --git a/webpage/static/icons/gif/hatkid.gif b/webpage/static/icons/gif/hatkid.gif deleted file mode 100755 index b85c88d..0000000 Binary files a/webpage/static/icons/gif/hatkid.gif and /dev/null differ diff --git a/webpage/static/icons/gif/milk.png b/webpage/static/icons/gif/milk.png deleted file mode 100755 index 3841e34..0000000 Binary files a/webpage/static/icons/gif/milk.png and /dev/null differ diff --git a/webpage/static/icons/gif/parrot.gif b/webpage/static/icons/gif/parrot.gif deleted file mode 100755 index bf5e4b8..0000000 Binary files a/webpage/static/icons/gif/parrot.gif and /dev/null differ diff --git a/webpage/static/icons/gif/pumpum.gif b/webpage/static/icons/gif/pumpum.gif deleted file mode 100755 index c46a190..0000000 Binary files a/webpage/static/icons/gif/pumpum.gif and /dev/null differ diff --git a/webpage/static/icons/gif/yippee-flip.gif b/webpage/static/icons/gif/yippee-flip.gif deleted file mode 100644 index 1f76477..0000000 Binary files a/webpage/static/icons/gif/yippee-flip.gif and /dev/null differ diff --git a/webpage/static/icons/last.png b/webpage/static/icons/last.png deleted file mode 100755 index 590c3da..0000000 Binary files a/webpage/static/icons/last.png and /dev/null differ diff --git a/webpage/static/icons/next.png b/webpage/static/icons/next.png deleted file mode 100755 index d61590b..0000000 Binary files a/webpage/static/icons/next.png and /dev/null differ diff --git a/webpage/static/stats/index.cgi b/webpage/static/stats/index.cgi deleted file mode 100755 index 8dda320..0000000 --- a/webpage/static/stats/index.cgi +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -echo "Content-Type: text/plain" -echo -echo "This is \"`hostname`\" server running `uname -srm` on `lscpu -J | jq -r '.lscpu[2].data'` * `lscpu -J | jq -r '.lscpu[7].data'` `lscpu -J | jq -r '.lscpu[9].data'` CPU @ `lscpu -J | jq -r '.lscpu[11].data'` MHz." -echo -uptime -echo "System stats" -echo "==================================" -echo "Processes:\t RUN: `ps -r | wc -l`, TOTAL: `ps -A | wc -l`" -head -n 2 /proc/meminfo -echo -echo "Generated on `date -R`." -echo -echo "https://yari.fai.st" diff --git a/webpage/static/style.css b/webpage/static/style.css deleted file mode 100755 index b967e5e..0000000 --- a/webpage/static/style.css +++ /dev/null @@ -1,91 +0,0 @@ -@media screen and (min-aspect-ratio: 2) { - .centercubeplease { - width: 50%; - } -} - -body { - background-color: #ffffff; - color: #000000; - font-size: 16px; -} - -#index { - background-image: url("background/index.png"); - background-size: cover; - background-attachment: fixed; -} - -#index .centercubeplease { - background-color: #5f8e76; - border: 3px solid #527c46; - margin: auto; - padding: 10px; -} - -#index a { - color: #f0f0f0; -} - -.centercubeplease img { - max-width: 95%; -} - -#about { - background-image: url("background/about.png"); - background-size: cover; - background-attachment: fixed; -} - -#about a { - color: #fff0f0; -} - -#about .centercubeplease { - color: #fff0f0; - background-color: #990033; - border: 3px solid #cc0066; - margin: auto; - padding: 10px; -} - -h1 { - text-align: center; -} - -ul { - text-align: left; -} - -h1, -h2, -h3 { - margin-bottom: 0; -} - -.centerade { - width: 50%; - margin: auto; - margin-top: 10px; - text-align: center; -} - -.centerade img { - width: 99%; -} - -.centercubeplease a { - color: #449494; -} - -.disclosure-closed { - list-style: disclosure-closed; -} - -.error { - color: red; -} - -table { - margin: auto; -} diff --git a/webpage/templates/about.html b/webpage/templates/about.html deleted file mode 100755 index 6b4b78d..0000000 --- a/webpage/templates/about.html +++ /dev/null @@ -1,114 +0,0 @@ - - - {% include "head.html" %} - -
-

- So hey, you want to know more about me. Here u have! -

-
-

- A thing i need to say is that this page one day could be deprecated bc - of me just not remembering to change anything. -

-

- Index -

- -

- How to adress me -

-

- So first of all if you are not gonna adress me directly or you don't - know me yet just call me Bizcochito! -
-

-

- You can call me: -

- -

- Also if you are gonna "pronoun" me, please think before if u can just - use the name "Yari" that is literaly like "They" long. -

-

- If you insist in using pronouns you can use this - (in order of preference) : -

- -

- Who i am -

-

- Existential question i have yet not answered -

-

- What i am -

-

- A silly colection of bytes -

-

- Where to contact me -

-
- {# djlint: ignore D018 #} - XMPP - - - Personal Mail - - - Pleroma - -
-
- IDK return back -
- - diff --git a/webpage/templates/fediring.html b/webpage/templates/fediring.html deleted file mode 100644 index f4faac1..0000000 --- a/webpage/templates/fediring.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load static %} -
-
- - LAST - - - FEDIRING - - - NEXT - -
-

- Fediring links -

-
diff --git a/webpage/templates/head.html b/webpage/templates/head.html deleted file mode 100644 index 93a44ee..0000000 --- a/webpage/templates/head.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load static %} - - - - {{ title }} - diff --git a/webpage/templates/index.html b/webpage/templates/index.html deleted file mode 100755 index 20abbcf..0000000 --- a/webpage/templates/index.html +++ /dev/null @@ -1,86 +0,0 @@ -{% load static %} - - - {% include "head.html" %} - - {% include "fediring.html" %} -
-
-

- I'm bizcochito, hey! -

-

- -Pages: -

- -

- -Banners -

-
- {% for gif in banger_list %} - {{ gif.url }} - {% endfor %} -
-

- -Funni gifs -

-
- {% for gif in gif_list %} - {{ gif.url }} - {% endfor %} -
-

- -Frens: -

-
- {% for banner in banner_list %} - - {{ banner.url }} - - {% endfor %} -
-

- -Another banner that is unused: -

-
- - cronut.cafe/~bizcochito - -
-

- -NEW BANNER: -

-
- - yari.fai.st - -
-
-
- - ad - -
-
- - - diff --git a/webpage/templates/signbook.html b/webpage/templates/signbook.html deleted file mode 100755 index 6dd9d7d..0000000 --- a/webpage/templates/signbook.html +++ /dev/null @@ -1,58 +0,0 @@ - - - {% include "head.html" %} - -
-

- Cool signers: -

- {% if signer_list %} -

-

-

- {% else %} -

- No one signed here :( -

- {% endif %} -
-
-

- Be part of this cuties! -

-

-

-

- {% csrf_token %} - {% if error_message %} -

- {{ error_message }} -

- {% endif %} - - {{ form.as_table }} -
- -
-

-

-
- - diff --git a/webpage/views.py b/webpage/views.py deleted file mode 100755 index b845611..0000000 --- a/webpage/views.py +++ /dev/null @@ -1,102 +0,0 @@ -import os -import random - -from django.forms import ValidationError -from django.http import HttpResponseNotFound -from django.shortcuts import render - -from .models import Booksigner -from .forms import SignbookForm - -def image_dict_from_name_list(name_list: list[str]): - dict_list = [] - for name in name_list: - url = name.split(".") - url.pop() - url = ".".join(url) - dict_list.append({ - "name": name, - "url": url - } - ) - return dict_list - -def index(request): - # Get random ad from ad dir - ad_list = os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/ads/hor/")) - ad = random.choice(ad_list) - # Get list of 81x33 icons - banner_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/88x31/"))) - # Get list of funni gifs - gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/gif/"))) - # Get list of banners - banger_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/banner/"))) - if not ad or not banner_list or not gif_list: - return HttpResponseNotFound() - else: - context = { - "title": "THE INDEX", - "ad": ad, - "banner_list": banner_list, - "gif_list": gif_list, - "banger_list": banger_list, - } - return render(request,"index.html", context) - -def about(request): - return render(request, "about.html", {"title": "About Me"}) - -def signbook(request): - signer_list = Booksigner.objects.all() - if request.method == 'POST': - form = SignbookForm(request.POST) - try: - if form.is_valid() and form.validate_capcha(): - newsigner = {} - newsigner["name"] = form.cleaned_data['name'] - newsigner["website"] = form.cleaned_data['website'] - newsigner["email"] = form.cleaned_data['email'] - newsigner["comment"] = form.cleaned_data['comment'] - - signer_list = Booksigner.objects.all() - if newsigner: - Booksigner.objects.create( - name=newsigner["name"], - email=newsigner["email"], - website=newsigner["website"], - comment=newsigner["comment"], - ) - context = { - "title": "THE GUESTBOOK", - "signer_list": signer_list - } - return render(request, "signbook.html", context) - context = { - "title": "THE GUESTBOOK", - "signer_list": signer_list, - "error_message": "You didn't input a required input.", - } - return render( - request, - "signbook.html", - context - ) - except ValidationError as e: - print("Error: ", e) - context = { - "title": "THE GUESTBOOK", - "signer_list": signer_list, - "error_message": "Invalid captcha.", - } - return render( - request, - "signbook.html", - context - ) - else: - context = { - "title": "THE GUESTBOOK", - "signer_list": signer_list, - "form": SignbookForm() - } - return render(request, "signbook.html", context)