Gallery – Flagallery Photo Portfolio - Version 2.56

Version Description

  • After plugin update go to Skins page and update skins with 'Update skins' button.
  • If you use Facebook template and copied it in the root directory, then after each plugin update click 'Copy facebook.php file to root directory'.
  • If GRAND FlAGallery displays an error message after upgrade, go to FlAGallery Overview page and press 'Reset settings'.
  • Have some troubles with plugin? Try first reseting settings, deactivate and reactivate plugin.
Download this release

Release Info

Developer pasyuk
Plugin Icon 128x128 Gallery – Flagallery Photo Portfolio
Version 2.56
Comparing to
See all releases

Code changes from version 2.55 to 2.56

admin/settings.php CHANGED
@@ -139,7 +139,7 @@ jQuery(document).ready(function() {
139
  </tr>
140
  </table>
141
 
142
- <h3><?php _e('Flash Alternative Options','flag'); ?></h3>
143
  <table class="flag_colors form-table flag-options">
144
  <tr>
145
  <th align="left"><?php _e('Show jQuery gallery for browsers without flashplayer','flag'); ?></th>
@@ -334,7 +334,7 @@ jQuery(document).ready(function() {
334
  <td><label for="general"><select style="width: 150px;" name="general" id="general"><?php wp_dropdown_roles( flag_get_role('FlAG overview') ); ?></select></label></td>
335
  </tr>
336
  <tr valign="top">
337
- <th scope="row" style="white-space: nowrap"><?php _e('Use TinyMCE Button / Upload tab', 'flag'); ?>:</th>
338
  <td><label for="tinymce"><select style="width: 150px;" name="tinymce" id="tinymce"><?php wp_dropdown_roles( flag_get_role('FlAG Use TinyMCE') ); ?></select></label></td>
339
  </tr>
340
  <tr valign="top">
139
  </tr>
140
  </table>
141
 
142
+ <h3><?php _e('Alternative Gallery Options','flag'); ?> <br><small style="color: red;"><?php _e('(Attention: this is not skin option, only for browsers without flash support)','flag'); ?></small></h3>
143
  <table class="flag_colors form-table flag-options">
144
  <tr>
145
  <th align="left"><?php _e('Show jQuery gallery for browsers without flashplayer','flag'); ?></th>
334
  <td><label for="general"><select style="width: 150px;" name="general" id="general"><?php wp_dropdown_roles( flag_get_role('FlAG overview') ); ?></select></label></td>
335
  </tr>
336
  <tr valign="top">
337
+ <th scope="row" style="white-space: nowrap"><?php _e('View TinyMCE Button / GRAND Pages', 'flag'); ?>:</th>
338
  <td><label for="tinymce"><select style="width: 150px;" name="tinymce" id="tinymce"><?php wp_dropdown_roles( flag_get_role('FlAG Use TinyMCE') ); ?></select></label></td>
339
  </tr>
340
  <tr valign="top">
admin/skins.php CHANGED
@@ -250,22 +250,28 @@ $type = isset($_GET['type'])? $_GET['type'] : '';
250
  switch($type){
251
  case '':
252
  $stype = 'gallery';
253
- break;
 
254
  case 'm':
255
  $stype = 'music';
256
- break;
 
257
  case 'v':
258
  $stype = 'video';
259
- break;
 
260
  case 'b':
261
  $stype = 'banner';
262
- break;
 
263
  case 'w':
264
  $stype = 'widget';
265
- break;
 
266
  default:
267
  $stype = 'gallery';
268
- break;
 
269
  }
270
 
271
  if( isset($_GET['skins_refresh']) ) {
@@ -467,7 +473,7 @@ $total_all_skins = count($all_skins);
467
  </div>
468
 
469
  <div class="postbox metabox-holder" id="newskins" style="width: 29%; float: right; padding-top: 5px;">
470
- <h3 style="font-size: 16px; line-height: 100%; font-weight: bold; color: #2583AD;">New Skins</h3>
471
  <div class="inside">
472
  <?php
473
  if(isset($skins_by_type[$stype]) && !empty($skins_by_type[$stype])) {
250
  switch($type){
251
  case '':
252
  $stype = 'gallery';
253
+ $new_skins = __('New Photo Skins', 'flag');
254
+ break;
255
  case 'm':
256
  $stype = 'music';
257
+ $new_skins = __('New Music Skins', 'flag');
258
+ break;
259
  case 'v':
260
  $stype = 'video';
261
+ $new_skins = __('New Video Skins', 'flag');
262
+ break;
263
  case 'b':
264
  $stype = 'banner';
265
+ $new_skins = __('New Banner Skins', 'flag');
266
+ break;
267
  case 'w':
268
  $stype = 'widget';
269
+ $new_skins = __('New Widget Skins', 'flag');
270
+ break;
271
  default:
272
  $stype = 'gallery';
273
+ $new_skins = __('New Photo Skins', 'flag');
274
+ break;
275
  }
276
 
277
  if( isset($_GET['skins_refresh']) ) {
473
  </div>
474
 
475
  <div class="postbox metabox-holder" id="newskins" style="width: 29%; float: right; padding-top: 5px;">
476
+ <h3 style="font-size: 16px; line-height: 100%; font-weight: bold; color: #2583AD;"><?php echo $new_skins; ?></h3>
477
  <div class="inside">
478
  <?php
479
  if(isset($skins_by_type[$stype]) && !empty($skins_by_type[$stype])) {
changelog.txt CHANGED
@@ -1,6 +1,13 @@
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
 
 
 
 
 
 
 
4
  = v2.55 - 19.03.2013 =
5
  * Fixed: Alternative gallery on mobile browsers not shows big image on tap
6
  * Fixed: Alternative gallery brokes if file name have spaces.
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
4
+ = v2.56 - 25.03.2013 =
5
+ * Fixed: SQL injection vulnerability
6
+ * Fixed: Video Box admin shows parse error
7
+ * Fixed: Restrict access to menu "GRAND Pages"
8
+ * Added: Informative descriptions on skins and options pages
9
+ * Updated: Minima skin now have option to hide views/likes counter
10
+
11
  = v2.55 - 19.03.2013 =
12
  * Fixed: Alternative gallery on mobile browsers not shows big image on tap
13
  * Fixed: Alternative gallery brokes if file name have spaces.
flag.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: GRAND Flash Album Gallery
4
  Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/flag/
5
  Description: The GRAND FlAGallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
6
- Version: 2.55
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
@@ -23,7 +23,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
- var $version = '2.55';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
@@ -324,6 +324,11 @@ class flagLoad {
324
  }
325
 
326
  function flag_fullwindow_page_init() {
 
 
 
 
 
327
  $labels = array(
328
  'name' => _x('GRAND Galleries', 'post type general name', 'flag'),
329
  'singular_name' => __('FlAGallery Page', 'flag'),
@@ -346,7 +351,7 @@ class flagLoad {
346
  'public' => true,
347
  'publicly_queryable' => true,
348
  'show_ui' => true,
349
- 'show_in_menu' => true,
350
  'menu_position' => 20,
351
  'menu_icon' => FLAG_URLPATH .'admin/images/flag.png',
352
  'capability_type' => 'post',
@@ -356,7 +361,7 @@ class flagLoad {
356
  'rewrite' => array( 'slug' => 'flagallery','with_front' => FALSE),
357
  'query_var' => true,
358
  );
359
- register_post_type('flagallery',$args);
360
  }
361
 
362
  /* Adds a meta box to the main column on the flagallery edit screens */
@@ -438,10 +443,15 @@ class flagLoad {
438
 
439
  function addFlAGMediaIcon($context){
440
  global $post_ID, $temp_ID, $wpdb;
441
- $flag_upload_iframe_src = FLAG_URLPATH."admin/tinymce/window.php?media_button=true&riched=false";
442
- $flag_iframe_src = apply_filters('flag_iframe_src', "$flag_upload_iframe_src&amp;tab=flagallery");
443
- $title = __('Add GRAND FlAGallery');
444
- return $context.'<a href="'.$flag_upload_iframe_src.'&amp;TB_iframe=1&amp;width=360&amp;height=210" class="thickbox" id="add_flagallery" title="'.$title.'"><span style="margin:0 5px;">FlAGallery</span></a>';
 
 
 
 
 
445
  }
446
 
447
 
3
  Plugin Name: GRAND Flash Album Gallery
4
  Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/flag/
5
  Description: The GRAND FlAGallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
6
+ Version: 2.56
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
+ var $version = '2.56';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
324
  }
325
 
326
  function flag_fullwindow_page_init() {
327
+ if(current_user_can('FlAG Use TinyMCE')){
328
+ $visibility = true;
329
+ } else {
330
+ $visibility = false;
331
+ }
332
  $labels = array(
333
  'name' => _x('GRAND Galleries', 'post type general name', 'flag'),
334
  'singular_name' => __('FlAGallery Page', 'flag'),
351
  'public' => true,
352
  'publicly_queryable' => true,
353
  'show_ui' => true,
354
+ 'show_in_menu' => $visibility,
355
  'menu_position' => 20,
356
  'menu_icon' => FLAG_URLPATH .'admin/images/flag.png',
357
  'capability_type' => 'post',
361
  'rewrite' => array( 'slug' => 'flagallery','with_front' => FALSE),
362
  'query_var' => true,
363
  );
364
+ register_post_type('flagallery',$args);
365
  }
366
 
367
  /* Adds a meta box to the main column on the flagallery edit screens */
443
 
444
  function addFlAGMediaIcon($context){
445
  global $post_ID, $temp_ID, $wpdb;
446
+ if(current_user_can('FlAG Use TinyMCE')){
447
+ $flag_upload_iframe_src = FLAG_URLPATH."admin/tinymce/window.php?media_button=true&riched=false";
448
+ $flag_iframe_src = apply_filters('flag_iframe_src', "$flag_upload_iframe_src&amp;tab=flagallery");
449
+ $title = __('Add GRAND FlAGallery');
450
+ $button = '<a href="'.$flag_upload_iframe_src.'&amp;TB_iframe=1&amp;width=360&amp;height=210" class="thickbox" id="add_flagallery" title="'.$title.'"><span style="margin:0 5px;">FlAGallery</span></a>';
451
+ } else {
452
+ $button = '';
453
+ }
454
+ return $context.$button;
455
  }
456
 
457
 
lib/shortcodes.php CHANGED
@@ -42,7 +42,7 @@ class FlAG_shortcodes {
42
  'order' => '',
43
  'exclude' => '',
44
  'skin' => '',
45
- 'play' => '',
46
  'wmode' => '',
47
  'fullwindow'=> false,
48
  'align' => ''
@@ -56,7 +56,7 @@ class FlAG_shortcodes {
56
  $gids = str_replace(',','_',$gallerylist);
57
  $galleryID = false;
58
  foreach ($ids as $id) {
59
- $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->flaggallery WHERE gid = '$id' ");
60
  if(!$galleryID) return $out = sprintf(__('[Gallery %s not found]','flag'),$id);
61
  }
62
 
@@ -85,8 +85,8 @@ class FlAG_shortcodes {
85
 
86
  $galleryID = false;
87
  foreach ($ids as $id) {
88
- $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->flaggallery WHERE gid = '$id' ");
89
- if(!$galleryID) $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->flaggallery WHERE name = '$id' ");
90
  if(!$galleryID) return $out = sprintf(__('[Gallery %s not found]','flag'),$id);
91
  }
92
 
42
  'order' => '',
43
  'exclude' => '',
44
  'skin' => '',
45
+ 'playlist' => '',
46
  'wmode' => '',
47
  'fullwindow'=> false,
48
  'align' => ''
56
  $gids = str_replace(',','_',$gallerylist);
57
  $galleryID = false;
58
  foreach ($ids as $id) {
59
+ $galleryID = $wpdb->get_var($wpdb->prepare("SELECT gid FROM $wpdb->flaggallery WHERE gid = %d", $id));
60
  if(!$galleryID) return $out = sprintf(__('[Gallery %s not found]','flag'),$id);
61
  }
62
 
85
 
86
  $galleryID = false;
87
  foreach ($ids as $id) {
88
+ $galleryID = $wpdb->get_var($wpdb->prepare("SELECT gid FROM $wpdb->flaggallery WHERE gid = %d", $id));
89
+ if(!$galleryID) $galleryID = $wpdb->get_var($wpdb->prepare("SELECT gid FROM $wpdb->flaggallery WHERE name = %s", $id));
90
  if(!$galleryID) return $out = sprintf(__('[Gallery %s not found]','flag'),$id);
91
  }
92
 
readme.txt CHANGED
@@ -41,6 +41,13 @@ Now you can see "Views" of each photo in the gallery and visitors can "Like" ima
41
 
42
  == Changelog ==
43
 
 
 
 
 
 
 
 
44
  = v2.55 - 19.03.2013 =
45
  * Fixed: Alternative gallery on mobile browsers not shows big image on tap
46
  * Fixed: Alternative gallery brokes if file name have spaces.
41
 
42
  == Changelog ==
43
 
44
+ = v2.56 - 25.03.2013 =
45
+ * Fixed: SQL injection vulnerability
46
+ * Fixed: Video Box admin shows parse error
47
+ * Fixed: Restrict access to menu "GRAND Pages"
48
+ * Added: Informative descriptions on skins and options pages
49
+ * Updated: Minima skin now have option to hide views/likes counter
50
+
51
  = v2.55 - 19.03.2013 =
52
  * Fixed: Alternative gallery on mobile browsers not shows big image on tap
53
  * Fixed: Alternative gallery brokes if file name have spaces.
skins/minima_jn/gallery.swf CHANGED
Binary file
skins/minima_jn/minima_jn.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
 
3
  /*
4
- Skin Name: Minima - Default Skin
5
- Version: 1.0
6
  uid: minima
7
  Skin URI: http://photogallerycreator.com/grand-flagallery/
8
- Description: This is NEW <b>default</b> FlAGallery skin called <b>Minima</b>. If you need more functionality or if you want to change text for SL and FS buttons - activate <b>Optima skin</b>. <p><b>Features:</b><br>* HitCounter<br>* Alternate jQuery gallery for iPhone / iPad devices without flash player<br>* SEO optimized and support feed RSS2<br>* GRAND Pages - FullWindow Mode</p><p>Details: bottom custom size thumbnails, unlimited categories, nice scrollbar.<br /><strong style="color: red;">Requirements - GRAND FlAGallery v2.0 or higher.</strong></p>
9
  Author: PGC
10
  Author URI: http://PhotoGalleryCreator.com
11
  */
1
  <?php
2
 
3
  /*
4
+ Skin Name: Minima
5
+ Version: 1.2
6
  uid: minima
7
  Skin URI: http://photogallerycreator.com/grand-flagallery/
8
+ Description:<strong>Compatible:</strong><li>HitCounter.</li><li>Alternate jQuery gallery for iPhone / iPad devices without flash player.</li><li>SEO optimized and support feed RSS2.</li><li>GRAND Pages - FullWindow Mode.</li><br />Details: bottom custom size thumbnails, unlimited categories, nice scrollbar.<br /><strong style="color: red;">Requirements - GRAND FlAGallery v2.0 or higher.</strong><br />
9
  Author: PGC
10
  Author URI: http://PhotoGalleryCreator.com
11
  */
skins/minima_jn/settings/settings.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <panel title="Minima 1.0">
3
  <item type="checkBox" name="autoSlideshow">
4
  <title><![CDATA[AutoSlideshow]]></title>
5
  <description><![CDATA[]]></description>
@@ -50,11 +50,15 @@
50
  <title><![CDATA[Background Color]]></title>
51
  <description><![CDATA[]]></description>
52
  <showTextField>true</showTextField>
53
- <selectedColor>0xffffff</selectedColor>
54
  </item>
 
 
 
 
55
  <item type="colorPicker" name="barBgColor">
56
  <title><![CDATA[Header & Footer Background Color]]></title>
57
- <description><![CDATA[]]></description>
58
  <showTextField>true</showTextField>
59
  <selectedColor>0x282828</selectedColor>
60
  </item>
@@ -62,10 +66,10 @@
62
  <title><![CDATA[Label Color (Buttons)]]></title>
63
  <description><![CDATA[]]></description>
64
  <showTextField>true</showTextField>
65
- <selectedColor>0x75c30f</selectedColor>
66
  </item>
67
  <item type="colorPicker" name="labelColorOver">
68
- <title><![CDATA[Label MouseOver Color (Buttons)]]></title>
69
  <description><![CDATA[]]></description>
70
  <showTextField>true</showTextField>
71
  <selectedColor>0xffffff</selectedColor>
@@ -170,5 +174,7 @@
170
  <galleryTitleFontSize>15</galleryTitleFontSize>
171
  <linkColor>0xffffff</linkColor>
172
  <descriptionFontSize>12</descriptionFontSize>
 
173
  </properties>
 
174
  </panel>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <panel title="Minima 1.2">
3
  <item type="checkBox" name="autoSlideshow">
4
  <title><![CDATA[AutoSlideshow]]></title>
5
  <description><![CDATA[]]></description>
50
  <title><![CDATA[Background Color]]></title>
51
  <description><![CDATA[]]></description>
52
  <showTextField>true</showTextField>
53
+ <selectedColor>0xffffff</selectedColor>
54
  </item>
55
+ <item type="checkBox" name="counterStatus">
56
+ <title><![CDATA[Show image views/likes counter]]></title>
57
+ <selected>true</selected>
58
+ </item>
59
  <item type="colorPicker" name="barBgColor">
60
  <title><![CDATA[Header & Footer Background Color]]></title>
61
+ <description><![CDATA[]]></description>
62
  <showTextField>true</showTextField>
63
  <selectedColor>0x282828</selectedColor>
64
  </item>
66
  <title><![CDATA[Label Color (Buttons)]]></title>
67
  <description><![CDATA[]]></description>
68
  <showTextField>true</showTextField>
69
+ <selectedColor>0x75c30f</selectedColor>
70
  </item>
71
  <item type="colorPicker" name="labelColorOver">
72
+ <title><![CDATA[Label MouseOver Color (Buttons)]]></title>
73
  <description><![CDATA[]]></description>
74
  <showTextField>true</showTextField>
75
  <selectedColor>0xffffff</selectedColor>
174
  <galleryTitleFontSize>15</galleryTitleFontSize>
175
  <linkColor>0xffffff</linkColor>
176
  <descriptionFontSize>12</descriptionFontSize>
177
+ <counterStatus>true</counterStatus>
178
  </properties>
179
+
180
  </panel>