código AFTNews */ $aftCodes = [ 'omix' => '88' ]; function formatName($file) { $name = pathinfo($file, PATHINFO_FILENAME); $name = str_replace(['_', '-'], ' ', $name); return ucwords($name); } function fileSizeMB($file) { return round(filesize($file) / 1024 / 1024, 2) . " MB"; } function getAftCode($file, $map) { $key = strtolower(pathinfo($file, PATHINFO_FILENAME)); return $map[$key] ?? null; } /* ÍCONE PELO NOME DO APK */ function getIcon($file) { $name = pathinfo($file, PATHINFO_FILENAME); $icons = [ $name . '.png', $name . '.jpg', $name . '.webp' ]; foreach ($icons as $icon) { if (file_exists($icon)) { return $icon; } } return 'default.png'; // fallback } $baseUrl = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/'); ?>
Nenhum APK encontrado.