Commit graph

82 commits

Author SHA1 Message Date
Mark Schouten
f67fa04d85 This fixes the issues with the newer pdns, which suddenly includes the whole API url in the returned json.
Closes #145. In response to 4d4e536d52
2017-04-28 12:32:01 +02:00
Mark Schouten
9d27a140d7 Fix proto in logo url 2017-04-20 11:46:55 +02:00
Mark Schouten
4d4e536d52 Deduplicate the api-url 2017-04-20 11:45:33 +02:00
Mark Schouten
41801a73f6 Try to set soa_edit_api, if it is not yet set 2016-10-25 12:14:07 +02:00
Mark Schouten
94e0d22bf2 If we don't have a soa_edit_api for this zone yet, set it to our default 2016-10-25 11:10:22 +02:00
Mark Schouten
77192d84b1 Don't close the database connection and make it global. Also, honour the account that is set in pdns, unless its empty 2016-10-19 17:28:16 +02:00
Richard Underwood
083cb9429c Modified users jtable to use id & fixed user deletion. 2016-09-20 10:10:54 +01:00
Richard Underwood
7c767b7769 Merge remote-tracking branch 'origin/master' into issue-107
Add test for pre-PHP 5.4 for pretty-printing logs

Conflicts:
	includes/misc.inc.php
2016-08-26 10:00:51 +01:00
Richard Underwood
2cb95a6959 UNRELATED CHANGE - put test around curl_reset to allow testing on PHP 5.4 2016-08-26 09:30:56 +01:00
Richard Underwood
f081d96b0c Allow viewing of past logs.
Add a command-line PHP script for rotation in cron.
2016-08-24 14:19:52 +01:00
Richard Underwood
d1b817443c Initial implementation of log rotation. 2016-08-24 11:32:43 +01:00
Mark Schouten
b91317046b Fix logging in cases we don't have a username yet. Also, log more stuff. Closes #104 2016-08-23 12:30:27 +02:00
Mark Schouten
4b5d4b02c9 Fix bug in Exception() and clearify the error message. Closes #100 2016-08-09 22:59:29 +02:00
Mark Schouten
b04b4dd864 Set ttl for the whole rrset if we update a record within that rrset. Might update other records as well, but that's as designed. Should fix #99 2016-08-08 19:13:47 +02:00
Mark Schouten
3fd525748f Do not do any logging if it's disabled 2016-08-05 12:20:19 +02:00
Mark Schouten
a91d91baa4 Add default value for setptr 2016-08-05 12:05:36 +02:00
Mark Schouten
cbea4778ef Implement logging. Closes #67 2016-08-05 11:57:04 +02:00
Mark Schouten
d103c7b04f Implement set-ptr. Closes #51 . Make 'true/false' prettier 2016-08-04 16:55:03 +02:00
Mark Schouten
5cd225cb43 Implement cloning of zones, closes #81 2016-08-04 16:18:45 +02:00
Mark Schouten
30f43e98a5 Improve readability of function names 2016-08-04 15:31:17 +02:00
Mark Schouten
ef7f47e3f4 Fix creating records without the zonename. Sort the zones. Fix creation of disabled records 2016-08-04 14:46:32 +02:00
Mark Schouten
82819bf33b Remove leftover from copy/paste. Do not replace and check if ['serial'] exists.. 2016-08-04 13:44:39 +02:00
Mark Schouten
c7b36d7d7d Implement deleteRecord and fix some small errors 2016-08-04 12:09:56 +02:00
Mark Schouten
d94d1da445 Implement exportzone 2016-08-04 12:07:14 +02:00
Mark Schouten
e2034c5861 * Implement getrrset() and use it where we can
* addrecord() should just add the record, even if the rrset does not yet exist
* Make addrecord() return the created record
* Implement getrecord()
2016-08-03 16:54:58 +02:00
Mark Schouten
4d6ecb612e Fix a erasemasters() for a zone 2016-08-03 16:08:40 +02:00
Mark Schouten
cf754d0135 Check if serial is an integer, so we know if it's a new zone. Also, return the new zone upon saving it. 2016-08-03 16:07:48 +02:00
Mark Schouten
2cc92e6842 We can now import, create AND delete zones 2016-08-03 15:14:27 +02:00
Mark Schouten
4ac1e6e767 We can now view zones. Yay! 2016-08-03 14:29:35 +02:00
Mark Schouten
1c3e5cfc99 Cannot use object of type RRSet as array 2016-08-03 14:21:56 +02:00
Mark Schouten
d5ef95e711 Make functions public 2016-08-03 14:21:01 +02:00
Mark Schouten
a7d3e6e6eb Fix typo and move function to correct class 2016-08-03 14:19:31 +02:00
Mark Schouten
6fd7087dc9 Rebuild listrecords and fake records by merging them with rrsets in Zone.php 2016-08-03 14:16:07 +02:00
Mark Schouten
a94d0e0b31 Fix all kind of development and trying code. 2016-08-03 14:08:33 +02:00
Mark Schouten
fcdba74c14 Also export keyinfo 2016-08-03 13:37:22 +02:00
Mark Schouten
d02889a918 Allow setting a string 'keyinfo' 2016-08-03 13:35:54 +02:00
Mark Schouten
f61f52a14d Add getzonekeys() to PdnsApi 2016-08-03 13:33:44 +02:00
Mark Schouten
367dde6f19 Add new classes to handle zones and pdns-api v4.0 2016-08-03 13:16:30 +02:00
Mark Schouten
574db00d94 Cleanup. We don't need this stuff for v4 anymore 2016-08-02 14:15:57 +02:00
Mark Schouten
f6cec7ef3b Order by username 2016-06-08 15:11:46 +02:00
NuxRo
2632ceb2be Self-host the logo rather than include it from the developer's site
Self-host the logo rather than include it from the developer's site, as it can be used for tracking purposes.
2016-04-29 12:46:24 +01:00
Nicky Gerritsen
d19c8e9f0b Add disabled field 2016-03-21 08:06:15 +01:00
Tuxis Internet Engineering V.O.F
76e3ebc113 Merge pull request #70 from harkx/configlogo 2016-01-07 22:39:51 +01:00
harkx
546d77c85f [MOD] set the default in misc.inc.php in case $logo isn't set 2016-01-02 11:29:23 +01:00
Ruben Herold
58d5dcb626 Add a check for openssl issue #61 2016-01-01 20:27:44 +01:00
harkx
4d3d381956 Create parameter for logo 2016-01-01 09:42:14 +01:00
Ruben Herold
26e81308e2 Fix check for config values 2015-12-30 23:34:23 +01:00
Mark Schouten
59f4f1e70f Allow pdns 4.0 users to use nsedit as well, by allowing to set the API version 2015-12-17 10:04:54 +01:00
Mark Schouten
a2aba25712 Resolve conflicts and create a converter for old values to the new ones. Also let the user know they should be changing their configuration 2015-10-26 10:11:57 +01:00
Boden Garman
802ed0fd93 silence warnings 2015-09-10 12:20:13 +10:00