Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > speedycache > main
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
admin.php | File | 7455 bytes | July 17 2025 18:07:10. | |
advanced-cache.php | File | 6628 bytes | March 27 2025 17:52:36. | |
ajax.php | File | 29431 bytes | July 17 2025 18:07:10. | |
cache.php | File | 15517 bytes | July 17 2025 18:07:10. | |
cdn.php | File | 8391 bytes | July 17 2025 18:07:10. | |
css.php | File | 6326 bytes | July 17 2025 18:07:10. | |
delete.php | File | 13917 bytes | July 17 2025 18:07:10. | |
gravatar.php | File | 3194 bytes | July 17 2025 18:07:10. | |
htaccess.php | File | 8665 bytes | July 17 2025 18:07:10. | |
install.php | File | 4717 bytes | July 17 2025 18:07:10. | |
js.php | File | 6012 bytes | August 24 2024 12:36:50. | |
preload.php | File | 3449 bytes | September 03 2024 18:09:04. | |
settings.php | File | 103018 bytes | July 17 2025 18:07:10. | |
util.php | File | 8581 bytes | July 17 2025 18:07:10. |
<?php /* * SPEEDYCACHE * https://speedycache.com/ * (c) SpeedyCache Team */ namespace SpeedyCache; // Third Party Plugins class Install{ // Called during activation static function activate(){ global $speedycache; if(empty($speedycache)){ $speedycache = new \SpeedyCache(); } $speedycache->options = get_option('speedycache_options', []); $speedycache->options['lbc'] = true; $speedycache->options['minify_css'] = true; $speedycache->options['gzip'] = true; update_option('speedycache_options', $speedycache->options); update_option('speedycache_version', SPEEDYCACHE_VERSION); \SpeedyCache\Htaccess::init(); self::set_advanced_cache(); \SpeedyCache\Util::set_config_file(); } // Called during Deactivation static function deactivate(){ if(is_file(ABSPATH.'.htaccess') && is_writable(ABSPATH.'.htaccess')){ $htaccess = file_get_contents(ABSPATH.'.htaccess'); $htaccess = preg_replace("/#\s?BEGIN\s?speedycache.*?#\s?END\s?speedycache/s", '', $htaccess); $htaccess = preg_replace("/#\s?BEGIN\s?Gzipspeedycache.*?#\s?END\s?Gzipspeedycache/s", '', $htaccess); $htaccess = preg_replace("/#\s?BEGIN\s?LBCspeedycache.*?#\s?END\s?LBCspeedycache/s", '', $htaccess); $htaccess = preg_replace("/#\s?BEGIN\s?WEBPspeedycache.*?#\s?END\s?WEBPspeedycache/s", '', $htaccess); $htaccess = preg_replace("/#\s?BEGIN\s?SpeedyCacheheaders.*?#\s?END\s?SpeedyCacheheaders/s", '', $htaccess); $htaccess = preg_replace('/\n\n+/', "\n\n", $htaccess); // Cleans extra white space which gets added @file_put_contents(ABSPATH.'.htaccess', $htaccess); } self::remove_constant(); wp_clear_scheduled_hook('speedycache_preload'); wp_clear_scheduled_hook('speedycache_purge_cache'); wp_clear_scheduled_hook('speedycache_preload_split'); } static function set_advanced_cache(){ if(file_exists(WP_CONTENT_DIR . '/advanced-cache.php')){ unlink(WP_CONTENT_DIR . '/advanced-cache.php'); } if(!copy(SPEEDYCACHE_DIR . '/main/advanced-cache.php', WP_CONTENT_DIR . '/advanced-cache.php')){ return; } // Adding WP_CACHE Constant self::add_constant(); } // Adds WP_CACHE constant in wp-config.php static function add_constant(){ if(defined('SITEPAD')){ $cache_config_file = WP_CONTENT_DIR . '/enable-advanced-cache.php'; if ( ! file_exists($cache_config_file) ) { $content = "<?php\n// If this file exists, advanced caching will be enabled\n"; file_put_contents($cache_config_file, $content); } return; } $wp_config_file = ABSPATH . '/wp-config.php'; if(!file_exists($wp_config_file) || !is_writable($wp_config_file)){ return false; } $wp_config_content = file_get_contents($wp_config_file); if(empty($wp_config_content)){ return; } // Removing if WP_CACHE is already placed $wp_config_content = preg_replace('/define\(\s*["\']WP_CACHE[\'\"].*/', '', $wp_config_content); // Adding the Constant $wp_config_content = preg_replace('/<\?php/', "<?php\ndefine('WP_CACHE', true); // Added by SpeedyCache\n", $wp_config_content); $wp_config_content = preg_replace('/\n\n+/', "\n\n", $wp_config_content); // Cleans extra white space which gets added file_put_contents($wp_config_file, $wp_config_content); } // Removes WP_CACHE Constant. static function remove_constant(){ if(defined('SITEPAD')){ $file_to_delete = WP_CONTENT_DIR . '/enable-advanced-cache.php'; if ( file_exists($file_to_delete) && is_writable($file_to_delete) ) { unlink($file_to_delete); } return; } $wp_config_file = ABSPATH . '/wp-config.php'; if(!file_exists($wp_config_file) || !is_writable($wp_config_file)){ return false; } $wp_config_content = file_get_contents($wp_config_file); if(empty($wp_config_content)){ return; } // Removing if WP_CACHE is already placed $wp_config_content = preg_replace('/define\(\s*["\']WP_CACHE[\'\"].*/', '', $wp_config_content); $wp_config_content = preg_replace('/\n\n+/', "\n\n", $wp_config_content); // Cleans extra white space which gets added file_put_contents($wp_config_file, $wp_config_content); } static function uninstall(){ delete_option('speedycache_version'); delete_option('speedycache_options'); delete_option('speedycache_cdn'); delete_option('speedycache_delete_cache_logs'); delete_option('speedycache_img'); delete_option('speedycache_object_cache'); delete_option('speedycache_ccss_logs'); delete_option('speedycache_license'); if(defined('SPEEDYCACHE_PRO')){ \SpeedyCache\Util::delete_cwebp(); } } }
SILENT KILLER Tool