-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
66 lines (60 loc) · 1.2 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
//20190406 km4ack
//This is a splash page for the
//EES system.
//You can change the welcome messge of this
//page by editing the splash.txt file found
//in /var/www/html
session_start();
//include variables from config.php
include('/var/www/html/config.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>EES Splash Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1><?php echo $callsign ?> Emergency Email Server<br>
<div id="pagelabel">Amateur Radio Emergency Services</div>
</h1>
<hr>
<br>
<strong>
<div>
<h2>
<?php
//display contect of splash.txt file
$fh = fopen('splash.txt','r');
while ($line = fgets($fh)) {
echo($line);
}
fclose($fh);
?>
</h2>
</div>
</strong><br><br>
</div>
<div>
<h3>
<?php
if ($replies = 0) {
echo 'You may send an email or text using the link below ';
echo 'but the system is not configured to accept replies. ';
echo 'Only outgoing messages will be delivered. ';
echo 'Thank you for your understanding with this limitation';
}
?>
</h3>
</div>
<br>
<form action="email.php">
<input type="submit" value="Send Email" />
</form>
<br><br>
<form action="reply-input.php">
<input type="submit" value="Operator Login" />
</form>
</body>
</html>