awfully_unsecure_chat_program/htdocs/chat/index.php
2021-01-19 20:01:09 +01:00

34 lines
508 B
PHP

<!DOCTYPE html>
<html>
<head>
<title>fChat</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="form">
<form action="/cgi-bin/chat/send.php" method="get">
Nickname: <input type="text" name="userName"><br>
Message:<br>
<input type="text" name="userMessage"><br>
<input type="submit" value="Send">
</form>
<hr>
</div>
<div id="messages">
<?php
$s = glob("/srv/www/htdocs/chat/messages/*.php");
natsort($s);
foreach ($s as $message) {
include $message;
}
?>
</div>
</body>
</html>