greetings from italy

This commit is contained in:
2019-08-28 22:57:26 +02:00
commit 97cb57b430
3 changed files with 30 additions and 0 deletions

7
display.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
header("Refresh: 1; URL=display.php");
echo("<body bgcolor='#000' style='font-size: 80px; color: white; font-family: sans-serif;'><table style='height:100%; width:100%;'><tr><td valign='middle' align='center' style='font-size: 80px; color: white; font-family: sans-serif;'>");
$handle = fopen("message.txt", "r");
$contents = fread($handle, filesize("message.txt"));
echo($contents);
?>

22
message.php Normal file
View File

@@ -0,0 +1,22 @@
<body style='font-size: 64px; font-family: sans-serif;' bgcolor='#aaa'>
<br/>
rk Cupa Converter
<br/>
<br/>
<form action="message.php" method="post">
<textarea name='text' style='font-size: 80px; width: 100%; height: 50%;'></textarea>
<br/>
<br/>
<input type="submit" style='font-size: 80px;' value='Anzeigen'/>
</form>
<?php
if (isset($_POST['text'])) {
$handle = fopen("message.txt", "w");
if (strlen($_POST['text']) == 0) {
fwrite($handle, " ");
} else {
fwrite($handle, $_POST['text']);
}
fclose($handle);
}
?>

1
message.txt Executable file
View File

@@ -0,0 +1 @@
Ja schmeckt auch gut aber ich muss das nicht komplett aufessen