init
This commit is contained in:
commit
42c4dea3dd
3 changed files with 106 additions and 0 deletions
67
voucher.php
Executable file
67
voucher.php
Executable file
|
@ -0,0 +1,67 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Ascii Voucher
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
margin: 5%;
|
||||
}
|
||||
.greenBack{
|
||||
text-align: center;
|
||||
color: white;
|
||||
background-color: rgb(161,205,26);
|
||||
}
|
||||
.buttons{
|
||||
background-color: rgb(181,225,45);
|
||||
}
|
||||
.piclist {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-gap: 2em;
|
||||
}
|
||||
.pic{
|
||||
background-color: rgb(181,225,45);
|
||||
border: 2px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</body>
|
||||
<div class="greenback"><br><h1>Ascii Voucher</h1><br></div>
|
||||
<div class="greenback"><h2>Status:</h2>
|
||||
|
||||
<?php
|
||||
sleep(3);
|
||||
include("valids.php");
|
||||
|
||||
if (in_array(intval($_GET["code"]), $valid)){
|
||||
//code won
|
||||
echo "<h3>===>Gewonnen!<===</h3>Du hast in der Verlosung gewonnen und kannst den Code im Ascii zeigen, um dort zwei Freigetränke zu erhalten: Ein Heißgetränk UND ein Kaltgetränk. Der Gutschein ist bis zum <b>Ende des Semesters</b> gültig.";
|
||||
echo "</div><div class='greenback'><img style='max-width:30%; max-heigh:20%;' src='https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Eo_circle_blue-grey_white_checkmark.svg/240px-Eo_circle_blue-grey_white_checkmark.svg.png' alt=' A white-on-blue-grey circle icon with a(n) checkmark symbol from the Emoji One BW icon font.'></div>";
|
||||
echo "<div class='greenback'><h2>Code: ".$_GET["code"]."</h2></div>";
|
||||
}else{
|
||||
//code won
|
||||
echo "<h3>===>Verloren<===</h3>Du hast leider keinen Getränkegutschein gewonnen. Sorry :/";
|
||||
echo "</div><div class='greenback'><img style='max-width:30%; max-heigh:20%;' src='https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Eo_circle_red_not-allowed.svg/240px-Eo_circle_red_not-allowed.svg.png' alt='A red circle icon with a(n) not-allowed symbol from the Emoji One BW icon font.'></div>";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<br><div class="greenback">
|
||||
|
||||
<?php
|
||||
echo "<a href='rssvoucher.php?code=".$_GET["code"]."'>";
|
||||
?>
|
||||
<img style="height:2%;" src='https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/128px-Feed-icon.svg.png'>RSS Feed</a>
|
||||
</div><div class="greenback">
|
||||
<img style="height:15%; max-width:30%;" src="ifsr.svg" alt="ifsr logo: tropfen artige Skulptur mit Aufschrift fachschaftrat informatik, schwarz-weiß"><img style="height:15%; max-width:30%; padding:1%;" src="ascii.svg" alt="Logo des asciis: M ännchen, was eine Tasse umarmt">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue