RD WebDesign
d48c557134
Fix Deepsource warning message for index.php file
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago
Christian König
eeccfb27f8
Remove it also from index.php together with more unused variables
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
yubiuser
c67f313ee8
Apply reviewers suggestion for inline CSS
...
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <ckoenig@posteo.de>
2 years ago
Christian König
49a9f6f2db
Reproduce blockpage.css for $splashPage
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
e6683803ed
Use absolut asset paths
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Adam Warner
c78cf82fc6
no need to declare $viewPort
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
RD WebDesign
f8e84b3c3f
Fix stickler
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
3 years ago
RD WebDesign
c9809371ab
Selecting the protocol
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
3 years ago
RD WebDesign
0d4c69cc6f
Add check to avoid error in PHP 8
...
and return some information about the unexpected value
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
3 years ago
Christian König
676b7e60f3
Fix Splashpage not appearing properly on non-root directories
...
Signed-off-by: Christian König <ckoenig@posteo.de>
3 years ago
Dan Schaper
866045968d
Add missing closing single quote
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
4 years ago
Jaime Baez
6198165df8
Fix error trying to access undefined variables on splash page.
...
Signed-off-by: Jaime Baez <j.baezcastillo@gmail.com>
4 years ago
Dany
13cf0c1288
Aligned pihole logo to center, Fixed responsive issue ( #4036 )
...
* Aligned pihole logo to center, Fixed responsive issue
* removed duplicate instance of #splashpage
Signed-off-by: Dany Gauthier <danygauthier57@yahoo.ca>
4 years ago
Craig Mayhew
95a28ae125
unset() now also occurs for $splashPage
...
After some email discussion with Adam, there is a preference to also prevent $splashPage from using variables
Signed-off-by: craigmayhew <craig@mayhew.io>
4 years ago
Craig Mayhew
e5c7549f8f
Fixed potential security issue with $landPage receiving variables
...
Signed-off-by: craigmayhew <craig@mayhew.io>
4 years ago
Michael Paul Killian
5eabf4255b
Sign-off for DCO
...
Signed-off-by: Michael Paul Killian <spammyreset-github@gmail.com>
4 years ago
Michael Paul Killian
538827397c
Update index.php
...
See #3736
4 years ago
Nathan Friend
5a48478196
Update "About Pi-hole" link
...
Signed-off-by: Nathan Friend <nathan@gitlab.com>
4 years ago
XhmikosR
d90313fe4d
Fix/tweak blocking page
...
* fix favicon
* add meta charset
* add html lang
* add a page title
* remove unneeded html end tags
* fix viewport tag to allow zooming
* compress the "blocked by Pi-hole" SVG
* remove trailing spaces
* switch to double colon pseudo elements (works from IE9 and newer)
* add missing vendor prefixes
* other minor tweaks
* add `Access-Control-Allow-Origin` header to all font types
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
4 years ago
Matthias Schoettle
308eb5eda5
Fixes broken blocking page and landing page when changing server port and/or hostname.
...
See issues #2195 and #2720 .
Signed-off-by: Matthias Schoettle <git@mattsch.com>
5 years ago
DL6ER
276b191845
Remove dead code causing failure from the blocking page.
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
5 years ago
Mcat12
3ebd43ebf0
Remove outdated adlists.list check and fix empty adlists error message
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
5 years ago
Mcat12
2b5033e732
Add missing spaces found by linter
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
5 years ago
Mcat12
f1733f9c5d
Fetch adlists for the block page from gravity.db
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
5 years ago
Nils Bergmann
cd9fadbc44
Remove protocol determination
...
No protocol determination is neede, if you just use double slash.
Signed-off-by: Nils Bergmann <nilsbergmann@noim.io>
6 years ago
Patrik Cyvoct
85cf98888d
Merge remote-tracking branch 'origin/development' into ipv6_brackets
...
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
6 years ago
Patrik Cyvoct
048e5bb9a2
Remove external ipv6 brackets if any in servername
...
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
6 years ago
Alex Villarreal
e422f4154f
Clean error message on successful response
...
Signed-off-by: Alejandro Villarreal <alex@alexvy86.com>
6 years ago
Rob Gill
382c19024f
oh stickler bot...
...
accidentally a space
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
6 years ago
Rob Gill
9379487942
changes as requested
...
changes as requested
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
6 years ago
Rob Gill
5e99baf7b9
Update index.php
...
thanks stickler-ci .......
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
6 years ago
Rob Gill
31951dae4c
Update index.php
...
Avoiding calling empty() on a function allows this to work under PHP5. Making the check for blocklist generation in this way instead is compatible with both PHP5 and PHP7.
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
6 years ago
Dan Schaper
34d84522dd
Merge pull request #2054 from theLMGN/patch-1
...
Link to the admin panel on the splash page.
7 years ago
Leo MG Nesfield (LMGN)
bfcbd72e4b
Link to the admin panel on the splash page.
7 years ago
Mcat12
8a42ef431b
Fix Javascript warning when no password is set
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
7 years ago
Mcat12
2cf1f0e8fc
Hide the password input when there is no password
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
7 years ago
Mcat12
1a5c86d32e
Revert "Hide password textbox if there is no password"
...
This reverts commit 009fa2f1b7
.
7 years ago
Mcat12
c7219fbdff
Merge remote-tracking branch 'origin/development' into tweak/block-page-no-password
7 years ago
Keith Bentrup
45ab2a3d7a
send HTTP headers before HTML
...
Signed-off-by: Keith Bentrup <keith@keithbentrup.com>
7 years ago
Mcat12
009fa2f1b7
Hide password textbox if there is no password
7 years ago
WaLLy3K
2c091f3a3c
Merge branch 'development' into cors_mixed_content_fix
7 years ago
Mcat12
e7589945a2
Disable password field if no password is set
...
For someone to actually whitelist a domain without a password, more changes will
be needed on the PHP side.
7 years ago
WaLLy3K
97dd1b4cf3
Improve FQDN Authorized Hosts functionality
...
* Use inverse if statement, instead of IF/ELSE when checking setupVars.conf
* Remove $svFQDN
* Add or elaborate on more comments
* Add $serverName to $authorizedHosts if admin has specified `setenv.add-environment = ("fqdn" => "true")` within lighttpd's external.conf
* e.g: `$HTTP["host"] == "pihole.domain.com" { setenv.add-environment = ("fqdn" => "true") }`
* Move "No exact results" check to top of exception handling
* Remove unnecessary IF/ELSE when handling $queryAds error
Signed off by WaLLy3K <wally3k@pi-hole.net>
7 years ago
andofrjando
6323d5afed
Use PHP short echo tag to avoid Codacy expecting an escaping function
7 years ago
andofrjando
5e48b3f7f7
Fix one mistake where `$proto` would not be created if `$_SERVER['HTTPS']` exists but is not set to `on`
7 years ago
andofrjando
00d62b3423
This fixes the following bug:
...
If Pi-Hole is behind a reverse proxy that uses SSL, then the block page will not load resources such as `blockingpage.css` and `jquery.min.js` as the insecure `http://` is hard coded. Browsers will block attempts to load insecure resources if the page is loaded of SSL.
The fix is acheived by checking `$_SERVER['HTTPS']` and setting the variable `$proto` to either `http` or `https`. The harcoded `http` is replaced by the contents of this variable.
7 years ago
WaLLy3K
49aee8b931
Fixed development branch check
7 years ago
WaLLy3K
f2a3b557c8
Updated Block Page to work with queryFunc output
7 years ago
WaLLy3K
69fa9874dd
Use HTTP_HOST instead of SERVER_NAME
...
* Fixes https://github.com/pi-hole/pi-hole/issues/1479
7 years ago
WaLLy3K
f9d41caeb6
Merge branch 'development' into blockpage2
7 years ago