From d684b1f10aecc3403a8ec97d45118f67883480e5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Mar 2001 12:06:13 +0000 Subject: - various smaller updates before I start watching Formula 1 with [a] a 0.5 liter box of Haagen-Dhaz (Belgian Choclate) and [b] my laptop on my lap for drupal hacking. Life hardly can get any better than this. --- modules/ban.module | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/ban.module b/modules/ban.module index b370e2da7..a6586ab4d 100644 --- a/modules/ban.module +++ b/modules/ban.module @@ -37,13 +37,10 @@ function ban_admin_new($mask, $category, $reason) { function ban_display($category = "") { global $type2index; - // initialize variable: $category = $category ? $category : 1; - // Perform query: $result = db_query("SELECT * FROM bans WHERE type = $category ORDER BY mask"); - // Generate output: $output .= "\n"; $output .= " \n"; $output .= " \n"; $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; + $output .= " \n"; while ($ban = db_fetch_object($result)) { $output .= " \n"; } @@ -76,16 +69,17 @@ function ban_admin_add() { $output .= "

Add new ban:

\n"; $output .= "\n"; + $output .= "Banmask:
\n"; $output .= "

\n"; + $output .= "Type:
\n"; - $output .= "

\n"; + for (reset($type2index); $cur = current($type2index); next($type2index)) $options .= "\n"; + $output .= "

\n"; + $output .= "Reason:
\n"; $output .= "

\n"; + $output .= "
\n"; $output .= "\n"; @@ -103,14 +97,14 @@ function ban_admin_check() { $output .= "

Ban check:

\n"; $output .= "\n"; + $output .= "Banmask:
\n"; $output .= "

\n"; + $output .= "Type:
\n"; - $output .= "

\n"; + for (reset($type2index); $cur = current($type2index); next($type2index)) $options .= "\n"; + $output .= "

\n"; + $output .= "
\n"; $output .= "\n"; -- cgit v1.2.3

\n"; @@ -57,11 +54,7 @@ function ban_display($category = "") { $output .= " \n"; $output .= "
maskreasonoperations
maskreasonoperations
$ban->mask$ban->reasonid\">delete