Commit Graph

241 Commits

Author SHA1 Message Date
Lukas Metzger 6aa5ea61df Merge branch 'master' of github.com:loewexy/pdnsmanager 2017-06-29 15:23:13 +02:00
Lukas Metzger ccc423291c Fixing possible remote code executuin vulnerability introduced by commit
3bf4e2874a

Thanks to RedTeam Pentesting for pointing out this issue
2017-06-29 15:18:45 +02:00
Jens Meißner 2bb00ea0ba Change dbPort when dbType is changed during install. (#39) 2017-05-22 11:08:05 +02:00
Emilien Devos f922f19fd3 Add powerdns 4.0 record types (#35) 2017-04-09 12:15:46 +02:00
Maurice Meyer 1d7086dc6c Added drop and readd of foreign key on user ->userid (#33)
This fixes the issue that the upgrade seems to work but the change from permissions.user to permissions.userid is not applied because of the foreign key.
2017-03-08 11:23:15 +01:00
Lukas Metzger 5c9f0da3aa Adding unique constraint on update 2017-02-19 12:52:40 +01:00
Lukas Metzger 77fa9a926d Fixed upgrade 2017-02-19 12:10:53 +01:00
Lukas Metzger a105edc4ab Fixed whitespace errors, removed unneccessary tables 2017-02-05 17:12:38 +01:00
lamclennan 107bfc7c67 Removed Slave 2017-01-08 14:55:07 +10:00
lamclennan 8f382ac72f Readme Updated 2017-01-08 14:45:56 +10:00
lamclennan 47aebceac4 Removed Slave Button 2017-01-08 14:42:59 +10:00
lamclennan 61d7ea9a51 Final Fixes 2017-01-08 14:34:35 +10:00
lamclennan d9f4b20448 Updated upgrade scripts for MySQL
Renamed the user table to users and added a unique key to it so
duplicate users can't be created.

Upgrade scripts delete duplicates and keep the lowest id (which is what
would have been used for authentication anyway, i.e. other users were
useless).

Added upgrade script to put domains names and records names to lower
case text as is required by postgres.
2017-01-08 14:15:31 +10:00
lamclennan b9efd906e5 Postgres SQL Fixes
A few commands changed to suit postgres and the "user" table.
2017-01-08 02:51:16 +10:00
lamclennan 47f3f9939e Bugs
Fixed a few code bugs. Added text to strip whitespace from records (i.e.
name, master, email)
2017-01-07 23:59:03 +10:00
lamclennan 5d5f8c4af7 Added some trimming around some VARCHAR records 2017-01-07 20:29:36 +10:00
lamclennan 7972a197ee PDO Conversion 2017-01-07 20:18:39 +10:00
lamclennan 1aaa24280f Started Work Again 2017-01-07 18:37:13 +10:00
lamclennan 3bf4e2874a PDO Conversion/Pg Support Started
Early commit.
2016-12-13 08:19:00 +10:00
Lukas Metzger 25569890ac Fixed license file 2016-08-21 11:55:48 +02:00
Lukas Metzger d9f113c95d Updated README.md, added possibility for native zones 2016-06-07 19:02:13 +02:00
Maurice Meyer 788c0d1d19 Added pagination (#19)
* Added initial functionality for pagination

* Display of pagination now works for total page number greater than 8. Note that the actual pagination is not yet implemented

* Pagination is now functional and loads the requested sites

* Added cursor pointer to pagination

* page parameter is now set to 1 if not a number or smaller than 1

* page parameter is now checked with isset to prevent errors if it is not supplied

* Changed default number of domains per page to 15

* Added isset check to $input->page to prevent errors if it is not set
2016-06-07 19:00:35 +02:00
Alexander Dormann dc8fab4d42 Implement ONLY_FULL_GROUP_BY compatibility (#15) (#16)
SQL92 requires that all columns (except aggregates) in the select clause
is part of the group by clause. SQL99 loosens this restriction a bit and
states that all columns in the select clause must be functionally
dependent of the group by clause.

This commit fixes all partial GROUP BY queries to be compatible with
SQL92. Previously, when MySQLs sql_mode included ONLY_FULL_GROUP_BY,
aggregating queries failed, resulting in an empty domain listing.
2016-05-14 12:03:06 +02:00
Lukas Metzger 0d1f5503ae Fixed regex for email address 2016-05-12 15:10:04 +02:00
Lukas Metzger c72806708b Removed unneccessary debug output 2016-05-06 18:15:15 +02:00
Lukas Metzger 3a3855e939 Added functionality for native zones 2016-05-03 17:42:34 +02:00
Lukas Metzger d14c64043c Removed SOA record from select field 2016-05-03 17:15:50 +02:00
Lukas Metzger b0e53d92a0 Merge branch 'mauricemeyer-master' 2016-04-20 16:10:36 +02:00
Lukas Metzger 01ca1ca62c Merge branch 'master' of https://github.com/mauricemeyer/pdnsmanager into mauricemeyer-master 2016-04-20 16:08:19 +02:00
Maurice Meyer ab84439c1a Fixed the getIP command so that the clients IP is always returned, even behind multiple proxies.
Fixed indentation.
2016-04-20 14:59:06 +02:00
Maurice Meyer c7ff6326ee Changed the GetIP command of the API so that it returns the X-Forwarded-For header if it is set 2016-04-19 18:19:37 +02:00
Lukas Metzger e52aa1428e Disabled pointer cursor on record table 2016-03-28 17:17:32 +02:00
Lukas Metzger ec47c6b175 Adding default values for ttl and prio, closes #4 2016-03-28 16:48:35 +02:00
Lukas Metzger bda3384ad7 Added shake movements on errors for better visual feedback, closing #5 2016-03-28 14:55:00 +02:00
Lukas Metzger 0c4bb7e127 Added input validation when editing record, fixes #6 2016-03-27 17:32:42 +02:00
Lukas Metzger be316f163f Added word wraping for long records, fixes #2 2016-03-27 17:09:23 +02:00
Lukas Metzger 6231e06b91 Changed cursor to pointer in all clickable tables fixes #3 2016-03-27 16:54:43 +02:00
Lukas Metzger 869ba131ef Added getIp action to remote.php 2016-03-26 13:11:02 +01:00
Lukas Metzger 135f88015f Added README.md 2016-02-15 20:21:16 +01:00
Lukas Metzger e894493cd1 Changed databaseschema for newer pdns versions 2016-02-14 12:44:53 +01:00
Lukas Metzger d14868618f Changed record name input that it musst match the given domain 2016-02-11 17:56:01 +01:00
Lukas Metzger 4fb70354ce Updated database schema with additional foreign keys and ON DELETE CASCADE to secure consistency 2016-02-10 17:06:56 +01:00
Lukas Metzger 3ce4af18af Fixed bug when deleting domain 2016-02-07 18:48:05 +01:00
Lukas Metzger 0ed2a3dfa1 Fixed bug in installer 2016-02-06 20:11:01 +01:00
Lukas Metzger 6d93cbd628 Added upgrade.php and version checks 2016-02-06 13:23:28 +01:00
Lukas Metzger d13ea918cc Added remote.php API now working 2016-02-06 11:28:27 +01:00
Lukas Metzger 31b1a8d55f Added user interface functions for adding remote permissions 2016-02-05 17:14:49 +01:00
Lukas Metzger a37a616967 Fixed bug in install.php 2016-02-02 21:05:37 +01:00
Lukas Metzger f6dd285552 Fixed headings of various pages 2016-02-02 18:40:18 +01:00
Lukas Metzger d0b9a9f875 Fixed missing csrfToken in edit-user.js 2016-02-02 18:32:43 +01:00