. For more information, visit http://sourceforge.net/projects/ipreg, or contact me at wietsew@users.sourceforge.net *****************************************************************************/ // includes include("includes.php"); // start output include("header.php"); // get ip and id $ip = $_GET['ip']; $subnet_id = $_GET['subnet_id']; // set template $tp = new Template("tpl/assigniptonode.tpl"); // set language variables $tp->setvars($lang); // set variables $tp->set("ip", $ip); $tp->set("subnet_id", $subnet_id); // get subnet info $result = mysql_query("SELECT subnet_address, subnet_mask FROM subnet WHERE subnet_id='$subnet_id'") or die(mysql_error()); $row = mysql_fetch_object($result); $tp->set("subnet_address", $row->subnet_address); $tp->set("subnet_mask", $row->subnet_mask); // output $tp->parse(); $tp->spit(); include("footer.php"); ?>