uawdijnntqw1x1x1
IP : 216.73.216.50
Hostname : webm007.cluster114.gra.hosting.ovh.net
Kernel : Linux webm007.cluster114.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
locationbo
/
www
/
.
/
administrator
/
components
/
com_widgetkit
/
src
/
Controller
/
CacheController.php
/
/
<?php namespace YOOtheme\Widgetkit\Controller; use YOOtheme\Framework\Routing\Controller; use YOOtheme\Framework\Routing\Exception\HttpException; class CacheController extends Controller { private function getFiles() { $directory = new \RecursiveDirectoryIterator($this->app['path.cache'] . '/', \FilesystemIterator::FOLLOW_SYMLINKS); $iterator = new \RecursiveIteratorIterator($directory); $files = array(); foreach ($iterator as $info) { if ($info->isFile() && strpos($info->getRealPath(), 'fonts'.DIRECTORY_SEPARATOR) == false) { $files[] = $info->getRealPath(); } } return $files; } public function getCacheSizeAction() { $sizes = array(" Bytes", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB"); $size = 0; foreach ($this->getFiles() as $file) { $size += filesize($file); } $size = ($size == 0) ? "0 KB" : (round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . $sizes[$i]); return $this['response']->json(json_encode("{$size} in cache")); } public function clearCacheAction() { foreach ($this->getFiles() as $file) { unlink($file); } return $this['response']->json(json_encode('cache cleared')); } public static function getRoutes() { return array( array('/cache/get', 'getCacheSizeAction', 'GET', array('access' => 'manage_widgetkit')), array('/cache/clear', 'clearCacheAction', 'GET', array('access' => 'manage_widgetkit')) ); } }
/home/locationbo/www/./administrator/components/com_widgetkit/src/Controller/CacheController.php