????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/plugins/w3-total-cache/lib/NetDNA/ |
Upload File : |
<?php class NetDNAPresentation { public static function format_popular($popular_files) { $formatted = array(); foreach ($popular_files as $file) { // basename cannot be used, kills chinese chars and similar characters $filename = substr($file['uri'], strrpos($file['uri'], '/')+1); $formatted[] = array('file' => $filename, 'title' => $file['uri'], 'group' => self::get_file_group($file['uri']), 'hit' => $file['hit']); } return $formatted; } public static function group_hits_per_filetype_group($filetypes) { $groups = array(); foreach ($filetypes as $file) { $file_group = self::get_file_group($file['file_type']); if (!isset($groups[$file_group])) $groups[$file_group] = 0; $groups[$file_group] += $file['hit']; } return $groups; } public static function get_file_group($uri) { $uri_exploded = explode('.', $uri); $ext = end($uri_exploded); switch ($ext) { case 'css': case 'js': return $ext; break; case 'png': case 'tiff': case 'gif': case 'jpg': case 'jpeg': return 'images'; break; default: return 'misc'; break; } } public static function get_file_group_color($group) { switch ($group){ case 'css': return '#739468'; case 'js': return '#ffb05d'; case 'images': return '#b080df'; default: return '#4ba0fa'; } } public static function get_account_status($status) { switch ($status) { case 1: return __('Pending', 'w3-total-cache'); case 2: return __('Active', 'w3-total-cache'); case 3: return __('Cancelled', 'w3-total-cache'); case 4: return __('Suspended', 'w3-total-cache'); case 5: return __('Fraud', 'w3-total-cache'); default: return __('unknown', 'w3-total-cache'); } } }