From 3b0f7f967ad4f183da3dd8f44ec894268aaba850 Mon Sep 17 00:00:00 2001 From: "What.CD" Date: Sat, 30 Apr 2011 08:00:06 +0000 Subject: [PATCH] Swap Post/Preview buttons on request page Clean up some code Broken markup if open registration is disabled Clear ip_bans key after ban addition --- classes/permissions_form.php | 3 --- design/publicheader.php | 11 +++++------ opensearch.php | 2 +- sections/bookmarks/torrents.php | 3 --- sections/friends/friends.php | 5 ----- sections/inbox/conversation.php | 4 ---- sections/inbox/inbox.php | 2 -- sections/index/private.php | 3 --- sections/login/index.php | 1 + sections/reportsv2/ajax_new_report.php | 5 ----- sections/reportsv2/static.php | 6 ------ sections/requests/request.php | 2 +- sections/staff/index.php | 1 - sections/torrents/browse2.php | 3 --- sections/torrents/details.php | 3 --- sections/torrents/edit.php | 6 ------ sections/user/edit.php | 5 ----- sections/user/user.php | 1 - 18 files changed, 8 insertions(+), 58 deletions(-) diff --git a/classes/permissions_form.php b/classes/permissions_form.php index 34a7edb5..54cc4165 100644 --- a/classes/permissions_form.php +++ b/classes/permissions_form.php @@ -147,7 +147,6 @@ function permissions_form(){ ?> - @@ -189,7 +188,6 @@ function permissions_form(){ ?> - *Everything is only applicable to users with the same or lower class level @@ -243,7 +241,6 @@ function permissions_form(){ ?> - diff --git a/design/publicheader.php b/design/publicheader.php index a4365b66..2d68d060 100644 --- a/design/publicheader.php +++ b/design/publicheader.php @@ -31,18 +31,17 @@
+ diff --git a/opensearch.php b/opensearch.php index a39e2d1e..47cc0aa4 100644 --- a/opensearch.php +++ b/opensearch.php @@ -17,7 +17,7 @@ Search for - + http:///favicon.ico " onclick="return confirm('Are you sure you want to remove the bookmarks for all items you\'ve snatched?');">[Remove Snatched] - @@ -115,9 +113,6 @@

-
diff --git a/sections/inbox/conversation.php b/sections/inbox/conversation.php index c493c518..806ddc55 100644 --- a/sections/inbox/conversation.php +++ b/sections/inbox/conversation.php @@ -65,10 +65,6 @@ ?>

0 ? ' (Forwarded to '.$ForwardedName.')':'')?>

- diff --git a/sections/inbox/inbox.php b/sections/inbox/inbox.php index 3816ab19..b560d407 100644 --- a/sections/inbox/inbox.php +++ b/sections/inbox/inbox.php @@ -97,7 +97,6 @@ query("INSERT INTO ip_bans (FromIP, ToIP, Reason) VALUES ('$IP','$IP', 'Automated ban per >60 failed login attempts')"); + $Cache->delete_value('ip_bans'); } } } else { diff --git a/sections/reportsv2/ajax_new_report.php b/sections/reportsv2/ajax_new_report.php index fdba3298..36b7eb78 100644 --- a/sections/reportsv2/ajax_new_report.php +++ b/sections/reportsv2/ajax_new_report.php @@ -159,8 +159,6 @@ [DL] - uploaded by
was reported by for the reason:
@@ -303,9 +301,6 @@ ")?> [DL] - uploaded by [Switch] [DL] - uploaded by
was reported by for the reason:
@@ -448,9 +445,6 @@ ")?> [DL] - uploaded by [Switch] " />
- + diff --git a/sections/staff/index.php b/sections/staff/index.php index f1d31936..cca3ebdd 100644 --- a/sections/staff/index.php +++ b/sections/staff/index.php @@ -65,7 +65,6 @@ -
- query("SELECT tags.Name, diff --git a/sections/torrents/details.php b/sections/torrents/details.php index 967d884c..de855e22 100644 --- a/sections/torrents/details.php +++ b/sections/torrents/details.php @@ -431,7 +431,6 @@ function filelist($Str) { | RM - | PL ] » @@ -459,8 +458,6 @@ function filelist($Str) { -