Init
|
@ -0,0 +1,3 @@
|
||||||
|
A pretty simple PHP-based file/image-upload site.
|
||||||
|
|
||||||
|
Everything (unless mentioned otherwise) is under the GNU AGPLv3.
|
|
@ -0,0 +1,82 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<-- THIS ENTIRE FILE IS UNDER THE GNU AGPLv3+
|
||||||
|
https://www.gnu.org/licenses/agpl-3.0.html -->
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../res/bootstrap.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../res/style.css">
|
||||||
|
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/connection" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: 'ConnectionRegular'; font-weight: normal; font-style: normal;">
|
||||||
|
<div class="row text-center">
|
||||||
|
<a href="../mazes/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectiona">
|
||||||
|
<h1>ihatemazes</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="../naia/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectionb">
|
||||||
|
<h1>naia</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="../files/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectionc">
|
||||||
|
<h1>image-file_upload</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<center style="margin-top: 30px">
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$dest_dir = "p/";
|
||||||
|
$dest_file = $dest_dir . basename($_FILES["fileToUpload"]["name"]);
|
||||||
|
$beaming_permitted = 1;
|
||||||
|
|
||||||
|
if (file_exists($dest_file))
|
||||||
|
{
|
||||||
|
echo "<p>WE'RE GETTING SOME INTERFERENCE</p>";
|
||||||
|
echo "<p>PLEASE USE A DIFFERENT COIN-NAME</p>";
|
||||||
|
$beaming_permitted = 0;
|
||||||
|
}
|
||||||
|
elseif ($_FILES["fileToUpload"]["size"] > 50000000)
|
||||||
|
{
|
||||||
|
echo "<p>THIS COIN WILL BE UP FOR AT LEAST THREE MONTHS</p>";
|
||||||
|
echo "<p>7 MOONS IN THE ORDINARY SABBATICAL CYCLE</p>";
|
||||||
|
echo "<p>AFTER THAT, IT *MAY* BE DE-ATOMIZED</p>>";
|
||||||
|
}
|
||||||
|
elseif ($_FILES["fileToUpload"]["size"] < 25000000)
|
||||||
|
{
|
||||||
|
echo "<p>THANK YOU FOR FEEDING ME</p>";
|
||||||
|
echo "<p>YOUR COIN IS IN SAFE HANDS</p>";
|
||||||
|
echo "<p>IT WILL NOT BE DE-ATOMIZED FOR AT LEAST A YEAR</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ($beaming_permitted == 0) {
|
||||||
|
echo "<img src=../img/coinfire_big.png>";
|
||||||
|
echo "<p>sorry <\\3</p>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],$dest_file)) {
|
||||||
|
echo "<img src=../img/coininserted_big.png>";
|
||||||
|
echo "<p>IT IS <a href=" . $dest_file . ">HERE</a></p>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "<img src=../img/coinfire_big.png>";
|
||||||
|
echo "<p>...</p>";
|
||||||
|
echo "<p>THAT WAS WEIRD, SOMETHING WENT WRONG. TRY AGAIN.</p>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,45 @@
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<-- THIS ENTIRE FILE IS UNDER THE AGPLv3+
|
||||||
|
https://www.gnu.org/licenses/agpl-3.0.html -->
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../res/bootstrap.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../res/style.css">
|
||||||
|
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/connection" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: 'ConnectionRegular'; font-weight: normal; font-style: normal;">
|
||||||
|
|
||||||
|
<div class="row text-center">
|
||||||
|
<a href="../mazes/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectiona">
|
||||||
|
<h1>ihatemazes</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="../naia/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectionb">
|
||||||
|
<h1>naia</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="../files/">
|
||||||
|
<div class="col-md-4 col-lg-4" id="sectionc">
|
||||||
|
<h1>image-file_upload</h1>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<center style="margin-top: 30px">
|
||||||
|
<form action="beam.php" method="post" enctype="multipart/form-data">
|
||||||
|
<input type="file" name="fileToUpload" id="fileToUpload">
|
||||||
|
<input style="margin-top: 10px; margin-bottom: 10px" type="submit" value="INSERT COIN" name="submit">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<img src="../img/insertcoin_big.png">
|
||||||
|
<footer>No data will be recorded on who inserts what coin-- all I'll get is a timestamp.</footer>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
After Width: | Height: | Size: 327 B |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 376 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 478 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 400 B |
After Width: | Height: | Size: 1.6 KiB |
|
@ -0,0 +1,20 @@
|
||||||
|
// AGPLv3+
|
||||||
|
body {
|
||||||
|
background-color: #ffded6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sectiona {
|
||||||
|
background-color: #FF5C33;
|
||||||
|
color: #FF5C33;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sectionb {
|
||||||
|
background-color: #33D6FF;
|
||||||
|
color: #33D6FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sectionc {
|
||||||
|
background-color: #33FF5C;
|
||||||
|
color: #33FF5C;
|
||||||
|
}
|
||||||
|
|