PluginProbe
Protect Uploads / 0.7.1
Protect Uploads v0.7.1
0.7.1 trunk 0.1 0.2 0.3 0.4 0.5.1 0.5.2 0.6.0 0.7.0
protect-uploads / protect-uploads.php

protect-uploads.php in Protect Uploads 0.7.1, at protect-uploads.php

46 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Protect Uploads
4 * Plugin URI: https://wordpress.org/support/plugin/protect-uploads/
5 * Description: Protect your uploads directory. Avoid browsing of your uploads directory by adding a htaccess file or an index.php file.
6 * Version: 0.7.1
7 * Requires at least: 5.0
8 * Requires PHP: 7.4
9 * Author: alticreation
10 * License: GPL-2.0+
11 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
12 * Text Domain: protect-uploads
13 * Domain Path: /languages
14 */
15
16 // If this file is called directly, abort.
17 if ( ! defined( 'WPINC' ) ) {
18 die;
19 }
20
21 function protect_uploads_activate() {
22
23 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
24 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-activator.php';
25 $activation = new Alti_ProtectUploads_Activator();
26 $activation->run();
27
28 }
29
30 function protect_uploads_deactivate() {
31
32 require_once plugin_dir_path( __FILE__ ) . 'admin/class-protect-uploads-admin.php';
33 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-deactivator.php';
34 $deactivation = new Alti_ProtectUploads_Deactivator();
35 $deactivation->run();
36
37 }
38
39 register_activation_hook( __FILE__, 'protect_uploads_activate' );
40 register_deactivation_hook( __FILE__, 'protect_uploads_deactivate' );
41
42 require plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
43
44 $plugin = new Alti_ProtectUploads();
45 $plugin->run();
46