find_queue($interface, $qname); } else { $addnewaltq = true; } } $dontshow = false; $newqueue = false; $dfltmsg = false; if ($_GET) { switch ($action) { case "delete": if ($queue) { $queue->delete_queue(); if (write_config()) { mark_subsystem_dirty('shaper'); } } header("Location: firewall_shaper.php"); exit; break; case "resetall": foreach ($altq_list_queues as $altq) { $altq->delete_all(); } unset($altq_list_queues); $altq_list_queues = array(); $tree = "
0) { ?> =gettext('Remove Shaper')?> | GetQname() . '&action=add'; } else { $url = 'firewall_shaper.php?interface='. $interface . '&action=add'; } $sform->addGlobal(new Form_Button( 'add', 'Add new Queue', $url, 'fa-plus' ))->addClass('btn-success'); } if ($queue) { $url = 'firewall_shaper.php?interface='. $interface . '&queue=' . $queue->GetQname() . '&action=delete'; } else { $url = 'firewall_shaper.php?interface='. $interface . '&action=delete'; } $sform->addGlobal(new Form_Button( 'delete', $queue ? 'Delete this queue':'Disable shaper on interface', $url, 'fa-trash' ))->addClass('btn-danger'); } print($sform); } ?> |