Kitz ADSL Broadband Information
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
 

LimitersFW patch

From kitz wiki
Revision as of 09:34, 5 June 2023 by Chrysalis (talk | contribs) (Created page with "Paste the below code into the ''Patch Contents'' box. Add a description such as 'Remove schedule and add limiters Firewall UI' in the ''Description'' box. Set ''Path Strip C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Paste the below code into the Patch Contents box.

Add a description such as 'Remove schedule and add limiters Firewall UI' in the Description box.

Set Path Strip Count to '0'.

Base Directory to '/usr/local/www/'.

[code]--- firewall_rules.php 2022-09-28 20:57:55.827968000 +0100 +++ firewall_rules.php 2022-09-28 20:55:22.694754000 +0100 @@ -405,8 +405,7 @@

                                               <th><?=gettext("Destination")?></th>
                                               <th><?=gettext("Port")?></th>
                                               <th><?=gettext("Gateway")?></th>

- <th><?=gettext("Queue")?></th> - <th><?=gettext("Schedule")?></th> + <th><?=gettext("Limiter")?></th>

                                               <th><?=gettext("Description")?></th>
                                               <th><?=gettext("Actions")?></th>
                                       </tr>

@@ -859,26 +858,20 @@

                                               </td>
                                               <td>
                                                       <?php

- if (isset($filterent['ackqueue']) && isset($filterent['defaultqueue'])) { - $desc = str_replace('_', ' ', $filterent['ackqueue']); - echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['ackqueue']}&action=show\">{$desc}</a>"; - $desc = str_replace('_', '_', $filterent['defaultqueue']); - echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>"; - } else if (isset($filterent['defaultqueue'])) { - $desc = str_replace('_', '_', $filterent['defaultqueue']); - echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>"; + if (isset($filterent['pdnpipe']) && isset($filterent['dnpipe'])) { + $desc = str_replace('_', ' ', $filterent['pdnpipe']); + echo "<a href=\"firewall_shaper_vinterface.php\">{$desc}</a>"; + $desc = str_replace('_', '_', $filterent['dnpipe']); + echo "/<a href=\"firewall_shaper_vinterface.php\">{$desc}</a>"; + } else if (isset($filterent['dnpipe'])) { + $desc = str_replace('_', '_', $filterent['dnpipe']); + echo "<a href=\"firewall_shaper_vinterface.php\">{$desc}</a>";

                                                               } else {
                                                                       echo gettext("none");
                                                               }
                                                       ?>
                                               </td>
                                               <td>

- <?php if ($printicon) { ?> - <i class="fa fa-<?=$image?> <?=$dispcolor?>" title="<?=$alttext;?>"></i> - <?php } ?> - <?=$schedule_span_begin;?><?=str_replace('_', '_', htmlspecialchars($filterent['sched']));?> <?=$schedule_span_end;?> - </td> - <td>

                                                       <?=htmlspecialchars($filterent['descr']);?>
                                               </td>
                                               <td class="action-icons">[/code]