Commit Graph

744 Commits

Author SHA1 Message Date
DL6ER
c8f0db326b Remove ancient and completely outdated PHP-only API. Pi-hole v4.0 will only use the FTL-PHP API.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-24 14:06:46 +02:00
Mark Drobnak
32c55577f1 Remove max line length in getResponseFTL
Fixes issue found on Discourse: https://discourse.pi-hole.net/t/9544

Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
2018-05-16 11:27:54 -04:00
Mark Drobnak
fc795e3b10 Merge pull request #743 from rrobgill/cookielogin
Persistent login cookie
2018-05-14 21:03:16 -04:00
Rob Gill
967763b6da indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 10:56:49 +10:00
Rob Gill
30bef67a88 indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 10:55:46 +10:00
Rob Gill
c2a9e80db6 indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 09:05:19 +10:00
Rob Gill
72e95cec96 indenting
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2018-05-15 09:03:09 +10:00
Rob Gill
7a3fc169a5 Update password.php 2018-05-10 09:14:57 +10:00
Rob Gill
5733d08745 Remove invalid cookie
If cookie is invalid, it is cleared from the browser before continuing
2018-05-10 08:54:44 +10:00
Rob Gill
adeec42dd4 relocate checkbox
Persistent login checkbox moved from form feedback.
2018-05-09 08:31:34 +10:00
Rob Gill
8eed0e09d9 Update loginpage.php 2018-05-08 19:05:42 +10:00
Rob Gill
a8bf42687c Update password.php 2018-05-08 19:05:19 +10:00
rrobgill
84b6f6b291 Update password.php 2018-05-08 17:24:11 +10:00
rrobgill
d64292ba5c Update loginpage.php 2018-05-08 17:24:09 +10:00
rrobgill
fb988f247d Cookie login
Allow user to (optionally) set a cookie for automatic login.

UI addition of checkbox and informs user of option to store a cookie.
2018-05-05 14:45:04 +10:00
rrobgill
85dd92771a Cookie login
Allow user to (optionally) set a cookie for automatic login.
Expiry is set for 7 days.
Cookie refreshes, extending for 7 days from each use.
2018-05-05 14:42:04 +10:00
DL6ER
bd25557469 Remove last traces of local custom port settings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 22:11:50 +02:00
DL6ER
dd96847cc5 Remove local DNS with custom port field as it is superseeded by the more powerful custom 1/2/3/4 implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 19:16:55 +02:00
DL6ER
6d8c3de5ba Support custom ports in the custom DNS server tab on the settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 19:14:31 +02:00
Mark Drobnak
d2a20b1f0c Merge pull request #735 from walter-exit/devel
Gravity: date last changed (Web & API)
2018-05-02 14:28:20 -04:00
Walter
967216ca74 Signed-off-by: Walter <walter@exclusive-it.nl> 2018-05-02 20:12:15 +02:00
Walter
49190f8a62 Changed indentation from all tabs to all spaces (misread preference, my bad) 2018-05-02 11:07:28 +02:00
Walter
983966da04 Changed indentation from spaces and tabs to only tabs 2018-05-02 11:01:38 +02:00
Florian Ströger
2c7b6c07c6 Added "Raw API Token:"
As requested
2018-04-29 10:17:10 +02:00
Florian Ströger
45fbdae34b Add API Token in Text 2018-04-26 20:04:54 +02:00
Walter
2c2a091b03 Changes concerning the date the gravity list was last changed. Used in the webinterface dashboard as a tooltip, and now also available in the API (both PHP and FTL). Function was moved to new file /scripts/pi-hole/php/gravity.php to keep things neat and to avoid duplicate code. 2018-04-23 20:32:38 +02:00
DL6ER
4c91d65547 Make sure backend does always interpret list of DNS servers even if it is empty
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-19 07:38:34 +02:00
DL6ER
847d6aae53 Improve code as suggested
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 21:49:35 +02:00
DL6ER
7fa6cd85d3 Be less specific, as this feature can be used for any time of local resolver running on a custom port
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 17:31:16 +02:00
DL6ER
f2cefe6ce1 Add frontend changes for supporting a local recursive DNS server
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 17:11:36 +02:00
DL6ER
ef948cfef3 Have to provide all optional arguments in PHP...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 11:23:55 +02:00
DL6ER
a1824a45d4 Improve way PHP connects to FTL
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-15 10:56:52 +02:00
DL6ER
65addb0114 Add cache-control meta tag to reduce problems with stalled browser caches
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-08 13:17:06 +02:00
DL6ER
1055ccf4a3 Add privacy level tab to Settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 14:20:19 +02:00
DL6ER
ad8228ea34 Merge branch 'devel' into FTLDNS 2018-04-04 12:35:53 +02:00
DL6ER
71a7c84cba Make second argument of resolveHostname() optional
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 12:32:55 +02:00
Everett Southwick
5e9c1aec9a Add support for public Cloudflare DNS servers.
Signed-off-by: Everett Southwick <everett@everettsouthwick.com>
2018-04-01 18:02:26 -05:00
DL6ER
5e8f4b2584 Merge branch 'devel' into FTLDNS 2018-04-01 16:46:35 +02:00
Frode Aannevik
9be0887dac move flip-status-x span element into menu
fix the issue where the span element
is obscuring the Disable/Enable element

fixes: https://github.com/pi-hole/AdminLTE/issues/698

Signed-off-by: Frode Aannevik <frode.aa@gmail.com>
2018-03-18 14:47:46 +01:00
DL6ER
c1ffcdd997 Fix resolveHostname() subroutine
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-05 16:43:28 +01:00
DL6ER
1ec38e3a79 Don't want IPs in Query Log output
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-05 16:35:42 +01:00
DL6ER
9e5eba4036 Return both client IP and hostname in clientname string
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-03-04 21:06:28 +01:00
Mark Drobnak
f32de004cb Merge pull request #695 from mrdnomaid/patch-3
Change the whitelist icon in the sidebar
2018-03-02 14:41:21 -05:00
Tom
80a7f91449 Change the whitelist icon in the sidebar 2018-03-02 16:44:22 +00:00
DL6ER
ee4e106d83 :codacy:
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-25 09:52:40 +01:00
DL6ER
02f14ceb05 Add name resolution capabilites (with caching) for web interface
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-25 09:44:01 +01:00
Mark Drobnak
0f76158129 Merge pull request #653 from ryanknapper/devel
Conditional forwarding options
2018-02-18 12:51:57 -05:00
ail1020
78f031869f Display the name of the blocklist URL
added -adlist arg to the query command
2018-01-28 20:17:48 -06:00
Mark Drobnak
041b0550d9 Merge pull request #674 from pi-hole/fix/php-security
Clean up some security issues
2018-01-24 15:12:31 -05:00
Mcat12
289b62abf3 Fix header.php importing func.php twice
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-20 10:59:05 -05:00