Version Description
- Few Possible Security Issues Addressed
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.0.50 |
Comparing to | |
See all releases |
Code changes from version 3.0.49 to 3.0.50
- gallery-bank.php +1 -1
- lib/add-new-album-class.php +1 -10
- lib/gallery-bank-class.php +44 -1
- lib/restore_factory_settings.php +0 -6
- lib/upload.php +2 -10
- readme.txt +8 -4
- views/album-preview.php +1 -10
- views/album-sorting.php +1 -10
- views/dashboard.php +0 -10
- views/edit-album.php +1 -10
- views/gallery-bank-system-report.php +15 -19
- views/header.php +0 -5
- views/images-sorting.php +1 -10
- views/purchase_pro_version.php +0 -10
- views/settings.php +1 -10
- views/shortcode.php +1 -10
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.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
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.50
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
lib/add-new-album-class.php
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb,$current_user,$user_role_permission;
|
3 |
$dynamicArray = array();
|
4 |
$dynamicId = mt_rand(10, 10000);
|
5 |
-
$role = $wpdb->prefix . "capabilities";
|
6 |
-
$current_user->role = array_keys($current_user->$role);
|
7 |
-
$role = $current_user->role[0];
|
8 |
switch($role)
|
9 |
{
|
10 |
case "administrator":
|
@@ -16,12 +12,7 @@ $role = $current_user->role[0];
|
|
16 |
case "author":
|
17 |
$user_role_permission = "publish_posts";
|
18 |
break;
|
19 |
-
|
20 |
-
$user_role_permission = "edit_posts";
|
21 |
-
break;
|
22 |
-
case "subscriber":
|
23 |
-
$user_role_permission = "read";
|
24 |
-
break;
|
25 |
}
|
26 |
|
27 |
if (!current_user_can($user_role_permission))
|
1 |
<?php
|
|
|
2 |
$dynamicArray = array();
|
3 |
$dynamicId = mt_rand(10, 10000);
|
|
|
|
|
|
|
4 |
switch($role)
|
5 |
{
|
6 |
case "administrator":
|
12 |
case "author":
|
13 |
$user_role_permission = "publish_posts";
|
14 |
break;
|
15 |
+
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
if (!current_user_can($user_role_permission))
|
lib/gallery-bank-class.php
CHANGED
@@ -83,6 +83,10 @@ function gallery_bank_settings()
|
|
83 |
//---------------------------------------------------------------------------------------------------------------//
|
84 |
function gallery_bank()
|
85 |
{
|
|
|
|
|
|
|
|
|
86 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
87 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
|
88 |
}
|
@@ -90,6 +94,10 @@ function gallery_bank()
|
|
90 |
|
91 |
function gallery_bank_shortcode()
|
92 |
{
|
|
|
|
|
|
|
|
|
93 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
94 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/shortcode.php";
|
95 |
}
|
@@ -102,7 +110,10 @@ function save_album()
|
|
102 |
);
|
103 |
if($album_count <= 3)
|
104 |
{
|
105 |
-
global $wpdb;
|
|
|
|
|
|
|
106 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
107 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/edit-album.php";
|
108 |
}
|
@@ -114,24 +125,40 @@ function save_album()
|
|
114 |
|
115 |
function global_settings()
|
116 |
{
|
|
|
|
|
|
|
|
|
117 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
118 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
|
119 |
}
|
120 |
|
121 |
function gallery_album_sorting()
|
122 |
{
|
|
|
|
|
|
|
|
|
123 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
124 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
|
125 |
}
|
126 |
|
127 |
function images_sorting()
|
128 |
{
|
|
|
|
|
|
|
|
|
129 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
130 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
|
131 |
}
|
132 |
|
133 |
function album_preview()
|
134 |
{
|
|
|
|
|
|
|
|
|
135 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
136 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
|
137 |
}
|
@@ -139,12 +166,20 @@ function album_preview()
|
|
139 |
|
140 |
function gallery_bank_system_status()
|
141 |
{
|
|
|
|
|
|
|
|
|
142 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
143 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
|
144 |
}
|
145 |
|
146 |
function gallery_bank_purchase()
|
147 |
{
|
|
|
|
|
|
|
|
|
148 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
149 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
|
150 |
}
|
@@ -208,6 +243,10 @@ if (isset($_REQUEST["action"])) {
|
|
208 |
add_action("admin_init", "album_gallery_library");
|
209 |
function album_gallery_library()
|
210 |
{
|
|
|
|
|
|
|
|
|
211 |
include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
|
212 |
}
|
213 |
break;
|
@@ -222,6 +261,10 @@ if (isset($_REQUEST["action"])) {
|
|
222 |
add_action("admin_init", "upload_library");
|
223 |
function upload_library()
|
224 |
{
|
|
|
|
|
|
|
|
|
225 |
include_once GALLERY_BK_PLUGIN_DIR . "/lib/upload.php";
|
226 |
}
|
227 |
break;
|
83 |
//---------------------------------------------------------------------------------------------------------------//
|
84 |
function gallery_bank()
|
85 |
{
|
86 |
+
global $wpdb,$current_user,$user_role_permission;
|
87 |
+
$role = $wpdb->prefix . "capabilities";
|
88 |
+
$current_user->role = array_keys($current_user->$role);
|
89 |
+
$role = $current_user->role[0];
|
90 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
91 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
|
92 |
}
|
94 |
|
95 |
function gallery_bank_shortcode()
|
96 |
{
|
97 |
+
global $wpdb, $current_user,$wp_version;
|
98 |
+
$role = $wpdb->prefix . "capabilities";
|
99 |
+
$current_user->role = array_keys($current_user->$role);
|
100 |
+
$role = $current_user->role[0];
|
101 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
102 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/shortcode.php";
|
103 |
}
|
110 |
);
|
111 |
if($album_count <= 3)
|
112 |
{
|
113 |
+
global $wpdb,$current_user,$user_role_permission;
|
114 |
+
$role = $wpdb->prefix . "capabilities";
|
115 |
+
$current_user->role = array_keys($current_user->$role);
|
116 |
+
$role = $current_user->role[0];
|
117 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
118 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/edit-album.php";
|
119 |
}
|
125 |
|
126 |
function global_settings()
|
127 |
{
|
128 |
+
global $wpdb, $current_user,$wp_version;
|
129 |
+
$role = $wpdb->prefix . "capabilities";
|
130 |
+
$current_user->role = array_keys($current_user->$role);
|
131 |
+
$role = $current_user->role[0];
|
132 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
133 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
|
134 |
}
|
135 |
|
136 |
function gallery_album_sorting()
|
137 |
{
|
138 |
+
global $wpdb,$current_user,$user_role_permission;
|
139 |
+
$role = $wpdb->prefix . "capabilities";
|
140 |
+
$current_user->role = array_keys($current_user->$role);
|
141 |
+
$role = $current_user->role[0];
|
142 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
143 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
|
144 |
}
|
145 |
|
146 |
function images_sorting()
|
147 |
{
|
148 |
+
global $wpdb,$current_user,$user_role_permission;
|
149 |
+
$role = $wpdb->prefix . "capabilities";
|
150 |
+
$current_user->role = array_keys($current_user->$role);
|
151 |
+
$role = $current_user->role[0];
|
152 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
153 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
|
154 |
}
|
155 |
|
156 |
function album_preview()
|
157 |
{
|
158 |
+
global $wpdb,$current_user,$user_role_permission;
|
159 |
+
$role = $wpdb->prefix . "capabilities";
|
160 |
+
$current_user->role = array_keys($current_user->$role);
|
161 |
+
$role = $current_user->role[0];
|
162 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
163 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
|
164 |
}
|
166 |
|
167 |
function gallery_bank_system_status()
|
168 |
{
|
169 |
+
global $wpdb,$wp_version,$current_user,$user_role_permission;
|
170 |
+
$role = $wpdb->prefix . "capabilities";
|
171 |
+
$current_user->role = array_keys($current_user->$role);
|
172 |
+
$role = $current_user->role[0];
|
173 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
174 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
|
175 |
}
|
176 |
|
177 |
function gallery_bank_purchase()
|
178 |
{
|
179 |
+
global $wpdb,$current_user,$user_role_permission;
|
180 |
+
$role = $wpdb->prefix . "capabilities";
|
181 |
+
$current_user->role = array_keys($current_user->$role);
|
182 |
+
$role = $current_user->role[0];
|
183 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
184 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
|
185 |
}
|
243 |
add_action("admin_init", "album_gallery_library");
|
244 |
function album_gallery_library()
|
245 |
{
|
246 |
+
global $wpdb,$current_user,$user_role_permission;
|
247 |
+
$role = $wpdb->prefix . "capabilities";
|
248 |
+
$current_user->role = array_keys($current_user->$role);
|
249 |
+
$role = $current_user->role[0];
|
250 |
include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
|
251 |
}
|
252 |
break;
|
261 |
add_action("admin_init", "upload_library");
|
262 |
function upload_library()
|
263 |
{
|
264 |
+
global $wpdb,$current_user,$user_role_permission;
|
265 |
+
$role = $wpdb->prefix . "capabilities";
|
266 |
+
$current_user->role = array_keys($current_user->$role);
|
267 |
+
$role = $current_user->role[0];
|
268 |
include_once GALLERY_BK_PLUGIN_DIR . "/lib/upload.php";
|
269 |
}
|
270 |
break;
|
lib/restore_factory_settings.php
CHANGED
@@ -14,12 +14,6 @@ $role = $current_user->role[0];
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
|
25 |
if (!current_user_can($user_role_permission))
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
|
19 |
if (!current_user_can($user_role_permission))
|
lib/upload.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,7 @@ $role = $current_user->role[0];
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
|
25 |
if (!current_user_can($user_role_permission))
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
14 |
+
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
if (!current_user_can($user_role_permission))
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link : http://tech-banker.com/gallery-bank/
|
|
4 |
Tags: admin, AJAX, album, albums, best gallery, best gallery plugin, best portfolio plugin, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, galerie, Galleria, gallery, gallery album, gallery bank, gallery image, Gallery Plugin, gallery wordpress plugin, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, shortcode, sidebar, slideshow, thumbnail, thumbnails, twitter, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -15,6 +15,8 @@ Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, v
|
|
15 |
|
16 |
Gallery Bank is a Wordpress Plugin designed to create elegant and beautiful gallery albums with images, videos using Grid Albums, List Albums, Individual Albums, Masonry Layouts and Thumbnail Layouts, Special Effects & Animation Effects.
|
17 |
|
|
|
|
|
18 |
Gallery Bank has become the **Best Plugin** in the world for WordPress sites to display images. It has been designed to provide easiness and simplicity to the end user. It is a very simple but fully loaded with 200+ features(**Premium Version**) Plugin.
|
19 |
|
20 |
> #### **Live Demos**
|
@@ -44,15 +46,13 @@ Gallery Bank has become the **Best Plugin** in the world for WordPress sites to
|
|
44 |
|
45 |
[vimeo https://vimeo.com/92378296]
|
46 |
|
47 |
-
###IMPORTANT: If you think you found a bug in the Contact Bank or have any problem or question concerning Contact Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
48 |
-
|
49 |
It provides a powerful engine for uploading and managing galleries of images & videos, with the ability to batch upload, add/delete/rearrange/sort images, edit thumbnails, 100+ settings, and even much more. It also provides different front-end display styles (filmstrips, slideshows, masonry, blog styles and thumbnail galleries), all of them comes with a wide array of options for controlling size, style, timing, transitions, controls, lightbox effects, and more.
|
50 |
|
51 |
***The Gallery Bank WordPress Gallery Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker</a> since March 2014.***
|
52 |
|
53 |
Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
|
54 |
|
55 |
-
***July
|
56 |
|
57 |
<a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
58 |
|
@@ -500,6 +500,10 @@ is False in shortcode.
|
|
500 |
|
501 |
== Changelog ==
|
502 |
|
|
|
|
|
|
|
|
|
503 |
= 3.0.49 =
|
504 |
|
505 |
* Polish Language Updated
|
4 |
Tags: admin, AJAX, album, albums, best gallery, best gallery plugin, best portfolio plugin, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, galerie, Galleria, gallery, gallery album, gallery bank, gallery image, Gallery Plugin, gallery wordpress plugin, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, shortcode, sidebar, slideshow, thumbnail, thumbnails, twitter, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 3.0.50
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
15 |
|
16 |
Gallery Bank is a Wordpress Plugin designed to create elegant and beautiful gallery albums with images, videos using Grid Albums, List Albums, Individual Albums, Masonry Layouts and Thumbnail Layouts, Special Effects & Animation Effects.
|
17 |
|
18 |
+
###IMPORTANT: If you think you found a bug in Gallery Bank or have any problem or question concerning Gallery Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
19 |
+
|
20 |
Gallery Bank has become the **Best Plugin** in the world for WordPress sites to display images. It has been designed to provide easiness and simplicity to the end user. It is a very simple but fully loaded with 200+ features(**Premium Version**) Plugin.
|
21 |
|
22 |
> #### **Live Demos**
|
46 |
|
47 |
[vimeo https://vimeo.com/92378296]
|
48 |
|
|
|
|
|
49 |
It provides a powerful engine for uploading and managing galleries of images & videos, with the ability to batch upload, add/delete/rearrange/sort images, edit thumbnails, 100+ settings, and even much more. It also provides different front-end display styles (filmstrips, slideshows, masonry, blog styles and thumbnail galleries), all of them comes with a wide array of options for controlling size, style, timing, transitions, controls, lightbox effects, and more.
|
50 |
|
51 |
***The Gallery Bank WordPress Gallery Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker</a> since March 2014.***
|
52 |
|
53 |
Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
|
54 |
|
55 |
+
***July 26, 2014: We're happy to announce that Gallery Bank reached 162,000+ plugin downloads in only 1 year. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
|
56 |
|
57 |
<a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
58 |
|
500 |
|
501 |
== Changelog ==
|
502 |
|
503 |
+
= 3.0.50 =
|
504 |
+
|
505 |
+
* Few Possible Security Issues Addressed
|
506 |
+
|
507 |
= 3.0.49 =
|
508 |
|
509 |
* Polish Language Updated
|
views/album-preview.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ switch($role)
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|
views/album-sorting.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ switch($role)
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
|
25 |
if (!current_user_can($user_role_permission))
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
if (!current_user_can($user_role_permission))
|
views/dashboard.php
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb,$current_user,$user_role_permission;
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +10,6 @@
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
switch($role)
|
3 |
{
|
4 |
case "administrator":
|
10 |
case "author":
|
11 |
$user_role_permission = "publish_posts";
|
12 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
views/edit-album.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ global $wpdb,$current_user,$user_role_permission;
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|
views/gallery-bank-system-report.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ global $wp_version,$current_user,$user_role_permission;
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
@@ -115,7 +106,12 @@ global $wp_version,$current_user,$user_role_permission;
|
|
115 |
<label class="layout-label-control-group">MySQL Version :</label>
|
116 |
|
117 |
<div class="layout-controls">
|
118 |
-
<span
|
|
|
|
|
|
|
|
|
|
|
119 |
</div>
|
120 |
</div>
|
121 |
</div>
|
@@ -475,25 +471,25 @@ global $wp_version,$current_user,$user_role_permission;
|
|
475 |
</div>
|
476 |
<div id="library_settings" class="collapse in">
|
477 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
if (function_exists("gd_info")) {
|
479 |
$information = gd_info();
|
480 |
$key = array_keys($information);
|
481 |
for ($i = 0; $i < count($key); $i++) {
|
482 |
if (is_bool($information[$key[$i]]))
|
483 |
-
echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" .
|
484 |
else
|
485 |
echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . $information[$key[$i]] . "</span></div></div></div>";
|
486 |
}
|
487 |
} else {
|
488 |
echo "<h4>" . "No GD support" . "!</h4>";
|
489 |
}
|
490 |
-
function ngg_gd_yesNo($bool)
|
491 |
-
{
|
492 |
-
if ($bool)
|
493 |
-
return "Yes";
|
494 |
-
else
|
495 |
-
return "No";
|
496 |
-
}
|
497 |
?>
|
498 |
</div>
|
499 |
</div>
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|
106 |
<label class="layout-label-control-group">MySQL Version :</label>
|
107 |
|
108 |
<div class="layout-controls">
|
109 |
+
<span>
|
110 |
+
<?php
|
111 |
+
global $wpdb;
|
112 |
+
echo $wpdb->db_version();
|
113 |
+
?>
|
114 |
+
</span>
|
115 |
</div>
|
116 |
</div>
|
117 |
</div>
|
471 |
</div>
|
472 |
<div id="library_settings" class="collapse in">
|
473 |
<?php
|
474 |
+
function gd_yesNo($bool)
|
475 |
+
{
|
476 |
+
if ($bool)
|
477 |
+
return "Yes";
|
478 |
+
else
|
479 |
+
return "No";
|
480 |
+
}
|
481 |
if (function_exists("gd_info")) {
|
482 |
$information = gd_info();
|
483 |
$key = array_keys($information);
|
484 |
for ($i = 0; $i < count($key); $i++) {
|
485 |
if (is_bool($information[$key[$i]]))
|
486 |
+
echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . gd_yesNo($information[$key[$i]]) . " </span></div></div></div>";
|
487 |
else
|
488 |
echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . $information[$key[$i]] . "</span></div></div></div>";
|
489 |
}
|
490 |
} else {
|
491 |
echo "<h4>" . "No GD support" . "!</h4>";
|
492 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
?>
|
494 |
</div>
|
495 |
</div>
|
views/header.php
CHANGED
@@ -1,9 +1,4 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb,$current_user;
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
-
|
7 |
$gb_lang = array();
|
8 |
$gb_translated_lang = array();
|
9 |
array_push($gb_lang, "bg_BG", "da_DK", "id_ID",
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
2 |
$gb_lang = array();
|
3 |
$gb_translated_lang = array();
|
4 |
array_push($gb_lang, "bg_BG", "da_DK", "id_ID",
|
views/images-sorting.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ global $wpdb,$current_user,$user_role_permission;
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|
views/purchase_pro_version.php
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb,$current_user,$user_role_permission;
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +10,6 @@ switch($role)
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
switch($role)
|
3 |
{
|
4 |
case "administrator":
|
10 |
case "author":
|
11 |
$user_role_permission = "publish_posts";
|
12 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
views/settings.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ switch($role)
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|
views/shortcode.php
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
$role = $wpdb->prefix . "capabilities";
|
4 |
-
$current_user->role = array_keys($current_user->$role);
|
5 |
-
$role = $current_user->role[0];
|
6 |
switch($role)
|
7 |
{
|
8 |
case "administrator":
|
@@ -14,12 +11,6 @@ switch($role)
|
|
14 |
case "author":
|
15 |
$user_role_permission = "publish_posts";
|
16 |
break;
|
17 |
-
case "contributor":
|
18 |
-
$user_role_permission = "edit_posts";
|
19 |
-
break;
|
20 |
-
case "subscriber":
|
21 |
-
$user_role_permission = "read";
|
22 |
-
break;
|
23 |
}
|
24 |
if (!current_user_can($user_role_permission))
|
25 |
{
|
1 |
<?php
|
2 |
+
|
|
|
|
|
|
|
3 |
switch($role)
|
4 |
{
|
5 |
case "administrator":
|
11 |
case "author":
|
12 |
$user_role_permission = "publish_posts";
|
13 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
if (!current_user_can($user_role_permission))
|
16 |
{
|