Add favicon support

This commit is contained in:
Florine W. Dekker 2021-03-22 22:25:07 +01:00
parent 728de16542
commit dc6b2e0c67
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 15 additions and 5 deletions

View File

@ -4,6 +4,12 @@ Redirection software
## Requirements
PHP 7.3+
## Development
```shell script
# Run local PHP web server
$> php -S localhost:8080 fwdkr.co
```
## Installation
Copy these files into the desired directory.
You may override settings from `phpliteadmin.php` in the file `phpliteadmin.config.php`.

View File

@ -3,10 +3,14 @@ include_once("links.php");
$path = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
if ($path == "/admin") {
$_SERVER["PHP_SELF"] = $path;
include("phpliteadmin.php");
exit();
switch ($path) {
case "/admin":
$_SERVER["PHP_SELF"] = $path;
include("phpliteadmin.php");
exit();
case "/favicon.ico":
header("Location: https://fwdekker.com/favicon.ico");
exit();
}
$error = false;
@ -105,7 +109,7 @@ if ($target != null) {
<a href="https://git.fwdekker.com/FWDekker/fwdkr.co/src/branch/master/LICENSE">MIT License</a>.
Source code available on </span><a href="https://git.fwdekker.com/FWDekker/fwdkr.co/">git</a>.
Consider reading the <a href="https://fwdekker.com/privacy/">privacy policy</a>.
<div style="float: right;">v1.0.7</div>
<div style="float: right;">v1.0.8</div>
</footer>
</main>
</body>