$12 GRAYBYTE WORDPRESS FILE MANAGER $52

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main//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;
	}

}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
admin.php
24.343 KB
18 Feb 2026 11.32 PM
root / root
0644
bloat.php
10.18 KB
18 Feb 2026 11.32 PM
root / root
0644
cli.php
1.627 KB
18 Feb 2026 11.32 PM
root / root
0644
commoncss.php
3.654 KB
18 Feb 2026 11.32 PM
root / root
0644
criticalcss.php
9.979 KB
18 Feb 2026 11.32 PM
root / root
0644
db.php
2.6 KB
18 Feb 2026 11.32 PM
root / root
0644
enhanced.php
47.305 KB
18 Feb 2026 11.32 PM
root / root
0644
googlefonts.php
5.604 KB
18 Feb 2026 11.32 PM
root / root
0644
image.php
71.204 KB
18 Feb 2026 11.32 PM
root / root
0644
index.html
0.089 KB
18 Feb 2026 11.32 PM
root / root
0644
lazyload.php
14.829 KB
18 Feb 2026 11.32 PM
root / root
0644
license.php
4.116 KB
18 Feb 2026 11.32 PM
root / root
0644
logs.php
7.611 KB
18 Feb 2026 11.32 PM
root / root
0644
metaboxpro.php
1.972 KB
18 Feb 2026 11.32 PM
root / root
0644
mobile.php
1.568 KB
18 Feb 2026 11.32 PM
root / root
0644
object-cache-lib.php
10.857 KB
18 Feb 2026 11.32 PM
root / root
0644
objectcache.php
8.471 KB
18 Feb 2026 11.32 PM
root / root
0644
plugin-update-checker.php
52.862 KB
18 Feb 2026 11.32 PM
root / root
0644
premium.php
0.413 KB
18 Feb 2026 11.32 PM
root / root
0644
prooptimizations.php
2.123 KB
18 Feb 2026 11.32 PM
root / root
0644
renderblocking.php
36.803 KB
18 Feb 2026 11.32 PM
root / root
0644
settingspage.php
36.782 KB
18 Feb 2026 11.32 PM
root / root
0644
statistics.php
4.251 KB
18 Feb 2026 11.32 PM
root / root
0644
unusedcss.php
7.452 KB
18 Feb 2026 11.32 PM
root / root
0644
youtube.html
2.29 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF