Revision de3f6463
Added by Reid Linnemann almost 3 years ago
src/etc/inc/ipsec.inc | ||
---|---|---|
798 | 798 |
return $cmap; |
799 | 799 |
} |
800 | 800 |
|
801 |
function ipsec_status_button($req = 'post', $act = 'connect', $type = 'ike', $conid, $uniqueid = null, $full = true) {
|
|
801 |
function ipsec_status_button($req, $act, $type, $conid, $uniqueid, $full) {
|
|
802 | 802 |
$btn = '<a href="'; |
803 | 803 |
if ($act == 'disconnect') { |
804 | 804 |
$buttonclass = ($type == 'ike') ? 'danger' : 'warning'; |
... | ... | |
873 | 873 |
return ipsec_initiate_by_conid($type, ipsec_conid($p1, $p2)); |
874 | 874 |
} |
875 | 875 |
|
876 |
function ipsec_initiate_by_conid($type = 'ike', $conid) {
|
|
876 |
function ipsec_initiate_by_conid($type, $conid) { |
|
877 | 877 |
if (empty($conid)) { |
878 | 878 |
return false; |
879 | 879 |
} |
Also available in: Unified diff
Correct required param after optional param syntax errors