Added jorgesumle's HTML fixes
This commit is contained in:
parent
90777c1878
commit
05955672d2
40
beam.php
40
beam.php
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("header.html");
|
include("header.html");
|
||||||
echo "<center>";
|
echo "<main class=\"text-center\">";
|
||||||
|
|
||||||
if (empty($_POST["desired_filename"]))
|
if (empty($_POST["desired_filename"]))
|
||||||
{
|
{
|
||||||
|
@ -40,44 +40,48 @@ $beaming_permitted = 1;
|
||||||
|
|
||||||
if (file_exists($dest_file))
|
if (file_exists($dest_file))
|
||||||
{
|
{
|
||||||
echo "<p>WE'RE GETTING SOME INTERFERENCE</p>";
|
echo "<p class=\"uppercase\">We're getting some interference</p>";
|
||||||
echo "<p>PLEASE USE A DIFFERENT COIN-NAME</p>";
|
echo "<p class=\"uppercase\">Please use a different coin-name</p>";
|
||||||
$beaming_permitted = 0;
|
$beaming_permitted = 0;
|
||||||
}
|
}
|
||||||
elseif ($_FILES["fileToUpload"]["size"] > 50000000)
|
elseif ($_FILES["fileToUpload"]["size"] > 50000000)
|
||||||
{
|
{
|
||||||
echo "<p>THIS COIN WILL BE UP FOR AT LEAST THREE MONTHS</p>";
|
echo "<p class=\"uppercase\">This coin will be up for at least three months</p>";
|
||||||
echo "<p>7 MOONS IN THE ORDINARY SABBATICAL CYCLE</p>";
|
echo "<p class=\"uppercase\">7 moons in the ordinary sabbatical cycle</p>";
|
||||||
echo "<p>AFTER THAT, IT *MAY* BE DE-ATOMIZED</p>>";
|
echo "<p class=\"uppercase\">After that, it *may* be de-atomized</p>";
|
||||||
}
|
}
|
||||||
elseif ($_FILES["fileToUpload"]["size"] < 25000000)
|
elseif ($_FILES["fileToUpload"]["size"] < 25000000)
|
||||||
{
|
{
|
||||||
echo "<p>THANK YOU FOR FEEDING ME</p>";
|
echo "<p class=\"uppercase\">Thank you for feeding me</p>";
|
||||||
echo "<p>YOUR COIN IS IN SAFE HANDS</p>";
|
echo "<p class=\"uppercase\">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\">It will not be de-atomized for at least a year</p>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($beaming_permitted == 0) {
|
if ($beaming_permitted == 0) {
|
||||||
echo "<img src=../../res/img/coinfire_big.png>";
|
|
||||||
echo "<p>sorry <\\3</p>";
|
|
||||||
echo "<title>COIN ON FIRE</title>";
|
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 {
|
else {
|
||||||
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],$dest_file)) {
|
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 "<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
|
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 "<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");
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<center>
|
<main class="text-center">
|
||||||
<footer>
|
<footer>
|
||||||
No data will be recorded on who inserts what coin-- all I'll get is a timestamp.
|
No data will be recorded on who inserts what coin-- all I'll get is a timestamp.
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
<p>
|
<p>
|
||||||
<a href="https://notabug.org/jadedctrl/insert-coin">source juice</a>
|
<a href="https://notabug.org/jadedctrl/insert-coin">source juice</a>
|
||||||
</p>
|
</p>
|
||||||
</center>
|
</main>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<html>
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<!-- THIS ENTIRE FILE IS UNDER THE AGPLv3+
|
<!-- THIS ENTIRE FILE IS UNDER THE AGPLv3+
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
<?php include("header.html");?>
|
<?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">
|
<form action="beam.php" method="post" enctype="multipart/form-data">
|
||||||
<p>
|
<p>
|
||||||
<input type="text" placeholder="Filename (Blank for uploaded name)"
|
<input type="text" placeholder="Filename (Blank for uploaded name)"
|
||||||
name="desired_filename" id="desired_filename" style="width: 400px;">
|
name="desired_filename" id="desired_filename" style="width: 400px;">
|
||||||
</p>
|
</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">
|
<input style="margin-top: 10px; margin-bottom: 10px" type="submit" value="INSERT COIN" name="submit">
|
||||||
</form>
|
</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");?>
|
<?php include("footer.html");?>
|
||||||
|
|
|
@ -18,3 +18,6 @@ body {
|
||||||
color: #33FF5C;
|
color: #33FF5C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uppercase {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue