Commit graph

99 commits

Author SHA1 Message Date
Richard Underwood
41d6d16a86 Merge remote-tracking branch 'origin/master' into issue-68
Conflicts:
	index.php
2017-11-07 12:03:09 +00:00
Richard Underwood
dcae922075 Uncommitted changes - mostly permissions dor admin user. 2017-11-07 11:28:03 +00: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
Richard Underwood
4f118af176 Permissions in zones.php 2017-01-09 10:29:56 +00:00
Richard Underwood
6d56c7a44f group permissions check & first check on index page 2017-01-06 15:50:54 +00:00
Richard Underwood
a57af479b8 Moved a few functions to misc, moved where permissions is included as it's needed everywhere. 2017-01-06 14:05:12 +00:00
Richard Underwood
6033bc12aa Admin side of permissions done, still need to be enforced. 2017-01-06 13:59:44 +00:00
Richard Underwood
f978e784d5 Fixed issues as db can't be closed now. 2017-01-04 12:07:53 +00:00
Richard Underwood
e9b6a49e5a Missing global 2017-01-04 11:57:50 +00:00
Richard Underwood
f2377913f0 Changed database schema for groups & permissions. Implemented versioning. 2017-01-04 11:45:01 +00:00
Richard Underwood
119e1376ee Merge remote-tracking branch 'origin/master' into issue-68 2017-01-04 09:31:50 +00:00
Richard Underwood
2b5e7ea5f6 Uncomitted changes prior to merge. Permissions ... 2017-01-04 09:30:58 +00: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
d915137eff Allow removal of members from groups. 2016-10-04 10:05:22 +01:00
Richard Underwood
417e9ca848 Basic group management support. Lots more to do. 2016-10-04 09:25:32 +01:00
Richard Underwood
1aa0f0bbca Added a check as jtable expects a list here. 2016-09-30 16:31:17 +01:00
Richard Underwood
e172ba6502 Added group table to users tab. Allow group name editing for now. 2016-09-30 14:23:09 +01: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