Server IP : 66.29.132.124 / Your IP : 3.17.166.233 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/wavestudioz.com/wp-content/plugins/protect-uploads/ |
Upload File : |
<?php /** * Plugin Name: Protect Uploads * Plugin URI: https://wordpress.org/support/plugin/protect-uploads/ * Description: Protect your uploads directory. Avoid browsing of your uploads directory by adding a htaccess file or an index.php file. * Version: 0.4 * Author: alticreation * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: protect-uploads * Domain Path: /languages */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } function activate_alti_protect_uploads() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php'; require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-activator.php'; $activation = new Alti_ProtectUploads_Activator(); $activation->run(); } function deactivate_alti_protect_uploads() { require_once plugin_dir_path( __FILE__ ) . 'admin/class-protect-uploads-admin.php'; require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-deactivator.php'; $deactivation = new Alti_ProtectUploads_Deactivator(); $deactivation->run(); } register_activation_hook( __FILE__, 'activate_alti_protect_uploads' ); register_deactivation_hook( __FILE__, 'deactivate_alti_protect_uploads' ); require plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php'; $plugin = new Alti_ProtectUploads(); $plugin->run();