PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
vxcash
<?php /** * The plugin bootstrap file * * This file is read by WordPress to generate the plugin information in the plugin * admin area. This file also includes all of the dependencies used by the plugin, * registers the activation and deactivation functions, and defines a function * that starts the plugin. * * @link https://www.vxcash.net * @since 1.0.0 * @package Vxcash * * @wordpress-plugin * Plugin Name: VX-CASH Wordpress Plugin * Plugin URI: https://www.vxcash.net/webmaster/DE/Werbemittel.html?scope=webcams&type=wordpress_theme * Description: Helps you to import and manage VISIT-X Hosts, Videos and BeiAnrufSex Phonecams * Version: 2.4.4 * Author: VX-CASH Team * Author URI: https://www.vxcash.net * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: vxcash * Domain Path: /languages */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } /** * Turn off normal update check for this plugin, so it can't be overwritten by someone who * registers an official Plugin with the name vxcash */ function hide_vxcash_plugin_from_updater($r, $url) { if (false === strpos($url, 'api.wordpress.org/plugins/update-check')) { return $r; // Not a plugin update request. Bail immediately. } if (is_serialized($r['body']['plugins'])) { $plugins = unserialize($r['body']['plugins']); } else { $plugins = json_decode($r['body']['plugins'], true); } unset($plugins['plugins']['vxcash/vxcash.php']); if (is_serialized($r['body']['plugins'])) { $r['body']['plugins'] = serialize($plugins); } else { $r['body']['plugins'] = json_encode($plugins); } return $r; } add_filter('http_request_args', 'hide_vxcash_plugin_from_updater', 5, 2 ); /** * Hide all VXCash themes from the normal Wordpress updater, so that it can not be overwritten by someone * registering a theme with our slug! */ function hide_vxcash_themes_from_wordpress_updater($r, $url) { if (false === strpos($url, 'api.wordpress.org/themes/update-check')) { return $r; } // Not a theme update request. Bail immediately. if (is_serialized($r['body']['themes'])) { $themes = unserialize($r['body']['themes']); } else { $themes = json_decode($r['body']['themes'], true); } // Remove all the theme slugs we know of unset($themes['themes']['vxcash'], $themes['themes']['vxcash2']); if (is_serialized($r['body']['themes'])) { $r['body']['themes'] = serialize($themes); } else { $r['body']['themes'] = json_encode($themes); } return $r; } add_filter('http_request_args', 'hide_vxcash_themes_from_wordpress_updater', 5, 2); /** * Add our own update checker */ require __DIR__ . '/plugin-updates/plugin-update-checker.php'; $updateChecker = PucFactory::buildUpdateChecker('https://www.vxcash.net/VXCASHREST/v1/wp/plugin', __FILE__, 'vxcash'); /** * The code that runs during plugin activation. * This action is documented in includes/class-vxcash-activator.php */ function activate_vxcash() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-vxcash-activator.php'; Vxcash_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-vxcash-deactivator.php */ function deactivate_vxcash() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-vxcash-deactivator.php'; Vxcash_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_vxcash' ); register_deactivation_hook( __FILE__, 'deactivate_vxcash' ); require plugin_dir_path( __FILE__ ) . 'autoload.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_vxcash() { $plugin = new Vxcash(); $plugin->run(); } run_vxcash();
[+]
dist
[-] index.php
[edit]
[+]
admin
[+]
plugin-updates
[+]
public
[+]
fonts
[-] vxcash.php
[edit]
[-] autoload.php
[edit]
[-] uninstall.php
[edit]
[+]
includes
[+]
languages
[+]
..
[-] LICENSE.txt
[edit]