diff options
-rw-r--r-- | pages/travelling.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/travelling.inc b/pages/travelling.inc index 6d8db7b..687b9f2 100644 --- a/pages/travelling.inc +++ b/pages/travelling.inc @@ -97,6 +97,9 @@ if (isset($_GET['toggleTravel']) && $isLoggedIn) { } } + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/navigation.json", "{}"); + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/home.json", "{}"); + header("Location: /-/travelling"); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json", utf8_encode(json_encode($travelling, JSON_PRETTY_PRINT))); die(); |