Plugin Directory

Changeset 2994472

Timestamp:
11/11/2023 03:45:43 PM (9 months ago)
Author:
Atlas_Gondal
Message:

added new feature, with security patches

Location:
export-media-urls
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • export-media-urls/trunk/export-media-urls.php

    r2342237 r2994472  
    11<?php
     2
    23/**
    34 * Plugin Name: Export Media URLs
    45 * Plugin URI:  https://wordpress.org/plugins/export-media-urls/
    56 * Description: This plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis and security audit.
    6  * Version:     1.0
     7 * Version:     .0
    78 * Author:      Atlas Gondal
    89 * Author URI:  https://AtlasGondal.com/
     
    2728 */
    2829
    29 if ( ! defined( 'WPINC' ) ) {
     30if () {
    3031    die;
    3132}
    3233
    33 define( 'Export_Media_URLs__FILE__', __FILE__ );
     34define();
    3435
    35 add_action( 'plugins_loaded', 'export_media_urls_load_textdomain' );
     36add_action();
    3637
    37 function activate_export_media_urls() {
    38     if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
    39         deactivate_plugins( plugin_basename( Export_Media_URLs__FILE__ ) );
    40         $plugin_data = get_plugin_data( Export_Media_URLs__FILE__ );
     38function activate_export_media_urls()
     39{
     40    if (version_compare(PHP_VERSION, '5.4', '<')) {
     41        deactivate_plugins(plugin_basename(Export_Media_URLs__FILE__));
     42        $plugin_data = get_plugin_data(Export_Media_URLs__FILE__);
    4143        $plugin_version = $plugin_data['Version'];
    4244        $plugin_name = $plugin_data['Name'];
    43         wp_die( '<h1>' . __('Could not activate plugin: PHP version error') . '</h1><h2>PLUGIN: <i>' . $plugin_name . ' ' . $plugin_version . '</i></h2><p><strong>' . __('You are using PHP version') . ' ' . PHP_VERSION . '</strong>. ' . __( 'This plugin has been tested with PHP versions 5.4 and greater.') . '</p><p>' . __('WordPress itself recommends using PHP version 7.3 or greater') . ': <a href="https://wordpress.org/about/requirements/" target="_blank">' . __('Official WordPress requirements') . '</a>' . '. ' . __('Please upgrade your PHP version or contact your Server administrator.') . '</p>', __('Could not activate plugin: PHP version error'), array( 'back_link' => true ) );
    44 
     45        wp_die('<h1>' . __('Could not activate plugin: PHP version error') . '</h1><h2>PLUGIN: <i>' . $plugin_name . ' ' . $plugin_version . '</i></h2><p><strong>' . __('You are using PHP version') . ' ' . PHP_VERSION . '</strong>. ' . __('This plugin has been tested with PHP versions 5.4 and greater.') . '</p><p>' . __('WordPress itself recommends using PHP version 7.3 or greater') . ': <a href="https://wordpress.org/about/requirements/" target="_blank">' . __('Official WordPress requirements') . '</a>' . '. ' . __('Please upgrade your PHP version or contact your Server administrator.') . '</p>', __('Could not activate plugin: PHP version error'), array('back_link' => true));
    4546    }
    46         set_transient( 'export_media_urls_activation_redirect', true, 30 );
     47    );
    4748}
    4849
    49 register_activation_hook( __FILE__, 'activate_export_media_urls' );
     50register_activation_hook();
    5051
    5152
    52 function export_media_urls_load_textdomain() {
    53     load_plugin_textdomain( 'export-media-urls' );
     53function export_media_urls_load_textdomain()
     54{
     55    load_plugin_textdomain('export-media-urls');
    5456}
    5557
    56 if ( ! class_exists( 'MediaFromZipAdmin' ) ) {
    57     require_once dirname( Export_Media_URLs__FILE__ ) . '/lib/class-export-media-urls-admin.php';
     58if () {
     59    require_once dirname(/class-export-media-urls-admin.php';
    5860}
  • export-media-urls/trunk/readme.txt

    r2956488 r2994472  
    44Tags: export media urls, media links, extract media urls, export, utilities, export, csv
    55Requires at least: 3.1
    6 Tested up to: 6.3
     6Tested up to: 6.
    77Stable tag: 5.9
    88Requires PHP: 5.4
     
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 This plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis, and security audit.
     12Th.
    1313
    1414== Description ==
    1515
    16 This plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis, and security audit. You can export Media's:
     16The ultimate solution for seamlessly managing and extracting information from your media library. This user-friendly plugin simplifies the task of gathering essential details like title, date, caption, alt-text, description and type of media file. It facilitates the generation of CSV output or allows you to conveniently view URLs directly within the dashboard, proving invaluable for tasks such as migration, SEO analysis, and security audits.
     17
     18You can export Media's:
    1719
    1820* ID
    1921* Title
     22
     23
     24
     25
    2026* URL
    2127* Date Uploaded
     
    8692We couldn't find a plugin that would export media URLs, along with additional data such as name, date and type. So, we make this utility, and it works just like that.
    8793
     94
     95
     96
     97
     98
     99
     100
     101
    88102= Why the file name is randomly generated?  =
    89103
    90104Exporting the file with static name can be easily found by malicious attacker, and may result in sensitive information leakage. So we decided to generate random name, which are harder to guess.
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
    91117
    92118= Does Export All URLs make changes to the database? =
     
    94120No. It has no settings / configurations to store so it does not touch the database.
    95121
     122
     123
     124
     125
    96126= Which PHP version do I need? =
    97127
    98 This plugin has been tested and works with PHP versions 5.4 and greater. WordPress itself [recommends using PHP version 7.3 or greater](https://wordpress.org/about/requirements/). If you're using a PHP version lower than 5.4 please upgrade your PHP version or contact your Server administrator.
     128This plugin has been tested and works with PHP versions 5.4 and greater. WordPress itself [recommends using PHP version 7. or greater](https://wordpress.org/about/requirements/). If you're using a PHP version lower than 5.4 please upgrade your PHP version or contact your Server administrator.
    99129
    100130= Are there any server requirements? =
     
    111141== Changelog ==
    112142
     143
     144
     145
     146
     147
     148
     149
     150
    113151= 1.0 =
    114152
     
    117155== Upgrade Notice ==
    118156
    119 = 1.0 =
     157= .0 =
    120158
    121 * initial release
     159* Added - additional data fields (file name, caption, alt-text, description)
     160* Added - enables user to delete the file once downloaded
     161* Added - support for the translation
     162* Fixed - patched a security vulnerability
     163* Improvement - a few code refinements and validation checks
     164* Compatibility - tested with wordpress 6.4.1 & PHP 8.2.0
Note: See TracChangeset for help on using the changeset viewer.