16 ) $errors = "Hostname is invalid"; if ( in_array($host, $reserved) ) $errors = "Hostname is reserved"; if ( ($ips[$ip][1] != $host) AND (!isset($errors)) AND ($host != "") ) { reset($ips); while ($ci = current($ips) ) { if ( $host == $ci[1] ) { $errors = "Hostname already exist"; break; }; next($ips); }; }; if ( isset($_GET['comment']) ) $comment = substr(trim( preg_replace("/[^\w-\.,\"\'\s]/","",$_GET['comment']) ),0,200); else $comment = $ips[$ip][2]; if ( isset($errors) ) { print $errors; } else { $ips[$ip] = array( "1", $host, $comment); save_ips($ips); make_dns($ips); } }; ksort($ips); reset($ips); print "\n "; foreach ($ips as $key => $val) { print "\n \n \n \n"; }; print "
IPHostnameComments
".NET.".".$key."
\n"; ?>

by Deniss Gaplevskis (c) 2006 VUGD