Changeset 3064592
- Timestamp:
- 04/04/2024 11:04:52 AM (2 years ago)
- Location:
- prevent-file-access
- Files:
-
- 59 added
- 3 edited
-
tags/2.5.4 (added)
-
tags/2.5.4/LICENSE.txt (added)
-
tags/2.5.4/README.txt (added)
-
tags/2.5.4/admin (added)
-
tags/2.5.4/admin/class-media-restriction-admin.php (added)
-
tags/2.5.4/admin/class-miniorange-media-restriction-customer.php (added)
-
tags/2.5.4/admin/css (added)
-
tags/2.5.4/admin/css/bootstrap.min.css (added)
-
tags/2.5.4/admin/css/font-awesome.min.css (added)
-
tags/2.5.4/admin/css/jquery.dataTables.min.css (added)
-
tags/2.5.4/admin/css/media-restriction-admin.css (added)
-
tags/2.5.4/admin/css/phone.min.css (added)
-
tags/2.5.4/admin/css/style.min.css (added)
-
tags/2.5.4/admin/fonts (added)
-
tags/2.5.4/admin/fonts/FontAwesome.otf (added)
-
tags/2.5.4/admin/fonts/fontawesome-webfont.eot (added)
-
tags/2.5.4/admin/fonts/fontawesome-webfont.svg (added)
-
tags/2.5.4/admin/fonts/fontawesome-webfont.ttf (added)
-
tags/2.5.4/admin/fonts/fontawesome-webfont.woff (added)
-
tags/2.5.4/admin/fonts/fontawesome-webfont.woff2 (added)
-
tags/2.5.4/admin/images (added)
-
tags/2.5.4/admin/images/addon-icon.png (added)
-
tags/2.5.4/admin/images/etgh.png (added)
-
tags/2.5.4/admin/images/flags16.png (added)
-
tags/2.5.4/admin/images/logo.png (added)
-
tags/2.5.4/admin/images/mail.png (added)
-
tags/2.5.4/admin/images/memberpress.png (added)
-
tags/2.5.4/admin/images/miniorange.png (added)
-
tags/2.5.4/admin/images/miniorange_logo.png (added)
-
tags/2.5.4/admin/images/nft.png (added)
-
tags/2.5.4/admin/images/paidmember.png (added)
-
tags/2.5.4/admin/images/pricing-icon.png (added)
-
tags/2.5.4/admin/images/remove.png (added)
-
tags/2.5.4/admin/images/setup-icon.png (added)
-
tags/2.5.4/admin/images/tick.png (added)
-
tags/2.5.4/admin/images/trials-icon.png (added)
-
tags/2.5.4/admin/index.php (added)
-
tags/2.5.4/admin/js (added)
-
tags/2.5.4/admin/js/custom.min.js (added)
-
tags/2.5.4/admin/js/fontawesome.js (added)
-
tags/2.5.4/admin/js/jquery.dataTables.min.js (added)
-
tags/2.5.4/admin/js/media-restriction-admin.min.js (added)
-
tags/2.5.4/admin/js/phone.js (added)
-
tags/2.5.4/admin/partials (added)
-
tags/2.5.4/admin/partials/class-mo-media-restriction-admin-feedback.php (added)
-
tags/2.5.4/admin/partials/media-restriction-addon .php (added)
-
tags/2.5.4/admin/partials/media-restriction-admin-display.php (added)
-
tags/2.5.4/includes (added)
-
tags/2.5.4/includes/class-media-restriction-activator.php (added)
-
tags/2.5.4/includes/class-media-restriction-deactivator.php (added)
-
tags/2.5.4/includes/class-media-restriction-i18n.php (added)
-
tags/2.5.4/includes/class-media-restriction-loader.php (added)
-
tags/2.5.4/includes/class-media-restriction.php (added)
-
tags/2.5.4/includes/index.php (added)
-
tags/2.5.4/index.php (added)
-
tags/2.5.4/languages (added)
-
tags/2.5.4/languages/media-restriction.pot (added)
-
tags/2.5.4/media-restriction.php (added)
-
tags/2.5.4/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/includes/class-media-restriction-deactivator.php (modified) (1 diff)
-
trunk/media-restriction.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prevent-file-access/trunk/README.txt
r2977025 r3064592 4 4 Tags: protect uploads, secure-files, content-restriction, protect-folders, media restriction, media management, download logs 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 36 Tested up to: 6.5 7 7 Requires PHP: 5.6 8 Stable tag: 2.5. 38 Stable tag: 2.5.4 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 143 143 144 144 == Changelog == 145 = 2.5.4 = 146 * Added Compatibility with WordPress 6.5 147 * Handled server rules removal on plugin deactivation. 148 145 149 = 2.5.3 = 146 150 * Added an advertisement for the All Inclusive Plan. … … 218 222 219 223 == Upgrade Notice == 224 = 2.5.4 = 225 * Added Compatibility with WordPress 6.5 226 * Handled server rules removal on plugin deactivation. 227 220 228 = 2.5.3 = 221 229 * Added an advertisement for the All Inclusive Plan. -
prevent-file-access/trunk/includes/class-media-restriction-deactivator.php
r2896658 r3064592 33 33 delete_option( 'mo_media_restriction_admin_customer_key' ); 34 34 delete_option( 'mo_media_restriction_new_user' ); 35 36 $home_path = get_home_path(); 37 $htaccess_file = $home_path . '.htaccess'; // Specify the path to your .htaccess file. 38 39 // Read the existing .htaccess file content. 40 $existing_content = file_get_contents( $htaccess_file ); 41 42 // Remove the content between BEGIN and END MINIORANGE MEDIA RESTRICTION. 43 $updated_content = preg_replace( '/# BEGIN MINIORANGE MEDIA RESTRICTION(.*?)# END MINIORANGE MEDIA RESTRICTION/ms', '', $existing_content ); 44 // Write the updated content back to the .htaccess file. 45 file_put_contents( $htaccess_file, $updated_content ); 35 46 } 36 47 -
prevent-file-access/trunk/media-restriction.php
r2977025 r3064592 4 4 * Plugin URI: http://miniorange.com 5 5 * Description: Allows to protect your files and folders (wp-content, uploads, images, pdf, documents) from public access, Role base folder access, User base folder access, giving access to only logged in users. 6 * Version: 2.5. 36 * Version: 2.5.4 7 7 * Author: miniOrange 8 8 * Author URI: http://miniorange.com … … 22 22 * Rename this for your plugin and update it as you release new versions. 23 23 */ 24 define( 'MO_MEDIA_RESTRICTION_PLUGIN_NAME_VERSION', '2.5. 3' );24 define( 'MO_MEDIA_RESTRICTION_PLUGIN_NAME_VERSION', '2.5.4' ); 25 25 /** 26 26 * The code that runs during plugin activation.
Note: See TracChangeset
for help on using the changeset viewer.