Download Monitor - Version 4.4.8

Version Description

  • 29.10.2021 = Fixed: Insert Download/Quick Download Button
Download this release

Release Info

Developer giucu91
Plugin Icon 128x128 Download Monitor
Version 4.4.8
Comparing to
See all releases

Code changes from version 4.4.7 to 4.4.8

download-monitor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
5
  Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
6
- Version: 4.4.7
7
  Author: WPChill
8
  Author URI: https://wpchill.com
9
  Requires at least: 5.4
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
- define( 'DLM_VERSION', '4.4.7' );
37
 
38
  // Define DLM FILE
39
  define( 'DLM_PLUGIN_FILE', __FILE__ );
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
5
  Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
6
+ Version: 4.4.8
7
  Author: WPChill
8
  Author URI: https://wpchill.com
9
  Requires at least: 5.4
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
+ define( 'DLM_VERSION', '4.4.8' );
37
 
38
  // Define DLM FILE
39
  define( 'DLM_PLUGIN_FILE', __FILE__ );
readme.txt CHANGED
@@ -3,12 +3,12 @@ Contributors: wpchill, silkalns, barrykooij, mikejolley
3
  Tags: download manager, document management, file manager, digital store, ecommerce, document management plugin, download monitor, download counter, password protection, download protection, password, protect downloads, tracker, sell, shop, ecommerce, paypal
4
  Requires at least: 5.4
5
  Tested up to: 5.8
6
- Stable tag: 4.4.7
7
  License: GPLv3
8
  Text Domain: -
9
  Requires PHP: 5.6
10
 
11
- Download Monitor is a plugin for uploading and managing downloads, tracking downloads, displaying links and selling downloads!
12
 
13
  == Description ==
14
 
@@ -29,12 +29,17 @@ Download Monitor provides an interface for uploading and managing downloadable f
29
  * Member only downloads, requires users to be logged in to download your files.
30
  * Customisable endpoints for showing pretty download links.
31
 
32
- [Read more about Download Monitor](https://www.download-monitor.com/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-after-features).
33
 
34
  > #### Download Monitor Extensions
35
- > Extend the core Download Monitor plugin with it's powerful extensions. All extensions come with one year of updates and support.<br />
36
  >
37
- > Some of our popular extensions include: [Page Addon](https://www.download-monitor.com/extensions/page-addon/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-page-addon), [Email Lock](https://www.download-monitor.com/extensions/email-lock/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-email-lock), [CSV Importer](https://www.download-monitor.com/extensions/csv-importer/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-csv-importer) and [Gravity Forms Lock](https://www.download-monitor.com/extensions/gravity-forms/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-gravity-forms-lock).
 
 
 
 
 
 
38
  >
39
  > Want to see more? [Browse All Extensions](https://www.download-monitor.com/extensions/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-browse-all)
40
 
@@ -117,6 +122,9 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
117
 
118
  == Changelog ==
119
 
 
 
 
120
  = 4.4.7 - 29.10.2021 =
121
  Fixed: Sanitization & Escaping
122
 
3
  Tags: download manager, document management, file manager, digital store, ecommerce, document management plugin, download monitor, download counter, password protection, download protection, password, protect downloads, tracker, sell, shop, ecommerce, paypal
4
  Requires at least: 5.4
5
  Tested up to: 5.8
6
+ Stable tag: 4.4.8
7
  License: GPLv3
8
  Text Domain: -
9
  Requires PHP: 5.6
10
 
11
+ Download Monitor is a plugin for selling, uploading and managing downloads, tracking downloads and displaying links.
12
 
13
  == Description ==
14
 
29
  * Member only downloads, requires users to be logged in to download your files.
30
  * Customisable endpoints for showing pretty download links.
31
 
 
32
 
33
  > #### Download Monitor Extensions
34
+ > Extend the core Download Monitor plugin with it's powerful extensions.
35
  >
36
+ > Some of our popular extensions include:
37
+ - [Gravity Forms Gated Content](https://www.download-monitor.com/extensions/gravity-forms/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-gravity-forms-lock) - easily create a download gate with Gravity Forms. Require users to fill-in a form before accessing a PDF any other type of download.
38
+ - [Page Addon](https://www.download-monitor.com/extensions/page-addon/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-page-addon)
39
+ - [MailChimp Download After Sign up](https://www.download-monitor.com/extensions/mailchimp-lock//?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-mailchimp-lock) - Allow access to file downloads only for people who already belong to a MailChimp mailing list. This extensions facilitates the download after sign up in a MailChimp list.
40
+ - [Email Lock](https://www.download-monitor.com/extensions/email-lock/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-email-lock)
41
+
42
+
43
  >
44
  > Want to see more? [Browse All Extensions](https://www.download-monitor.com/extensions/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-browse-all)
45
 
122
 
123
  == Changelog ==
124
 
125
+ = 4.4.8 - 29.10.2021 =
126
+ Fixed: Insert Download/Quick Download Button
127
+
128
  = 4.4.7 - 29.10.2021 =
129
  Fixed: Sanitization & Escaping
130
 
src/Admin/Extensions.php CHANGED
@@ -313,8 +313,17 @@ class DLM_Admin_Extensions {
313
 
314
  echo '</div>';
315
  echo '</div>';
316
-
317
-
 
 
 
 
 
 
 
 
 
318
  } else if ( count( $this->installed_extensions ) > 0 ) {
319
  echo '<p>' . esc_html__( 'Wow, looks like you installed all our extensions. Thanks, you rock!', 'download-monitor' ) . '</p>';
320
  }
313
 
314
  echo '</div>';
315
  echo '</div>';
316
+ ?>
317
+ <div class="wrap dlm_extensions_wrap">
318
+ <div class="icon32 icon32-posts-dlm_download" id="icon-edit"><br/></div>
319
+ <h1>
320
+ <?php esc_html_e( 'Download Monitor Installed Extensions', 'download-monitor' ); ?>
321
+ <a href="<?php echo esc_url( add_query_arg( 'dlm-force-recheck', '1', admin_url( 'edit.php?post_type=dlm_download&page=dlm-extensions' ) ) ); ?>"
322
+ class="button dlm-reload-button">
323
+ <?php esc_html_e( 'Reload Extensions', 'download-monitor' ); ?>
324
+ </a>
325
+ </h1>
326
+ <?php
327
  } else if ( count( $this->installed_extensions ) > 0 ) {
328
  echo '<p>' . esc_html__( 'Wow, looks like you installed all our extensions. Thanks, you rock!', 'download-monitor' ) . '</p>';
329
  }
src/Admin/MediaInsert.php CHANGED
@@ -197,13 +197,12 @@ class DLM_Admin_Media_Insert {
197
  <input type="text" id="template_name" value="" class="input"
198
  placeholder="<?php echo esc_html__( 'Template Name', 'download-monitor' ); ?>"/>
199
  <span class="description">
200
- <?php wp_kses( esc_html__( 'Leaving this blank will use the default <code>content-download.php</code> template file. If you enter, for example, <code>image</code>, the <code>content-download-image.php</code> template will be used instead.', 'download-monitor' ) ); ?>
201
  </span>
202
  </p>
203
 
204
  <p>
205
- <input type="button" class="button insert_download button-primary button-large"
206
- value="<?php echo esc_html__( 'Insert Shortcode', 'download-monitor' ); ?>"/>
207
  </p>
208
 
209
  </form>
@@ -215,21 +214,20 @@ class DLM_Admin_Media_Insert {
215
  <div id="drag-drop-area" style="height:240px">
216
  <div class="drag-drop-inside">
217
  <p class="drag-drop-info"><?php echo esc_html__( 'Drop file here', 'download-monitor' ); ?></p>
218
-
219
  <p><?php echo esc_html_x( 'or', 'Drop file here *or* select file', 'download-monitor' ); ?></p>
220
-
221
  <p class="drag-drop-buttons">
222
  <input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select File', 'download-monitor' ); ?>" class="button"/>
223
  </p>
224
  </div>
225
  </div>
226
- <p><a href="#" class="add_manually"><?php echo esc_html__( 'Enter URL manually', 'download-monitor' ); ?> &rarr;</a>
 
227
  </p>
228
  </div>
229
  <div id="quick-add-details" style="display:none">
230
  <p>
231
  <label for="download_url"><?php echo esc_html__( 'Download URL', 'download-monitor' ); ?>:</label>
232
- <input type="text" name="download_url" id="download_url" value="" class="download_url input" placeholder="<?php echo esc_html__( 'Required URL', 'download-monitor' ); ?>"/>
233
  </p>
234
 
235
  <p>
@@ -243,8 +241,8 @@ class DLM_Admin_Media_Insert {
243
  </p>
244
 
245
  <p>
246
- <input type="submit" class="button button-primary button-large" value="<?php echo esc_attr__( 'Save Download', 'download-monitor' ); ?>"/>
247
  <?php wp_nonce_field( 'quick-add', 'quick-add-nonce' ) ?>
 
248
  </p>
249
  </div>
250
 
@@ -312,11 +310,11 @@ class DLM_Admin_Media_Insert {
312
  );
313
 
314
  // we should probably not apply this filter, plugins may expect wp's media uploader...
315
- $plupload_init = apply_filters('plupload_init', $plupload_init);
316
  ?>
317
 
318
  // create the uploader and pass the config from above
319
- var uploader = new plupload.Uploader( <?php echo esc_js(json_encode( $plupload_init )); ?> );
320
 
321
  // checks if browser supports drag and drop upload, makes some css adjustments if necessary
322
  uploader.bind( 'Init', function ( up ) {
197
  <input type="text" id="template_name" value="" class="input"
198
  placeholder="<?php echo esc_html__( 'Template Name', 'download-monitor' ); ?>"/>
199
  <span class="description">
200
+ <?php wp_kses_post( __( 'Leaving this blank will use the default <code>content-download.php</code> template file. If you enter, for example, <code>image</code>, the <code>content-download-image.php</code> template will be used instead.', 'download-monitor' ) ); ?>
201
  </span>
202
  </p>
203
 
204
  <p>
205
+ <input type="button" class="button insert_download button-primary button-large" value="<?php echo esc_html__( 'Insert Shortcode', 'download-monitor' ); ?>"/>
 
206
  </p>
207
 
208
  </form>
214
  <div id="drag-drop-area" style="height:240px">
215
  <div class="drag-drop-inside">
216
  <p class="drag-drop-info"><?php echo esc_html__( 'Drop file here', 'download-monitor' ); ?></p>
 
217
  <p><?php echo esc_html_x( 'or', 'Drop file here *or* select file', 'download-monitor' ); ?></p>
 
218
  <p class="drag-drop-buttons">
219
  <input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select File', 'download-monitor' ); ?>" class="button"/>
220
  </p>
221
  </div>
222
  </div>
223
+ <p>
224
+ <a href="#" class="add_manually"><?php echo esc_html__( 'Enter URL manually', 'download-monitor' ); ?> &rarr;</a>
225
  </p>
226
  </div>
227
  <div id="quick-add-details" style="display:none">
228
  <p>
229
  <label for="download_url"><?php echo esc_html__( 'Download URL', 'download-monitor' ); ?>:</label>
230
+ <input type="text" name="download_url" id="download_url" value="" class="download_url input" placeholder="<?php echo esc_attr__( 'Required URL', 'download-monitor' ); ?>"/>
231
  </p>
232
 
233
  <p>
241
  </p>
242
 
243
  <p>
 
244
  <?php wp_nonce_field( 'quick-add', 'quick-add-nonce' ) ?>
245
+ <input type="submit" class="button button-primary button-large" value="<?php echo esc_attr__( 'Save Download', 'download-monitor' ); ?>"/>
246
  </p>
247
  </div>
248
 
310
  );
311
 
312
  // we should probably not apply this filter, plugins may expect wp's media uploader...
313
+ $plupload_init = apply_filters( 'plupload_init', $plupload_init );
314
  ?>
315
 
316
  // create the uploader and pass the config from above
317
+ var uploader = new plupload.Uploader( <?php echo wp_json_encode( $plupload_init ); ?> );
318
 
319
  // checks if browser supports drag and drop upload, makes some css adjustments if necessary
320
  uploader.bind( 'Init', function ( up ) {
src/DownloadHandler.php CHANGED
@@ -485,7 +485,8 @@ class DLM_Download_Handler {
485
  $this->log( 'download', 'redirected', __( 'Redirected to file', 'download-monitor' ), $download, $version );
486
 
487
  // Ensure we have a valid URL, not a file path
488
- $file_path = str_replace( ABSPATH, site_url( '/', 'http' ), $file_path );
 
489
 
490
  header( 'Location: ' . $file_path );
491
  exit;
485
  $this->log( 'download', 'redirected', __( 'Redirected to file', 'download-monitor' ), $download, $version );
486
 
487
  // Ensure we have a valid URL, not a file path
488
+ $scheme = parse_url( get_option( 'home' ), PHP_URL_SCHEME );
489
+ $file_path = str_replace( ABSPATH, site_url( '/', $scheme ), $file_path );
490
 
491
  header( 'Location: ' . $file_path );
492
  exit;