mirror of https://github.com/itflow-org/itflow
12 lines
348 B
PHP
12 lines
348 B
PHP
<?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 = '';
|
|
}
|