X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
speedycache-pro
/
main
/
📁
..
📄
admin.php
(20.44 KB)
📄
bloat.php
(10.18 KB)
📄
cli.php
(1.63 KB)
📄
commoncss.php
(3.65 KB)
📄
criticalcss.php
(9.54 KB)
📄
db.php
(1.99 KB)
📄
enhanced.php
(47.3 KB)
📄
googlefonts.php
(5.57 KB)
📄
image.php
(70.96 KB)
📄
index.html
(91 B)
📄
lazyload.php
(14.7 KB)
📄
license.php
(4.12 KB)
📄
logs.php
(7.42 KB)
📄
metaboxpro.php
(1.97 KB)
📄
mobile.php
(1.57 KB)
📄
object-cache-lib.php
(10.86 KB)
📄
objectcache.php
(8.17 KB)
📄
plugin-update-checker.php
(52.86 KB)
📄
premium.php
(423 B)
📄
prooptimizations.php
(2.12 KB)
📄
renderblocking.php
(36.8 KB)
📄
settingspage.php
(33.71 KB)
📄
statistics.php
(4.25 KB)
📄
unusedcss.php
(7.45 KB)
📄
youtube.html
(2.29 KB)
Editing: mobile.php
<?php /* * SPEEDYCACHE * https://speedycache.com/ * (c) SpeedyCache Team */ namespace SpeedyCache; if( !defined('SPEEDYCACHE_PRO_VERSION') ){ die('HACKING ATTEMPT!'); } class Mobile{ static function cache(){ global $speedycache; $speedycache->mobile_cache = array(); $speedycache->mobile_cache['folder_name'] = 'mobile-cache'; $speedycache->mobile_cache['wptouch'] = false; } static function update_htaccess($data){ global $speedycache; preg_match("/RewriteEngine\sOn(.+)/is", $data, $out); $htaccess = "\n##### Start: Mobile Cache Rules #####\n"; $htaccess .= $out[0]; // Updates the moble cache htaccess rule according to wptouch if($speedycache->mobile_cache['wptouch']){ $wptouch_rule = "RewriteCond %{HTTP:Cookie} !wptouch-pro-view=desktop"; $htaccess = str_replace("RewriteCond %{HTTP:Profile}", $wptouch_rule."\n"."RewriteCond %{HTTP:Profile}", $htaccess); } /** * Structure of this array is * searchable => replacer */ $rules = array( 'RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil' => 'RewriteCond %{HTTP:Cookie} !safirmobilswitcher=masaustu', 'RewriteCond %{HTTP_USER_AGENT} !^.*' => 'RewriteCond %{HTTP_USER_AGENT} ^.*', ); foreach($rules as $search => $replacement){ $htaccess = str_replace($search, $replacement, $htaccess); } $htaccess = preg_replace('/\/speedycache\/'.preg_quote(SPEEDYCACHE_SERVER_HOST).'\/all\//', '/speedycache/'.SPEEDYCACHE_SERVER_HOST .'/'. $speedycache->mobile_cache['folder_name']."/", $htaccess); $htaccess .= "\n##### End: Mobile Cache Rules #####\n"; return $htaccess; } }
Upload File
Create Folder