Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.85

Version Description

  • Changed variables to avoid confliction with other plugins.
Download this release

Release Info

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

Code changes from version 3.0.84 to 3.0.85

front_views/gallery-bank-shortcode.php CHANGED
@@ -30,10 +30,10 @@
30
  <?php
31
  global $wpdb,$current_user;
32
 
33
- $role = $wpdb->prefix . "capabilities";
34
- $current_user->role = array_keys($current_user->$role);
35
- $role = $current_user->role[0];
36
- if($role == "administrator")
37
  {
38
  $albums = $wpdb->get_results
39
  (
30
  <?php
31
  global $wpdb,$current_user;
32
 
33
+ $gb_role = $wpdb->prefix . "capabilities";
34
+ $current_user->role = array_keys($current_user->$gb_role);
35
+ $gb_role = $current_user->role[0];
36
+ if($gb_role == "administrator")
37
  {
38
  $albums = $wpdb->get_results
39
  (
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.84
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -113,15 +113,15 @@ function add_gallery_bank_icon($meta = TRUE)
113
 
114
  if(is_super_admin())
115
  {
116
- $role = "administrator";
117
  }
118
  else
119
  {
120
- $role = $wpdb->prefix . "capabilities";
121
- $current_user->role = array_keys($current_user->$role);
122
- $role = $current_user->role[0];
123
  }
124
- switch ($role) {
125
  case "administrator":
126
  $wp_admin_bar->add_menu(array(
127
  "id" => "gallery_bank_links",
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.85
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
113
 
114
  if(is_super_admin())
115
  {
116
+ $gb_role = "administrator";
117
  }
118
  else
119
  {
120
+ $gb_role = $wpdb->prefix . "capabilities";
121
+ $current_user->role = array_keys($current_user->$gb_role);
122
+ $gb_role = $current_user->role[0];
123
  }
124
+ switch ($gb_role) {
125
  case "administrator":
126
  $wp_admin_bar->add_menu(array(
127
  "id" => "gallery_bank_links",
lib/add-new-album-class.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $dynamicArray = array();
3
  $dynamicId = mt_rand(10, 10000);
4
- switch($role)
5
  {
6
  case "administrator":
7
  $user_role_permission = "manage_options";
1
  <?php
2
  $dynamicArray = array();
3
  $dynamicId = mt_rand(10, 10000);
4
+ switch($gb_role)
5
  {
6
  case "administrator":
7
  $user_role_permission = "manage_options";
lib/gallery-bank-class.php CHANGED
@@ -8,15 +8,15 @@ function create_global_menus_for_gallery_bank()
8
  global $wpdb,$current_user;
9
  if(is_super_admin())
10
  {
11
- $role = "administrator";
12
  }
13
  else
14
  {
15
- $role = $wpdb->prefix . "capabilities";
16
- $current_user->role = array_keys($current_user->$role);
17
- $role = $current_user->role[0];
18
  }
19
- switch ($role) {
20
  case "administrator":
21
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
22
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
@@ -94,13 +94,13 @@ function gallery_bank()
94
  global $wpdb,$current_user,$user_role_permission;
95
  if(is_super_admin())
96
  {
97
- $role = "administrator";
98
  }
99
  else
100
  {
101
- $role = $wpdb->prefix . "capabilities";
102
- $current_user->role = array_keys($current_user->$role);
103
- $role = $current_user->role[0];
104
  }
105
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
106
  include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
@@ -112,13 +112,13 @@ function gallery_bank_shortcode()
112
  global $wpdb, $current_user,$wp_version;
113
  if(is_super_admin())
114
  {
115
- $role = "administrator";
116
  }
117
  else
118
  {
119
- $role = $wpdb->prefix . "capabilities";
120
- $current_user->role = array_keys($current_user->$role);
121
- $role = $current_user->role[0];
122
  }
123
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
124
  include_once GALLERY_BK_PLUGIN_DIR . "/views/shortcode.php";
@@ -128,13 +128,13 @@ function save_album()
128
  global $wpdb,$current_user,$user_role_permission;
129
  if(is_super_admin())
130
  {
131
- $role = "administrator";
132
  }
133
  else
134
  {
135
- $role = $wpdb->prefix . "capabilities";
136
- $current_user->role = array_keys($current_user->$role);
137
- $role = $current_user->role[0];
138
  }
139
  $album_count = $wpdb->get_var
140
  (
@@ -156,13 +156,13 @@ function global_settings()
156
  global $wpdb, $current_user,$wp_version;
157
  if(is_super_admin())
158
  {
159
- $role = "administrator";
160
  }
161
  else
162
  {
163
- $role = $wpdb->prefix . "capabilities";
164
- $current_user->role = array_keys($current_user->$role);
165
- $role = $current_user->role[0];
166
  }
167
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
168
  include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
@@ -173,13 +173,13 @@ function gallery_album_sorting()
173
  global $wpdb,$current_user,$user_role_permission;
174
  if(is_super_admin())
175
  {
176
- $role = "administrator";
177
  }
178
  else
179
  {
180
- $role = $wpdb->prefix . "capabilities";
181
- $current_user->role = array_keys($current_user->$role);
182
- $role = $current_user->role[0];
183
  }
184
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
185
  include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
@@ -190,13 +190,13 @@ function images_sorting()
190
  global $wpdb,$current_user,$user_role_permission;
191
  if(is_super_admin())
192
  {
193
- $role = "administrator";
194
  }
195
  else
196
  {
197
- $role = $wpdb->prefix . "capabilities";
198
- $current_user->role = array_keys($current_user->$role);
199
- $role = $current_user->role[0];
200
  }
201
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
202
  include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
@@ -207,13 +207,13 @@ function album_preview()
207
  global $wpdb,$current_user,$user_role_permission;
208
  if(is_super_admin())
209
  {
210
- $role = "administrator";
211
  }
212
  else
213
  {
214
- $role = $wpdb->prefix . "capabilities";
215
- $current_user->role = array_keys($current_user->$role);
216
- $role = $current_user->role[0];
217
  }
218
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
219
  include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
@@ -225,13 +225,13 @@ function gallery_bank_system_status()
225
  global $wpdb,$wp_version,$current_user,$user_role_permission;
226
  if(is_super_admin())
227
  {
228
- $role = "administrator";
229
  }
230
  else
231
  {
232
- $role = $wpdb->prefix . "capabilities";
233
- $current_user->role = array_keys($current_user->$role);
234
- $role = $current_user->role[0];
235
  }
236
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
237
  include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
@@ -242,13 +242,13 @@ function gallery_bank_purchase()
242
  global $wpdb,$current_user,$user_role_permission;
243
  if(is_super_admin())
244
  {
245
- $role = "administrator";
246
  }
247
  else
248
  {
249
- $role = $wpdb->prefix . "capabilities";
250
- $current_user->role = array_keys($current_user->$role);
251
- $role = $current_user->role[0];
252
  }
253
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
254
  include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
@@ -259,13 +259,13 @@ function gallery_bank_recommended_plugins()
259
  global $wpdb,$current_user,$user_role_permission;
260
  if(is_super_admin())
261
  {
262
- $role = "administrator";
263
  }
264
  else
265
  {
266
- $role = $wpdb->prefix . "capabilities";
267
- $current_user->role = array_keys($current_user->$role);
268
- $role = $current_user->role[0];
269
  }
270
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
271
  include_once GALLERY_BK_PLUGIN_DIR . "/views/recommended-plugins.php";
@@ -276,13 +276,13 @@ function gallery_bank_other_services()
276
  global $wpdb,$current_user,$user_role_permission;
277
  if(is_super_admin())
278
  {
279
- $role = "administrator";
280
  }
281
  else
282
  {
283
- $role = $wpdb->prefix . "capabilities";
284
- $current_user->role = array_keys($current_user->$role);
285
- $role = $current_user->role[0];
286
  }
287
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
288
  include_once GALLERY_BK_PLUGIN_DIR . "/views/other-services.php";
@@ -353,13 +353,13 @@ if (isset($_REQUEST["action"])) {
353
  global $wpdb,$current_user,$user_role_permission;
354
  if(is_super_admin())
355
  {
356
- $role = "administrator";
357
  }
358
  else
359
  {
360
- $role = $wpdb->prefix . "capabilities";
361
- $current_user->role = array_keys($current_user->$role);
362
- $role = $current_user->role[0];
363
  }
364
  include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
365
  }
@@ -378,13 +378,13 @@ if (isset($_REQUEST["action"])) {
378
  global $wpdb,$current_user,$user_role_permission;
379
  if(is_super_admin())
380
  {
381
- $role = "administrator";
382
  }
383
  else
384
  {
385
- $role = $wpdb->prefix . "capabilities";
386
- $current_user->role = array_keys($current_user->$role);
387
- $role = $current_user->role[0];
388
  }
389
  $filetype = $_REQUEST["file_type"];
390
  if($filetype == "image/jpeg" || $filetype == "image/jpg" || $filetype == "image/png" || $filetype == "image/gif" )
8
  global $wpdb,$current_user;
9
  if(is_super_admin())
10
  {
11
+ $gb_role = "administrator";
12
  }
13
  else
14
  {
15
+ $gb_role = $wpdb->prefix . "capabilities";
16
+ $current_user->role = array_keys($current_user->$gb_role);
17
+ $gb_role = $current_user->role[0];
18
  }
19
+ switch ($gb_role) {
20
  case "administrator":
21
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
22
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
94
  global $wpdb,$current_user,$user_role_permission;
95
  if(is_super_admin())
96
  {
97
+ $gb_role = "administrator";
98
  }
99
  else
100
  {
101
+ $gb_role = $wpdb->prefix . "capabilities";
102
+ $current_user->role = array_keys($current_user->$gb_role);
103
+ $gb_role = $current_user->role[0];
104
  }
105
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
106
  include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
112
  global $wpdb, $current_user,$wp_version;
113
  if(is_super_admin())
114
  {
115
+ $gb_role = "administrator";
116
  }
117
  else
118
  {
119
+ $gb_role = $wpdb->prefix . "capabilities";
120
+ $current_user->role = array_keys($current_user->$gb_role);
121
+ $gb_role = $current_user->role[0];
122
  }
123
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
124
  include_once GALLERY_BK_PLUGIN_DIR . "/views/shortcode.php";
128
  global $wpdb,$current_user,$user_role_permission;
129
  if(is_super_admin())
130
  {
131
+ $gb_role = "administrator";
132
  }
133
  else
134
  {
135
+ $gb_role = $wpdb->prefix . "capabilities";
136
+ $current_user->role = array_keys($current_user->$gb_role);
137
+ $gb_role = $current_user->role[0];
138
  }
139
  $album_count = $wpdb->get_var
140
  (
156
  global $wpdb, $current_user,$wp_version;
157
  if(is_super_admin())
158
  {
159
+ $gb_role = "administrator";
160
  }
161
  else
162
  {
163
+ $gb_role = $wpdb->prefix . "capabilities";
164
+ $current_user->role = array_keys($current_user->$gb_role);
165
+ $gb_role = $current_user->role[0];
166
  }
167
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
168
  include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
173
  global $wpdb,$current_user,$user_role_permission;
174
  if(is_super_admin())
175
  {
176
+ $gb_role = "administrator";
177
  }
178
  else
179
  {
180
+ $gb_role = $wpdb->prefix . "capabilities";
181
+ $current_user->role = array_keys($current_user->$gb_role);
182
+ $gb_role = $current_user->role[0];
183
  }
184
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
185
  include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
190
  global $wpdb,$current_user,$user_role_permission;
191
  if(is_super_admin())
192
  {
193
+ $gb_role = "administrator";
194
  }
195
  else
196
  {
197
+ $gb_role = $wpdb->prefix . "capabilities";
198
+ $current_user->role = array_keys($current_user->$gb_role);
199
+ $gb_role = $current_user->role[0];
200
  }
201
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
202
  include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
207
  global $wpdb,$current_user,$user_role_permission;
208
  if(is_super_admin())
209
  {
210
+ $gb_role = "administrator";
211
  }
212
  else
213
  {
214
+ $gb_role = $wpdb->prefix . "capabilities";
215
+ $current_user->role = array_keys($current_user->$gb_role);
216
+ $gb_role = $current_user->role[0];
217
  }
218
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
219
  include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
225
  global $wpdb,$wp_version,$current_user,$user_role_permission;
226
  if(is_super_admin())
227
  {
228
+ $gb_role = "administrator";
229
  }
230
  else
231
  {
232
+ $gb_role = $wpdb->prefix . "capabilities";
233
+ $current_user->role = array_keys($current_user->$gb_role);
234
+ $gb_role = $current_user->role[0];
235
  }
236
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
237
  include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
242
  global $wpdb,$current_user,$user_role_permission;
243
  if(is_super_admin())
244
  {
245
+ $gb_role = "administrator";
246
  }
247
  else
248
  {
249
+ $gb_role = $wpdb->prefix . "capabilities";
250
+ $current_user->role = array_keys($current_user->$gb_role);
251
+ $gb_role = $current_user->role[0];
252
  }
253
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
254
  include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
259
  global $wpdb,$current_user,$user_role_permission;
260
  if(is_super_admin())
261
  {
262
+ $gb_role = "administrator";
263
  }
264
  else
265
  {
266
+ $gb_role = $wpdb->prefix . "capabilities";
267
+ $current_user->role = array_keys($current_user->$gb_role);
268
+ $gb_role = $current_user->role[0];
269
  }
270
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
271
  include_once GALLERY_BK_PLUGIN_DIR . "/views/recommended-plugins.php";
276
  global $wpdb,$current_user,$user_role_permission;
277
  if(is_super_admin())
278
  {
279
+ $gb_role = "administrator";
280
  }
281
  else
282
  {
283
+ $gb_role = $wpdb->prefix . "capabilities";
284
+ $current_user->role = array_keys($current_user->$gb_role);
285
+ $gb_role = $current_user->role[0];
286
  }
287
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
288
  include_once GALLERY_BK_PLUGIN_DIR . "/views/other-services.php";
353
  global $wpdb,$current_user,$user_role_permission;
354
  if(is_super_admin())
355
  {
356
+ $gb_role = "administrator";
357
  }
358
  else
359
  {
360
+ $gb_role = $wpdb->prefix . "capabilities";
361
+ $current_user->role = array_keys($current_user->$gb_role);
362
+ $gb_role = $current_user->role[0];
363
  }
364
  include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
365
  }
378
  global $wpdb,$current_user,$user_role_permission;
379
  if(is_super_admin())
380
  {
381
+ $gb_role = "administrator";
382
  }
383
  else
384
  {
385
+ $gb_role = $wpdb->prefix . "capabilities";
386
+ $current_user->role = array_keys($current_user->$gb_role);
387
+ $gb_role = $current_user->role[0];
388
  }
389
  $filetype = $_REQUEST["file_type"];
390
  if($filetype == "image/jpeg" || $filetype == "image/jpg" || $filetype == "image/png" || $filetype == "image/gif" )
lib/upload.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
3
  Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, galary, galerie, galerij, galery, gallary, Galleria, gallerie, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, seo, seo image, shortcode, sidebar, slide show, slideshow, thumbnail, twitter, upload images, upload photos, view images, view pictures, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp slider
4
  Requires at least: 3.3
5
  Tested up to: 4.0.1
6
- Stable tag: 3.0.84
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -21,7 +21,7 @@ Gallery Bank Regular updates and simplicity of usage along with efficient functi
21
 
22
  [vimeo https://vimeo.com/92378296]
23
 
24
- > #### **Live Demos**
25
 
26
  > * [Gallery Bank](http://tech-banker.com/products/wp-gallery-bank/)
27
  > * [Gallery Bank Demos](http://tech-banker.com/products/wp-gallery-bank/demo/)
@@ -487,7 +487,11 @@ is False in shortcode.
487
 
488
  == Changelog ==
489
 
490
- = 3.0.83 =
 
 
 
 
491
 
492
  * Minor Bugs Fixed Related to Galleries Display
493
 
3
  Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, galary, galerie, galerij, galery, gallary, Galleria, gallerie, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, seo, seo image, shortcode, sidebar, slide show, slideshow, thumbnail, twitter, upload images, upload photos, view images, view pictures, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp slider
4
  Requires at least: 3.3
5
  Tested up to: 4.0.1
6
+ Stable tag: 3.0.85
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
21
 
22
  [vimeo https://vimeo.com/92378296]
23
 
24
+ > #### **Live Demos - Gallery Bank**
25
 
26
  > * [Gallery Bank](http://tech-banker.com/products/wp-gallery-bank/)
27
  > * [Gallery Bank Demos](http://tech-banker.com/products/wp-gallery-bank/demo/)
487
 
488
  == Changelog ==
489
 
490
+ = 3.0.85 =
491
+
492
+ * Changed variables to avoid confliction with other plugins.
493
+
494
+ = 3.0.84 =
495
 
496
  * Minor Bugs Fixed Related to Galleries Display
497
 
views/album-preview.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/album-sorting.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/dashboard.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- switch($role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
1
  <?php
2
+ switch($gb_role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
views/edit-album.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/gallery-bank-system-report.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/header.php CHANGED
@@ -145,7 +145,7 @@ switch($_REQUEST["page"])
145
  </ul>
146
 
147
  <?php
148
- switch ($role)
149
  {
150
  case "administrator":
151
  ?>
145
  </ul>
146
 
147
  <?php
148
+ switch ($gb_role)
149
  {
150
  case "administrator":
151
  ?>
views/images-sorting.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/other-services.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- switch($role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
1
  <?php
2
+ switch($gb_role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
views/purchase_pro_version.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- switch($role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
1
  <?php
2
+ switch($gb_role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
views/recommended-plugins.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- switch($role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
1
  <?php
2
+ switch($gb_role)
3
  {
4
  case "administrator":
5
  $user_role_permission = "manage_options";
views/settings.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
views/shortcode.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- switch($role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";
1
  <?php
2
 
3
+ switch($gb_role)
4
  {
5
  case "administrator":
6
  $user_role_permission = "manage_options";