mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Migrate Dark/light mode to a user settings instead of global setting, created new include called router.php to dynamically prepend ../../ to asset pathes based off currect directory depth
This commit is contained in:
11
includes/router.php
Normal file
11
includes/router.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// URI Router
|
||||
// Currently unused, but the idea is to dynamically prepend ../../ to asset paths (like includes, libraries, etc.)
|
||||
// based on the current directory depth. This allows us to support deeply nested folder structures.
|
||||
|
||||
if ($_SERVER['REQUEST_URI'] === '/user/reports') {
|
||||
$prepend_uri = "../";
|
||||
} else {
|
||||
$prepend_uri = '';
|
||||
}
|
||||
Reference in New Issue
Block a user