function localnetwork_save() { include_once "ressources/class.tcpip.inc"; $ip = new IP(); $net = $ip->ip2cidr($_GET["ip_from"], $_GET["ip_to"]); if (trim($net) == null) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body("{$_GET["ip_from"]}=>{$_GET["ip_to"]}=>{failed}\n"); } else { $amavis = new amavis(); $amavis->AddNetwork($net); } }