From: vincent@cubedesigners.com Date: Thu, 19 Oct 2017 12:57:57 +0000 (+0000) Subject: #1761 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=883af7b5742d35fe675ed37800d7e887852c8077;p=cubeextranet.git #1761 --- diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index d0e0bd5c0..6d851b1af 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -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`; + } }