]> _ Git - cubeextranet.git/commitdiff
wip #4978 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 23 Dec 2021 17:33:00 +0000 (17:33 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 23 Dec 2021 17:33:00 +0000 (17:33 +0000)
inc/ws/Controlleur/class.ws.maintenance.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 8509a64c318c4a2809ed5a36b75a4738f85c6d12..5f2775b4c23506ec509ffa62999a4a80553e1ffa 100644 (file)
@@ -1805,11 +1805,10 @@ class wsMaintenance
 
     public static function matomo()
     {
-        try {
-            $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78');
-            print_r($reporting->createSiteIfNotExistsOrReturnId('Fluidbook Y', 'https://fluidbook.y'));
-        } catch (Exception $e) {
-            print_r($e);
+        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');
         }
     }
 
index ff9fd3e0b449ce17459747c601e1c71c217b77a9..21f89381b99c9731823cfc859801e4f39fc6f4c2 100644 (file)
@@ -986,7 +986,7 @@ class wsHTML5Compiler
         global $core;
 
         if ($this->book->parametres->stats) {
-            $this->config->statsMatomo = wsStats::getMatomoAPI()->createSiteIfNotExistsOrReturnId('Fluidbook #' . $this->book_id, 'https://' . $this->book_id . '.fluidbook');
+            $this->config->statsMatomo = $this->book_id;
         } else {
             $this->config->statsMatomo = false;
         }