"; echo ""; echo "\n"; echo "
"; echo "
"; echo "

"; } function print_footer() { global $GFX; global $ADMINPATH; echo "

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "NetReg"; echo " v1.5 ©1999-2005 Peter Valian"; echo ""; } // Looking for "value" in an encoded url like "&key=value&key2=foo". $key // should be "&key=". function get_param_value($str, $key) { $pos = strpos($str, $key); if($pos === false) return false; $start = $pos + strlen($key); $end = strpos($str, "&", $start); // Might be last param in list with no next '&'. if($end === false) return substr($str, $start, strlen($str)); return substr($str, $start, $end - $start); } function get_user($str) { return get_param_value($str, "uid="); } function get_subnet($str) { return get_param_value($str, "&unrip="); } function get_mac($str) { return get_param_value($str, "&mac1=") . ":" . get_param_value($str, "&mac2=") . ":" . get_param_value($str, "&mac3=") . ":" . get_param_value($str, "&mac4=") . ":" . get_param_value($str, "&mac5=") . ":" . get_param_value($str, "&mac6="); } ?>