= 0 && $a_ifgroups[$myid]) { $members = explode(" ", $a_ifgroups[$_GET['id']]['members']); foreach ($members as $ifs) { $realif = get_real_interface($ifs); if ($realif) { mwexec("/sbin/ifconfig {$realif} -group " . escapeshellarg($a_ifgroups[$_GET['id']]['ifname'])); } } unset($a_ifgroups[$myid]); /* WTH?! */ mwexec("/bin/rm -f /tmp/config.cache"); write_config("[tinc] Package uninstalled."); } rmdir_recursive("/var/tmp/tinc"); rmdir_recursive("/usr/local/etc/tinc*"); } function tinc_validate_input($post, &$input_errors) { if ($post['localip']) { if ((!is_ipaddr($post['localip'])) && (!is_hostname($post['localip']))) { $input_errors[] = gettext("'Local IP' must be a valid IP address or hostname."); } } if ($post['address']) { if ((!is_ipaddr($post['address'])) && (!is_hostname($post['address']))) { $input_errors[] = gettext("'Host Address' must be a valid IP address or hostname."); } } if (($post['localsubnet']) && (!is_subnet($post['localsubnet']))) { $input_errors[] = gettext("'Local Subnet' must be a valid subnet."); } if (($post['subnet']) && (!is_subnet($post['subnet']))) { $input_errors[] = gettext("'Subnet' must be a valid subnet."); } } ?>