Compare commits

...

16 Commits

84 changed files with 751 additions and 561 deletions

15
.gitignore vendored
View File

@ -1,3 +1,16 @@
videos/
ftp/
*.csv
### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
media
migrations/
### Testing ###
.coverage
htmlcov/

View File

@ -1,66 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Bizcochito</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="about">
<div class="centercubeplease">
<h1>So hey, you want to know more about me. Here u have!</h1>
<div class="centercubeplease2">
<p>A thing i need to say is that this page one day could be deprecated bc of me just not remembering to change anything.</p>
<h2>Index</h2>
<ul>
<li><a href="#how">How to adress me</a></li>
<li><a href="#who">Who i am</a></li>
<li><a href="#what">What i am</a></li>
<li><a href="#where">Where to contact me</a></li>
</ul>
<h2 id="how">How to adress me</h2>
<p>
So first of all if you are not gonna adress me directly or you don't know me yet just call me Bizcochito!<br/>
</p>
<h3>You can call me:</h3>
<ul>
<li>Yari</li>
<li>Alicia</li>
<li>Maria</li>
<li>Bizcochito</li>
</ul>
<p>Also if you are gonna "pronoun" me, please think before if u can just use the name "Yari" that is literaly like "They" long.</p>
<h3>If you insist in using pronouns you can use this<strong>(in order of preference)</strong>:</h3>
<ul>
<li><strong>My names</strong></li>
<li>It</li>
<li>They</li>
<li>*neoponouns*</li>
<li>She</li>
</ul>
<h2 id="who">Who i am</h2>
<p>
</p>
<h2 id="what">What i am</h2>
<p>
</p>
<h2 id="where">Where to contact me</h2>
<ul class="pointless">
<li><a href="xmpp:bizcochito@fai.st"><img style='border:0px;height:36px;' src='https://xmpp.org/images/logos/xmpp-logo.svg' alt='XMPP' /></a></li>
<li><a href="mailto:bizcochito@anartist.org"><img style='border:0px;height:36px;' src='https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png' alt='Personal Mail'/></a><a href="pgpkey.txt">PGP key</a></li>
<li><a href="https://sweet.succubi.services/MeDueleLaTeta"><img style='border:0px;height:36px;' src='https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg' alt='Pleroma' /></a></li>
<li><a href="/">IDK return back</a></li>
</ul>
</div>
</div>
</body>
</html>

28
ads.php
View File

@ -1,28 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE YELLOW PAGES</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<div class="centercubepleaseind">
<h1>Silly fake ads:</h1>
<p style="text-align: left;">
<?php
$adslist = fopen("ads/ads", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($adslist)) {
$adarray[] = fgets($adslist);
}
fclose($adslist);
foreach($adarray as $adunit){
echo $adunit;
echo "<br>";
}
?>
</p>
</div>
</body>
</html>

View File

@ -1,77 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE GUESTBOOK</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<?php
// define variables and set to empty values
$name = $email = $comment = $website = $nameErr = $hosting = $capchaErr = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ($_POST["capcha"] !== "I love me") {
$capchaErr = "You stupid fucking dingus";}
else{
if (empty($_POST["name"])) {
$nameErr = "Name is required";
} else {
$name = "\"".test_input($_POST["name"])."\"";
$email = "\"".test_input($_POST["email"])."\"";
$website = "\"".test_input($_POST["website"])."\"";
$comment = "\"".test_input($_POST["comment"])."\"";
if(strpos($_SERVER["HTTP_HOST"], ".onion")){ $hosting = "tor!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".i2p")){ $hosting = "i2p!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".fai")){ $hosting = "fai!";}
else{$hosting = "???!";}
$myfile = fopen("signs.csv", "a") or die("Unable to open file!");
$txt = $name.",".$website.",".$email.",".$comment.",".date("Y-m-d").",".$hosting."\n";
fwrite($myfile, $txt);
fclose($myfile);
}
}
}
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
<div class="centercubepleaseind">
<h1>Cool signers:</h1>
<p style="text-align: left;">
<?php //CSV FRIEND READ
$csv = 'signs.csv';
$signers = [];
$f = fopen($csv, 'r');
if ($f === false) { die('Cannot open the file ' . $csv); }
// read each line in CSV file at a time
while (($row = fgetcsv($f)) !== false) { $signers[] = $row; }
fclose($f);
foreach($signers as $datasing){
echo $datasing[5]."* At <span style=\"font-weight: bold;\">".$datasing[4]."</span> <a href=\"".$datasing[1]."\">".$datasing[0]."</a> said: <span style=\"font-weight: bold;\">".$datasing[3]."</span>.";
if($datasing[2]){echo " Pester on: <a href=\"mailto:".$datasing[2]."\">".$datasing[2]."</a>";}
echo "<br>";
} ?>
</p>
</div>
<div class="centerade">
<h2>Be part of this cool babes!</h2>
<p>
<form style="text-align: center;" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Name: <input type="text" name="name"><span style="color: red;" class="error">* <?php echo $nameErr;?></span>
Website: <input type="text" name="website">
E-mail: <input type="text" name="email"><br>
Comment: <textarea name="comment" rows="1" cols="100"></textarea><br>
Capcha(Say me that you love "me"): <input type="text" name="capcha"><span style="color: red;" class="error">* <?php echo $capchaErr;?></span><br>
<input type="submit">
</form>
</p>
</div>
</body>
</html>

View File

@ -1,59 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE INDEX</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<div class="centerade">
<a href="https://fediring.net/previous?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/last.png" alt="LAST"></a>
<a href="https://fediring.net/"><img style="height: 30px; width: auto;" src="icons/fediring.png" alt="FEDIRING"></a>
<a href="https://fediring.net/next?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/next.png" alt="NEXT"></a>
<br>Fediring links
</div>
<div class="centercubepleaseind">
<h1>I'm bizcochito, hey!</h1>
<a href="http://v25cldsbgmmllb7emzrefrh57ugu53z534lcs53coi3tlhiin6va6kad.onion">Onionsite mirror</a><br/>
<a href="http://nlohuquv5gaqnhfdeano77ftswnfg674jet5qeualztoxtmsceka.b32.i2p">Eepsite mirror</a>
<br/><br/>
-Pages:<br/>
<a href="about.html">-About me</a><br/>
<a href="funni.html">-Gifs</a><br/>
<a href="kisses.html">-Kisses</a><br/>
<br/>
-Extra stuf<br/>
<a href="sixpaired">-Sixpaired</a><br/>
<a href="book.php">-Signbook</a><br/>
<br/>
-Funni gifs<br/>
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/explorer.html"><img src="gif/ie.gif" alt="Get microsoft internet explorer"></a>
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/discord.html"><img src="gif/discord.gif" alt="Discord? No way"></a>
<a href="https://www.debian.org/intro/why_debian"><img src="gif/linux.png" alt="Powered by linux"></a>
<a href="fedivers.txt"><img src="gif/showbroslove.jpg" alt="Give your bros some love"></a>
<a href=""><img src="gif/gay.png" alt="Powered by gay"></a>
<a href=""><img src="gif/transgender.png" alt="Powered by trans"></a>
<a href="https://www.w3.org/Proposal.html"><img src="gif/www.gif" alt="world wide web connecting people since 1991"></a><br/>
<br/>
-Frens(onions):<br/>
<a href="http://jtxkyle56vrelrjsrun5kvymkeak5oxo773agx6oj6cdx4gu7j2bgvqd.onion"><img style="height: 30px;" src="icons/dendy.png" alt="dendy.cat"></a>
<a href="http://lainwir3s4y5r7mqm3kurzpljyf77vty2hrrfkps6wm4nnnqzest4lqd.onion"><img style="height: 30px;" src="icons/qorg11.gif" alt="qorg11.net"></a>
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~sfr"><img style="height: 31px;" src="icons/sfr.gif" alt="cronut.cafe"></a>
<a href="http://moth7kzeri7kdnhla5cydl7anhskmocjy4vrcm4rmzte7uvm64ug54id.onion/"><img style="height: 30px;" src="icons/moth.png" alt="moth.monster"></a>
<br>
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~lustlion"><img style="height: 30px;" src="icons/ari.gif" alt="lustlion.cronut.cafe"></a>
</div>
<div class="centerade">
<?php
$adslist = fopen("ads/ads", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($adslist)) {
$adarray[] = fgets($adslist);
}
fclose($adslist);
echo $adarray[array_rand($adarray, 1)]
?>
</div>
</body>
</html>

View File

@ -1,12 +0,0 @@
Index, Tittle, Comment, Link
1,"Creation", "The webpage was created, with index and about", "about.html"
2,"Sixpaired added", "The lustlion webcomic is linked to this page", "sixpaired/pages/prelude/page1.html"
3,"Changed the index", "Added friends and funny gifs", "index.php"
4,"Moved some gifs", "Some gifs were too bothering for the index so i moved them to their own page", "funni.html"
5,"Added php to index", "Funky fake ads now appear on the index","index.php"
6,"Moved ascii kiss", "A kiss ascii of ari and me is now on kisses", "kisses.html
7,"Created online checker", "A page to check if others are online is now on this website!", "online.php?wikipedia.org"
8,"A guestbook!", "My webpage now has a rudimentaru php guestbook", "book.php"
9,"Added fedivers accounts", "A txt with my fedi accounts is not on this webpage", "fedivers.txt"
10,"Added a cgi to check the stats of my pi", "I copied https://daemon.randomchars.org/", "stats/"
11,"FUCKJS","I CANT MAKE A BUTTON IN JS SO I WONT LET PEOPLE USE MY PAGE WITHOUT JS","index.html"

View File

@ -1,9 +0,0 @@
Fedi account links:
OLD MISSKEY: https://mk.nixnet.social/@MeDueleLaTeta
GAYING ACC: https://snug.moe/@MeDueleLaTeta
FAB, now unused: https://fedi.absturztau.be/MeDueleLaTeta
FAIST: https://awoo.fai.st/MeDueleLaTeta
UNUSED: https://sunisky.club/@MeDueleLaTeta
BOTCOCHITO: https://fedi.fai.st/@MeDueleLaTeta
SuccS: https://succubi.services/@MeDueleLaTeta

View File

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE INDEX</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<div class="centercubepleaseind" style="text-align: center">
Funni gifs<br/>
<a href=""><img style="height: 50px;" src="gif/banana.gif" alt="Dancing banana"></a>
<a href="videos/hatkid.mp4"><img style="height: 50px;" src="gif/hatkid.gif" alt="Hat kid"></a>
<a href=""><img style="height: 50px;" src="gif/blobcat.gif" alt="Dancing blobcat"></a>
<a href=""><img style="height: 50px;" src="gif/cassette.gif" alt="Cute Cassette"></a>
<a href=""><img style="height: 50px;" src="gif/parrot.gif" alt="Dancing parrot"></a>
<a href=""><img style="height: 50px;" src="gif/pumpum.gif" alt="Pumpum being patted"></a>
<a href=""><img style="height: 50px;" src="gif/xd.gif" alt="XD"></a>
<a href="videos/gotyewokeuplikethisaliens-aq2w_Zm2K3c.mp4"><img src="gif/Im-not-a-robot.gif" alt="Im, not a robot"></a>
<a href=""><img src="gif/milk.png" alt="Milk gal"></a>
<br>
<a href=""><img src="gif/enby.gif" alt="Enby to death"></a>
</div>
</body>
</html>

View File

@ -1,15 +0,0 @@
banana.gif
blobcat.gif
cassette.gif
discord.gif
drancinmoe.gif
enby.gif
gifs.txt
hatkid.gif
ie.gif
Im-not-a-robot.gif
linux.png
milk.png
parrot.gif
pumpum.gif
xd.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

View File

@ -1,82 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE INDEX</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<div class="centerade">
<a href="https://fediring.net/previous?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/last.png" alt="LAST"></a>
<a href="https://fediring.net/"><img style="height: 30px; width: auto;" src="icons/fediring.png" alt="FEDIRING"></a>
<a href="https://fediring.net/next?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/next.png" alt="NEXT"></a>
<br>Fediring links
</div>
<script>
document.write("<div class=\"centercubepleaseind\">To see the website please disable JS<br><br><br><a href=\"cannotnojs.php\">I cant do that, daddy google does not LET me :(</a></div>")
</script>
<noscript>
<div class="centercubepleaseind">
<h1>I'm bizcochito, hey!</h1>
<a href="http://v25cldsbgmmllb7emzrefrh57ugu53z534lcs53coi3tlhiin6va6kad.onion">Onionsite mirror</a><br/>
<a href="http://nlohuquv5gaqnhfdeano77ftswnfg674jet5qeualztoxtmsceka.b32.i2p">Eepsite mirror</a>
<br/><br/>
-Pages:<br/>
<a href="about.html">-About me</a><br/>
<a href="funni.html">-Gifs</a><br/>
<a href="kisses.html">-Kisses</a><br/>
<br/>
-Extra stuf<br/>
<a href="sixpaired">-Sixpaired</a><br/>
<a href="book.php">-Signbook</a><br/>
<br/>
-Funni gifs<br/>
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/explorer.html"><img src="gif/ie.gif" alt="Get microsoft internet explorer"></a>
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/discord.html"><img src="gif/discord.gif" alt="Discord? No way"></a>
<a href="https://www.debian.org/intro/why_debian"><img src="gif/linux.png" alt="Powered by linux"></a>
<a href="fedivers.txt"><img src="gif/showbroslove.jpg" alt="Give your bros some love"></a>
<a href=""><img src="gif/gay.png" alt="Powered by gay"></a>
<a href=""><img src="gif/transgender.png" alt="Powered by trans"></a>
<a href="https://www.w3.org/Proposal.html"><img src="gif/www.gif" alt="world wide web connecting people since 1991"></a>
<a href="https://www.w3schools.com/html/html_intro.asp"><img src="gif/html.gif" alt="HTML" width="88" height="31"></a>
<br/>
<br/>
-Frens(onions):<br/>
<a href="http://jtxkyle56vrelrjsrun5kvymkeak5oxo773agx6oj6cdx4gu7j2bgvqd.onion"><img style="height: 30px;" src="icons/dendy.png" alt="dendy.cat"></a>
<a href="http://lainwir3s4y5r7mqm3kurzpljyf77vty2hrrfkps6wm4nnnqzest4lqd.onion"><img style="height: 30px;" src="icons/qorg11.gif" alt="qorg11.net"></a>
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~sfr"><img style="height: 31px;" src="icons/sfr.gif" alt="cronut.cafe"></a>
<a href="http://moth7kzeri7kdnhla5cydl7anhskmocjy4vrcm4rmzte7uvm64ug54id.onion/"><img style="height: 30px;" src="icons/moth.png" alt="moth.monster"></a>
<br>
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~lustlion"><img style="height: 30px;" src="icons/ari.gif" alt="lustlion.cronut.cafe"></a>
<br/>
-Frens(clearnet):<br/>
<a href="http://dendy.cat"><img style="height: 30px;" src="icons/dendy.png" alt="dendy.cat"></a>
<a href="http://qorg11.net"><img style="height: 30px;" src="icons/qorg11.gif" alt="qorg11.net"></a>
<a href="http://cronut.cafe/~sfr"><img style="height: 31px;" src="icons/sfr.gif" alt="cronut.cafe"></a>
<a href="http://moth.monster/"><img style="height: 30px;" src="icons/moth.png" alt="moth.monster"></a>
<a href="https://remiiiiii.online"><img src="icons/remi88x31.png" alt="remiiiiii.online"></a>
<br>
<a href="http://cronut.cafe/~lustlion"><img style="height: 30px;" src="icons/ari.gif" alt="lustlion.cronut.cafe"></a>
<br/>
<br/>
-Me in other places:<br/>
<a href="http://cronut.cafe/~bizcochito"><img src="icons/coconut.png" alt="cronut.cafe/~bizcochito"></a>
<br/><br/>
-NEW BANNER:<br/>
<a href="yari.fai.st"><img src="icons/bizcochito.gif" alt="yari.fai.st"></a>
</div>
<div class="centerade">
<?php
$adslist = fopen("ads/ads", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($adslist)) {
$adarray[] = fgets($adslist);
}
fclose($adslist);
echo $adarray[array_rand($adarray, 1)]
?>
</div>
</noscript>
</body>
</html>

View File

@ -1,102 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>THE INDEX</title>
<link href="style.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body id="index">
<div class="centercubepleaseind">
<h1>KISSING</h1>
<br/><br/>Me and Ariel kissing<br/><br/>
<pre style="font-size: 9px; text-align: center;">
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WhhhhhhhhhhhhhW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WhhhhhhhhhhhhhW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WhhhhhhhhhhhhhW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Whhhhhhhhhhhhh8RRRRW@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BHhhhhhhhhhhhhhhhhhhMddddW@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@WWWWWW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Nhhhhhhhhhhhhhhhhhhhhhhhhq8@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@Wh))))))}RW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@NhhhhhhhhhhhhhhhhhhhhhhhhhN@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@Z)))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BHhhhhhhhhhhhhhhhhhhhhhhhhN@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@Z)))))))))uqW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WhhhhhhhhhhhhhhhhhhhhhhhhN@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@Z)))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WdhhhhhhhhhhhhhhdWdhhhhdW@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@Z)))))))))))zK@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BhhhhhhhhhhhhhhMdBWWWW@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@Ro))))))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WdhhhhhhhhhhhhhhhRW@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@B))))))))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@hhhhhhhhhhhhhhhhhW@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@WffffffffR@@B))))))))))))))))zfW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@hhhhhhhhhhhhhhhhh8W@@@@@@@@@@@@@@@@@@@@@@@
@@@@@qo))))))))zfWB))))))))))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WBhhhhhhhhhhhhhhhhN@@Wffffffffffffffffffff
@@@@@e)))))))))))BB))))))))))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@yeeee@Whhhhhhhhhhhhhhhhyee}********************
@@@@@e)))))))))))||))))))))))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@q|)****|zhhhhhhhhhhhKyyyv?***********************
@@@@@e)))))))))))))))))))))))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Z*******xoyhhhhhhhhhov?**************************
@@@@@e)))))))))))))))))))))))))))))))B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Wqe*********JhhhhhhhhhhhJ**************************
@@@@@e)))))))))))))))))))))))))))))uqW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Raaw***********|zyhhhhhhhhhJ**************************
@@@@@e)))))))))))))))))))))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@We|****************|zhhhhhhov?**************************
@@@@@e)))))))))))))))))))))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@W}**********************************************************
@@@@@e))))))))))))))*r)))))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WRRo************************************************************
@@@Rf|))))))))))))))!:!r)))))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Wqe***************************************************************
@WJ*=r))))))))))))))!,,:^*)))))))))Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Rffw*****************************************************************
?*===r))))))))))))))!,,,=>~~^))))}RW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@He|********************************************************************
,,,^*))))))))))))))*^,,,,,=,=\!*NW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Wd|?***********************)?}|)******************************************
,,,!))))))))))))))r=,,,,,,,,,,=,d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@z************************)?}JJJJ???)**************************************
=\~!))))))))))))))r=,,,,,,,,,,,=aR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@J************************|JJJJJJJJJv?)************************************
,>)))))))))))))))r^==,,,,,,,,,,,=!fR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@gq|************************|JJJJJJJJJJJv?***********************************
!r)))))))))))))))>=,,,,,,,,,,,,,,,=*JJJJJJJJJJJJf@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@K**************************od88888JJJJJJzvvv)*******************************
)))))))))))))))))>,,,,,,,,,,,,,,,,,,=,,,,,,,,,,=~?h@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@K************************vRW@@@@@@gdJJJJJJv?)*******************************
)))))))))))))))!==,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,==d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B**************************J@@@@@@@@gdJJJJzcx*********************************
)))))))))))))))!,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,==Jq@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B**************************J@@@@@dddJJJJJJc***********************************
)))))))))))))))!,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=,,)@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B**************************J@@@dKJJJJJJJJv?***********************************
)))))))))))))r^>,,,,,,,,,,,,,,~!!!!!!!^==,,,,,,,,,,,,)@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@qw**************************J@gqoJJJJJJJJJ?************************************
)))))))))))))!,,,,,,,,,,,,,,,,!))))))))r~=,,,,,,,,,,=)@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@J***************************|yoJJJJJJJJJJJ?************************************
))))))))))))*^==,,,,,,,,,,,,,,!))))))))))*,,,,,,,===hW@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@W}************************))vzJJJJJJJJJJJJJ?************************************
rrrrrrrrrrr!====,,,,,,,,,,,,,,!)))))))))))~>=,,,,,,,d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@K**************************zyyaJJJJJJJJJJJJJ?************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=!))))))))))))r,,,,,,,,d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Wqe************************xaR@@WqqqqKJJJJJJJJ?************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,=,\!r))))))))))))r,,,,,,,,d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B************************|qd@@@@@@@@@@888JJJJJv|***********************************
,,,,,,,,,,,,,,,,,,,,,,,,,,:rr))))))))))))))r,,,,,,,,d@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B***********************hg@@@@@@@@@@@@@@@gggggac***********************************
,,,,,,,,,,,,,,,,,,,,,,,,,r****)))))))))))))r,,,,,,,,,*W@@@@@@@@@@@@@@@@@@@@@@@@@@@@@***********************))}JJJJqWWWW@@@@@@@@@@@@@g|?*********************************
,,,,,,,,,,,,,,,,,,,,,,,\>r*******))))))))))r,,,,,,,,,,,o@@@@@@@@@@@@@@@@@@@@@@@@@@@@***********************|JJJJJJJJJJJhggggW@@@@@@@@@He?*******************************
,,,,,,,,,,,,,,,,,,,,,,,^***********))))))))*^:,,,,,,,,,?fR@@@@@@@@@@@@@@@@@@@@@@@@@@fw*********************|JJJJJJJJJJJJJJJJyd888W@@@@@@z*******************************
,,,,,,,,,,,,,,,,,,,,,,,^***********))))))))))r!:,,,,,,,=,o@@@@@@@@@@@@@@@@@@@@@@@@@@@B*******************)v}JJJJJJJJJJJJJJJJJJJJJaqqqqqq|*******************************
,,,,,,,,,,,,,,,,,,,,,:!r*********))))))))))))))>=,,,,,,==)uW@@@@@@@@@@@@@@@@@@@@@@@@@B*******************?JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ?*******************************
,,,,,,,,,,,,,,,,,,,,,>*****))))))))))))))))))))*r:=,,,,=:!)NW@@@@@@@@@@@@@@@@@@@@@@@@B*******************?JJJJJJJJJJJJJJJJJJJJJJJJJJJJv))*******************************
,,,,,,,,,,,,,,,,,=,=\^*)))))))))))))))))))))))))))!==,,~r*))}RRRRRRRRRRRW@@@@@@@@@@@Rh*******************?JJJJJJJJJJJJJJJJJJJJJJJJJJJJ|*********************************
,,,,,,,,,,,,,,,,=:>>!*))))))))))))))))))))))))))))!~=,,==!))))))))))))))oR@@@@@@@@WR*********************?JJJJJJJJJJJJJJJJJJJJJJJJJJzcx*********************************
,,,,,,,,,,,,,,,,=r))))))))))))))))))))))))))))))))))>,,=,!))))))))))))))))f8@@@@@dw*********************?vJJJJJJJJJJJJJJJJJJJJJJJJJJc***********************************
,,,,,,,,,,,,,,=~!*))))))))))))))))))))))))))))))))))>,,=,!)))))))))))))))))|fR@8KJ|*******************)v}JJJJJJJJJJJJJJJJJJJJJJJJJJv?***********************************
,,,,,,,,,,,,,,,:~*))))))))))))))))))))))))))))))))))>,,=,!)))))))))))))))))))Z@fJJ|******************|}JJJJJJJJJJJJJJJJJJJJJJJJJJv?)************************************
,,,,,,,,,,,,,,,,=r))))))))))))))))))))))))))))))))))>,,==!)))))))))))))))))))vJJJJ|****************)?}JJJJJJJJJJJJJJJJJJJJJJJJJzcx**************************************
,,,,,,,,,,,,,,,,=r))))))))))))))))))))))))))))))))))!~=>^r)))))))))))))))))))vJJJJ|****************|JJJJJJJJJJJJJJJJJJJJJJJJJJJc****************************************
,,,,,,,,,,,,,,,,=r)))))))))))))))))))))))))))))))))))*!r)))))))))))))))))))))vJJJJ|****************|JJJJJJJJJJJJJJJJJJJJJJJJJJJc****************************************
,,,,,,,,,,,,,,,,=r)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))!\|JJ|****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|?****************************************
,,,,,,,,,,,,,,,,=r))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), )JJ|**************xc}JJJJJJJJJJJJJJJJJJJJJJJJJJ******************************************
,,,,,,,,,,,,,,,,=r))))))))))))))))))))))))))))))))))))))))))))))))))))))))))r, )JJ|**************|JJJJJJJJJJJJJJJJJJJJJJJJJJz}******************************************
,,,,,,,,,,,,,,,,=!r))))))))))))))))))))))))))))))))))))))))))))))))))))))))!.` ^*****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,>))))))))))))))))))))))))))))))))))))))))))))))))))))))))r:. ,, ,**************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,>))))))))))))))))))))))))))))))))))))))))))))))))))))))))! )v!r**************|JJJJJJJJJJJJJJJJJJJJJJJJ}|?*******************************************
,,,,,,,,,,,,,,,,,,>))))))))))))))))))))))))))))))))))))))))))))))))))))))))^ )JJ|**************|JJJJJJJJJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,>)))))))))))))))))))))))))))))))))))))))))))))))))))))))r~ ``!xJ|**************|JJJJJJJJJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,=>^)))))))))))))))))))))))))))))))))))))))))))))))))))))))-`.~))?cx**************|JJJJJJJJJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,==^r)))))))))))))))))))))))))))))))))))))))))))))))))))))))--)))))****************|JJJJJJJJJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,\^^^^r))))))))))))))))))))))))))))))))))))))))))))))))))--)))))****************|JJJJJJJJJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,,,,,,:~*))))))))))))))))))))))))))))))))))))))))))))))~.>!)))))****************|JJJJJJJJJJJJJJJJJJJJJJJJzcx*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,=\~**)))))))))))))))))))))))))))))))))))))))))))*r)?vZW}*****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,:r*)))))))))))))))))))))))))))))))))))))))))))zK@@@J*****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=~r))))))))))))))))))))))))))))))))))))))))vuW@@@@J*****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,^r))))))))))))))))))))))))))))))))))|fffR@@@@@@J*****************|JJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,==\^r)))))))))))))))))))))))))))))))f8@@@@@@@@@@J***************vqaJJJJJJJJJJJJJJJJJJJJJJJJJJ|*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=,,,:~~^))))))))))))))))))))))))))oR@@@@@@@@@@Ne?***************J@WghJJJJJJJJJJJJJJJJJJJJJJ}?)*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,==,,,rrr*))))))))))))))))vK@@@@@@@@@@@@@Z*****************J@@@@@@@@BaJJJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=~!*))))))))))))|fR@@@@@@@@@@@@@@Z****************uq@@@@@@@@@WqaJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,~^^r))))))))f8@@@@@@@@@@@@@@@@gq|**************B@@@@@@@@@@@@HJJJJJJJJJJJJJJc*********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,>^*))))uMW@@@@@@@@@@@@@@@@@@@J************eqW@@@@@@@@@@@@HJJJJJJJJJJJJJv?*********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=>)RRRW@@@@@@@@@@@@@@@@@@@@@J************K@@@@@@@@@@@@@@HJJJJJJJJJJJJJ?**********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=*WW@@@@@@@@@@@@@@@@@@@@@@@J**********}W@@@@@@@@@@@@@@@HJJJJJJJJJJJJJ?**********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=,o@@@@@@@@@@@@@@@@@@@@@@@J*********}y@@@@@@@@@@@@@@@@HJJJJJJJJJJJJJ?**********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,o@@@@@@@@@@@@@@@@@@@@@@@J*******}aW@@@@@@@@@@@@@@@@8KJJJJJJJJJJJJJv?*********************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,=,o@@@@@@@@@@@@@@@@@@@@@@@J*******K@@@@@@@@@@@@@@@@@WJJJJJJJJJJJJJJJJzv?*******************************************
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,rHW@@@@@@@@@@@@@@@@@@@@@@@J*****vRW@@@@@@@@@@@@@@@@RaJJJJJJJJJJJJJJJJJJ}c******************************************
</pre>
</div>
</body>
</html>

22
manage.py Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'personalWebpage.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()

View File

16
personalWebpage/asgi.py Normal file
View File

@ -0,0 +1,16 @@
"""
ASGI config for personalWebpage project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'personalWebpage.settings')
application = get_asgi_application()

136
personalWebpage/settings.py Executable file
View File

@ -0,0 +1,136 @@
"""
Django settings for personalWebpage project.
Generated by 'django-admin startproject' using Django 4.2.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-&az@!wa-x@+y6cs#q(0ak6ju+3t$46o#5u)i4dn%t9ftn5@dx%'
""" Prod
with open("/home/django/secret_key.txt") as f:
SECRET_KEY = f.read().strip()
"""
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ["yari.fai.st", "127.0.0.1"]
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
# Application definition
INSTALLED_APPS = [
"webpage.apps.ConfigWebpage",
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'personalWebpage.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'personalWebpage.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/4.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = "static/"
STATIC_ROOT = "static/"
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# CSRF stuff
CSRF_TRUSTED_ORIGINS = [
'http://localhost:8000',
"https://yari.fai.st"
]

8
personalWebpage/urls.py Normal file
View File

@ -0,0 +1,8 @@
from django.contrib import admin
from django.urls import path, include
app_name = "personalWebsite"
urlpatterns = [
path('admin/', admin.site.urls),
path("", include("webpage.urls"))
]

16
personalWebpage/wsgi.py Normal file
View File

@ -0,0 +1,16 @@
"""
WSGI config for personalWebpage project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'personalWebpage.settings')
application = get_wsgi_application()

View File

@ -1,85 +0,0 @@
body{
background-color: #FFFFFF;
color: #000000;
font-size: 16px;
}
#index{
background-image: url("background/index.png");
background-size: cover;
background-attachment: fixed;
}
#index a{
color: #F0F0F0;
}
@media screen and (min-aspect-ratio: 1) {
.centercubepleaseind{
width: 50%;
}
.centercubeplease{
width: 50%;
}
}
.centercubepleaseind{
color: #000000;
background-color: #5F8E76;
border: 3px solid #527C46;
margin: auto;
padding: 10px;
}
.centercubepleaseind img{
max-width: 95%;
}
#about{
background-image: url("background/about.png");
background-size: cover;
background-attachment: fixed;
}
#about a{
color: #FFF0F0;
}
.centercubeplease{
color: #FFF0F0;
background-color: #990033;
border: 3px solid #cc0066;
margin: auto;
padding: 10px;
}
.centerade{
width: 50%;
margin: auto;
margin-top: 10px;
text-align: center;
}
.centerade img{
width: 99%;
#height: 100px;
}
.centercubeplease h1, h2, h3, p{
text-align: center;
}
.centercubeplease a{
color: #449494;
}
.pointless{
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
.hightlightpurple{
background-color:#C00066;
color:#FFFFFF
}

0
webpage/__init__.py Normal file
View File

7
webpage/admin.py Normal file
View File

@ -0,0 +1,7 @@
from django.contrib import admin
from .models import Booksigner
# Register your models here.
admin.site.register(Booksigner)

4
webpage/apps.py Normal file
View File

@ -0,0 +1,4 @@
from django.apps import AppConfig
class ConfigWebpage(AppConfig):
name = 'webpage'

16
webpage/forms.py Normal file
View File

@ -0,0 +1,16 @@
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

15
webpage/models.py Normal file
View File

@ -0,0 +1,15 @@
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)
hosting = models.CharField(max_length=10)
""" def __str__(self) -> str:
return self.name """
""" if(strpos($_SERVER["HTTP_HOST"], ".onion")){ $hosting = "tor!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".i2p")){ $hosting = "i2p!";}
elseif(strpos($_SERVER["HTTP_HOST"], ".fai")){ $hosting = "fai!";}
else{$hosting = "???!";} """

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 125 KiB

View File

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 246 KiB

View File

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 696 KiB

After

Width:  |  Height:  |  Size: 696 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 616 B

View File

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 346 B

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 MiB

After

Width:  |  Height:  |  Size: 7.2 MiB

View File

Before

Width:  |  Height:  |  Size: 438 KiB

After

Width:  |  Height:  |  Size: 438 KiB

View File

Before

Width:  |  Height:  |  Size: 272 KiB

After

Width:  |  Height:  |  Size: 272 KiB

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

91
webpage/static/style.css Executable file
View File

@ -0,0 +1,91 @@
@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;
}

113
webpage/templates/about.html Executable file
View File

@ -0,0 +1,113 @@
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="about">
<div class="centercubeplease">
<h1>
So hey, you want to know more about me. Here u have!
</h1>
<div class="centerade">
<p>
A thing i need to say is that this page one day could be deprecated bc
of me just not remembering to change anything.
</p>
<h2>
Index
</h2>
<ul class="disclosure-closed">
<li>
<a href="#how">How to adress me</a>
</li>
<li>
<a href="#who">Who i am</a>
</li>
<li>
<a href="#what">What i am</a>
</li>
<li>
<a href="#where">Where to contact me</a>
</li>
</ul>
<h2 id="how">
How to adress me
</h2>
<p>
So first of all if you are not gonna adress me directly or you don't
know me yet just call me Bizcochito!
<br />
</p>
<h3>
You can call me:
</h3>
<ul class="disclosure-closed">
<li>
Yari
</li>
<li>
Alicia
</li>
<li>
Maria
</li>
<li>
Bizcochito
</li>
</ul>
<p>
Also if you are gonna "pronoun" me, please think before if u can just
use the name "Yari" that is literaly like "They" long.
</p>
<h3>
If you insist in using pronouns you can use this
<b> (in order of preference) </b> :
</h3>
<ul class="disclosure-closed">
<li>
<b>My names</b>
</li>
<li>
Literally anything but he
</li>
</ul>
<h2 id="who">
Who i am
</h2>
<p>
Existential question i have yet not answered
</p>
<h2 id="what">
What i am
</h2>
<p>
</p>
<h2 id="where">
Where to contact me
</h2>
<div class="centerade">
<a href="xmpp:bizcochito@fai.st">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://xmpp.org/images/logos/xmpp-logo.svg"
alt="XMPP" />
</a>
<a href="mailto:bizcochito@anartist.org">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
alt="Personal Mail" />
</a>
<a href="https://awoo.fai.st/MeDueleLaTeta">
<img style="border: 0px;
height: 36px;
width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
alt="Pleroma" />
</a>
</div>
</div>
<a href="/">IDK return back</a>
</div>
</body>
</html>

View File

@ -0,0 +1,26 @@
{% load static %}
<div class="centerade">
<div>
<a href="https://fediring.net/previous?host=yari.fai.st">
<img style="height: 30px;
width: auto"
src="{% static 'icons/last.png' %}"
alt="LAST" />
</a>
<a href="https://fediring.net/">
<img style="height: 30px;
width: auto"
src="{% static 'icons/fediring.png' %}"
alt="FEDIRING" />
</a>
<a href="https://fediring.net/next?host=yari.fai.st">
<img style="height: 30px;
width: auto"
src="{% static 'icons/next.png' %}"
alt="NEXT" />
</a>
</div>
<p>
Fediring links
</p>
</div>

View File

@ -0,0 +1,6 @@
{% load static %}
<head>
<link rel="stylesheet" href="{% static 'style.css' %}" />
<link rel="icon" href="{% static 'icon.png' %}" />
<title>{{ title }}</title>
</head>

80
webpage/templates/index.html Executable file
View File

@ -0,0 +1,80 @@
{% load static %}
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="index">
{% include "fediring.html" %}
<div id="noscript">
<div class="centercubeplease">
<h1>
I'm bizcochito, hey!
</h1>
<h2>
-Pages:
</h2>
<ul class="disclosure-closed">
<li>
<a href="signbook/">Signbook</a>
</li>
</ul>
<h2>
-Banners
</h2>
<div class="img">
{% for gif in banger_list %}
<img style="max-height: 50px; width: auto" src="{% static "icons/banner/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %}
</div>
<h2>
-Funni gifs
</h2>
<div class="img">
{% for gif in gif_list %}
<img style="max-height: 50px; width: auto" src="{% static "icons/gif/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %}
</div>
<h2>
-Frens:
</h2>
<div class="img">
{% for banner in banner_list %}
<a href="https://{{ banner.url }}">
<img style="height: 31px; width: auto" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
</a>
{% endfor %}
</div>
<h2>
-Me in other places:
</h2>
<div class="img">
<a href="http://cronut.cafe/~bizcochito">
<img src="{% static 'icons/coconut.png' %}" alt="cronut.cafe/~bizcochito" />
</a>
</div>
<h2>
-NEW BANNER:
</h2>
<div class="img">
<a href="https://yari.fai.st">
<img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st" />
</a>
</div>
</div>
<div class="centerade">
<a>
<img src="{% static "ads/hor/" %}{{ ad }}" />
</a>
</div>
</div>
<script>
function nojs() {
document.getElementById("noscript").style.display = "block";
document.getElementById("nojs").style.display = "none";
}
document.getElementById("noscript").style.display = "none";
document.write(
'<div id="nojs" class="centercubeplease"><p>To see the website please disable JS</p><p><a href="#" onclick="nojs()">I cant do that, daddy google does not LET me :(</a></p></div>'
);
</script>
</body>
</html>

58
webpage/templates/signbook.html Executable file
View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body id="index">
<div class="centercubeplease">
<h1>
Cool signers:
</h1>
{% if signer_list %}
<p>
<ul>
{% for signer in signer_list %}
<li>
<a href="https://{{ signer.website }}">
<b>
{{ signer.name }}
</b>
</a> said:
<b>
{{ signer.comment }}.
</b>
{% if signer.email %}
Pester on:
<a href="mailto:{{ signer.email }}">{{ signer.email }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</p>
{% else %}
<p>
No one signed here :(
</p>
{% endif %}
</div>
<div class="centerade">
<h2>
Be part of this cuties!
</h2>
<p>
<p>
<form method="post" action="">
{% csrf_token %}
{% if error_message %}
<p>
<strong>{{ error_message }}</strong>
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
<input type="submit" />
</form>
</p>
</p>
</div>
</body>
</html>

3
webpage/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

10
webpage/urls.py Normal file
View File

@ -0,0 +1,10 @@
from django.urls import path
from . import views
app_name = "webpage"
urlpatterns = [
path("signbook/", views.signbook, name="signbook"),
path("about/", views.about, name="about"),
path("", views.index, name="index"),
]

110
webpage/views.py Executable file
View File

@ -0,0 +1,110 @@
from django.forms import ValidationError
from django.http import HttpResponseNotFound, HttpResponseRedirect
from django.shortcuts import render
import os, random
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']
host = request.META["SERVER_NAME"]
print(host)
match host:
case "localhost":
newsigner["hosting"] = "Local"
case r".*\.fai.st":
newsigner["hosting"] = "fai"
case _:
newsigner["hosting"] = "???"
signer_list = Booksigner.objects.all()
if newsigner:
Booksigner.objects.create(
name=newsigner["name"],
email=newsigner["email"],
website=newsigner["website"],
comment=newsigner["comment"],
hosting=newsigner["hosting"],
)
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)