Gallery Bank: WordPress Photo Gallery Plugin - Version 3.1.37

Version Description

  • Code Removed from Skip Action Hook on Wizard Page
  • Code Removed from De-activation Hook in case of Skipped Wizard Page
  • Code Removed from Uninstall Hook in case of Skipped Wizard Page
Download this release

Release Info

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

Code changes from version 3.1.36 to 3.1.37

Files changed (3) hide show
  1. gallery-bank.php +50 -53
  2. lib/add-new-album-class.php +18 -20
  3. readme.txt +9 -3
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.1.36
8
  * Author URI: http://tech-banker.com
9
  * License: GPLv3 or later
10
  * Text Domain: gallery-bank
@@ -26,7 +26,7 @@ if (!defined("GALLERY_BK_THUMB_SMALL_URL")) define("GALLERY_BK_THUMB_SMALL_URL",
26
  if (!defined("GALLERY_BK_ALBUM_THUMB_URL")) define("GALLERY_BK_ALBUM_THUMB_URL", content_url()."/gallery-bank/album-thumbs/");
27
  if (!defined("GALLERY_BK_PLUGIN_BASENAME")) define("GALLERY_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
28
  if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "stats.tech-banker-services.org");
29
- if(!defined("gallery_bank_version_number")) define("gallery_bank_version_number","3.1.36");
30
  if(!defined("GALLERY_BK_ERROR_LOGS_FILE")) define("GALLERY_BK_ERROR_LOGS_FILE",GALLERY_MAIN_DIR."/error-logs.txt");
31
 
32
 
@@ -151,11 +151,14 @@ if(!function_exists("deactivation_function_for_gallery_bank"))
151
  {
152
  function deactivation_function_for_gallery_bank()
153
  {
154
- $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
 
 
 
155
  global $wp_version,$wpdb;
156
 
157
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
158
- $type = get_option("gallery-bank-wizard");
159
  $theme_details = array();
160
 
161
  if($wp_version >= 3.4)
@@ -175,35 +178,31 @@ if(!function_exists("deactivation_function_for_gallery_bank"))
175
  $plugin_stat_data["domain_url"] = site_url();
176
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
177
 
178
- switch($type)
179
- {
180
- case "opt_in" :
181
- $plugin_stat_data["email"] = get_option("admin_email");
182
- $plugin_stat_data["wp_version"] = $wp_version;
183
- $plugin_stat_data["php_version"] = esc_html(phpversion());
184
- $plugin_stat_data["mysql_version"] = $wpdb->db_version();
185
- $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
186
- $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
187
- $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
188
- $plugin_stat_data["extensions"] = get_loaded_extensions();
189
- $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
190
- $plugin_stat_data["themes"] = $theme_details;
191
- break;
192
- }
193
  if(function_exists("curl_init"))
194
  {
195
- $ch = curl_init();
196
- curl_setopt($ch, CURLOPT_URL, $url);
197
- curl_setopt($ch, CURLOPT_POST, 1);
198
- curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
199
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
200
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
201
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
202
- curl_setopt($ch, CURLOPT_POSTFIELDS,
203
- http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") !="" ? get_option("gallery_bank_site_id") : "", "action"=>"plugin_analysis_data")));
204
- $result = curl_exec($ch);
205
- update_option("gallery_bank_site_id",$result);
206
- curl_close($ch);
207
  }
208
  else
209
  {
@@ -227,6 +226,7 @@ if(!function_exists("deactivation_function_for_gallery_bank"))
227
  update_option("gallery_bank_site_id", "error");
228
  }
229
  }
 
230
  }
231
  }
232
 
@@ -235,15 +235,16 @@ if(!function_exists("plugin_uninstall_script_for_gallery_bank"))
235
  {
236
  function plugin_uninstall_script_for_gallery_bank()
237
  {
238
- wp_clear_scheduled_hook("gallery_bank_auto_update");
239
- $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
 
 
 
 
240
  global $wp_version,$wpdb;
241
 
242
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
243
- $type = get_option("gallery-bank-wizard");
244
-
245
- delete_option("gallery-bank-wizard");
246
-
247
  $theme_details = array();
248
 
249
  if($wp_version >= 3.4)
@@ -262,22 +263,17 @@ if(!function_exists("plugin_uninstall_script_for_gallery_bank"))
262
  $plugin_stat_data["event"] = "uninstall";
263
  $plugin_stat_data["domain_url"] = site_url();
264
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
265
-
266
- switch($type)
267
- {
268
- case "opt_in" :
269
- $plugin_stat_data["email"] = get_option("admin_email");
270
- $plugin_stat_data["wp_version"] = $wp_version;
271
- $plugin_stat_data["php_version"] = esc_html(phpversion());
272
- $plugin_stat_data["mysql_version"] = $wpdb->db_version();
273
- $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
274
- $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
275
- $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
276
- $plugin_stat_data["extensions"] = get_loaded_extensions();
277
- $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
278
- $plugin_stat_data["themes"] = $theme_details;
279
- break;
280
- }
281
  if(function_exists("curl_init"))
282
  {
283
  $ch = curl_init();
@@ -315,6 +311,7 @@ if(!function_exists("plugin_uninstall_script_for_gallery_bank"))
315
  update_option("gallery_bank_site_id", "error");
316
  }
317
  }
 
318
  }
319
  }
320
  /*************************************************************************************/
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.1.37
8
  * Author URI: http://tech-banker.com
9
  * License: GPLv3 or later
10
  * Text Domain: gallery-bank
26
  if (!defined("GALLERY_BK_ALBUM_THUMB_URL")) define("GALLERY_BK_ALBUM_THUMB_URL", content_url()."/gallery-bank/album-thumbs/");
27
  if (!defined("GALLERY_BK_PLUGIN_BASENAME")) define("GALLERY_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
28
  if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "stats.tech-banker-services.org");
29
+ if(!defined("gallery_bank_version_number")) define("gallery_bank_version_number","3.1.37");
30
  if(!defined("GALLERY_BK_ERROR_LOGS_FILE")) define("GALLERY_BK_ERROR_LOGS_FILE",GALLERY_MAIN_DIR."/error-logs.txt");
31
 
32
 
151
  {
152
  function deactivation_function_for_gallery_bank()
153
  {
154
+ $type = get_option("gallery-bank-wizard");
155
+ if($type == "opt_in")
156
+ {
157
+ $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
158
  global $wp_version,$wpdb;
159
 
160
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
161
+
162
  $theme_details = array();
163
 
164
  if($wp_version >= 3.4)
178
  $plugin_stat_data["domain_url"] = site_url();
179
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
180
 
181
+ $plugin_stat_data["email"] = get_option("admin_email");
182
+ $plugin_stat_data["wp_version"] = $wp_version;
183
+ $plugin_stat_data["php_version"] = esc_html(phpversion());
184
+ $plugin_stat_data["mysql_version"] = $wpdb->db_version();
185
+ $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
186
+ $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
187
+ $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
188
+ $plugin_stat_data["extensions"] = get_loaded_extensions();
189
+ $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
190
+ $plugin_stat_data["themes"] = $theme_details;
191
+
 
 
 
 
192
  if(function_exists("curl_init"))
193
  {
194
+ $ch = curl_init();
195
+ curl_setopt($ch, CURLOPT_URL, $url);
196
+ curl_setopt($ch, CURLOPT_POST, 1);
197
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
198
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
199
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
200
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
201
+ curl_setopt($ch, CURLOPT_POSTFIELDS,
202
+ http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") !="" ? get_option("gallery_bank_site_id") : "", "action"=>"plugin_analysis_data")));
203
+ $result = curl_exec($ch);
204
+ update_option("gallery_bank_site_id",$result);
205
+ curl_close($ch);
206
  }
207
  else
208
  {
226
  update_option("gallery_bank_site_id", "error");
227
  }
228
  }
229
+ }
230
  }
231
  }
232
 
235
  {
236
  function plugin_uninstall_script_for_gallery_bank()
237
  {
238
+ wp_clear_scheduled_hook("gallery_bank_auto_update");
239
+ $type = get_option("gallery-bank-wizard");
240
+ delete_option("gallery-bank-wizard");
241
+ if($type == "opt_in")
242
+ {
243
+ $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
244
  global $wp_version,$wpdb;
245
 
246
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
247
+
 
 
 
248
  $theme_details = array();
249
 
250
  if($wp_version >= 3.4)
263
  $plugin_stat_data["event"] = "uninstall";
264
  $plugin_stat_data["domain_url"] = site_url();
265
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
266
+ $plugin_stat_data["email"] = get_option("admin_email");
267
+ $plugin_stat_data["wp_version"] = $wp_version;
268
+ $plugin_stat_data["php_version"] = esc_html(phpversion());
269
+ $plugin_stat_data["mysql_version"] = $wpdb->db_version();
270
+ $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
271
+ $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
272
+ $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
273
+ $plugin_stat_data["extensions"] = get_loaded_extensions();
274
+ $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
275
+ $plugin_stat_data["themes"] = $theme_details;
276
+
 
 
 
 
 
277
  if(function_exists("curl_init"))
278
  {
279
  $ch = curl_init();
311
  update_option("gallery_bank_site_id", "error");
312
  }
313
  }
314
+ }
315
  }
316
  }
317
  /*************************************************************************************/
lib/add-new-album-class.php CHANGED
@@ -159,13 +159,16 @@ else
159
  case "wizard_gallery" :
160
  if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "gallery_bank_check_status"))
161
  {
162
- $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
 
 
 
 
163
  global $wp_version;
164
 
165
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
166
- $type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
167
 
168
- update_option("gallery-bank-wizard", $type);
169
 
170
  $theme_details = array();
171
 
@@ -185,22 +188,16 @@ else
185
  $plugin_stat_data["event"] = "activate";
186
  $plugin_stat_data["domain_url"] = site_url();
187
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
188
-
189
- switch($type)
190
- {
191
- case "opt_in" :
192
- $plugin_stat_data["email"] = get_option("admin_email");
193
- $plugin_stat_data["wp_version"] = $wp_version;
194
- $plugin_stat_data["php_version"] = esc_html(phpversion());
195
- $plugin_stat_data["mysql_version"] = $wpdb->db_version();
196
- $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
197
- $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
198
- $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
199
- $plugin_stat_data["extensions"] = get_loaded_extensions();
200
- $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
201
- $plugin_stat_data["themes"] = $theme_details;
202
- break;
203
- }
204
  if(function_exists("curl_init"))
205
  {
206
  $ch = curl_init();
@@ -238,7 +235,8 @@ else
238
  update_option("gallery_bank_site_id", "error");
239
  }
240
  }
241
- }
 
242
  break;
243
  case "add_new_dynamic_row_for_image":
244
  $img_path = isset($_REQUEST["img_path"]) ? esc_attr($_REQUEST["img_path"]) : "";
159
  case "wizard_gallery" :
160
  if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "gallery_bank_check_status"))
161
  {
162
+ $type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
163
+ update_option("gallery-bank-wizard", $type);
164
+ if($type == "opt_in")
165
+ {
166
+ $class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
167
  global $wp_version;
168
 
169
  $url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
 
170
 
171
+
172
 
173
  $theme_details = array();
174
 
188
  $plugin_stat_data["event"] = "activate";
189
  $plugin_stat_data["domain_url"] = site_url();
190
  $plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
191
+ $plugin_stat_data["email"] = get_option("admin_email");
192
+ $plugin_stat_data["wp_version"] = $wp_version;
193
+ $plugin_stat_data["php_version"] = esc_html(phpversion());
194
+ $plugin_stat_data["mysql_version"] = $wpdb->db_version();
195
+ $plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
196
+ $plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
197
+ $plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
198
+ $plugin_stat_data["extensions"] = get_loaded_extensions();
199
+ $plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
200
+ $plugin_stat_data["themes"] = $theme_details;
 
 
 
 
 
 
201
  if(function_exists("curl_init"))
202
  {
203
  $ch = curl_init();
235
  update_option("gallery_bank_site_id", "error");
236
  }
237
  }
238
+ }
239
+ }
240
  break;
241
  case "add_new_dynamic_row_for_image":
242
  $img_path = isset($_REQUEST["img_path"]) ? esc_attr($_REQUEST["img_path"]) : "";
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
- === WordPress Gallery Plugin - Gallery Bank ===
2
  Contributors: Gallery-Bank, contact-banker
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
- Tested up to: 4.7.4
6
  Stable Tag: trunk
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
- Photo Gallery by Gallery Bank is an advanced photo gallery plugin for adding specialized portfolio, photo gallery, albums and single images.
11
 
12
  == Description ==
13
 
@@ -502,6 +502,12 @@ is False in shortcode.
502
 
503
  == Changelog ==
504
 
 
 
 
 
 
 
505
  = 3.1.36 =
506
 
507
  * Error Reporting Added
1
+ === Responsive Photo Gallery by Gallery Bank ===
2
  Contributors: Gallery-Bank, contact-banker
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
+ Tested up to: 4.7.5
6
  Stable Tag: trunk
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
+ Photo Gallery by Gallery Bank is an advanced photo gallery plugin for adding specialized portfolio, photo gallery, albums and single images
11
 
12
  == Description ==
13
 
502
 
503
  == Changelog ==
504
 
505
+ = 3.1.37 =
506
+
507
+ * Code Removed from Skip Action Hook on Wizard Page
508
+ * Code Removed from De-activation Hook in case of Skipped Wizard Page
509
+ * Code Removed from Uninstall Hook in case of Skipped Wizard Page
510
+
511
  = 3.1.36 =
512
 
513
  * Error Reporting Added