WordPress Download Manager - Version 2.5.97

Version Description

  • Updates file missing code
  • Fixed redirection issue after creating new package
Download this release

Release Info

Developer codename065
Plugin Icon 128x128 WordPress Download Manager
Version 2.5.97
Comparing to
See all releases

Code changes from version 2.5.96 to 2.5.97

Files changed (4) hide show
  1. download-manager.php +2 -2
  2. process.php +5 -3
  3. readme.txt +4 -0
  4. wpdm-add-new-file.php +3 -3
download-manager.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Download Manager
4
  Plugin URI: http://www.wpdownloadmanager.com/
5
  Description: Manage, track and control file download from your wordpress site
6
  Author: Shaon
7
- Version: 2.5.96
8
  Author URI: http://www.wpdownloadmanager.com/
9
  */
10
 
@@ -260,7 +260,7 @@ function wpdm_cblist_categories($parent="", $level = 0, $sel = array()){
260
  $checked = 'checked=checked';
261
  else
262
  $checked = '';
263
- echo "<li style='line-height:16px'><input type='checkbox' name='file[category][]' value='$id' $checked /> $cat[title]";
264
  echo "<ul style='margin:0px;margin-left:20px;padding:0px;'>";
265
  wpdm_cblist_categories($id,$level+1, $sel);
266
  echo "</ul>";
4
  Plugin URI: http://www.wpdownloadmanager.com/
5
  Description: Manage, track and control file download from your wordpress site
6
  Author: Shaon
7
+ Version: 2.5.97
8
  Author URI: http://www.wpdownloadmanager.com/
9
  */
10
 
260
  $checked = 'checked=checked';
261
  else
262
  $checked = '';
263
+ echo "<li style='line-height:16px'><label><input type='checkbox' name='file[category][]' value='$id' $checked /> $cat[title]</label>";
264
  echo "<ul style='margin:0px;margin-left:20px;padding:0px;'>";
265
  wpdm_cblist_categories($id,$level+1, $sel);
266
  echo "</ul>";
process.php CHANGED
@@ -40,12 +40,14 @@ if(is_array($data)){
40
  die();
41
  }
42
  $data['file'] = trim($data['file']);
43
- if(file_exists($data['file']))
44
  $fname = $data['file'];
45
- else if(file_exists(UPLOAD_DIR . $data['file']))
46
  $fname = UPLOAD_DIR . $data['file'];
 
 
47
  else
48
- die('File not found!');
49
 
50
  $wpdb->query("update ahm_files set download_count=download_count+1 where id='$data[id]'");
51
  /*
40
  die();
41
  }
42
  $data['file'] = trim($data['file']);
43
+ if(file_exists($data['file']) && $data['file']!= "")
44
  $fname = $data['file'];
45
+ else if(file_exists(UPLOAD_DIR . $data['file']) && $data['file']!= "")
46
  $fname = UPLOAD_DIR . $data['file'];
47
+ else if( $data['file']== "")
48
+ wp_die("No file attached yet.");
49
  else
50
+ wp_die('File not found!');
51
 
52
  $wpdb->query("update ahm_files set download_count=download_count+1 where id='$data[id]'");
53
  /*
readme.txt CHANGED
@@ -63,6 +63,10 @@ You can add/embed downloadable files anywhere in the post just pasting the embed
63
 
64
  == Changelog ==
65
 
 
 
 
 
66
  = 2.5.96 =
67
  * Fixed issues with category short-code
68
  * Fixed issue with tinymce button for category short-code
63
 
64
  == Changelog ==
65
 
66
+ = 2.5.97 =
67
+ * Updates file missing code
68
+ * Fixed redirection issue after creating new package
69
+
70
  = 2.5.96 =
71
  * Fixed issues with category short-code
72
  * Fixed issue with tinymce button for category short-code
wpdm-add-new-file.php CHANGED
@@ -36,8 +36,8 @@ input{
36
 
37
  <table cellpadding="5" cellspacing="5" width="100%">
38
  <tr>
39
-
40
- <td><input style="font-size:16pt;width:100%;color:<?php echo $file['title']?'#000':'#ccc'; ?>" onfocus="if(this.value=='Enter title here') {this.value=''; jQuery(this).css('color','#000'); }" onblur="if(this.value==''||this.value=='Enter title here') {this.value='Enter title here'; jQuery(this).css('color','#ccc');}" type="text" value="<?php echo $file['title']?esc_attr($file['title']):'Enter title here'; ?>" name="file[title]" /></td>
41
  </tr>
42
 
43
  <tr>
@@ -435,7 +435,7 @@ jQuery('#dcf').click(function(){
435
  if(res=='updated') msg = '<?php _e('File Updated Successfully!'); ?>';
436
  else if(parseInt(res)>0){
437
  msg = '<?php _e('File Created Successfully! Please wait while redirecting...'); ?>';
438
- //location.href='admin.php?page=file-manager&task=wpdm_edit_file&id='+res;
439
  }
440
  jQuery('#w84sv').fadeOut();
441
  jQuery('#svd').html(msg).fadeIn();
36
 
37
  <table cellpadding="5" cellspacing="5" width="100%">
38
  <tr>
39
+
40
+ <td><input style="font-size:16pt;width:100%;" placeholder="Enter Title Here" type="text" value="<?php echo $file['title']?esc_attr($file['title']):""; ?>" name="file[title]" /></td>
41
  </tr>
42
 
43
  <tr>
435
  if(res=='updated') msg = '<?php _e('File Updated Successfully!'); ?>';
436
  else if(parseInt(res)>0){
437
  msg = '<?php _e('File Created Successfully! Please wait while redirecting...'); ?>';
438
+ location.href='admin.php?page=file-manager&task=wpdm_edit_file&id='+res;
439
  }
440
  jQuery('#w84sv').fadeOut();
441
  jQuery('#svd').html(msg).fadeIn();