From: Valerie Pond Date: Sun, 7 Jul 2024 22:13:34 +0000 (+0800) Subject: Move spamfilter.php to server-bans/ X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/0d62343db7cf98dda603d338e1948a9a09af5862 Move spamfilter.php to server-bans/ --- diff --git a/inc/common.php b/inc/common.php index 4826d0d..b168a7c 100644 --- a/inc/common.php +++ b/inc/common.php @@ -492,7 +492,7 @@ $pages = [ "Name Bans" => ["script" => "server-bans/name-bans.php"], "Ban Exceptions" => ["script" => "server-bans/ban-exceptions.php"], ], - "Spamfilter" => ["script" => "spamfilter.php"], + "Spamfilter" => ["script" => "server-bans/spamfilter.php"], "Logs" => ["script" => "logs/index.php"], "Tools" => [ "IP WHOIS" => ["script" => "tools/ip-whois.php","no_irc_server_required"=>true], diff --git a/inc/header.php b/inc/header.php index c5fbc27..b03a533 100644 --- a/inc/header.php +++ b/inc/header.php @@ -430,7 +430,7 @@ foreach ($pages as $name => $page) var serv_result =document.createElement('div'); serv_result.classList.add('card','p-3', 'm-1'); serv_result.onclick = function(){ - window.location.href = BASE_URL+"spamfilter.php"; + window.location.href = BASE_URL+"server-bans/spamfilter.php"; }; serv_result.innerHTML = ""+data.spamfilter[key].name+"
Matches "+data.spamfilter[key].label+"
"+(data.spamfilter[key].data?data.spamfilter[key].data:"")+""; searchResults.appendChild(serv_result); diff --git a/index.php b/index.php index 6ac2254..4d856a2 100644 --- a/index.php +++ b/index.php @@ -210,7 +210,7 @@ if (isset($current_user->user_meta['hibp']))
- spamfilter.php/"> + server-bans/spamfilter.php">
diff --git a/spamfilter.php b/server-bans/spamfilter.php similarity index 100% rename from spamfilter.php rename to server-bans/spamfilter.php