trinca
Newbie

Posts: 1
|
 |
« on: July 19, 2010, 07:34:37 PM » |
|
Hi, I was willing to add LOCATION records to ProBind, after tinkering a bit was able to, here is what I have done:
1st. Add LOC type to typesort table. Execute the following SQL statement:
INSERT INTO `typesort` (`type`, `ord`) VALUES ('LOC', '11')
2nd. Edit brrec.php, and add the option LOC after line 56
$query_type = ' <TD><SELECT name="type"> <OPTION>*</OPTION> <OPTION>A</OPTION> <OPTION>CNAME</OPTION> <OPTION>MX</OPTION> <OPTION>NS</OPTION> <OPTION>PTR</OPTION> <OPTION>TXT</OPTION> <OPTION>HINFO</OPTION> <OPTION>SRV</OPTION> <OPTION>LOC</OPTION> // Added LOC Option </SELECT></TD> ';
3rd. Still in brrec.php, add LOC to the $type array at line 88, function query_type
function query_type($type) { $result = "<TD><SELECT name=\"type\">\n"; $result .= sprintf("<OPTION%s>*</OPTION>\n", ((!$type || ($type == '*')) ? ' selected' : '')); $types = array('A', 'CNAME', 'MX', 'NS', 'PTR', 'TXT', 'HINFO', 'SRV', 'LOC'); //Added LOC to the array while ($tp = each($types)) { $result .= sprintf("<OPTION%s>%s</OPTION>\n", ($type == $tp[1] ? ' selected' : ''), $tp[1]); }
You are Done!! Tested, it works fine with Release 86 of SVN Pre 1.04 Please remember to format LOC record info according to RFC 1876 standards
|