]> _ Git - cubeextranet.git/commitdiff
#1761
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 19 Oct 2017 12:57:57 +0000 (12:57 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 19 Oct 2017 12:57:57 +0000 (12:57 +0000)
inc/ws/Controlleur/class.ws.maintenance.php

index d0e0bd5c02bb01869920e3516671c607862c2a0d..6d851b1af26dbe3853239912a5d83e950bdbbc1f 100644 (file)
@@ -1538,6 +1538,20 @@ class wsMaintenance {
                header('Location: http://www.atlantic-international-book-com.com/');
                exit;
        }
+
+       public static function fixStats($args) {
+               commonDroits::min(5);
+               $book = trim($args[0], ' .');
+               if (!$book) {
+                       return false;
+               }
+               $book = intval($book);
+               if ($book <= 1000) {
+                       return false;
+               }
+
+               `rm -rf /home/stats/www/objects/$book*;/home/stats/www/FWStats.sh /home/stats/www redobook=$book`;
+       }
 }