-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmods.php
More file actions
52 lines (50 loc) · 1.15 KB
/
mods.php
File metadata and controls
52 lines (50 loc) · 1.15 KB
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
<?php
session_start();
require_once("require/basic.php");
require_once("require/secure.php");
require_once("require/rplayers.php");
require_once("require/rgame.php");
$securemode = !Unsecure();
if( $securemode )
{
Secure(false);
page_head();
}
else
{
page_unsecure_head();
}
$admin_email = get_mail_email();
?>
<div class="row">
<div class="col-md-12">
<h2>Contact Moderators</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>The main moderator e-mail address is <?php echo "<a href='$admin_email'>$admin_email</a>"; ?>.</p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<table class='table table-striped table-bordered table-condensed'>
<tr><th>Name</th><th>Email</th><th>Score</th></tr>
<?php
$admins = get_players("ADMIN");
foreach($admins as $admin)
{
echo "<tr><td>{$admin['first_name']} {$admin['last_name']}</td><td><a href='mailto:{$admin['email']}'>{$admin['email']}</a></td><td>{$admin['score']}</td></tr>";
}
?>
</table>
</div>
</div>
<?php
if( $securemode ) page_foot();
else
{
echo "<a href='login.php'>Back to Login Page</a>";
page_unsecure_foot();
}
?>