X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=lib%2Fwww.php;h=f38f5e8307f5d56c10d6da276e131a6f2eb2dd64;hb=9c4cfa21a5d947f40ce7aec2ea6f9a69857a9fcf;hp=70274f52b2e301bac1c11fb4dbc182d5cb3e92b4;hpb=671b623794ad8bd9d8a57f28436a46a62b12ef66;p=PHPIPManager.git diff --git a/lib/www.php b/lib/www.php index 70274f5..f38f5e8 100644 --- a/lib/www.php +++ b/lib/www.php @@ -3,8 +3,17 @@ $actionRegister["addsuper"] = "www_ip_addSuperRange"; $actionRegister["allocate"] = "www_ip_allocateRange"; $actionRegister["allocatesub"] = "www_ip_allocateSubRange"; +$actionRegister["deletesub"] = "www_ip_deleteSubRange"; +$actionRegister["modsubnet"] = "www_ip_modifySubnet"; $actionRegister["dumpdb"] = "www_db_dumpdb"; $actionRegister["restoredb"] = "www_db_restoredb"; +$actionRegister["changesubdetails"] = "www_ip_changesubdetails"; +$actionRegister["addhosts"] = "www_ip_addhost"; +$actionRegister["deletehost"] = "www_ip_deletehost"; +$actionRegister["modifyhost"] = "www_ip_modifyhost"; +$actionRegister["updatehost"] = "www_ip_updatehost"; +$actionRegister["scansub"] = "www_ip_scansub"; +$actionRegister["scansubreal"] = "www_ip_scansubReal"; class www { function Go() { @@ -70,12 +79,34 @@ Description $res = $db->dbobject->query("select * from supernet"); foreach($res as $row) { //echo "
"; - // print_r($row); - // echo "
".$row["sn_name"]." | ".$row["sn_ip"]."/".$row["sn_mask"]." | ".$row["sn_desc"]." | "; + // print_r($row); + // echo "
---|
".$row["sn_name"]." | ".$row["sn_ip"]."$ip6trans/".$row["sn_mask"]." | ".$row["sn_desc"]." | "; echo "Allocate Subnet | "; echo "Delete Supernet | "; + echo "|
---|---|---|---|---|---|
$subnet$ip6trans/$mask | $desc | "; + echo "Delete Subnet | "; + //echo "Add Host | "; + if(ipversion($row2["sn_ip"]) == 4) echo "Scan Subnet | "; + echo "
"; + //print_r($_SERVER); + + //print_r($_REQUEST); + + //print_r($GLOBALS); + echo ""; ?>