aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorapnar <jlukens@botch.com>2012-09-05 02:40:53 +0000
committerapnar <jlukens@botch.com>2012-09-05 02:40:53 +0000
commitc9a0beb5db202299150a9771e7343046b52a7b24 (patch)
treea9cb9243cb312f69d981d7d0e13a0a0b9f0f576e
parent53500f4b4f87ab692e8f9c1ad69a9139d6b6afd5 (diff)
downloadpfsense-packages-c9a0beb5db202299150a9771e7343046b52a7b24.tar.gz
pfsense-packages-c9a0beb5db202299150a9771e7343046b52a7b24.tar.bz2
pfsense-packages-c9a0beb5db202299150a9771e7343046b52a7b24.zip
removed some more unused code
-rw-r--r--config/tinc/tinc.inc19
1 files changed, 0 insertions, 19 deletions
diff --git a/config/tinc/tinc.inc b/config/tinc/tinc.inc
index 674223be..4fbfcbb5 100644
--- a/config/tinc/tinc.inc
+++ b/config/tinc/tinc.inc
@@ -1,25 +1,6 @@
<?php
-if(!isset($_GET['id']) and !isset($_POST['id'])) {
- if($GLOBALS['config']['installedpackages']['tinchosts']['savemsg']) {
- $savemsg=$GLOBALS['config']['installedpackages']['tinchosts']['savemsg'];
- unset($GLOBALS['config']['installedpackages']['tinchosts']['savemsg']);
- write_config();
- }
-
-}
-
-$hosts=$config['installedpackages']['tinchosts']['config'];
-is_array($hosts) ? $num_hosts=count($hosts) : $num_hosts=0;
-if(!isset($_GET['id']) and !isset($_POST['id']) and $num_hosts) {
- for ($i=0;$i<$num_hosts;$i++) {
- $host=$hosts[$i];
- }
-}
-
-
function tinc_save() {
- $GLOBALS['config']['installedpackages']['tinchosts']['savemsg']='';
conf_mount_rw();
config_lock();
exec("/bin/mv -f /usr/local/etc/tinc /usr/local/etc/tinc.old");