]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - spamfilter.php
Overview: Make top margin of bottom row smaller
[irc/unrealircd/unrealircd-webpanel.git] / spamfilter.php
index 4f28dd06747bbc1ee0f4cb950de6a121cd02c295..442428a8a6b7165925fe0b29892cae2fb05c6e85 100644 (file)
@@ -120,7 +120,7 @@ if (!empty($_POST))
                                $reason = isset($_POST['ban_reason']) ? $_POST['ban_reason'] : "No reason";
                                $soft = (isset($_POST['soft'])) ? true : false;
                                if ($soft)
-                                       $targ_chars = "%" . $targ_chars;
+                                       $bantype = "soft-$bantype";
                                if ($rpc->spamfilter()->add($sf, $match_type, $targ_chars, $bantype, $duration, $reason))
                                        Message::Success("Added spamfilter entry \"$sf\" [match type: $match_type] [targets: $targ_chars] [reason: $reason]");
                                else
@@ -257,7 +257,7 @@ $spamfilter = $rpc->spamfilter()->getAll();
                </div></div></div></div>
 
        
-       <table class="container-xxl table table-responsive caption-top table-striped">
+       <table class="container-xxl table-sm table-responsive caption-top table-striped">
        <thead class="table-primary"><form action="spamfilter.php" method="post">
        <th><input type="checkbox" label='selectall' onClick="toggle_sf(this)" /></th>
        <th>Match Type</th>
@@ -278,7 +278,7 @@ $spamfilter = $rpc->spamfilter()->getAll();
                        echo "<td>".$sf->match_type."</td>";
                        echo "<td>".$sf->name."</td>";
                        echo "<td>".spamfilter_targets_to_string_with_info($sf->spamfilter_targets)."</td>";
-                       echo "<td>".$sf->ban_action."</td>";
+                       echo "<td><span class=\"badge rounded-pill badge-info\">".$sf->ban_action."</span></td>";
                        echo "<td>".$sf->ban_duration_string."</td>";
                        echo "<td>".$sf->reason."</td>";
                        echo "<td>".show_nick_only($sf->set_by)."</td>";