This commit is contained in:
Ad Schellevis 2015-04-07 13:34:36 +00:00
parent 4b9ea9c764
commit f89ab7ffc3
3 changed files with 5 additions and 6 deletions

View File

@ -42,7 +42,6 @@ function &get_reference_to_me_in_config(&$mypath)
foreach ($mypath as $indeks) {
$ptr =& $ptr['queue'][$indeks];
}
return $ptr;
}
@ -4307,9 +4306,6 @@ function read_altq_config() {
$altq_list_queues = array();
if (!is_array($config['shaper']['queue']))
return;
foreach ($a_int as $key => $conf) {
$int = $conf['interface'];
$root =& new altq_root_queue();

View File

@ -45,7 +45,7 @@ function listtags()
'npt', 'ntpserver',
'onetoone', 'openvpn-server', 'openvpn-client', 'openvpn-csc', 'option',
'package', 'passthrumac', 'phase1', 'phase2', 'ppp', 'pppoe', 'priv', 'proxyarpnet', 'pool', 'pages', 'pipe',
'qinqentry', 'queue',
'qinqentry',
'radnsserver', 'roll', 'route', 'row', 'rrddatafile', 'rule',
'schedule', 'service', 'servernat', 'servers', 'serversdisabled', 'staticmap', 'subqueue',
'tab', 'timerange', 'tunnel',

View File

@ -58,8 +58,11 @@ if ($_GET) {
$action = htmlspecialchars($_GET['action']);
}
if ($_POST) {
if ($_POST['name'])
if (isset($_POST['name']) && trim($_POST['name']) != '') {
$qname = htmlspecialchars(trim($_POST['name']));
} else {
$qname = htmlspecialchars(trim($_POST['newname']));
}
if ($_POST['interface'])
$interface = htmlspecialchars(trim($_POST['interface']));
if ($_POST['parentqueue'])