PluginProbe
Protect Uploads / 0.4
Protect Uploads v0.4
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.4, at protect-uploads.php

44 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.4
7 * Author: alticreation
8 * License: GPL-2.0+
9 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
10 * Text Domain: protect-uploads
11 * Domain Path: /languages
12 */
13
14 // If this file is called directly, abort.
15 if ( ! defined( 'WPINC' ) ) {
16 die;
17 }
18
19 function activate_alti_protect_uploads() {
20
21 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
22 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-activator.php';
23 $activation = new Alti_ProtectUploads_Activator();
24 $activation->run();
25
26 }
27
28 function deactivate_alti_protect_uploads() {
29
30 require_once plugin_dir_path( __FILE__ ) . 'admin/class-protect-uploads-admin.php';
31 require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-deactivator.php';
32 $deactivation = new Alti_ProtectUploads_Deactivator();
33 $deactivation->run();
34
35 }
36
37 register_activation_hook( __FILE__, 'activate_alti_protect_uploads' );
38 register_deactivation_hook( __FILE__, 'deactivate_alti_protect_uploads' );
39
40 require plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
41
42 $plugin = new Alti_ProtectUploads();
43 $plugin->run();
44