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 <?php
const root_dir="/" const ROOT_DIR="/"
?> ?>
...@@ -11,7 +11,9 @@ if (!isset($_GET["name"])) { ...@@ -11,7 +11,9 @@ if (!isset($_GET["name"])) {
$less_file = $_GET["name"]; //"panels/departure/style.less"; $less_file = $_GET["name"]; //"panels/departure/style.less";
$debug=isset($_GET["debug"]); $debug=isset($_GET["debug"]);
$root_dir="/infoscreen";
include "config/config.php";
echo ROOT_DIR;
$panel = null; $panel = null;
...@@ -64,14 +66,14 @@ if (!file_exists($cache_file)) { ...@@ -64,14 +66,14 @@ if (!file_exists($cache_file)) {
} }
if ($debug) { if ($debug) {
echo "cache-name: " . $cache_file . "\n";
echo "content:\n"; echo "content:\n";
if (!isset($content)) if (!isset($content))
echo file_get_contents($cache_file)."\n"; echo file_get_contents($cache_file)."\n";
else else
echo $content; echo $content;
echo "cache-name: " . $cache_name . "\n";
} else { } 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