Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.217.83
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/nitropack/classes/Integration/Plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/nitropack/classes/Integration/Plugin/WPRocket.php
<?php

namespace NitroPack\Integration\Plugin;

class WPRocket extends RC {

    private static $cpath = ['/wp-rocket/' => false,]; //We are only interested in the page cache (other cache dirs '/busting/', '/critical-css/', '/min/')

    public static function hasResidualCache() {
        $wpc_dir = self::getWPCacheDir();
        $curr_domain = self::getCurrentDomain();
        if ($wpc_dir && $curr_domain) {
            $prefix = defined('WP_ROCKET_CACHE_ROOT_PATH') ? nitropack_trailingslashit(WP_ROCKET_CACHE_ROOT_PATH) : $wpc_dir;
            foreach (self::$cpath as $cp => $recursive_scan) {
                $fcp = $prefix . $cp;
                if ($cp === '/wp-rocket/') {
                    $fcp = $prefix . $cp . $curr_domain;
                }
                return self::dirHasContents($fcp, $recursive_scan);
            }
        }
        return false;
    }

    public static function clearCache() {
        $wpc_dir = self::getWPCacheDir();
        $curr_domain = self::getCurrentDomain();
        $result = array();
        if ($wpc_dir && $curr_domain) {
            $prefix = defined('WP_ROCKET_CACHE_ROOT_PATH') ? nitropack_trailingslashit(WP_ROCKET_CACHE_ROOT_PATH) : $wpc_dir;
            foreach (self::$cpath as $cp => $recursive_scan) {
                $fcp = $prefix . $cp;
                if ($cp === '/wp-rocket/') {
                    $fcp = $prefix . $cp . $curr_domain;
                }
                $result[] = self::clearResidualCache($fcp);
            }
        }
        return $result;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit