William Edwards
e8d028ba75
Make cloning admin-only, check zones returned by formzonelist
...
Cloning was meant to be an admin-only functionality. However, this was not fully implemented: when `allowzoneadd = true`, the user could clone zones, even when not an admin. This is not necessarily a problem. But in this case, it is. Because the endpoint that is used to get zones to clone (`formzonelist`), did not check whether those zones belong to the current user. In other words: when `allowzoneadd = true` and the user is not an admin, that user is able to see *all zones* under 'Clone a zone' button -> 'Source domain' dropdown.
This commit fixes that, by letting `formzonelist` return only zones belonging to the user, and showing the 'Clone a zone' button only when the user is an admin.
2024-04-17 12:18:06 +02:00
Mark Schouten
5c6c9e1847
If a template contains NS-records, do not try to add them again. They were already added while creating the zone.
2020-12-23 11:45:58 +01:00
Jelle Luteijn
4f013d4081
Fixing Undefined index
...
PHP Notice: Undefined index: label in /var/www/nsedit/wwwroot/zones.php on line 325
2018-02-08 23:41:07 +01:00
Mark Schouten
c1c680217d
Set zonekind of the new zone
2017-11-20 15:58:15 +01:00
Mark Schouten
374e03aa43
Add zone to database and fix ownership
2017-11-20 15:56:28 +01:00
Daniel Eiland
1f2225cf6d
Added support for CNAME's to zone in templates
2017-07-11 09:24:44 +02:00
Mark Schouten
5787659b07
Add this missing line, this may have broken editing of SPF/TXT records. Closes #140
2017-01-25 09:46:05 +01:00
Mark Schouten
93c88cc196
If we get here, there is a value without dots... So add it
2016-11-18 17:11:22 +01:00
Mark Schouten
5c5f9f7abd
Fix sorting
2016-11-18 17:07:49 +01:00
Mark Schouten
6737aa9b83
Fix matching on zonename, we were missing the .
2016-11-18 17:01:48 +01:00
Mark Schouten
ae00aa8ed9
Fix quoting of TXT and SPF records
2016-11-18 17:00:18 +01: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
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
Mark Schouten
92ac4576ab
An empty name is possible
2016-10-14 14:20:07 +02:00
Mark Schouten
b5d7fa8183
Don't forget the dot in between
2016-10-14 14:16:48 +02:00
Mark Schouten
83e8a0eda6
TRAILING DOTSS!!!11eleven!!11!&$W*&@*@!@#&
2016-10-14 14:14:17 +02:00
Mark Schouten
32f0456f21
Fix TXT-record quoting
2016-10-10 14:22:31 +02:00
Richard Underwood
dde58c798c
Implemented logs and zone searching.
2016-08-23 15:56:41 +01:00
Mark Schouten
58fab332dc
Implement new jquery-ui and fix creation of new zones
2016-08-05 13:08:48 +02:00
Mark Schouten
cbea4778ef
Implement logging. Closes #67
2016-08-05 11:57:04 +02:00
Mark Schouten
749478c36a
Implement record sorting. Closes #83
2016-08-05 09:15:19 +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
623fcefc5c
Replace 'owner' with account to be consistent with Pdns. Set account upon creating a zone.
2016-08-04 15:01:39 +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
3f3c18c21b
Missing ;
2016-08-04 13:37:54 +02:00
Mark Schouten
65d6b9afe0
We don't need all these functions anymore
2016-08-04 13:35:49 +02:00
Mark Schouten
8a63698b9f
Fix templating
2016-08-04 13:32:18 +02:00
Mark Schouten
337d4ed363
We now have all functionality!
2016-08-04 12:10:19 +02:00
Mark Schouten
5161f7102b
Add record and catch Exceptions
2016-08-03 16:57:25 +02:00
Mark Schouten
be9683ef83
Allow saving of zones
2016-08-03 16:08:57 +02:00
Mark Schouten
2cc92e6842
We can now import, create AND delete zones
2016-08-03 15:14:27 +02:00
Mark Schouten
c8774fc05e
Implement DELETE
2016-08-03 14:42:49 +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
ccf90cab61
Include these files
2016-08-03 13:48:30 +02:00
Mark Schouten
db0c7e0b85
Cleanup stuff in zones.php and implement the first part, 'list'
2016-08-03 13:38:21 +02:00
Mark Schouten
22502ae521
Implement an ApiHandler class
2016-08-02 14:16:34 +02:00
Tuxis Internet Engineering V.O.F
8f2290019e
Merge pull request #63 from tuxis-ie/allow-pdns-v4
...
Allow pdns 4.0 users to use nsedit as well, by allowing to set the AP…
2015-12-17 10:07:18 +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
bfbones
ce46bfc03d
add VERFIYPEER option to main api-request
2015-10-28 20:25:06 +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
Mark Schouten
da932b0820
Merge branch 'master' of github.com:tuxis-ie/nsedit
2015-09-17 21:28:51 +02:00
Mark Schouten
5f4d71698e
Use normal sorting for zones, no fancy one. Requested via #52 , and I agree
2015-09-17 21:28:30 +02:00
Mark Schouten
c7ae7f5de1
This should fix the duplication of records when changing the recordtype
2015-05-18 13:52:30 +02:00
Mark Schouten
6bbe01a54a
We need these vars to be 'global'. Closts #45
2015-04-20 10:42:31 +02:00
Bryan Seitz
0b97e09bb7
added initial https support
2015-04-02 00:20:34 +00:00