aboutsummaryrefslogtreecommitdiffstats
path: root/public/matomo/matomo-proxy.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-24 13:50:53 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-24 13:50:53 +0100
commitca734febb23133e2b405cdc69e58d9cf6011298f (patch)
treed421b89fc268b3da5c4dd2b8098a34c4466ee209 /public/matomo/matomo-proxy.php
parente10f46c20226609198ac2a1cceab056e87e4d847 (diff)
parent204a0c7b9665e3f85b3839a3007c1063bd436e77 (diff)
feat: replace Matomo with Ackee
I cannot test locally because of CORS policy.
Diffstat (limited to 'public/matomo/matomo-proxy.php')
-rw-r--r--public/matomo/matomo-proxy.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/public/matomo/matomo-proxy.php b/public/matomo/matomo-proxy.php
deleted file mode 100644
index c049bd6..0000000
--- a/public/matomo/matomo-proxy.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-define('MATOMO_PROXY_FROM_ENDPOINT', 1);
-
-$path = 'index.php';
-
-$SUPPORTED_METHODS = [
- 'CoreAdminHome.optOut'
-];
-$VALID_FILES = [
- 'plugins/CoreAdminHome/javascripts/optOut.js'
-];
-
-$module = isset($_GET['module']) ? $_GET['module'] : null;
-if (empty($module)) {
- $module = isset($_POST['module']) ? $_POST['module'] : null;
-}
-
-$action = isset($_GET['action']) ? $_GET['action'] : null;
-if (empty($action)) {
- $action = isset($_POST['action']) ? $_POST['action'] : null;
-}
-
-$filerequest = isset($_GET['file']) ? $_GET['file'] : null;
-if (empty($filerequest)) {
- $filerequest = isset($_POST['file']) ? $_POST['file'] : null;
-}
-
-if (!(isset($filerequest) && in_array($filerequest, $VALID_FILES))
- && !(isset($module) && isset($action) && in_array("$module.$action", $SUPPORTED_METHODS))
-) {
- http_response_code(404);
- exit;
-}
-
-include __DIR__ . '/proxy.php';