Add favicon support
This commit is contained in:
parent
728de16542
commit
dc6b2e0c67
|
@ -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`.
|
||||
|
|
14
index.php
14
index.php
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue