| Server IP : 89.108.64.180 / Your IP : 216.73.217.95 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/testsite1441.ru/wp-content/plugins/cyrlitera/ |
Upload File : |
<?php
/**
* Этот файл инициализирует этот плагин, как аддон для плагина Clearfy.
*
* Файл будет подключен только в плагине Clearfy, используя особый вариант загрузки. Это более простое решение
* пришло на смену встроенной системы подключения аддонов в фреймворке.
*
* @author Alexander Kovalev <alex.kovalevv@gmail.com>, Github: https://github.com/alexkovalevv
* @copyright (c) 2018 Webraftic Ltd
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'WCTR_PLUGIN_ACTIVE' ) ) {
define( 'WCTR_PLUGIN_VERSION', '1.1.9' );
define( 'WCTR_TEXT_DOMAIN', 'cyrlitera' );
define( 'WCTR_PLUGIN_ACTIVE', true );
// Этот плагин загружен, как аддон для плагина Clearfy
define( 'LOADING_CYRLITERA_AS_ADDON', true );
if ( ! defined( 'WCTR_PLUGIN_DIR' ) ) {
define( 'WCTR_PLUGIN_DIR', dirname( __FILE__ ) );
}
if ( ! defined( 'WCTR_PLUGIN_BASE' ) ) {
define( 'WCTR_PLUGIN_BASE', plugin_basename( __FILE__ ) );
}
if ( ! defined( 'WCTR_PLUGIN_URL' ) ) {
define( 'WCTR_PLUGIN_URL', plugins_url( '', __FILE__ ) );
}
try {
// Global scripts
require_once( WCTR_PLUGIN_DIR . '/includes/class-helpers.php' );
require_once( WCTR_PLUGIN_DIR . '/includes/3rd-party/class-clearfy-plugin.php' );
new WCTR_Plugin();
} catch( Exception $e ) {
$wctr_plugin_error_func = function () use ( $e ) {
$error = sprintf( "The %s plugin has stopped. <b>Error:</b> %s Code: %s", 'Webcraftic Cyrlitera', $e->getMessage(), $e->getCode() );
echo '<div class="notice notice-error"><p>' . $error . '</p></div>';
};
add_action( 'admin_notices', $wctr_plugin_error_func );
add_action( 'network_admin_notices', $wctr_plugin_error_func );
}
}