Added jorgesumle's HTML fixes

This commit is contained in:
Jade Levesque 2017-12-22 23:07:38 -06:00
parent 90777c1878
commit 05955672d2
5 changed files with 34 additions and 24 deletions

View File

@ -1,7 +1,7 @@
<?php
include("header.html");
echo "<center>";
echo "<main class=\"text-center\">";
if (empty($_POST["desired_filename"]))
{
@ -40,44 +40,48 @@ $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>";
echo "<p class=\"uppercase\">We're getting some interference</p>";
echo "<p class=\"uppercase\">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>>";
echo "<p class=\"uppercase\">This coin will be up for at least three months</p>";
echo "<p class=\"uppercase\">7 moons in the ordinary sabbatical cycle</p>";
echo "<p class=\"uppercase\">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>";
echo "<p class=\"uppercase\">Thank you for feeding me</p>";
echo "<p class=\"uppercase\">Your coin is in safe hands</p>";
echo "<p class=\"uppercase\">It will not be de-atomized for at least a year</p>";
}
if ($beaming_permitted == 0) {
echo "<img src=../../res/img/coinfire_big.png>";
echo "<p>sorry <\\3</p>";
echo "<title>COIN ON FIRE</title>";
echo "<img alt=\"A big coin in bloody flames.\" src=../../res/img/coinfire_big.png>";
echo "<p>sorry <\\3</p>";
}
else {
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],$dest_file)) {
echo "<img src=../../res/img/coininserted_big.png>";
echo "<p>IT IS <a href=" . $dest_file . ">HERE</a></p>";
echo "<title>COIN INSERTED <3</title>";
echo "<img alt=\"A coin lovingly inserted to a coin-slot\" src=../../res/img/coininserted_big.png>";
echo "<p class=\"uppercase\">It is <a href=" . $dest_file . ">here</a></p>";
}
else
{
echo "<img src=../../res/img/coinfire_big.png>";
echo "<p>...</p>";
echo "<p>THAT WAS WEIRD, SOMETHING WENT WRONG. TRY AGAIN.</p>";
echo "<title>COIN ON FIRE</title>";
echo "<img alt=\"Ouch, that coin is on fire. Literally.\" src=../../res/img/coinfire_big.png>";
echo "<p>...</p>";
echo "<p class=\"uppercase\">That was weird, something went wrong. Try again.</p>";
}
}
include("footer.html");
?>
</main>
<?php
include("footer.html");
?>

View File

@ -1,4 +1,4 @@
<center>
<main class="text-center">
<footer>
No data will be recorded on who inserts what coin-- all I'll get is a timestamp.
</footer>
@ -6,7 +6,7 @@
<p>
<a href="https://notabug.org/jadedctrl/insert-coin">source juice</a>
</p>
</center>
</main>
</body>
</html>

View File

@ -1,4 +1,5 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- THIS ENTIRE FILE IS UNDER THE AGPLv3+

View File

@ -1,15 +1,17 @@
<?php include("header.html");?>
<center style="margin-top: 30px">
<main class="text-center" style="margin-top: 30px">
<form action="beam.php" method="post" enctype="multipart/form-data">
<p>
<input type="text" placeholder="Filename (Blank for uploaded name)"
name="desired_filename" id="desired_filename" style="width: 400px;">
</p>
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="file" name="fileToUpload" id="fileToUpload" style="margin: 0 auto">
<input style="margin-top: 10px; margin-bottom: 10px" type="submit" value="INSERT COIN" name="submit">
</form>
<img src="../../res/img/insertcoin_big.png">
<img alt="Picture of a pretty big, yellow labour-token." src="res/img/insertcoin_big.png">
</main>
<?php include("footer.html");?>

View File

@ -18,3 +18,6 @@ body {
color: #33FF5C;
}
.uppercase {
text-transform: uppercase;
}