3 $actionRegister["addsuper"] = "www_ip_addSuperRange";
7 // this is the web page entry function.
11 //if($db->connect()!=0) {
12 //$this->doInstaller();
16 // its up to auth as to wether "this" url requires auth.
17 $authThis = new auth();
20 if(isset($_REQUEST["action"])) {
21 $this->doAction($_REQUEST["action"]);
27 function doAction($actionName)
29 global $actionRegister;
32 if(isset($actionRegister[$actionName])) {
33 $func = $actionRegister[$actionName];
34 error_log("im here 2");
37 error_log("im here 3");
44 // we build a frame of framey's
54 echo "<h1>Welcome to PHPIPManager</h1>";
56 <form method="post" action="?action=addsuper">
57 Create Supernet: name <input type="text" name="name"></input>
58 Subnet Address <input type="text" name="subnet"></input>
59 Mask <input type="text" name="mask"></input>
60 Description <input type="text" name="desc"></input>
61 <input type="submit" name="go" Value="Create"></input>
84 function doInstaller()
86 header("Location: install.php");
90 function www_ip_addSuperRange()
94 $name = $_REQUEST["name"];
95 $sn = $_REQUEST["subnet"];
96 $mask = $_REQUEST["mask"];
97 $desc = $_REQUEST["desc"];
99 $sql = "insert into supernet values (NULL, '$name', '$sn', '$mask', '$desc')";
100 $db->dbobject->query($sql);
102 header("Location: index.php");