Commit graph

97 commits

Author SHA1 Message Date
Jelle Luteijn
c327e23859
Update session.inc.php
Passing null to parameter #2 ($value) of type string is deprecated
2023-06-20 14:03:20 +02:00
Jelle Luteijn
e38fa1e120
Update ApiHandler.php
Creation of dynamic property ApiHandler::$headers is deprecated
2023-06-20 13:57:08 +02:00
Jelle Luteijn
b8e3261180
Update session.inc.php
Using ${var} in strings is deprecated, use {$var} instead
2023-06-20 13:45:10 +02:00
Mark Schouten
371eb41787 Content must be canonical 2018-08-22 17:12:01 +02:00
Mark Schouten
9407c92a6a Show a clear message instead of ERROR 500 2018-08-22 16:51:07 +02:00
Mark Schouten
3448ccf653 Merge branch 'patch-1' of https://github.com/margau/nsedit into margau-patch-1 2018-08-22 16:41:41 +02:00
Mark Schouten
be647cc26a Do not insert 'localhost', we are autodetecting the API url 2018-08-22 15:39:11 +02:00
Mark Schouten
bf513b9ffd Assume that we have Pdns > 4.x 2018-08-22 15:21:26 +02:00
margau
96c67a8e8f
Added notice (see #172) 2018-04-17 19:33:58 +02:00
margau
805176648d Fixed from paulgiordanozethcon suggestion in https://github.com/tuxis-ie/nsedit/issues/162 2018-04-17 18:53:31 +02:00
Tuxis Internet Engineering V.O.F
635441dbe0
Revert "notify pdns after zone update" 2018-03-28 09:05:09 +02:00
root
cb234599b7 typo correction 2018-02-02 15:10:54 +01:00
root
03d9d88026 add "notifyafterupdate" flag 2018-02-02 14:58:10 +01:00
Daniel Eiland
1f2225cf6d Added support for CNAME's to zone in templates 2017-07-11 09:24:44 +02:00
Mark Schouten
6be5f2f29c Fix updating the password, and store if we have local auth, we can't change passwords if we don't have local auth 2017-04-28 13:09:31 +02:00
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