Skip to content
Snippets Groups Projects
Commit 278f052a authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

Less-Compiler braucht wegen URL-Rewrite den RootPfad

parent b8e1390d
No related branches found
No related tags found
No related merge requests found
<?php
const root_dir="/"
const ROOT_DIR="/"
?>
......@@ -11,7 +11,9 @@ if (!isset($_GET["name"])) {
$less_file = $_GET["name"]; //"panels/departure/style.less";
$debug=isset($_GET["debug"]);
$root_dir="/infoscreen";
include "config/config.php";
echo ROOT_DIR;
$panel = null;
......@@ -64,14 +66,14 @@ if (!file_exists($cache_file)) {
}
if ($debug) {
echo "cache-name: " . $cache_file . "\n";
echo "content:\n";
if (!isset($content))
echo file_get_contents($cache_file)."\n";
else
echo $content;
echo "cache-name: " . $cache_name . "\n";
} else {
header("Location: $root_dir/$cache_file");
header("Location: ".ROOT_DIR."/$cache_file");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment