X-Git-Url: http://git.pjr.cc/?p=PHPIPManager.git;a=blobdiff_plain;f=lib%2Fwww.php;fp=lib%2Fwww.php;h=3e236213b21fa45bd38a3fb42b93e0b7418aab5b;hp=f38f5e8307f5d56c10d6da276e131a6f2eb2dd64;hb=9acf5528b6508a28d7ff8f57495eb9c3e5af7990;hpb=9c4cfa21a5d947f40ce7aec2ea6f9a69857a9fcf diff --git a/lib/www.php b/lib/www.php index f38f5e8..3e23621 100644 --- a/lib/www.php +++ b/lib/www.php @@ -267,10 +267,11 @@ function www_ip_allocateSubRange() $desc = $_REQUEST["subdesc"]; $myip = new ip(); - if($myip->addSubnet($name, $subip, $mask, $desc, $superid)) { + $err = $myip->addSubnet($name, $subip, $mask, $desc, $superid); + if($err ===true) { header("Location: index.php?notice=range added"); } else { - header("Location: index.php?error=invalid ipaddress"); + header("Location: index.php?error=$err"); } }