From a534f6c13434044bb055b5cd022e258c8c2235a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dzieko=C5=84ski?= Date: Tue, 5 Jul 2022 00:23:33 +0200 Subject: [PATCH] GH-230 Create galaxy (planet link) routing helper --- common/_includes.php | 2 ++ common/utils/index.php | 5 +++++ common/utils/routing/galaxy.routing.php | 23 +++++++++++++++++++++++ common/utils/routing/index.php | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 common/utils/index.php create mode 100644 common/utils/routing/galaxy.routing.php create mode 100644 common/utils/routing/index.php diff --git a/common/_includes.php b/common/_includes.php index 9b376ae7a..7ca0e71b7 100644 --- a/common/_includes.php +++ b/common/_includes.php @@ -6,4 +6,6 @@ include($includePath . './modules/uni/utils/isEmailDomainBanned.util.php'); +include($includePath . './utils/routing/galaxy.routing.php'); + ?> diff --git a/common/utils/index.php b/common/utils/index.php new file mode 100644 index 000000000..bc99142d1 --- /dev/null +++ b/common/utils/index.php @@ -0,0 +1,5 @@ + diff --git a/common/utils/routing/galaxy.routing.php b/common/utils/routing/galaxy.routing.php new file mode 100644 index 000000000..4e30a2b1e --- /dev/null +++ b/common/utils/routing/galaxy.routing.php @@ -0,0 +1,23 @@ + 'galaxy.php', + 'query' => [ + 'mode' => '3', + 'galaxy' => $params['galaxy'], + 'system' => $params['system'], + 'planet' => $params['planet'], + ], + ]); +} + +?> diff --git a/common/utils/routing/index.php b/common/utils/routing/index.php new file mode 100644 index 000000000..bc99142d1 --- /dev/null +++ b/common/utils/routing/index.php @@ -0,0 +1,5 @@ +