" . $pageTitle . " – admin");
$properTitle = $pageTitle . " – admin";
include '../boilerplate/pageStart.php';
if ($_GET["deleted"] == 1) {
echo("deleted!");
}
if ($_GET["responded"] == 1) {
echo("response sent!");
}
if ($_GET["read"] == 1) {
echo("marked as read!");
}
if ($_GET["unread"] == 1) {
echo("marked as unread!");
}
if ($_GET["migrated"] == 1) {
echo("migrations have been run!");
}
asort($rows);
echo("
not responded to ({$totalUnresponded})
");
foreach (array_reverse($rows) as $i){
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
echo("");
if ($i["iscwed"] === "t") {
echo("
cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("
" . $i["time"] . "
");
echo("
respond /
delete ");
}
}
echo("unread private ({$totalPriv})
");
foreach (array_reverse($rows) as $i){
if ($i["ispublic"] === "f" && $i["isprivread"] === "f") {
echo("");
if ($i["iscwed"] === "t") {
echo("
cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("
" . $i["time"] . "
");
echo("
mark read /
delete ");
}
}
echo("public ({$totalRespondedPub})
");
foreach (array_reverse($rows) as $i){
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
echo("");
if ($i["iscwed"] === "t") {
echo("
cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("
" . $i["time"] . "
");
echo("
" . htmlspecialchars($i["responsetext"]) . "");
echo("
" . $i["responsetime"] . "
");
echo("
edit response /
delete ");
}
}
echo("read private ({$totalPrivRead})
");
foreach (array_reverse($rows) as $i){
if ($i["ispublic"] === "f" && $i["isprivread"] === "t") {
echo("");
if ($i["iscwed"] === "t") {
echo("
cw: " . htmlspecialchars($i["cw"]) . "
");
}
echo(htmlspecialchars($i["text"]));
echo("
" . $i["time"] . "
");
echo("
mark unread /
delete ");
}
}
include '../boilerplate/pageEnd.php';
?>