blahzdns-cvs Mailing List for Blahz-DNS
Status: Alpha
Brought to you by:
msroest
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(14) |
Oct
(8) |
Nov
(8) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(7) |
Mar
(1) |
Apr
(6) |
May
(6) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Mike R. <ms...@us...> - 2005-05-26 02:42:01
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6702/outputInterfaces Modified Files: bind9.py Log Message: More A6 updates. Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** bind9.py 13 May 2005 20:10:12 -0000 1.7 --- bind9.py 26 May 2005 02:41:53 -0000 1.8 *************** *** 217,221 **** outputLine = record+"\t\t"+ttl+"\tIN A\t"+value+"\n" #Handle A6 Records ! if type == 'A5': if(ttl == None): ttl = globalttl --- 217,221 ---- outputLine = record+"\t\t"+ttl+"\tIN A\t"+value+"\n" #Handle A6 Records ! if type == 'A6': if(ttl == None): ttl = globalttl |
|
From: Mike R. <ms...@us...> - 2005-05-26 02:42:01
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6702 Modified Files: import.php Log Message: More A6 updates. Index: import.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/import.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** import.php 13 May 2005 20:10:11 -0000 1.8 --- import.php 26 May 2005 02:41:52 -0000 1.9 *************** *** 174,178 **** } } ! else if(preg_match("/\ba6\b/i",$line[3])) { $recordTypeId=getRecordId("A6"); if($line[0] == "$domain.") { --- 174,178 ---- } } ! else if(preg_match("/\b[a6|AAAA]\b/i",$line[3])) { $recordTypeId=getRecordId("A6"); if($line[0] == "$domain.") { |
|
From: Mike R. <ms...@us...> - 2005-05-13 20:11:06
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27617 Modified Files: dns.inc.php import.php Log Message: Add A6 Support for Bind. Index: import.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/import.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** import.php 20 Sep 2003 04:33:37 -0000 1.7 --- import.php 13 May 2005 20:10:11 -0000 1.8 *************** *** 174,183 **** } } ! /* else if(preg_match("/\baaaa\b/i",$line[3])) { ! $recordTypeId=getRecordId("AAAA"); if($line[0] == "$domain.") { $query = "INSERT INTO RECORDS (RECORDID,ZONEID,MODUSER,RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE)\n". "VALUES ('','$zoneid','$userId','$recordTypeId','@','$line[1]',NULL,'$line[4]')"; ! logMessage($user,$ip,"ADDRECORD","A Record @ added to zone $domain"); } else { --- 174,183 ---- } } ! else if(preg_match("/\ba6\b/i",$line[3])) { ! $recordTypeId=getRecordId("A6"); if($line[0] == "$domain.") { $query = "INSERT INTO RECORDS (RECORDID,ZONEID,MODUSER,RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE)\n". "VALUES ('','$zoneid','$userId','$recordTypeId','@','$line[1]',NULL,'$line[4]')"; ! logMessage($user,$ip,"ADDRECORD","A6 Record @ added to zone $domain"); } else { *************** *** 186,192 **** $query = "INSERT INTO RECORDS (RECORDID,ZONEID,MODUSER,RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE)\n". "VALUES ('','$zoneid','$userId','$recordTypeId','$dest[0]','$line[1]',NULL,'$line[4]')"; ! logMessage($user,$ip,"ADDRECORD","A Record $dest[0] added to zone $domain"); } ! }*/ else if(preg_match("/\ba\b/i",$line[3])) { $recordTypeId=getRecordId("A"); --- 186,192 ---- $query = "INSERT INTO RECORDS (RECORDID,ZONEID,MODUSER,RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE)\n". "VALUES ('','$zoneid','$userId','$recordTypeId','$dest[0]','$line[1]',NULL,'$line[4]')"; ! logMessage($user,$ip,"ADDRECORD","A6 Record $dest[0] added to zone $domain"); } ! } else if(preg_match("/\ba\b/i",$line[3])) { $recordTypeId=getRecordId("A"); Index: dns.inc.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/dns.inc.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** dns.inc.php 26 Apr 2004 02:03:55 -0000 1.21 --- dns.inc.php 13 May 2005 20:10:11 -0000 1.22 *************** *** 171,174 **** --- 171,175 ---- function getRecordTypeSelect() { global $db; + global $config; $query = "SELECT RECORDTYPEID,NAME FROM RECORDTYPE"; //Perform query *************** *** 177,180 **** --- 178,183 ---- $output = "<SELECT NAME=\"RECORDTYPE\">\n"; while ($myrow = mysql_fetch_row($result)) { + if (($config['OUTPUT_FORMAT'] == "djbdns" && $myrow[1] != "A6") || ( + $config['OUTPUT_FORMAT'] == "bind" )) { if($count == 0) { $output .= "<OPTION SELECTED VALUE=\"$myrow[0]\">$myrow[1]</OPTION>\n"; *************** *** 183,186 **** --- 186,190 ---- $output .= "<OPTION VALUE=\"$myrow[0]\">$myrow[1]</OPTION>\n"; } + } $count++; } |
|
From: Mike R. <ms...@us...> - 2005-05-13 20:10:37
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27617/outputInterfaces Modified Files: bind9.py Log Message: Add A6 Support for Bind. Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** bind9.py 21 May 2004 14:29:57 -0000 1.6 --- bind9.py 13 May 2005 20:10:12 -0000 1.7 *************** *** 216,219 **** --- 216,226 ---- #output.write("+"+record+":"+value+":"+ttl.__str__()+"\n") outputLine = record+"\t\t"+ttl+"\tIN A\t"+value+"\n" + #Handle A6 Records + if type == 'A5': + if(ttl == None): + ttl = globalttl + else: + ttl = ttl.__str__() + outputLine = record+"\t\t"+ttl+"\t IN A6\t"+value+"\n" #Handle MX Records |
|
From: Mike R. <ms...@us...> - 2005-05-13 20:09:22
|
Update of /cvsroot/blahzdns/blahzdns/sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27361 Modified Files: schema.sql Log Message: Change Deprecated AAAA IPV6 Bind Entry to new A6 format. Index: schema.sql =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/sql/schema.sql,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** schema.sql 29 Feb 2004 06:00:21 -0000 1.11 --- schema.sql 13 May 2005 20:09:13 -0000 1.12 *************** *** 79,83 **** INSERT INTO RECORDTYPE VALUES (1,'A','Address Record',4); ! INSERT INTO RECORDTYPE VALUES (2,'AAAA','IPV6 Address Record',5); INSERT INTO RECORDTYPE VALUES (3,'CNAME','Canonical name',6); INSERT INTO RECORDTYPE VALUES (4,'HINFO','Host Info',7); --- 79,83 ---- INSERT INTO RECORDTYPE VALUES (1,'A','Address Record',4); ! INSERT INTO RECORDTYPE VALUES (2,'A6','IPV6 Address Record',5); INSERT INTO RECORDTYPE VALUES (3,'CNAME','Canonical name',6); INSERT INTO RECORDTYPE VALUES (4,'HINFO','Host Info',7); |
|
From: Mike R. <ms...@us...> - 2005-05-13 19:42:13
|
Update of /cvsroot/blahzdns/blahzdns/sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21014 Added Files: blahzdns.xml Log Message: Added DBDesigner 4 Schema to the repository. --- NEW FILE: blahzdns.xml --- <?xml version="1.0" standalone="yes" ?> <DBMODEL Version="4.0"> <SETTINGS> <GLOBALSETTINGS ModelName="blahzdns" IDModel="0" IDVersion="0" VersionStr="1.0.0.0" Comments="" UseVersionHistroy="1" AutoIncVersion="1" DatabaseType="MySQL" ZoomFac="60.00" XPos="0" YPos="24" DefaultDataType="5" DefaultTablePrefix="0" DefSaveDBConn="" DefSyncDBConn="" DefQueryDBConn="" Printer="" HPageCount="4.0" PageAspectRatio="1.440892512336408" PageOrientation="1" PageFormat="A4 (210x297 mm, 8.26x11.7 inches)" SelectedPages="" UsePositionGrid="0" PositionGridX="20" PositionGridY="20" TableNameInRefs="0" DefaultTableType="0" ActivateRefDefForNewRelations="1" FKPrefix="" FKPostfix="" CreateFKRefDefIndex="0" DBQuoteCharacter="`" CreateSQLforLinkedObjects="0" DefModelFont="Nimbus Sans L" CanvasWidth="4096" CanvasHeight="2842" /> <DATATYPEGROUPS> <DATATYPEGROUP Name="Numeric Types" Icon="1" /> <DATATYPEGROUP Name="Date and Time Types" Icon="2" /> <DATATYPEGROUP Name="String Types" Icon="3" /> <DATATYPEGROUP Name="Blob and Text Types" Icon="4" /> <DATATYPEGROUP Name="User defined Types" Icon="5" /> <DATATYPEGROUP Name="Geographic Types" Icon="6" /> </DATATYPEGROUPS> <DATATYPES> <DATATYPE ID="1" IDGroup="0" TypeName="TINYINT" Description="A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255." ParamCount="1" OptionCount="2" ParamRequired="0" EditParamsAsString="0" SynonymGroup="0" PhysicalMapping="0" PhysicalTypeName="" > <PARAMS> <PARAM Name="length" /> </PARAMS> <OPTIONS> <OPTION Name="UNSIGNED" Default="1" /> [...1000 lines suppressed...] <RELATION ID="1292" RelationName="Rel_14" Kind="5" SrcTable="1156" DestTable="1150" FKFields="USERID=USERID\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="29" /> <RELATION ID="1293" RelationName="Rel_15" Kind="5" SrcTable="1156" DestTable="1155" FKFields="USERID=USERID\n" FKFieldsComments="\n" relDirection="3" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="30" /> <RELATION ID="1294" RelationName="Rel_16" Kind="5" SrcTable="1160" DestTable="1149" FKFields="ZONEID=ZONEID\n" FKFieldsComments="\n" relDirection="2" MidOffset="0" OptionalStart="0" OptionalEnd="0" CaptionOffsetX="0" CaptionOffsetY="0" StartIntervalOffsetX="0" StartIntervalOffsetY="0" EndIntervalOffsetX="0" EndIntervalOffsetY="0" CreateRefDef="1" Invisible="0" RefDef="Matching=0\nOnDelete=3\nOnUpdate=3\n" Comments="" FKRefDefIndex_Obj_id="-1" Splitted="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="31" /> </RELATIONS> <NOTES> </NOTES> <IMAGES> </IMAGES> </METADATA> <PLUGINDATA> <PLUGINDATARECORDS> </PLUGINDATARECORDS> </PLUGINDATA> <QUERYDATA> <QUERYRECORDS> </QUERYRECORDS> </QUERYDATA> <LINKEDMODELS> </LINKEDMODELS> </DBMODEL> |
|
From: Mike R. <ms...@us...> - 2004-08-23 01:11:29
|
Update of /cvsroot/blahzdns/blahzdns/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7845/doc Added Files: CODINGSTANDARD Log Message: Added doc directory, and the starts of the coding standard doc. --- NEW FILE: CODINGSTANDARD --- Source File Layouts: All source files should begin with the following Comment Block. /* File: FILENAME Author: AUTHOR NAME <AUTHOR EMAIL ADDRESS> Homepage: http://blahzdns.sourceforge.net/ Comments: Description of the operation of the module. Including any known bugs and planned feature changes. */ SQL Query Syntax: All queries should be completely in caps. Columns selected must always be specified. (NO SELECT *) Any Updates/Inserts should use mysql_escape_string to sanitize user input before being submitted to the DB. |
|
From: Mike R. <ms...@us...> - 2004-08-23 00:59:12
|
Update of /cvsroot/blahzdns/blahzdns/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4466/doc Log Message: Directory /cvsroot/blahzdns/blahzdns/doc added to the repository |
|
From: Mike R. <ms...@us...> - 2004-05-21 14:30:06
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32345 Modified Files: bind9.py Log Message: Fix to also-notify output. Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** bind9.py 19 May 2004 03:29:24 -0000 1.5 --- bind9.py 21 May 2004 14:29:57 -0000 1.6 *************** *** 290,294 **** val = zoHash.get("2") if val != None: ! output.write("\talso-notify {"+string.replace(val,",","; ")+"};\n") val = zoHash.get("3") if val != None: --- 290,294 ---- val = zoHash.get("2") if val != None: ! output.write("\talso-notify {"+string.replace(val,",","; ")+";};\n") val = zoHash.get("3") if val != None: |
|
From: Mike R. <ms...@us...> - 2004-05-19 03:29:34
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20340/outputInterfaces Modified Files: bind9.py Log Message: Fix bug with output interface for bind9 with regards to also-notify Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bind9.py 24 Apr 2004 22:53:53 -0000 1.4 --- bind9.py 19 May 2004 03:29:24 -0000 1.5 *************** *** 135,139 **** val = zoHash.get("2") if val != None: ! output.write("\talso-notify {"+string.replace(val,",","; ")+"};\n") val = zoHash.get("3") --- 135,139 ---- val = zoHash.get("2") if val != None: ! output.write("\talso-notify {"+string.replace(val,",","; ")+";};\n") val = zoHash.get("3") |
|
From: Mike R. <ms...@us...> - 2004-05-19 03:28:59
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20285 Modified Files: editzone.php Log Message: Fix bug in user editing of primary zones when adding records Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** editzone.php 19 May 2004 03:10:01 -0000 1.23 --- editzone.php 19 May 2004 03:28:50 -0000 1.24 *************** *** 455,458 **** --- 455,459 ---- "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"NEW\" VALUE=\"New Record\">\n". "</TD></TR>\n". + "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$zonetype\">\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$zone\"></FORM>\n"; echo $output."</TABLE>\n"; |
|
From: Mike R. <ms...@us...> - 2004-05-19 03:10:13
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17248 Modified Files: editzone.php Log Message: Fixed small typo Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** editzone.php 1 May 2004 03:19:44 -0000 1.22 --- editzone.php 19 May 2004 03:10:01 -0000 1.23 *************** *** 404,407 **** --- 404,408 ---- $output .="<INPUT TYPE=\"HIDDEN\" NAME=\"SORTCOLUMN\" VALUE=\"$sortColumn\">\n"; + $output .="<INPUT TYPE=\"HIDDEN\" NAME=\"ORDER\" VALUE=\"$order\">\n"; $output .= "<TR><TD>Record <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=4&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=4&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; $output .= "<TD>TTL <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=5&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=5&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; |
|
From: Mike R. <ms...@us...> - 2004-05-01 03:20:49
|
Update of /cvsroot/blahzdns/blahzdns/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7066 Added Files: down.gif up.gif Log Message: Add images for ascending and descending column sorting --- NEW FILE: down.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: up.gif --- (This appears to be a binary file; contents omitted.) |
|
From: Mike R. <ms...@us...> - 2004-05-01 03:19:56
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6853 Modified Files: editzone.php Log Message: Update primary zone editor to allow ascending and descending ordering of columns Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** editzone.php 8 Apr 2004 01:38:57 -0000 1.21 --- editzone.php 1 May 2004 03:19:44 -0000 1.22 *************** *** 390,402 **** if($zonetype == "Primary") { //Setup Output Table $output = "<H1>$myrow[0]</H1>\n<TABLE BORDER=\"1\">\n"; $output .= "<FORM NAME=\"EDITZONE\" ACTION=\"editzone.php\" METHOD=\"POST\">\n"; ! $output .= "<TR><TD>Record</TD><TD>TTL</TD><TD>Type</TD>\n"; ! $output .= "<TD>MX Priority</TD><TD>Value</TD><TD> </TD></TR>\n"; //Perform query $query = "SELECT R.RECORDID, R.ZONEID, R.RECORDTYPEID,R.RECORD,R.TTL,R.MXPRIORITY,R.VALUE,Z.NAME ZNAME,RT.NAME RTNAME\n"; ! $query .= " FROM RECORDS R,ZONES Z, RECORDTYPE RT WHERE R.ZONEID=$zoneid AND Z.ZONEID=R.ZONEID AND R.RECORDTYPEID=RT.RECORDTYPEID ORDER BY RT.SORTORDER,R.RECORD,R.MXPRIORITY\n"; $result = mysql_query($query,$db); if(userAuthToView($user,$zoneid,$zonetype)) { --- 390,421 ---- if($zonetype == "Primary") { + $sortColumn = $_GET['SORTCOLUMN']; + if(is_null($sortColumn)) { + $sortColumn=$_POST['SORTCOLUMN']; + } + $order=$_GET['ORDER']; + if(is_null($order)) { + $order=$_POST['ORDER']; + } + //Setup Output Table $output = "<H1>$myrow[0]</H1>\n<TABLE BORDER=\"1\">\n"; $output .= "<FORM NAME=\"EDITZONE\" ACTION=\"editzone.php\" METHOD=\"POST\">\n"; ! $output .="<INPUT TYPE=\"HIDDEN\" NAME=\"SORTCOLUMN\" VALUE=\"$sortColumn\">\n"; ! $output .= "<TR><TD>Record <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=4&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=4&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; ! $output .= "<TD>TTL <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=5&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=5&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; ! $output .= "<TD>Type <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=3&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=3&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; ! $output .= "<TD>MX Priority <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=6&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=6&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD>\n"; ! $output .= "<TD>Value <a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=7&ORDER=ASC\"><IMG SRC=\"images/up.gif\" BORDER=\"0\"></a><a href=\"editzone.php?ZONEID=$zoneid&SORTCOLUMN=7&ORDER=DESC\"><IMG SRC=\"images/down.gif\" BORDER=\"0\"></a></TD><TD> </TD></TR>\n"; //Perform query $query = "SELECT R.RECORDID, R.ZONEID, R.RECORDTYPEID,R.RECORD,R.TTL,R.MXPRIORITY,R.VALUE,Z.NAME ZNAME,RT.NAME RTNAME\n"; ! $query .= " FROM RECORDS R,ZONES Z, RECORDTYPE RT WHERE R.ZONEID=$zoneid AND Z.ZONEID=R.ZONEID AND R.RECORDTYPEID=RT.RECORDTYPEID\n"; ! if(is_null($sortColumn) || $sortColumn =="" || $sortColumn=="3") { ! $query .= "ORDER BY RT.SORTORDER $order ,R.RECORD,R.MXPRIORITY \n"; ! } ! else { ! $query .= "ORDER BY $sortColumn $order,4,5 \n"; ! } $result = mysql_query($query,$db); if(userAuthToView($user,$zoneid,$zonetype)) { *************** *** 457,460 **** --- 476,480 ---- "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$zone\">\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"ACTION\" VALUE=\"UPDATESEC\">\n". + "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$zonetype\">\n". "</TD></TR></FORM></TABLE>\n"; echo $output; |
|
From: Mike R. <ms...@us...> - 2004-04-26 19:51:24
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29192 Modified Files: tinydns.py Log Message: Fix extra line at top of the script. Index: tinydns.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/tinydns.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tinydns.py 24 Apr 2004 22:53:53 -0000 1.11 --- tinydns.py 26 Apr 2004 19:51:14 -0000 1.12 *************** *** 1,3 **** - w #!/bin/env python # File: tinydns.py --- 1,2 ---- |
|
From: Mike R. <ms...@us...> - 2004-04-26 02:04:03
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17459 Modified Files: dns.inc.php Log Message: Fix idiot mistake of doing an assignment instead of a check in an if statement Index: dns.inc.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/dns.inc.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** dns.inc.php 7 Feb 2004 08:26:45 -0000 1.20 --- dns.inc.php 26 Apr 2004 02:03:55 -0000 1.21 *************** *** 254,258 **** else { $userid = getUserId($user); ! if($zonetype = "Primary" || $zonetype = "Dynamic") { $query = "SELECT PUR.USERID FROM PRIMARYUSERREF PUR, USERACCOUNT UA, USERACCOUNTTYPE UAT WHERE PUR.ZONEID=$zoneid"; $query .= " AND PUR.USERID=$userid\n"; --- 254,258 ---- else { $userid = getUserId($user); ! if($zonetype == "Primary" || $zonetype == "Dynamic") { $query = "SELECT PUR.USERID FROM PRIMARYUSERREF PUR, USERACCOUNT UA, USERACCOUNTTYPE UAT WHERE PUR.ZONEID=$zoneid"; $query .= " AND PUR.USERID=$userid\n"; *************** *** 260,265 **** } else { ! $query = "SELECT PUR.USERID FROM SECONDARYUSERREF SUR, USERACCOUNT UA, USERACCOUNTTYPE UAT WHERE SUR.ZONEID=$zoneid"; ! $query .= " AND PUR.USERID=$userid\n"; $query .= " AND UA.USERID=$userid AND UA.USERACCOUNTTYPEID=UAT.USERACCOUNTTYPEID AND UAT.NAME=\"User\""; } --- 260,265 ---- } else { ! $query = "SELECT SUR.USERID FROM SECONDARYUSERREF SUR, USERACCOUNT UA, USERACCOUNTTYPE UAT WHERE SUR.ZONEID=$zoneid"; ! $query .= " AND SUR.USERID=$userid\n"; $query .= " AND UA.USERID=$userid AND UA.USERACCOUNTTYPEID=UAT.USERACCOUNTTYPEID AND UAT.NAME=\"User\""; } |
|
From: Mike R. <ms...@us...> - 2004-04-24 22:54:02
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6033 Modified Files: bind9.py tinydns.py Log Message: Fixed bug in both output interfaces to remove " escapes that get returned from the DB Index: tinydns.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/tinydns.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** tinydns.py 10 Jan 2004 01:25:27 -0000 1.10 --- tinydns.py 24 Apr 2004 22:53:53 -0000 1.11 *************** *** 1,2 **** --- 1,3 ---- + w #!/bin/env python # File: tinydns.py *************** *** 276,279 **** --- 277,281 ---- for name,value in result: configHash[name] = value + configHash[name] = string.replace(configHash[name],"\\\"","\"") return configHash Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** bind9.py 29 Mar 2004 02:48:35 -0000 1.3 --- bind9.py 24 Apr 2004 22:53:53 -0000 1.4 *************** *** 339,342 **** --- 339,343 ---- for name,value in result: configHash[name] = value + configHash[name] = string.replace(configHash[name],"\\\"","\"") return configHash |
|
From: Mike R. <ms...@us...> - 2004-04-08 02:45:59
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28830 Modified Files: INSTALL Log Message: Added a bit more info to the install instructions with regards to choosing output interface. Index: INSTALL =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/INSTALL,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** INSTALL 8 Feb 2004 18:17:50 -0000 1.4 --- INSTALL 8 Apr 2004 02:32:38 -0000 1.5 *************** *** 48,52 **** format for your DNS server package. If you donot wish to use the provided output interfaces please feel free to write your own. All I ask is that you submit it to ! be included in the package. --- 48,54 ---- format for your DNS server package. If you donot wish to use the provided output interfaces please feel free to write your own. All I ask is that you submit it to ! be included in the package. Once you have chosen a output Interface to use you ! can either run it manually when you make a change. Or you can set it up to run ! in cron on an interval. |
|
From: Mike R. <ms...@us...> - 2004-04-08 01:52:01
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16087 Modified Files: editzone.php Log Message: Whoops forgot to remove old code. Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** editzone.php 8 Apr 2004 01:33:07 -0000 1.20 --- editzone.php 8 Apr 2004 01:38:57 -0000 1.21 *************** *** 418,433 **** "<TD><INPUT TYPE=\"TEXT\" NAME=\"$recordId-VALUE\" VALUE=\"$myrow[6]\"></TD>\n". "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete\" onClick=\"$deleteScript\"></TD></TR>\n"; - /* - $output .= "<FORM NAME=\"FORM$myrow[0]\" ACTION=\"editzone.php\" METHOD=\"POST\">\n" . - "<TR><TD><INPUT NAME=\"RECORD\" VALUE=\"$myrow[3]\" TYPE=\"TEXT\"></TD>\n". - "<TD><INPUT NAME=\"TTL\" VALUE=\"$myrow[4]\" TYPE=\"TEXT\"></TD>\n". - "<TD>$myrow[8]</TD><TD><INPUT NAME=\"MXPRIORITY\" VALUE=\"$myrow[5]\" TYPE=\"TEXT\"></TD>\n". - "<TD><INPUT TYPE=\"TEXT\" NAME=\"VALUE\" VALUE=\"$myrow[6]\"></TD>\n". - "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"SAVE\" VALUE=\"Save\"> \n". - "<INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete\" onClick=\"$deleteScript\"></TD></TR>\n". - "<INPUT TYPE=\"HIDDEN\" NAME=\"RECORDID\" VALUE=\"$myrow[0]\">\n". - "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". - "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$zonetype\"></FORM>\n"; - */ } $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". --- 418,421 ---- |
|
From: Mike R. <ms...@us...> - 2004-04-08 01:46:14
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15058 Modified Files: editzone.php vars.php Log Message: Added support for feature request 890173. Index: vars.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/vars.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** vars.php 28 Nov 2003 02:44:51 -0000 1.8 --- vars.php 8 Apr 2004 01:33:07 -0000 1.9 *************** *** 5,9 **** //This variable holds our SQL username ! $dbuser = ""; --- 5,9 ---- //This variable holds our SQL username ! $dbuser = "root"; *************** *** 12,16 **** //This variable holds our SQL DB Name ! $dbname = "dnstest2"; --- 12,16 ---- //This variable holds our SQL DB Name ! $dbname = "blahzdns"; *************** *** 19,22 **** //See README file Section on crypt method //Valid options "crypt" & "mcrypt" ! $cryptMethod = "mcrypt"; ?> --- 19,22 ---- //See README file Section on crypt method //Valid options "crypt" & "mcrypt" ! $cryptMethod = "crypt"; ?> Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** editzone.php 29 Feb 2004 06:00:21 -0000 1.19 --- editzone.php 8 Apr 2004 01:33:07 -0000 1.20 *************** *** 216,230 **** } else { ! if($_POST['RECORD'] == "") { ! $_POST['RECORD'] = "@"; ! } ! if(is_null($_POST['RECORD']) || $_POST['RECORD'] == "" || ! is_null($_POST['VALUE']) || $_POST['VALUE'] == "" || ! is_null($_POST['RECORDID']) || $_POST['RECORDID']=="") { ! getPage($user); ! } ! else { ! $ttl = intval($_POST['TTL']); ! $mx = intval($_POST['MXPRIORITY']); if($ttl == 0) { $ttl = "NULL"; --- 216,230 ---- } else { ! $records = substr($_POST['RECORDS'],0,strlen($POST['RECORDS'])-1); ! $recordArray = split(',',$records); ! ! for( $k=0; $k < count($recordArray); $k++) { ! $record = $recordArray[$k]; ! if($_POST[$record.'-RECORD'] == "") { ! $_POST[$record.'-RECORD'] = "@"; ! } ! ! $ttl = intval($_POST[$record.'-TTL']); ! $mx = intval($_POST[$record.'-MXPRIORITY']); if($ttl == 0) { $ttl = "NULL"; *************** *** 233,244 **** $mx = "NULL"; } ! $query = "UPDATE RECORDS SET RECORD=\"".mysql_escape_string($_POST['RECORD'])."\",TTL=$ttl,". ! "MXPRIORITY=$mx,VALUE=\"".mysql_escape_string($_POST['VALUE'])."\",MODUSER=\"$user\" WHERE RECORDID=".$_POST['RECORDID']."\n"; $result = mysql_query($query,$db); zoneUpdated($_POST['ZONEID']); ! logMessage($user,$ip,"MODRECORD","Record ".mysql_escape_string($_POST['RECORD'])." modified to ".mysql_escape_string($_POST['VALUE']." for zone ".$_POST['ZONE'])); getPage($user); echo "<BR>Success Changes Saved<BR>\n"; - } } } --- 233,247 ---- $mx = "NULL"; } ! ! ! $query = "UPDATE RECORDS SET RECORD=\"".mysql_escape_string($_POST[$record.'-RECORD'])."\",TTL=$ttl,". ! "MXPRIORITY=$mx,VALUE=\"".mysql_escape_string($_POST[$record.'-VALUE'])."\",MODUSER=\"$user\" WHERE RECORDID=".$record."\n"; $result = mysql_query($query,$db); zoneUpdated($_POST['ZONEID']); ! logMessage($user,$ip,"MODRECORD","Record ".mysql_escape_string($_POST[$record.'-RECORD'])." modified to ".mysql_escape_string($_POST[$record.'-VALUE']." for zone ".$_POST['ZONE'])); ! } getPage($user); + echo "<BR>Success Changes Saved<BR>\n"; } } *************** *** 389,392 **** --- 392,397 ---- //Setup Output Table $output = "<H1>$myrow[0]</H1>\n<TABLE BORDER=\"1\">\n"; + $output .= "<FORM NAME=\"EDITZONE\" ACTION=\"editzone.php\" METHOD=\"POST\">\n"; + $output .= "<TR><TD>Record</TD><TD>TTL</TD><TD>Type</TD>\n"; $output .= "<TD>MX Priority</TD><TD>Value</TD><TD> </TD></TR>\n"; *************** *** 399,406 **** $deleteScript=""; if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { ! $deleteScript = "var agree=confirm('Delete Record $myrow[3]:$myrow[8]:$myrow[6]?'); if(agree) { return true; } else { return false; }"; } ! $zone=$myrow[7]; $output .= "<FORM NAME=\"FORM$myrow[0]\" ACTION=\"editzone.php\" METHOD=\"POST\">\n" . "<TR><TD><INPUT NAME=\"RECORD\" VALUE=\"$myrow[3]\" TYPE=\"TEXT\"></TD>\n". --- 404,422 ---- $deleteScript=""; if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { ! $deleteScript = "var agree=confirm('Delete Record $myrow[3]:$myrow[8]:$myrow[6]?'); if(agree) { form.elements['RECORDID'].value=$myrow[0]; return true; } else { return false; }"; } ! else { ! $deleteScript = "form.elements['RECORDID'].value=$myrow[0];"; ! } ! $record .= $myrow[0].","; ! $recordId = $myrow[0]; $zone=$myrow[7]; + + $output .="<TR><TD><INPUT NAME=\"$recordId-RECORD\" VALUE=\"$myrow[3]\" TYPE=\"TEXT\"></TD>\n". + "<TD><INPUT NAME=\"$recordId-TTL\" VALUE=\"$myrow[4]\" TYPE=\"TEXT\"></TD>\n". + "<TD>$myrow[8]</TD><TD><INPUT NAME=\"$recordId-MXPRIORITY\" VALUE=\"$myrow[5]\" TYPE=\"TEXT\"></TD>\n". + "<TD><INPUT TYPE=\"TEXT\" NAME=\"$recordId-VALUE\" VALUE=\"$myrow[6]\"></TD>\n". + "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete\" onClick=\"$deleteScript\"></TD></TR>\n"; + /* $output .= "<FORM NAME=\"FORM$myrow[0]\" ACTION=\"editzone.php\" METHOD=\"POST\">\n" . "<TR><TD><INPUT NAME=\"RECORD\" VALUE=\"$myrow[3]\" TYPE=\"TEXT\"></TD>\n". *************** *** 413,417 **** --- 429,442 ---- "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$zonetype\"></FORM>\n"; + */ } + $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". + "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$zonetype\">\n" + ."<INPUT TYPE=\"HIDDEN\" NAME=\"RECORDS\" VALUE=\"$record\">\n" + ."<INPUT TYPE=\"HIDDEN\" NAME=\"RECORDID\" VALUE=\"\">\n"; + + $output .= "<TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"SAVE\" VALUE=\"Save\"></TD></TR>\n"; + + $output .= "</FORM>\n"; $output .= "<FORM NAME=\"NEWRECORD\" ACTION=\"editzone.php\" METHOD=\"POST\">\n". "<TR><TD><INPUT NAME=\"RECORD\" VALUE=\"\" TYPE=\"TEXT\"></TD>\n". |
|
From: Mike R. <ms...@us...> - 2004-03-29 02:59:58
|
Update of /cvsroot/blahzdns/blahzdns/outputInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6389 Modified Files: bind9.py Log Message: Fixed typo. Index: bind9.py =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/outputInterfaces/bind9.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** bind9.py 4 Feb 2004 23:43:18 -0000 1.2 --- bind9.py 29 Mar 2004 02:48:35 -0000 1.3 *************** *** 253,257 **** if type == 'CNAME': if(ttl == None): ! ttl=globalttyl else: ttl = ttl.__str__() --- 253,257 ---- if type == 'CNAME': if(ttl == None): ! ttl=globalttl else: ttl = ttl.__str__() |
|
From: <ms...@us...> - 2004-02-29 06:10:23
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26178 Modified Files: editzone.php mainpage.php search.php Added Files: UPDATE Log Message: Updates: Added New program option and code to support delete confirmation popups. Additions: Added Quick Updating instructions Added Updating Schema --- NEW FILE: UPDATE --- Terse Updating Instructions: ------------------------------------------------------ CVS-20031224 -> CVS20040228 Overwrite all php files except vars.php Run the following Schema Upgrades: sql/CVS20031224-CVS20040228.sql Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** editzone.php 7 Feb 2004 08:26:45 -0000 1.18 --- editzone.php 29 Feb 2004 06:00:21 -0000 1.19 *************** *** 81,88 **** $result = mysql_query($query,$db); if($result) { ! $query = "SELECT ZONEID FROM ZONES WHERE NAME='".mysql_escape_string($_POST['NEWZONE'])."'"; ! $res = mysql_query($query,$db); ! $row = mysql_fetch_row($res); ! $zoneid = $row[0]; $userid = getUserId($user); if(isUser($user)) { --- 81,85 ---- $result = mysql_query($query,$db); if($result) { ! $zoneid = mysql_insert_id(); $userid = getUserId($user); if(isUser($user)) { *************** *** 375,378 **** --- 372,377 ---- function getPage($user) { global $db; + global $config; + $confirm = $config['CONFIRMDELETE']; //Setup query $zoneid = $_GET['ZONEID']; *************** *** 386,389 **** --- 385,389 ---- $zonetype = $myrow[2]; $zone = $myrow[0]; + if($zonetype == "Primary") { //Setup Output Table *************** *** 397,400 **** --- 397,405 ---- if(userAuthToView($user,$zoneid,$zonetype)) { while($myrow = mysql_fetch_row($result)) { + $deleteScript=""; + if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { + $deleteScript = "var agree=confirm('Delete Record $myrow[3]:$myrow[8]:$myrow[6]?'); if(agree) { return true; } else { return false; }"; + } + $zone=$myrow[7]; $output .= "<FORM NAME=\"FORM$myrow[0]\" ACTION=\"editzone.php\" METHOD=\"POST\">\n" . *************** *** 404,408 **** "<TD><INPUT TYPE=\"TEXT\" NAME=\"VALUE\" VALUE=\"$myrow[6]\"></TD>\n". "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"SAVE\" VALUE=\"Save\"> \n". ! "<INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete\"></TD></TR>\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"RECORDID\" VALUE=\"$myrow[0]\">\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". --- 409,413 ---- "<TD><INPUT TYPE=\"TEXT\" NAME=\"VALUE\" VALUE=\"$myrow[6]\"></TD>\n". "<TD><INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"SAVE\" VALUE=\"Save\"> \n". ! "<INPUT CLASS=\"BUTTON\" TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete\" onClick=\"$deleteScript\"></TD></TR>\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"RECORDID\" VALUE=\"$myrow[0]\">\n". "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$zoneid\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[7]\">". Index: mainpage.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/mainpage.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** mainpage.php 28 Nov 2003 02:55:39 -0000 1.22 --- mainpage.php 29 Feb 2004 06:00:21 -0000 1.23 *************** *** 174,178 **** --- 174,185 ---- } $offset = $config['LISTINGRECORDS']*$page; + + $confirm = $config['CONFIRMDELETE']; + $deleteScript=""; + if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { + $deleteScript = "if(confirm(\"Delete zone $zone?\") { return true; } else { return false; }"; + } + $query = "SELECT Z.ZONEID,Z.NAME ZNAME,ZS.NAME ZSNAME,\n"; $query .= "ZT.NAME ZTNAME,ZS.ZONESTATUSID\n"; *************** *** 211,215 **** $numRows = mysql_num_rows($result); $rowsPerCol = intval(($numRows /2)+.5); ! $totRecords = "SELECT COUNT(*) FROM ZONES\n"; $countRes = mysql_query($totRecords,$db); $total = mysql_fetch_row($countRes); --- 218,222 ---- $numRows = mysql_num_rows($result); $rowsPerCol = intval(($numRows /2)+.5); ! $totRecords = "SELECT COUNT(ZONEID) FROM ZONES WHERE ZONEID > 0\n"; $countRes = mysql_query($totRecords,$db); $total = mysql_fetch_row($countRes); *************** *** 239,242 **** --- 246,254 ---- $output .= "<TR><TD WIDTH=\"25%\">Domain</TD><TD WIDTH=\"25%\">Status</TD><TD WIDTH=\"25%\">Zone Type</TD><TD WIDTH=\"25%\"> </TD></TR>\n"; while($myrow=mysql_fetch_row($result)) { + $deleteScript=""; + if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { + $deleteScript = "var agree=confirm('Delete zone $myrow[1]?'); if(agree) { return true; } else { return false; }"; + } + if($count == $rowsPerCol) { $output .= "</TABLE></TD><TD>\n"; *************** *** 255,259 **** $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ACTION\" VALUE=\"DELETEZONE\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$myrow[0]\">"; $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[1]\">\n"; ! $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$myrow[3]\"><INPUT TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete Zone\"></FORM></TD></TR>\n"; } $count++; --- 267,271 ---- $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ACTION\" VALUE=\"DELETEZONE\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$myrow[0]\">"; $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[1]\">\n"; ! $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$myrow[3]\"><INPUT TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete Zone\" onClick=\"$deleteScript\"></FORM></TD></TR>\n"; } $count++; Index: search.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/search.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** search.php 20 Sep 2003 04:33:37 -0000 1.11 --- search.php 29 Feb 2004 06:00:21 -0000 1.12 *************** *** 21,24 **** --- 21,25 ---- if(verify($user,$cryptpass) && !checktimeout($_SESSION['time'])) { + global $config; $time = time(); $_SESSION['time'] = $time; *************** *** 142,147 **** $output .= "<TABLE BORDER=1 WIDTH=100%>\n"; $output .= "<TR><TD WIDTH=\"25%\">Domain</TD><TD WIDTH=\"25%\">Status</TD><TD WIDTH=\"25%\">Zone Type</TD><TD WIDTH=\"25%\"> </TD></TR>\n"; ! while ($myrow = mysql_fetch_row($result)) { if(userAuthToView($user,$myrow[0],$myrow[3])) { $results = true; --- 143,153 ---- $output .= "<TABLE BORDER=1 WIDTH=100%>\n"; $output .= "<TR><TD WIDTH=\"25%\">Domain</TD><TD WIDTH=\"25%\">Status</TD><TD WIDTH=\"25%\">Zone Type</TD><TD WIDTH=\"25%\"> </TD></TR>\n"; ! $confirm = $config['CONFIRMDELETE']; while ($myrow = mysql_fetch_row($result)) { + $deleteScript=""; + if((strtoupper($confirm) == "YES") ||(strtoupper($confirm)=="USER" && isUser($username) )) { + $deleteScript = "var agree=confirm('Delete zone $myrow[1]?'); if(agree) { return true; } else { return false; }"; + } + if(userAuthToView($user,$myrow[0],$myrow[3])) { $results = true; *************** *** 155,159 **** $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ACTION\" VALUE=\"DELETEZONE\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$myrow[0]\">"; $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"SEARCHVALUE\" VALUE=\"".$_POST['SEARCHVALUE']."\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[1]\">\n"; ! $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$myrow[3]\"><INPUT TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete Zone\"></FORM></TD></TR>\n"; } } --- 161,165 ---- $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ACTION\" VALUE=\"DELETEZONE\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONEID\" VALUE=\"$myrow[0]\">"; $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"SEARCHVALUE\" VALUE=\"".$_POST['SEARCHVALUE']."\"><INPUT TYPE=\"HIDDEN\" NAME=\"ZONE\" VALUE=\"$myrow[1]\">\n"; ! $output .= "<INPUT TYPE=\"HIDDEN\" NAME=\"ZONETYPE\" VALUE=\"$myrow[3]\"><INPUT TYPE=\"SUBMIT\" NAME=\"DELETE\" VALUE=\"Delete Zone\" onClick=\"$deleteScript\"></FORM></TD></TR>\n"; } } |
|
From: <ms...@us...> - 2004-02-29 06:10:23
|
Update of /cvsroot/blahzdns/blahzdns/sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26178/sql Modified Files: schema.sql Added Files: CVS20031224-CVS20040228.sql Log Message: Updates: Added New program option and code to support delete confirmation popups. Additions: Added Quick Updating instructions Added Updating Schema --- NEW FILE: CVS20031224-CVS20040228.sql --- INSERT INTO PROGRAMOPTIONTYPE VALUES (22,'CONFIRMDELETE','Confirm Delete Actions (yes,no,user)'); INSERT INTO PROGRAMOPTIONS VALUES ('',22,''); Index: schema.sql =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/sql/schema.sql,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** schema.sql 22 Dec 2003 23:19:39 -0000 1.10 --- schema.sql 29 Feb 2004 06:00:21 -0000 1.11 *************** *** 189,192 **** --- 189,193 ---- INSERT INTO PROGRAMOPTIONTYPE VALUES (20,'AUTOADDSOA','Automatically Add SOA Records to New Zones'); INSERT INTO PROGRAMOPTIONTYPE VALUES (21,'LISTINGRECORDS','Number Of Records to Show Per Page in Listing Mode'); + INSERT INTO PROGRAMOPTIONTYPE VALUES (22,'CONFIRMDELETE','Confirm Delete Actions (yes,no,user)'); CREATE TABLE PROGRAMOPTIONS ( |
|
From: <ms...@us...> - 2004-02-08 18:20:55
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7803 Modified Files: INSTALL Log Message: Fixed typos in INSTALL. Index: INSTALL =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/INSTALL,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** INSTALL 25 Dec 2003 02:01:38 -0000 1.3 --- INSTALL 8 Feb 2004 18:17:50 -0000 1.4 *************** *** 46,53 **** 10) Check the outputInterfaces directory for the script to output data into the correct ! format for your DNS server package (currently only tinydns/autoaxfr output interfaces are ! working, Bind 9 output filter should be ready soon). If you donot wish to use the provided output interfaces please feel free to write your own. All I ask is that you submit it to ! be included in tha package. --- 46,52 ---- 10) Check the outputInterfaces directory for the script to output data into the correct ! format for your DNS server package. If you donot wish to use the provided output interfaces please feel free to write your own. All I ask is that you submit it to ! be included in the package. |
|
From: <ms...@us...> - 2004-02-07 08:29:36
|
Update of /cvsroot/blahzdns/blahzdns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3553 Modified Files: dns.inc.php editzone.php Log Message: Added Feature: Source Zone when creating zone's you can now move all config from a source to a destination zone. Including the possibility or replace the source zone name with the new zone name. Index: dns.inc.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/dns.inc.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** dns.inc.php 20 Sep 2003 04:33:37 -0000 1.19 --- dns.inc.php 7 Feb 2004 08:26:45 -0000 1.20 *************** *** 361,363 **** --- 361,378 ---- return $row[0]; } + + function getZoneSelect($name,$nullChoice) { + global $db; + $query = "SELECT ZONEID,NAME FROM ZONES WHERE ZONETYPEID=1 ORDER BY NAME"; + $result = mysql_query($query,$db); + $output = "<SELECT NAME=\"".$name."\">\n"; + if($nullChoice) { + $output .= "<OPTION VALUE=\"NULL\">Select</OPTION>\n"; + } + while($myrow = mysql_fetch_row($result)) { + $output .= "<OPTION VALUE=\"".$myrow[0]."\">".$myrow[1]."</OPTION>\n"; + } + $output.="</SELECT>\n"; + return $output; + } ?> Index: editzone.php =================================================================== RCS file: /cvsroot/blahzdns/blahzdns/editzone.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** editzone.php 22 Dec 2003 23:19:39 -0000 1.17 --- editzone.php 7 Feb 2004 08:26:45 -0000 1.18 *************** *** 120,123 **** --- 120,153 ---- } } + if($_POST['SOURCEZONE'] != 'NULL') { + if(!is_null($_POST['REPLACE'])) { + $replace = true; + } + else { + $replace = false; + } + $sourceZoneId = $_POST['SOURCEZONE']; + $query = "SELECT RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE FROM RECORDS WHERE ZONEID=".$sourceZoneId; + $result = mysql_query($query,$db); + while($myrow = mysql_fetch_row($result)) { + $typeId=$myrow[0]; + $record=$myrow[1]; + $ttl=$myrow[2]; + $mxpri=$myrow[3]; + $val=$myrow[4]; + if($replace) { + $sourceZoneName=getZoneName($sourceZoneId); + $record=str_replace($sourceZoneName,$_POST['NEWZONE'],$record); + $val=str_replace($sourceZoneName,$_POST['NEWZONE'],$val); + } + if($mxpri == '') { + $mxpri="NULL"; + } + $query = "INSERT INTO RECORDS (ZONEID,MODUSER,RECORDTYPEID,RECORD,TTL,MXPRIORITY,VALUE) VALUES ("; + $query .= "$zoneid,'$user',$typeId,'$record',$ttl,$mxpri,'$val')"; + $stuff=mysql_query($query,$db); + } + } + else { global $config; if(strtolower($config['AUTOADDSOA']) == 'yes') { *************** *** 128,131 **** --- 158,162 ---- mysql_query($query,$db); } + } $_POST['ZONEID'] = $zoneid; logMessage($user,$ip,"ADDDOMAIN","Added Domain ".mysql_escape_string($_POST['NEWZONE'])); *************** *** 315,319 **** global $db; $output = "<H1>Create Zone</H1>\n"; ! $output .= "<FORM ACTION=\"editzone.php\" METHOD=\"POST\"><TABLE BORDER=\"1\" ALLIGN=\"CENTER\" ><TR><TD ALIGN=\"RIGHT\">\n"; $output .= "Domain Name:</TD><TD ALIGN=\"LEFT\"><INPUT TYPE=\"TEXT\" SIZE=\"50\" NAME=\"NEWZONE\" VALUE=\"\"></TD></TR>\n"; $output .= "<TR><TD ALIGN=\"RIGHT\">Zone Type:</TD><TD ALIGN=\"LEFT\">".getZoneTypeSelect()."</TD>\n"; --- 346,350 ---- global $db; $output = "<H1>Create Zone</H1>\n"; ! $output .= "<FORM NAME=\"NEW\" ACTION=\"editzone.php\" METHOD=\"POST\"><TABLE BORDER=\"1\" ALLIGN=\"CENTER\" ><TR><TD ALIGN=\"RIGHT\">\n"; $output .= "Domain Name:</TD><TD ALIGN=\"LEFT\"><INPUT TYPE=\"TEXT\" SIZE=\"50\" NAME=\"NEWZONE\" VALUE=\"\"></TD></TR>\n"; $output .= "<TR><TD ALIGN=\"RIGHT\">Zone Type:</TD><TD ALIGN=\"LEFT\">".getZoneTypeSelect()."</TD>\n"; *************** *** 321,324 **** --- 352,357 ---- $output .= "<TR><TD ALIGN=\"RIGHT\">Allow Updates:</TD><TD ALIGN=\"LEFT\"><INPUT TYPE=\"TEXT\" NAME=\"ALLOWUPDATES\" SIZE=\"50\" VALUE=\"Only for Dynamic Zones\"></TD></TR>\n"; $output .= "<TR><TD ALIGN=\"RIGHT\">Also Notify:</TD><TD ALIGN=\"LEFT\"><INPUT TYPE=\"TEXT\" NAME=\"ALSONOTIFY\" SIZE=\"50\" VALUE=\"Additional Notified Servers\"></TD></TR>\n"; + $output .= "<TR><TD ALIGN=\"RIGHT\">Source Zone:</TD><TD ALIGN=\"LEFT\">".getZoneSelect("SOURCEZONE",true)." Replace? <INPUT TYPE=\"CHECKBOX\" NAME=\"REPLACE\" onMouseOver=\"window.status='Replace instances of source with new zone';\" onMouseOut=\"window.status=''\"} return true;\"></TD></TR>\n"; + $output .= "<TR><TD ALIGN=\"RIGHT\"> </TD><TD ALIGN=\"LEFT\"><INPUT TYPE=\"SUBMIT\" NAME=\"CREATE\" VALUE=\"Create\" onClick=\"".getCreateSubmitJS()."\"></TD></TR>\n"; $output .= "</TABLE>\n"; |