]> _ Git - cubeextranet.git/commitdiff
wip #4978 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 30 May 2022 17:11:39 +0000 (17:11 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 30 May 2022 17:11:39 +0000 (17:11 +0000)
inc/ws/Controlleur/class.ws.maintenance.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index b48361b10f978ceed8f36ec081535357bebb6635..e30cdf6bbb31f089b9828fd5093678fa423745b6 100644 (file)
@@ -1850,9 +1850,12 @@ class wsMaintenance
     public static function matomo()
     {
         set_time_limit(0);
-        $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78');
-        for ($i = 24001; $i <= 40000; $i++) {
-            $reporting->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook');
+        $reporting4 = new \Cubist\Matomo\Reporting('https://stats4.fluidbook.com/', '93e4c1a34e3ead33e85a8171dc4fd3ed');
+        $reporting5 = new \Cubist\Matomo\Reporting('https://stats5.fluidbook.com/', '93e4c1a34e3ead33e85a8171dc4fd3ed');
+//        $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78');
+        for ($i = 2; $i <= 40000; $i++) {
+            $reporting4->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook');
+            $reporting5->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook');
         }
     }
 
index 3dd1df10f343e8df7d8881cf65cb8d05627a9a2b..f3d829951ff1d2536ec8dee5426744da8458d7de 100644 (file)
@@ -1020,6 +1020,10 @@ class wsHTML5Compiler
 
         if ($this->book->parametres->stats) {
             $this->config->statsMatomo = $this->book_id;
+            $this->config->statsMatomoServer = 3;
+            if ($this->book_id >= 21210) {
+                $this->config->statsMatomoServer = 4 + ($this->book_id % 2);
+            }
         } else {
             $this->config->statsMatomo = false;
         }