X-Git-Url: http://git.pjr.cc/?p=PHPIPManager.git;a=blobdiff_plain;f=lib%2Fwww.php;h=17140f5a6339355ae54e973d8f62ddd81c8bb302;hp=f9648b9249ce98350fc4c56355a5f014143e405d;hb=fd8bc263bd1e3923c94f949059d90d93b5faaf76;hpb=46533a511551e2d0f41434adbcaff4d2f057a0ab diff --git a/lib/www.php b/lib/www.php index f9648b9..17140f5 100644 --- a/lib/www.php +++ b/lib/www.php @@ -3,12 +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() { @@ -74,9 +79,11 @@ Description $res = $db->dbobject->query("select * from supernet"); foreach($res as $row) { //echo "
"; - // print_r($row); - // echo "
".$row["sn_name"]." | ".$row["sn_ip"]."::0/".$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::0/$mask | $desc | "; + 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 ""; ?>