Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.332

Version Description

  • Delete Image Bug Fixed.
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 3.0.332
Comparing to
See all releases

Code changes from version 3.0.331 to 3.0.332

gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
- Version: 3.0.331
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
+ Version: 3.0.332
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
lib/add-new-album-class.php CHANGED
@@ -171,11 +171,13 @@ else
171
  break;
172
  case "delete_pic":
173
 
 
174
  $albumId = intval($_REQUEST["albumid"]);
 
175
 
176
  $wpdb->query
177
  (
178
- "DELETE FROM " . gallery_bank_pics() . " WHERE pic_id = $albumId"
179
  );
180
  die();
181
  break;
171
  break;
172
  case "delete_pic":
173
 
174
+ $data_to_be_deleted = json_decode(stripslashes(html_entity_decode($_REQUEST["delete_array"])));
175
  $albumId = intval($_REQUEST["albumid"]);
176
+ $query_data = implode(",",$data_to_be_deleted);
177
 
178
  $wpdb->query
179
  (
180
+ "DELETE FROM " . gallery_bank_pics() . " WHERE pic_id in ($query_data)"
181
  );
182
  die();
183
  break;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
3
  Tags: add album, add gallery, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, comments, filterable gallery, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, fullscreen slider, galeri, galerie, Galleria, galleries, gallery, gallery decription, gallery image, gallery lightbox, gallery shortcode, gallery slider, image, image album, image gallery, image lightbox, image rotate, image slider, image slideshow, images, images gallery, instagram, jquery, jquery gallery, lightbox, media, mosaic, multiple pictures, photo, photo album, photo albums, photo gallery, photoalbum, photogallery, photography, photos, photoset, picture, pictures, responsive, responsive gallery, responsive wordpress photo gallery, sidebar, Simple gallery, slide, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, upload images, upload photos, video gallery, videos, view images, view pictures, vimeo, watermarking, watermarks, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, youtube, gallery bank
4
  Requires at least: 3.4
5
  Tested up to: 4.3
6
- Stable tag: 3.0.331
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -500,13 +500,17 @@ is False in shortcode.
500
 
501
  == Changelog ==
502
 
 
 
 
 
503
  = 3.0.331 =
504
 
505
  * Pretty Photo Title & Description Bug Fixed.
506
 
507
  = 3.0.330 =
508
 
509
- * Few Security Issues Fixed.
510
  * Isotope 2.2.2 Version used.
511
 
512
  = 3.0.229 =
3
  Tags: add album, add gallery, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, comments, filterable gallery, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, fullscreen slider, galeri, galerie, Galleria, galleries, gallery, gallery decription, gallery image, gallery lightbox, gallery shortcode, gallery slider, image, image album, image gallery, image lightbox, image rotate, image slider, image slideshow, images, images gallery, instagram, jquery, jquery gallery, lightbox, media, mosaic, multiple pictures, photo, photo album, photo albums, photo gallery, photoalbum, photogallery, photography, photos, photoset, picture, pictures, responsive, responsive gallery, responsive wordpress photo gallery, sidebar, Simple gallery, slide, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, upload images, upload photos, video gallery, videos, view images, view pictures, vimeo, watermarking, watermarks, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, youtube, gallery bank
4
  Requires at least: 3.4
5
  Tested up to: 4.3
6
+ Stable tag: 3.0.332
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
500
 
501
  == Changelog ==
502
 
503
+ = 3.0.332 =
504
+
505
+ * Delete Image Bug Fixed.
506
+
507
  = 3.0.331 =
508
 
509
  * Pretty Photo Title & Description Bug Fixed.
510
 
511
  = 3.0.330 =
512
 
513
+ * Few 1ecurity Issues Fixed.
514
  * Isotope 2.2.2 Version used.
515
 
516
  = 3.0.229 =
views/edit-album.php CHANGED
@@ -455,81 +455,89 @@
455
  });
456
  jQuery("#edit_album").validate
457
  ({
458
- submitHandler: function () {
 
459
  jQuery("#update_album_success_message").css("display", "block");
460
- jQuery("body,html").animate({
461
- scrollTop: jQuery("body,html").position().top}, "slow");
462
- var albumid = jQuery("#ux_hidden_album_id").val();
463
- jQuery.post(ajaxurl,"albumid=" + albumid + "&param=delete_pic&action=add_new_album_library", function ()
464
- {
465
-
466
-
467
- });
468
-
469
- var uxEditDescription = "";
470
-
 
471
  <?php
472
  if(class_exists("ckeditor_wordpress"))
473
  {
474
  ?>
475
- var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
476
- <?php
477
- }
478
- else
479
- {
480
- ?>
481
- var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
482
- encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
483
- : encodeURIComponent(jQuery("#ux_edit_description").val());
484
- <?php
485
- }
486
- ?>
487
-
488
- var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
489
- jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function () {
490
- var count = 0;
491
- jQuery.each(oTable.fnGetNodes(), function (index, value) {
492
- var controlClass = jQuery(value.cells[1]).find("img").attr("class");
493
- var controlType = "";
494
- var img_gb_path = "";
495
- var isAlbumCoverSet = "";
496
- var title = "";
497
- var description = "";
498
- var tags = "";
499
- var urlRedirect = "";
500
- var picId = "";
501
- var row_data = [];
502
-
503
- controlType = jQuery(value.cells[1]).find("img").attr("type");
504
- picId = jQuery(value.cells[1]).find("img").attr("imageId");
505
- img_gb_path = (jQuery(value.cells[1]).find("img").attr("imgpath"));
506
- isAlbumCoverSet = jQuery(value.cells[1]).find("input:radio").attr("checked");
507
- title = (jQuery(value.cells[2]).find("input:text").eq(0).val());
508
- description =(jQuery(value.cells[2]).find("textarea").eq(0).val());
509
- tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
510
- urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
511
- row_data.push(controlType);
512
- row_data.push(picId);
513
- row_data.push(img_gb_path);
514
- row_data.push(isAlbumCoverSet);
515
- row_data.push(title);
516
- row_data.push(description);
517
- row_data.push(tags);
518
- row_data.push(urlRedirect);
519
- row_data.push(cover_width);
520
- row_data.push(cover_height);
521
-
522
- array_album_data.push(row_data);
523
- });
524
- jQuery.post(ajaxurl, "album_data="+encodeURIComponent(JSON.stringify(array_album_data))+ "&param=update_pic&action=add_new_album_library", function (data) {
525
- setTimeout(function () {
526
- jQuery("#update_album_success_message").css("display", "none");
527
- window.location.href = "admin.php?page=gallery_bank";
528
- }, 10000);
529
- });
530
-
531
- });
532
- }
 
 
 
 
 
 
533
  });
534
  jQuery(document).ready(function()
535
  {
455
  });
456
  jQuery("#edit_album").validate
457
  ({
458
+ submitHandler: function ()
459
+ {
460
  jQuery("#update_album_success_message").css("display", "block");
461
+ jQuery("body,html").animate
462
+ ({
463
+ scrollTop: jQuery("body,html").position().top
464
+ }, "slow");
465
+ var albumid = jQuery("#ux_hidden_album_id").val();
466
+ jQuery.post(ajaxurl,"albumid=" + albumid + "&delete_array=" + JSON.stringify(delete_array) +"&param=delete_pic&action=add_new_album_library", function ()
467
+ {
468
+
469
+ });
470
+
471
+ var uxEditDescription = "";
472
+
473
  <?php
474
  if(class_exists("ckeditor_wordpress"))
475
  {
476
  ?>
477
+ var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
478
+ <?php
479
+ }
480
+ else
481
+ {
482
+ ?>
483
+ var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
484
+ encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
485
+ : encodeURIComponent(jQuery("#ux_edit_description").val());
486
+ <?php
487
+ }
488
+ ?>
489
+
490
+ var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
491
+ jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function ()
492
+ {
493
+
494
+ });
495
+
496
+ var count = 0;
497
+ jQuery.each(oTable.fnGetNodes(), function (index, value)
498
+ {
499
+ var controlClass = jQuery(value.cells[1]).find("img").attr("class");
500
+ var controlType = "";
501
+ var img_gb_path = "";
502
+ var isAlbumCoverSet = "";
503
+ var title = "";
504
+ var description = "";
505
+ var tags = "";
506
+ var urlRedirect = "";
507
+ var picId = "";
508
+ var row_data = [];
509
+
510
+ controlType = jQuery(value.cells[1]).find("img").attr("type");
511
+ picId = jQuery(value.cells[1]).find("img").attr("imageId");
512
+ img_gb_path = (jQuery(value.cells[1]).find("img").attr("imgpath"));
513
+ isAlbumCoverSet = jQuery(value.cells[1]).find("input:radio").attr("checked");
514
+ title = (jQuery(value.cells[2]).find("input:text").eq(0).val());
515
+ description =(jQuery(value.cells[2]).find("textarea").eq(0).val());
516
+ tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
517
+ urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
518
+ row_data.push(controlType);
519
+ row_data.push(picId);
520
+ row_data.push(img_gb_path);
521
+ row_data.push(isAlbumCoverSet);
522
+ row_data.push(title);
523
+ row_data.push(description);
524
+ row_data.push(tags);
525
+ row_data.push(urlRedirect);
526
+ row_data.push(cover_width);
527
+ row_data.push(cover_height);
528
+
529
+ array_album_data.push(row_data);
530
+ });
531
+
532
+ jQuery.post(ajaxurl, "album_data="+encodeURIComponent(JSON.stringify(array_album_data))+ "&param=update_pic&action=add_new_album_library", function (data)
533
+ {
534
+ setTimeout(function ()
535
+ {
536
+ jQuery("#update_album_success_message").css("display", "none");
537
+ window.location.href = "admin.php?page=gallery_bank";
538
+ }, 10000);
539
+ });
540
+ }
541
  });
542
  jQuery(document).ready(function()
543
  {