| 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/admin/includes/ |
Upload File : |
<?php
/**
* Compatibility with Clearfy old components
*
* @author Webcraftic <wordpress.webraftic@gmail.com>
* @copyright (c) 22.10.2018, Webcraftic
* @version 1.0
*/
add_action('plugins_loaded', function () {
if( defined('WIO_PLUGIN_ACTIVE') ) {
if( !file_exists(WP_PLUGIN_DIR . '/robin-image-optimizer/robin-image-optimizer.php') ) {
return;
}
$plugin = get_plugin_data(WP_PLUGIN_DIR . '/robin-image-optimizer/robin-image-optimizer.php');
if( isset($plugin['Version']) && version_compare($plugin['Version'], '1.0.8', '<=') ) {
$notice = __('Please update the plugin Robin image Optimizer to the latest version, as it may not work correctly with the new version of Clearfy!', 'clearfy');
/**
* Выводит уведомление внутри интерфейса Clearfy, на всех страницах плагина.
* Это необходимо, чтоб напомнить пользователю обновить конфигурацию компонентов плагина,
* иначе вновь активированные компоненты не будет зайдествованы в работе плагина.
*
* @param Wbcr_Factory452_Plugin $plugin
* @param Wbcr_FactoryPages451_ImpressiveThemplate $obj
*
* @return bool
*/
add_action('wbcr/factory/pages/impressive/print_all_notices', function ($plugin, $obj) use ($notice) {
$obj->printErrorNotice($notice);
}, 10, 2);
// Специально для преидущей версии фреймворка (407)
add_action('wbcr_factory_pages_407_imppage_print_all_notices', function ($plugin, $obj) use ($notice) {
$obj->printErrorNotice($notice);
}, 10, 2);
}
}
if( defined('WHLP_PLUGIN_ACTIVE') ) {
if( !file_exists(WP_PLUGIN_DIR . '/hide-login-page/hide-login-page.php') ) {
return;
}
$plugin = get_plugin_data(WP_PLUGIN_DIR . '/hide-login-page/hide-login-page.php');
if( isset($plugin['Version']) && version_compare($plugin['Version'], '1.0.5', '<=') ) {
$notice = __('Please update the plugin Hide login page to the latest version, as it may not work correctly with the new version of Clearfy!', 'clearfy');
/**
* Выводит уведомление внутри интерфейса Clearfy, на всех страницах плагина.
* Это необходимо, чтоб напомнить пользователю обновить конфигурацию компонентов плагина,
* иначе вновь активированные компоненты не будет зайдествованы в работе плагина.
*
* @param Wbcr_Factory452_Plugin $plugin
* @param Wbcr_FactoryPages451_ImpressiveThemplate $obj
*
* @return bool
*/
add_action('wbcr/factory/pages/impressive/print_all_notices', function ($plugin, $obj) use ($notice) {
$obj->printErrorNotice($notice);
}, 10, 2);
// Специально для преидущей версии фреймворка (407)
add_action('wbcr_factory_pages_407_imppage_print_all_notices', function ($plugin, $obj) use ($notice) {
$obj->printErrorNotice($notice);
}, 10, 2);
}
}
if( defined('WCLRP_PLUGIN_ACTIVE') ) {
add_action('wbcr/factory/admin_notices', function ($notices, $plugin_name) {
if( $plugin_name != WGZ_Plugin::app()->getPluginName() ) {
return $notices;
}
if( !current_user_can('update_plugins') ) {
return $notices;
}
$nonce_action = 'upgrade-plugin_' . WCLRP_PLUGIN_BASE;
$upgrade_url = wp_nonce_url(self_admin_url("update.php?action=upgrade-plugin&plugin=" . urlencode(WCLRP_PLUGIN_BASE)), $nonce_action);
$notice_text = sprintf(__('You must <a href="%s">upgrade the premium version</a> of the Clearfy plugin to version 1.1.2, since the new Clearfy release isn\'t compatible with the previous version of the premium plugin.', 'clearfy'), $upgrade_url);
$notices[] = [
'id' => 'clearfy-package_-compatibility-113',
'type' => 'error',
'dismissible' => false,
'dismiss_expires' => 0,
'text' => '<p><b>' . __('Clearfy', 'clearfy') . ': </b>' . $notice_text . '</p>'
];
return $notices;
}, 10, 2);
}
if( defined('WCLP_PLUGIN_ACTIVE') ) {
add_action('wbcr/factory/admin_notices', function ($notices, $plugin_name) {
if( $plugin_name != WCL_Plugin::app()->getPluginName() ) {
return $notices;
}
if( !current_user_can('update_plugins') ) {
return $notices;
}
if( WCL_Plugin::app()->premium->is_install_package() ) {
$package = $this->premium->get_package_data();
if( version_compare($package['version'], "1.4.3", "<") ) {
$nonce_action = 'upgrade-plugin_' . WCLP_PLUGIN_BASE;
$upgrade_url = wp_nonce_url(self_admin_url("update.php?action=upgrade-plugin&plugin=" . urlencode(WCLP_PLUGIN_BASE)), $nonce_action);
$notice_text = sprintf(__('You must <a href="%s">upgrade the premium version</a> of the Clearfy plugin to version 1.4.2, since the new Clearfy release isn\'t compatible with the previous version of the premium plugin.', 'clearfy'), $upgrade_url);
$notices[] = [
'id' => 'clearfy-package_-compatibility-143',
'type' => 'error',
'dismissible' => false,
'dismiss_expires' => 0,
'text' => '<p><b>' . __('Clearfy', 'clearfy') . ': </b>' . $notice_text . '</p>'
];
}
}
return $notices;
}, 10, 2);
}
}, 30);