403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/hotelzm.com/wp-content/plugins/clearfy/components/cache/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/hotelzm.com/wp-content/plugins/clearfy/components/cache/admin/boot.php
<?php
/**
 * Clearfy quick start options
 *
 * @author        Alex Kovalev <alex.kovalevv@gmail.com>
 * @copyright (c) 03.06.2020, Webcraftic
 * @version       1.0
 */

add_filter("wbcr_clearfy_group_options", function ($options) {
	$options[] = [
		'name' => 'enable_cache',
		'title' => __('Enable cache', 'clearfy'),
		'tags' => ['optimize_performance']
	];

	$options[] = [
		'name' => 'dont_cache_for_logged_in_users',
		'title' => __('Don\'t cache for logged-in users', 'clearfy'),
		'tags' => ['optimize_performance']
	];

	$options[] = [
		'name' => 'cache_reject_uri',
		'title' => __('Never Cache URL(s)', 'clearfy'),
		'tags' => []
	];

	$options[] = [
		'name' => 'preload_cache',
		'title' => __('Preload cache', 'clearfy'),
		'tags' => []
	];

	$options[] = [
		'name' => 'clear_cache_for_newpost',
		'title' => __('Clear cache for new post', 'clearfy'),
		'tags' => ['optimize_performance']
	];

	$options[] = [
		'name' => 'exclude_files',
		'title' => __('Filenames that can be cached', 'clearfy'),
		'tags' => []
	];

	$options[] = [
		'name' => 'exclude_pages',
		'title' => __('Rejected User Agents', 'clearfy'),
		'tags' => []
	];

	return $options;
});

add_filter('wclearfy/setup_wizard/speed_optimize_step/form_options', function ($options) {
	array_unshift($options, [
		'type' => 'checkbox',
		'way' => 'buttons',
		'name' => 'enable_cache',
		'title' => __('Enable cache', 'clearfy'),
		'layout' => ['hint-type' => 'icon', 'hint-icon-color' => 'green'],
		'hint' => __('This option enable cache to generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.', 'clearfy'),
		'default' => true
	]);

	return $options;
});

add_action('wclearfy/setup_wizard/speed_optimize_step/continue_step', function () {
	require_once WCACHE_PLUGIN_DIR . '/includes/includes/helpers.php';
	try {
		\WCL_Cache_Helpers::modifyHtaccess();
	} catch( \Exception $e ) {

	}
});

add_action('wfactory/activated_' . WCL_Plugin::app()->getPluginName() . '_component', function ($component_name) {
	//todo: Проверить совместимость с плагинами, включить или отключить компонент в зависимсти от результатов
});

Youez - 2016 - github.com/yon3zu
LinuXploit