Pārlūkot izejas kodu

Add IP expunge requests

undefined
spaghetti pirms 7 gadiem
committed by Tomochin
vecāks
revīzija
af72161ec3
1 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. +7
    -7
      design/privateheader.php

+ 7
- 7
design/privateheader.php Parādīt failu

@@ -502,14 +502,14 @@ if (check_perms('admin_reports')) {
}

if (check_perms('users_mod')) {
$NumEmailDeleteRequests = G::$Cache->get_value('num_email_delete_requests');
if ($NumEmailDeleteRequests === false) {
G::$DB->query("SELECT COUNT(*) FROM email_delete_requests");
list($NumEmailDeleteRequests) = G::$DB->next_record();
G::$Cache->cache_value('num_email_delete_requests', $NumEmailDeleteRequests);
$NumDeleteRequests = G::$Cache->get_value('num_deletion_requests');
if ($NumDeleteRequests === false) {
G::$DB->query("SELECT COUNT(*) FROM deletion_requests");
list($NumDeleteRequests) = G::$DB->next_record();
G::$Cache->cache_value('num_deletion_requests', $NumDeleteRequests);
}
if ($NumEmailDeleteRequests > 0) {
$ModBar[] = '<a href="tools.php?action=delete_email">' . $NumEmailDeleteRequests . " Email deletion request(s)</a>";
if ($NumDeleteRequests > 0) {
$ModBar[] = '<a href="tools.php?action=expunge_requests">' . $NumDeleteRequests . " Expunge request".($NumDeleteRequests > 1 ? 's' : '')."</a>";
}
}



Notiek ielāde…
Atcelt
Saglabāt