NetReg::Shared - HTML output services for NetReg
use Net::NetReg::Shared;
This module provides several functions that are shared by NetReg CGI scripts.
These include routines for reading input and writing files.
- append_host_entry( MAC, FORM, FLAG )
-
Adds a host record to the DHCP hosts file.
- canonical_mac( MAC )
-
Returns the MAC in canonical form. Reports an error if the given MAC is
invalid.
check_allowed()
-
Checks if registrations from the client are allowed.
- check_blacklist( DATA )
-
Check the given data against the blacklist and display an error if found.
- get_input( HASHREF )
-
Reads CGI input and stores it in the given hash reference.
- get_mac( IP )
-
Returns the MAC associated with the given IP. If no IP is given, use the $IP
variable.
iso8601()
-
Returns a string containing the current time in ISO 8601 format.
- remove_registration( MAC, USERCHECK )
-
Removes a registration from the DHCP database.