Difference between revisions of "LimitersFW patch"
From kitz wiki
Line 7: | Line 7: | ||
''Base Directory'' to '/usr/local/www/'. | ''Base Directory'' to '/usr/local/www/'. | ||
− | < | + | <pre>--- firewall_rules.php 2022-09-28 20:57:55.827968000 +0100 |
+++ firewall_rules.php 2022-09-28 20:55:22.694754000 +0100 | +++ firewall_rules.php 2022-09-28 20:55:22.694754000 +0100 | ||
@@ -405,8 +405,7 @@ | @@ -405,8 +405,7 @@ | ||
Line 53: | Line 53: | ||
<?=htmlspecialchars($filterent['descr']);?> | <?=htmlspecialchars($filterent['descr']);?> | ||
</td> | </td> | ||
− | <td class="action-icons">,</ | + | <td class="action-icons">,</pre> |
Revision as of 09:37, 5 June 2023
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/'.
--- 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('_', '_<wbr>', $filterent['defaultqueue']); - echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>"; - } else if (isset($filterent['defaultqueue'])) { - $desc = str_replace('_', '_<wbr>', $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('_', '_<wbr>', $filterent['dnpipe']); + echo "/<a href=\"firewall_shaper_vinterface.php\">{$desc}</a>"; + } else if (isset($filterent['dnpipe'])) { + $desc = str_replace('_', '_<wbr>', $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('_', '_<wbr>', htmlspecialchars($filterent['sched']));?> <?=$schedule_span_end;?> - </td> - <td> <?=htmlspecialchars($filterent['descr']);?> </td> <td class="action-icons">,