summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-22 01:17:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-22 01:17:28 +0000
commit9a4cb6b701532b5578842ba466eb6676cb7e2367 (patch)
tree5c613ad9e4751481fe64ed0a25e36f3017065cdb /usr/local/www/vpn_ipsec_edit.php
parentc40fef82b4b9b078cdaeaf77cda0cdb7f76778ac (diff)
downloadpfsense-9a4cb6b701532b5578842ba466eb6676cb7e2367.zip
pfsense-9a4cb6b701532b5578842ba466eb6676cb7e2367.tar.gz
Restore guiconfig.inc and remove comonly used functions.
Somehow I forgot we already cleaned up this mess.
Diffstat (limited to 'usr/local/www/vpn_ipsec_edit.php')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index 68c297f..bb4cfa1 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -43,39 +43,6 @@ $id = $_GET['id'];
if (isset($_POST['id']))
$id = $_POST['id'];
-function is_specialnet($net) {
- global $specialsrcdst;
-
- if (in_array($net, $specialsrcdst))
- return true;
- else
- return false;
-}
-
-function address_to_pconfig($adr, &$padr, &$pmask) {
-
- if ($adr['network'])
- $padr = $adr['network'];
- else if ($adr['address']) {
- list($padr, $pmask) = explode("/", $adr['address']);
- if (is_null($pmask))
- $pmask = 32;
- }
-}
-
-function pconfig_to_address(&$adr, $padr, $pmask) {
-
- $adr = array();
-
- if (is_specialnet($padr))
- $adr['network'] = $padr;
- else {
- $adr['address'] = $padr;
- if ($pmask != 32)
- $adr['address'] .= "/" . $pmask;
- }
-}
-
if (isset($id) && $a_ipsec[$id]) {
$pconfig['disabled'] = isset($a_ipsec[$id]['disabled']);
//$pconfig['auto'] = isset($a_ipsec[$id]['auto']);
OpenPOWER on IntegriCloud