summaryrefslogtreecommitdiffstats
path: root/pages/admin.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-10 01:47:58 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-03-10 01:47:58 -0800
commitecfb33225113aaa94b5f46dd7080e7aa4685053c (patch)
treef4fb29550ed7d9435e25c9f0392e64039446fc23 /pages/admin.php
parentb9b735d564d0f52e3107da85b9a54d36d8cb8239 (diff)
downloadpathery-ecfb33225113aaa94b5f46dd7080e7aa4685053c.tar.xz
Fixed typo, added email cache-size to admin page.
Diffstat (limited to 'pages/admin.php')
-rw-r--r--pages/admin.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/admin.php b/pages/admin.php
index e98dc49..c0a142f 100644
--- a/pages/admin.php
+++ b/pages/admin.php
@@ -52,10 +52,15 @@ else if ($_POST['muteUser'] == 'true') {
$sql = "SELECT `ID`, `displayName`, `dateJoined`, `dateLogin`, `email`, `isAdmin` FROM `users`";
$result = mysql_query($sql);
+$res = mysqli_query($mysqli, "SELECT count(*) as count FROM `emailQueue`");
+$row = mysqli_fetch_assoc($res);
+$count = $row['count'];
+
?>
<center>
<h3>Administrators Page</h3>
+<h2>There are <? echo $count; ?> emails in emailQueue.</h2>
<p>News:</p>
<p>Buttons:<br />
<input type="button" value="Apply all achievements" onClick="parent.location='admin?applyall=true'">