Revision 87b458b5
Added by Steve Beaver over 8 years ago
src/usr/local/www/interfaces_qinq.php | ||
---|---|---|
48 | 48 |
return false; |
49 | 49 |
} |
50 | 50 |
|
51 |
if ($_GET['act'] == "del") {
|
|
52 |
$id = $_GET['id'];
|
|
51 |
if ($_POST['act'] == "del") {
|
|
52 |
$id = $_POST['id'];
|
|
53 | 53 |
|
54 | 54 |
/* check if still in use */ |
55 | 55 |
if (qinq_inuse($id)) { |
... | ... | |
133 | 133 |
<?=htmlspecialchars($qinq['descr'])?> |
134 | 134 |
</td> |
135 | 135 |
<td> |
136 |
<a class="fa fa-pencil" title="<?=gettext('Edit Q-in-Q interface')?>" href="interfaces_qinq_edit.php?id=<?=$i?>"></a> |
|
137 |
<a class="fa fa-trash" title="<?=gettext('Delete Q-in-Q interface')?>" href="interfaces_qinq.php?act=del&id=<?=$i?>"></a> |
|
136 |
<a class="fa fa-pencil" title="<?=gettext('Edit Q-in-Q interface')?>" href="interfaces_qinq_edit.php?id=<?=$i?>" usepost></a>
|
|
137 |
<a class="fa fa-trash" title="<?=gettext('Delete Q-in-Q interface')?>" href="interfaces_qinq.php?act=del&id=<?=$i?>" usepost></a>
|
|
138 | 138 |
</td> |
139 | 139 |
</tr> |
140 | 140 |
<?php |
... | ... | |
147 | 147 |
</div> |
148 | 148 |
|
149 | 149 |
<nav class="action-buttons"> |
150 |
<a href="interfaces_qinq_edit.php" class="btn btn-success btn-sm"> |
|
150 |
<a href="interfaces_qinq_edit.php" class="btn btn-success btn-sm" usepost>
|
|
151 | 151 |
<i class="fa fa-plus icon-embed-btn"></i> |
152 | 152 |
<?=gettext("Add")?> |
153 | 153 |
</a> |
src/usr/local/www/interfaces_qinq_edit.php | ||
---|---|---|
52 | 52 |
exit; |
53 | 53 |
} |
54 | 54 |
|
55 |
if (is_numericint($_GET['id'])) { |
|
56 |
$id = $_GET['id']; |
|
57 |
} |
|
58 | 55 |
if (isset($_POST['id']) && is_numericint($_POST['id'])) { |
59 | 56 |
$id = $_POST['id']; |
60 | 57 |
} |
... | ... | |
68 | 65 |
$pconfig['autoadjustmtu'] = isset($a_qinqs[$id]['autoadjustmtu']); |
69 | 66 |
} |
70 | 67 |
|
71 |
if ($_POST) { |
|
68 |
if ($_POST['save']) {
|
|
72 | 69 |
unset($input_errors); |
73 | 70 |
$pconfig = $_POST; |
74 | 71 |
|
Also available in: Unified diff
GET/POST conversion interfaces_qinq*