Commit graph

81 commits

Author SHA1 Message Date
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
bfbones
0a09deb50a - added protocol config parameter and handling for it
- changed nameserver entries in config to be dymanic
- changed display and parsing of NS-entries from config or from template to be dynamic
2015-03-02 10:10:46 +01:00
Mark Schouten
22ae1adf17 Get the nameservers from the template, if any. If we don't have nameservers in the template use the default nameservers.
Also, when appying the template, skip adding records for nameservers that we already added. This fixes and closes issue #15
2015-02-24 11:15:52 +01:00
Christian Hofstaedtler
adcaefda59 Remove priority field
It's gone from PowerDNS 3.4.2 and later.
2015-02-07 21:13:45 +01:00
Mark Schouten
45ed135591 Create a 'save this zone' button 2014-12-05 13:54:09 +01:00
Mark Schouten
57e2980f56 Nicer error message 2014-11-21 11:39:06 +01:00
Mark Schouten
b7b62d1c9c Implement auth-autodetection 2014-11-21 11:13:17 +01:00
Mark Schouten
47c6384ef0 Always set nameservers[] 2014-11-05 10:27:14 +01:00
Mark Schouten
b035bfd52a Not everyone runs bleeding-edge php 2014-10-23 09:52:46 +02:00
Stefan Bühler
e8f071f67c Rework session handling; add CSRF tokens and autologin 2014-10-06 21:40:11 +02:00
Stefan Bühler
54fb62b471 Rewrite/Refactoring
- add a lot of permission checks:
  zone edits were completely unchecked (after login); only list and creation were
  protected.
- reduce regular expression usage
- don't use user provided names/ids/urls for requests; instead use them
  to search for the zone in the list of all zones.
- rename 'label' to 'name' in template records ('name' is used in all
  other places)
- make 'localhost' default $apisid
- add 'soa_edit' default
- remove gen_pw/pwgen caller; use openssl instead for random password
- fix a lot of bugs (editrecord, TXT quoting, name checking, ...)
- improve record sorting
2014-10-05 13:08:23 +02:00
Mark Schouten
c5ae169b2d Fix zoneadd logic 2014-10-01 11:38:40 +02:00
Mark Schouten
00c40c047e Create option to not allow a normal user to add zones 2014-10-01 09:46:44 +02:00
Mark Schouten
4881858d68 This should save us another Notice 2014-09-26 14:23:39 +02:00
Mark Schouten
db85fc2dcd Fix typo 2014-09-26 14:22:00 +02:00
Mark Schouten
c4085c6099 Add an empty name-field if none is entered 2014-09-26 14:21:07 +02:00
Mark Schouten
2837657d53 Check some vars before using them 2014-09-26 14:14:30 +02:00
Mark Schouten
7f35f25869 If we login via the apikey, show it in the session
If we add a zone via the api, and the owner doesn't exist yet, create it.
2014-09-26 14:02:22 +02:00