Commit 9638bc3f authored by dmorley's avatar dmorley

admin cleanup a bit - hardcoded the redirect, should fix that

parent d872d4f6
......@@ -5,7 +5,7 @@ $tt=0;
if (!$dbh) {
die("Error in connection: " . pg_last_error());
}
$sql = "SELECT * FROM pods WHERE hidden <> 'no' AND score < -15 ORDER BY weightedscore DESC";
$sql = "SELECT * FROM pods WHERE hidden <> 'no' AND score < -15 ORDER BY weightedscore";
$result = pg_query($dbh, $sql);
if (!$result) {
die("Error in SQL query: " . pg_last_error());
......
......@@ -32,7 +32,7 @@ echo "admin key fail";die;
if ($row["email"]) {
$to = $row["email"];
$subject = "Pod deleted from poduptime ";
$message = "Pod " . $_GET["domain"] . " Was deleted as it was dead on the list. Feel free to add back at any time. \n\n";
$message = "Pod " . $_POST["domain"] . " was deleted from podupti.me as it was dead on the list. Feel free to add back at any time. \n\n";
$headers = "From: support@diasp.org\r\nCc:support@diasp.org,". $row["email"] ."\r\n";
@mail( $to, $subject, $message, $headers );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment