PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
plugins
/
mailchimp-sync
<?php // Prevent direct file access if ( ! defined( 'ABSPATH' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit; } /** * Deactivates the plugin * * @return bool */ function mailchimp_sync_deactivate_self() { if( ! current_user_can( 'activate_plugins' ) ) { return false; } // deactivate self deactivate_plugins( 'mailchimp-sync/mailchimp-sync.php' ); // get rid of "Plugin activated" notice if( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } // show notice to user add_action( 'admin_notices', 'mailchimp_sync_php_requirement_notice' ); return true; } /** * Outputs a notice telling the user that the plugin deactivated itself */ function mailchimp_sync_php_requirement_notice() { // load translations load_plugin_textdomain( 'mailchimp-sync', false, 'mailchimp-sync/languages' ); ?> <div class="updated"> <p><?php _e( 'MailChimp Sync did not activate because it requires your server to run PHP 5.3 or higher.', 'mailchimp-sync' ); ?></p> </div> <?php } // Hook into `admin_init` add_action( 'admin_init', 'mailchimp_sync_deactivate_self' );
[-] gulpfile.js
[open]
[+]
vendor
[-] README.md
[open]
[-] CHANGELOG.md
[open]
[+]
assets
[-] bootstrap.php
[open]
[+]
..
[-] LICENSE
[open]
[-] mailchimp-sync.php
[open]
[-] dependencies.php
[open]
[-] package-lock.json
[open]
[-] readme.txt
[open]
[-] php-backwards-compatibility.php
[open]
[-] index.php
[open]
[+]
src