awfully_unsecure_chat_program/htdocs/chat/index.php

34 lines
508 B
PHP
Raw Normal View History

2021-01-19 19:01:09 +00:00
<!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>