grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 const regexAttr = '~([\r\n\t ])?([a-zA-Z0-9:-]+)((=(["\'])(.*?)\5)|([\r\n\t ]|$))?~m'; #s const regexUrl = '#url\(([^)]+)\)#'; static $regReduce = ''; static $route = ''; // JURI::root(true); static $uri = ''; // JURI::root(); static $url = ''; static $options = []; static $cssBackgrounds = []; static $hosts = []; static $static_types = []; static $images = array( "gif" => array('as' => 'image'), "jpg" => array('as' => 'image'), // "jpeg" => array('as' => 'image'), "png" => array('as' => 'image'), "webp" => array('as' => 'image') ); static $pushed = array( "gif" => array('as' => 'image'), "jpg" => array('as' => 'image'), "jpeg" => array('as' => 'image'), "png" => array('as' => 'image'), "webp" => array('as' => 'image'), "swf" => array('as' => 'object'), "ico" => array('as' => 'image'), "svg" => array('as' => 'image'), "txt" => [], "js" => array('as' => 'script'), "css" => array('as' => 'style'), "xml" => [], "pdf" => [], "eot" => array('as' => 'font'), "otf" => array('as' => 'font'), "ttf" => array('as' => 'font'), "woff" => array('as' => 'font'), "woff2" => array('as' => 'font') ); // can use http cache / url rewriting static $accepted = array( "js" => "text/javascript", "css" => "text/css", "eot" => "application/vnd.ms-fontobject", "otf" => "application/x-font-otf", "ttf" => "application/x-font-ttf", "woff" => "application/x-font-woff", "woff2" => "application/font-woff2", "ico" => "image/x-icon", "gif" => "image/gif", "jpg" => "image/jpeg", "jpeg" => "image/jpeg", "png" => "image/png", "webp" => "image/webp", "svg" => "image/svg+xml", "swf" => "application/x-shockwave-flash", "txt" => "text/plain", "xml" => "text/xml", "pdf" => "application/pdf", 'mp3' => 'audio/mpeg' ); static $pwa_network_strategy = ''; public static function getChecksum($file, callable $hashFile, $algo = 'sha256', $integrity = false) { $hash = $hashFile($file); $path = (isset(static::$options['ch_path']) ? static::$options['ch_path'] : 'cache/z/ch/'.$_SERVER['SERVER_NAME'].'/') . $hash . '-' . basename($file) . '.checksum.php'; $checksum = []; if (is_file($path)) { // $checksum defined in $path; include $path; if (isset($checksum['hash']) && $checksum['hash'] == $hash && isset($checksum['algo']) && $checksum['algo'] == $algo) { return $checksum; } } $checksum = [ 'hash' => $hash, // // 'crossorigin' => 'anonymous', 'algo' => $algo, 'integrity' => empty($algo) || $algo == 'none' || empty($integrity) ? '' : $algo . "-" . base64_encode(hash_file($algo, $file, true)) ]; file_put_contents($path, ',