dadqwedwdqwewferft
This commit is contained in:
33
htdocs/chat/index.php
Normal file
33
htdocs/chat/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user