44 lines
795 B
PHP
44 lines
795 B
PHP
<!DOCTYPE html>
|
|
|
|
<?php $user = posix_getpwuid(fileowner(__FILE__))["name"]; ?>
|
|
<html>
|
|
<head>
|
|
<?php include("head.php"); ?>
|
|
</head>
|
|
<body>
|
|
<?php include("nav.php"); ?>
|
|
<?php
|
|
$brew=$_GET['brew'];
|
|
|
|
# return error if asked for not tea
|
|
if($brew !== 'tea'){
|
|
http_response_code(418);
|
|
echo('<p>Error 418: I\'m a teapot!<p>');
|
|
echo('<a href=\'./teapot.php?brew=tea\'>Brew tea</a>');
|
|
die();
|
|
}
|
|
|
|
echo('<p>Your tea is ready!</p><br><br>');
|
|
|
|
echo('<pre>');
|
|
echo('
|
|
( ) ( ) )
|
|
) ( ) ( (
|
|
( ) ( ) )
|
|
_____________
|
|
<_____________> ___
|
|
| |/ _ \
|
|
| | | |
|
|
| |_| |
|
|
___| |\___/
|
|
/ \___________/ \
|
|
\_____________________/
|
|
');
|
|
echo('</pre>');
|
|
|
|
?>
|
|
|
|
</body>
|
|
</html>
|
|
|