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

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