]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6998 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jul 2024 15:27:23 +0000 (17:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jul 2024 15:27:23 +0000 (17:27 +0200)
.docker/fluidbook-workshop/html/index.php

index 5e973bd30fca0a6ac86d238e3c36dbb788733239..7d2a007e135f2b88487cdc6c9f403c53c1185afb 100644 (file)
@@ -1,3 +1,19 @@
 <?php
-$path = $_SERVER['PATH_INFO'] ?? '/';
-header('Location: https://toolbox.fluidbook.com' . $path, true, 301);
+$path = trim($_SERVER['PATH_INFO'] ?? '/', '/');
+$d = 'toolbox.fluidbook.com';
+$params = $_GET;
+$u = $path;
+
+switch ($path) {
+    case 'maintenance/refreshUsersTree':
+        $d = 'extranet.cubedesigners.com';
+        break;
+    default:
+        break;
+}
+
+$q = '';
+foreach ($_GET as $k => $v) {
+    $q .= (strlen($q) === 0 ? '?' : '&') . $k . '=' . urlencode($v);
+}
+header('Location: https://' . $d . '/' . $u . $q, true, 308);