Gallery – Flagallery Photo Portfolio - Version 5.2.1

Version Description

Download this release

Release Info

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

Code changes from version 5.1.8 to 5.2.1

admin/ajax.php CHANGED
@@ -76,9 +76,16 @@ function flagCreateNewThumb() {
76
  $id = (int) $_POST['id'];
77
  $picture = flagdb::find_image( $id );
78
 
79
- $thumb = new flag_Thumbnail( $picture->imagePath, true );
 
 
 
80
 
81
- $thumb->resize( $flag_options['thumbWidth'], $flag_options['thumbHeight'] );
 
 
 
 
82
 
83
  if ( $thumb->save( $picture->thumbPath, 100 ) ) {
84
  //read the new sizes
76
  $id = (int) $_POST['id'];
77
  $picture = flagdb::find_image( $id );
78
 
79
+ $x = round( $_POST['x'] * $_POST['rr'], 0 );
80
+ $y = round( $_POST['y'] * $_POST['rr'], 0 );
81
+ $w = round( $_POST['w'] * $_POST['rr'], 0 );
82
+ $h = round( $_POST['h'] * $_POST['rr'], 0 );
83
 
84
+ $thumb = new flag_Thumbnail( $picture->imagePath, true );
85
+
86
+ $thumb->crop( $x, $y, $w, $h );
87
+
88
+ $thumb->resize( $flag_options['thumbWidth'], $flag_options['thumbHeight'] );
89
 
90
  if ( $thumb->save( $picture->thumbPath, 100 ) ) {
91
  //read the new sizes
admin/functions.php CHANGED
@@ -39,6 +39,7 @@ class flagAdmin{
39
  if(!$galleryname) $galleryname = date('y-m-j_h-i-s');
40
 
41
  $flagpath = $defaultpath . $galleryname;
 
42
  $flagRoot = WINABSPATH . $defaultpath;
43
  $txt = '';
44
 
@@ -155,9 +156,9 @@ class flagAdmin{
155
 
156
  $created_msg = '';
157
 
158
- // remove trailing slash at the end, if somebody use it
159
  $galleryfolder = str_replace('../','', $galleryfolder );
160
- $galleryfolder = rtrim($galleryfolder, '/');
161
  $gallerypath = WINABSPATH . $galleryfolder;
162
 
163
  if (!is_dir($gallerypath)) {
@@ -916,7 +917,7 @@ class flagAdmin{
916
 
917
  //clean filename and extract extension
918
  $filepart = flagGallery::fileinfo( $imagefiles['name'][$key] );
919
- $filename = $filepart['basename'];
920
 
921
  // check for allowed extension and if it's an image file
922
  $ext = array('jpg', 'jpeg', 'png', 'gif');
@@ -1005,7 +1006,7 @@ class flagAdmin{
1005
  $temp_file = $_FILES["file"]['tmp_name'];
1006
 
1007
  $filepart = flagGallery::fileinfo( $_FILES['file']['name'] );
1008
- $filename = $filepart['basename'];
1009
 
1010
  // check for allowed extension
1011
  $ext = array('jpeg', 'jpg', 'png', 'gif');
39
  if(!$galleryname) $galleryname = date('y-m-j_h-i-s');
40
 
41
  $flagpath = $defaultpath . $galleryname;
42
+ $flagpath = trim($flagpath, '/');
43
  $flagRoot = WINABSPATH . $defaultpath;
44
  $txt = '';
45
 
156
 
157
  $created_msg = '';
158
 
159
+ // remove trailing slashes, if somebody use it
160
  $galleryfolder = str_replace('../','', $galleryfolder );
161
+ $galleryfolder = trim($galleryfolder, '/');
162
  $gallerypath = WINABSPATH . $galleryfolder;
163
 
164
  if (!is_dir($gallerypath)) {
917
 
918
  //clean filename and extract extension
919
  $filepart = flagGallery::fileinfo( $imagefiles['name'][$key] );
920
+ $filename = sanitize_title($filepart['filename']) . '.' . strtolower( $filepart['extension'] );
921
 
922
  // check for allowed extension and if it's an image file
923
  $ext = array('jpg', 'jpeg', 'png', 'gif');
1006
  $temp_file = $_FILES["file"]['tmp_name'];
1007
 
1008
  $filepart = flagGallery::fileinfo( $_FILES['file']['name'] );
1009
+ $filename = sanitize_title($filepart['filename']) . '.' . strtolower( $filepart['extension'] );
1010
 
1011
  // check for allowed extension
1012
  $ext = array('jpeg', 'jpg', 'png', 'gif');
admin/manage-images.php CHANGED
@@ -411,7 +411,7 @@ if($picturelist) {
411
  $actions = array();
412
  $actions['view'] = '<a class="thickbox" href="' . $picture->imageURL . '" title="' . esc_attr(sprintf(__('View "%s"'), $picture->filename)) . '">' . __('View', 'flash-album-gallery') . '</a>';
413
  $actions['meta'] = '<a class="thickbox" href="' . FLAG_URLPATH . 'admin/showmeta.php?id=' . $pid . '" title="' . __('Show Meta data','flash-album-gallery') . '">' . __('Meta', 'flash-album-gallery') . '</a>';
414
- $actions['custom_thumb'] = '<a class="thickbox" href="' . FLAG_URLPATH . 'admin/manage_thumbnail.php?id=' . $pid . '" title="' . __('Customize thumbnail','flash-album-gallery') . '">' . __('Edit thumb', 'flash-album-gallery') . '</a>';
415
  $actions['delete'] = '<a class="submitdelete" href="' . wp_nonce_url("admin.php?page=flag-manage-gallery&amp;mode=delpic&amp;gid=".$act_gid."&amp;pid=".$pid, 'flag_delpicture'). '" class="delete column-delete" onclick="javascript:check=confirm( \'' . esc_attr(sprintf(__('Delete "%s"' , 'flash-album-gallery'), $picture->filename)). '\');if(check==false) return false;">' . __('Delete','flash-album-gallery') . '</a>';
416
  $action_count = count($actions);
417
  $i = 0;
411
  $actions = array();
412
  $actions['view'] = '<a class="thickbox" href="' . $picture->imageURL . '" title="' . esc_attr(sprintf(__('View "%s"'), $picture->filename)) . '">' . __('View', 'flash-album-gallery') . '</a>';
413
  $actions['meta'] = '<a class="thickbox" href="' . FLAG_URLPATH . 'admin/showmeta.php?id=' . $pid . '" title="' . __('Show Meta data','flash-album-gallery') . '">' . __('Meta', 'flash-album-gallery') . '</a>';
414
+ $actions['custom_thumb'] = '<a class="thickbox" href="' . FLAG_URLPATH . 'admin/manage_thumbnail.php?id=' . $pid . '&amp;width=800" title="' . __('Customize thumbnail','flash-album-gallery') . '">' . __('Edit thumb', 'flash-album-gallery') . '</a>';
415
  $actions['delete'] = '<a class="submitdelete" href="' . wp_nonce_url("admin.php?page=flag-manage-gallery&amp;mode=delpic&amp;gid=".$act_gid."&amp;pid=".$pid, 'flag_delpicture'). '" class="delete column-delete" onclick="javascript:check=confirm( \'' . esc_attr(sprintf(__('Delete "%s"' , 'flash-album-gallery'), $picture->filename)). '\');if(check==false) return false;">' . __('Delete','flash-album-gallery') . '</a>';
416
  $action_count = count($actions);
417
  $i = 0;
admin/manage.php CHANGED
@@ -348,6 +348,7 @@ class flagManageGallery {
348
 
349
  $gallery_title = esc_html(wp_check_invalid_utf8($_POST['title']));
350
  $gallery_path = esc_attr(str_replace('..','',$_POST['path']));
 
351
  $gallery_desc = esc_html(wp_check_invalid_utf8($_POST['gallerydesc']));
352
  $gallery_preview = (int) $_POST['previewpic'];
353
 
348
 
349
  $gallery_title = esc_html(wp_check_invalid_utf8($_POST['title']));
350
  $gallery_path = esc_attr(str_replace('..','',$_POST['path']));
351
+ $gallery_path = trim($gallery_path, '/');
352
  $gallery_desc = esc_html(wp_check_invalid_utf8($_POST['gallerydesc']));
353
  $gallery_preview = (int) $_POST['previewpic'];
354
 
admin/skin_options.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define('WP_INSTALLING', true);
3
  require_once(dirname(dirname(__FILE__)) . '/flag-config.php');
4
  require_once(dirname(dirname(__FILE__)) . '/lib/core.php');
5
  require_once(dirname(__FILE__) . '/skin_functions.php');
1
  <?php
2
+ //define('WP_INSTALLING', true);
3
  require_once(dirname(dirname(__FILE__)) . '/flag-config.php');
4
  require_once(dirname(dirname(__FILE__)) . '/lib/core.php');
5
  require_once(dirname(__FILE__) . '/skin_functions.php');
changelog.txt ADDED
@@ -0,0 +1,707 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ = v4.48 - 13.05.2017 =
2
+ * Fixed warning on PHP 7
3
+
4
+ = v4.47 - 17.03.2017 =
5
+ * Fixed warning on PHP 7
6
+ * Small CSS fixes
7
+
8
+ = v4.46 - 04.12.2016 =
9
+ * Fixed admin over https schema
10
+ * Small fixes
11
+
12
+ = v4.45 - 25.10.2016 =
13
+ * Fixed deprecated JS function
14
+ * Fixed PHP Notice when gallery is empty
15
+ * Added isolation from other plugins assets in admin panel to avoid JS errors
16
+
17
+ = v4.44 - 22.09.2016 =
18
+ * Compatibility with WP v4.6
19
+ * Fixed Links to Skins Demos
20
+ * Fixed Skins install
21
+ * Fixed Warning on skins page
22
+
23
+ = v4.43 - 30.08.2016 =
24
+ * Rotate images automaticaly on upload based on EXIF orientation
25
+ * Fixed few PHP Notices
26
+
27
+ = v4.42 - 14.07.2016 =
28
+ * Fixed Shortcode Helper Button not worked on some servers
29
+
30
+ = v4.41 - 14.06.2016 =
31
+ * Fixed Gallery name not inserted in shortcode.
32
+
33
+ = v4.40 - 18.04.2016 =
34
+ * Improved skins installation
35
+
36
+ = v4.39 - 11.01.2016 =
37
+ * Fixed Warning compatibility with NextGen Gallery plugin
38
+
39
+ = v4.38 - 02.11.2015 =
40
+ * Warning fix on Music Box page
41
+
42
+ = v4.37 - 27.09.2015 =
43
+ * Update for importing the plugin into the translate.wordpress.org translation system
44
+
45
+ = v4.36 - 12.08.2015 =
46
+ * Support of Wordpress v4.3
47
+
48
+ = v4.35 - 01.07.2015 =
49
+ * Fixed alternative gallery thumbnails not showed on some themes
50
+
51
+ = v4.34 - 02.05.2015 =
52
+ * Fixed alternative gallery (when links in image descriptions)
53
+
54
+ = v4.33 - 24.04.2015 =
55
+ * Compatibility with WP 4.2
56
+
57
+ = v4.32 - 30.03.2015 =
58
+ * Fixed Widget slow loading images
59
+
60
+ = v4.31 - 13.03.2015 =
61
+ * Fixed Alternative gallery for some themes
62
+
63
+ = v4.30 - 18.02.2015 =
64
+ * Added Combobox for search and insert galleries when insert shortcode
65
+ (Select gallerires in order you need for shortcode, drag'n'drop galleries inside combobox)
66
+ * Fixed and improved CSS on all admin pages
67
+
68
+ = v4.29 - 21.01.2015 =
69
+ * Fixed warning on Skins page when open_basedir = 'Off'
70
+
71
+ = v4.28 - 12.01.2015 =
72
+ * Fixed urls to install skins and other plugin's website links
73
+
74
+ = v4.27 - 26.12.2014 =
75
+ * Fixed few PHP Notices
76
+ * Compatibility with EWW Image Optimizer plugin
77
+
78
+ = v4.26 - 20.11.2014 =
79
+ * Fixed few PHP Notices
80
+
81
+ = v4.25 - 23.10.2014 =
82
+ * Fixed vulnerability in banner skins
83
+ * Rename banner to rotator
84
+
85
+ = v4.24 - 22.10.2014 =
86
+ * Improved script for Alternate JS gallery
87
+ * Fixed js error with widgets
88
+ * Minima skin updated: New option to preview alternative gallery (To update skins click Reset Settings button on Overview page)
89
+
90
+ = v4.23 - 9.09.2014 =
91
+ * Wordpress 4.0 compatibility
92
+
93
+ = v4.22 - 27.08.2014 =
94
+ * Now you can add Google Analytics Tracking Code for GRAND Pages in Flagallery Options
95
+
96
+ = v4.21 - 07.08.2014 =
97
+ * Fix for Widget
98
+
99
+ = v4.20 - 24.07.2014 =
100
+ * Added Flagallery Iframe page
101
+
102
+ = v4.19 - 24.07.2014 =
103
+ * Fixes and improvements
104
+
105
+ = v4.18 - 16.06.2014 =
106
+ * Replaced deprecated wordpress function
107
+ * Fix error on Skins page when no cURL installed on server
108
+
109
+ = v4.17 - 23.05.2014 =
110
+ * Fix conflict with Gmedia Gallery
111
+ * Fix js error 'swfobject undefined'
112
+
113
+ = v4.16 - 13.05.2014 =
114
+ * Slider skin small fix
115
+ * Remove Facebook page due to changed Facebook API
116
+
117
+ = v4.15 - 13.05.2014 =
118
+ * Added support for themes with Ajax page loading
119
+
120
+ = v4.14 - 22.04.2014 =
121
+ * fix albums drag&drop
122
+
123
+ = v4.13 - 22.04.2014 =
124
+ * fix plupload uploader for wordpress 3.9
125
+ * update plupload uploader to loatest version
126
+ * small css changes
127
+
128
+ = v4.12 - 26.03.2014 =
129
+ * fix for video galleries and banners
130
+ * optimization for some themes
131
+ * added new action: Reset Views & Likes Counters
132
+
133
+ = v4.10 - 11.02.2014 =
134
+ * optimization for new iOS app
135
+ * fixed hitcounter.php on some servers
136
+ * small changes and improvements
137
+
138
+ = v4.00 - 17.01.2014 =
139
+ * added ability to set thumb size while upload
140
+ * added optimized image size for mobile devices
141
+ * added ability to turn off optimized images for mobile devices
142
+ * fixed strict warnings
143
+ * added hooks when creating thumbs or resizing images
144
+ * fixed alternative gallery for firefox based browsers
145
+ * added action for creating optimized images on Manage Galleries page and on Edit Gallery page
146
+ * show sizes for thumbnails and optimized images
147
+ * small fixes and improvements
148
+
149
+ = v3.20 - 15.10.2013 =
150
+ * Fix alternative gallery
151
+ * Added Gallery sorting on Manage Galleries page
152
+ * Added fields on Options page for gallery sorting
153
+
154
+ = v3.19 - 10.10.2013 =
155
+ * Fix browser upload (submit button was absent)
156
+ * fix for switch between uploaders
157
+
158
+ = v3.18 - 10.10.2013 =
159
+ * Replace swfupload with plupload uploader.
160
+ * Added: compatibility with old flagallery database (if it was not upgraded)
161
+ * Update: Minima skin
162
+
163
+ = v3.16 - 28.09.2013 =
164
+ * Fix: for Flagallery widget
165
+
166
+ = v3.15 - 27.09.2013 =
167
+ * Fix: New skins not loaded sometimes
168
+ * Added: Thumb Qty field to Flagallery widget
169
+ * Added: Hungarian translate
170
+
171
+ = v3.14 - 28.08.2013 =
172
+ * Fix: Flash Uploader not worked on some servers
173
+ * Fix: Upload for iOS application
174
+ * Fix: Banner Widget, Music and Video player (click reset options on Overview page to update default skins to latest versions)
175
+
176
+ = v3.12 - 18.07.2013 =
177
+ * Fix: Not worked for wordpress with custom 'wp-content' folder
178
+ * Fix: Minima skin wrong install url
179
+ * Fix: Photoswipe js
180
+
181
+ = v3.11 - 18.07.2013 =
182
+ * Fix: Widgets page was not accessible
183
+
184
+ = v3.10 - 17.07.2013 =
185
+ * Fix: Security bugs reported by Nikolai Tschacher for the White Fir Design Bug Bounty
186
+ * Fix: Small bugs and improvements
187
+ * Added: 2 new languages
188
+
189
+ = v3.01 - 09.07.2013 =
190
+ * New: iOS application 'MyPGC' for Flagallery plugin now available on the App Store for everyone
191
+
192
+ = v3.00 - 03.07.2013 =
193
+ * Fix: Free skins settings reset to default after plugin update
194
+ * Fix: XSS bugs reported by Ken S for the White Fir Design Bug Bounty
195
+ * Fix: small bugfixes
196
+ * New: iOS application 'MyPGC' for Flagallery plugin now available on the App Store
197
+
198
+ = v2.78 - 26.06.2013 =
199
+ * Fix: bundled free skins not copied to flagallery-skins directory
200
+
201
+ = v2.77 - 25.06.2013 =
202
+ * Fix: XSS vulnerability with albums (thanks to Ken S - for the White Fir Design Bug Bounty)
203
+ * Fix: PHP Notices
204
+ * Fix: Compatibility with some modern themes
205
+ * Update: New version of swfupload
206
+ * Update: Compatibility with Wordpress SEO plugin
207
+ * Update: Update code for default skins
208
+
209
+ = v2.76 - 13.06.2013 =
210
+ * Fixed: Size for thumbs on Manage Images page
211
+ * Fixed: Create New Thumbnails not working properly with fix dimensions
212
+ * Fixed: First activation of plugin do not move free skins to 'flagallery-skins' folder
213
+ * Fixed: GRAND Page do not remembers playlist option
214
+
215
+ = v2.75 - 10.06.2013 =
216
+ * Added: Link feald for image (optional for skin)
217
+ * Added: Draft for galleries
218
+ * Fixed: PHP and CSS improvements
219
+
220
+ = v2.72 - 20.05.2013 =
221
+ * Added: pagination on Music Box page
222
+ * Fixed: small fixes for Banner Box page
223
+
224
+ = v2.71 - 07.05.2013 =
225
+ * Added: pagination on Banner Box page
226
+ * Fixed: reports sometimes a error "Fatal error: Only variables can be passed by reference"
227
+ * Fixed: compatibility with SEO plugin
228
+ * Changed: Options page
229
+ * Fixed: Vulnerability on Search images.
230
+
231
+ = v2.70 - 11.04.2013 =
232
+ * Fixed: Compatibility with some modern themes
233
+ * Added: Music for gallery skins
234
+
235
+ = v2.56 - 25.03.2013 =
236
+ * Fixed: SQL injection vulnerability
237
+ * Fixed: Video Box admin shows parse error
238
+ * Fixed: Restrict access to menu "GRAND Pages"
239
+ * Added: Informative descriptions on skins and options pages
240
+ * Updated: Minima skin now have option to hide views/likes counter
241
+
242
+ = v2.55 - 19.03.2013 =
243
+ * Fixed: Alternative gallery on mobile browsers not shows big image on tap
244
+ * Fixed: Alternative gallery brokes if file name have spaces.
245
+ * Added: Option to hide views/likes counter on alternative gallery
246
+ * Fixed: Back button for GRAND Pages
247
+ * Fixed: Playlists not worked if galleries path different from default
248
+
249
+ = v2.54 - 05.03.2013 =
250
+ * Fixed: Error opening pages "call this page directly" message
251
+ * Changed: Decreased flash version detection (for Mac OS users)
252
+
253
+ = v2.53 - 27.02.2013 =
254
+ * Fixed: Multiple Vulnerabilities
255
+
256
+ = v2.52 - 23.02.2013 =
257
+ * Fixed: Install skins on some servers failed
258
+
259
+ = v2.51 - 19.02.2013 =
260
+ * Fixed: 'Import folder' for Banner Box
261
+ * Fixed: Video preview in admin area
262
+ * Fixed: https support for CSS and JS includes
263
+ * Fixed: Error 'URL file-access is disabled in the server configuration.'
264
+ * Updated: bundled skins
265
+ * Added: License for Banners and Video Blog
266
+
267
+ = v2.50 - 05.02.2013 =
268
+ * Added: New Default 'Minima' skin - better, faster, nicer.
269
+ * Added: Image views and likes now visible in alternative gallery
270
+
271
+ = v2.18 - 23.01.2013 =
272
+ * Fixed: Minor fix for skin settings. Skin settings not saved on some servers.
273
+
274
+ = v2.17 - 08.01.2013 =
275
+ * Added: Sort images option: Randomly
276
+ * Changed: Alternative gallery thumbs for not square images
277
+ * Fixed: Skin name was wrong when click delete skin
278
+ * Fixed: Small fixes
279
+
280
+ = v2.16 - 17.12.2012 =
281
+ * Added: Hooks for manage images/galleries
282
+
283
+ = v2.15 - 04.12.2012 =
284
+ * Optimized: Code optimized
285
+ * Added: Hook for bulk actions dropdown
286
+ * Added: Hook after thumbnail/image created
287
+ * Fixed: Small PHP and JS fixes
288
+
289
+ = v2.14 - 20.11.2012 =
290
+ * Fixed: swfobject path was wrong on some servers
291
+
292
+ = v2.12 - 12.11.2012 =
293
+ * Fixed: XSS vulnerability in swfupload
294
+
295
+ = v2.11 - 03.11.2012 =
296
+ * Updated: New system of checking license key
297
+ * Changed: Skins update box.
298
+
299
+ = v2.10 - 29.10.2012 =
300
+ * Fixed: Vulnerability in shortcode function, album saving, saving skin options, facebook.php file
301
+ * Fixed: Delete image will delete it from FTP
302
+
303
+ = v2.00 - 22.10.2012 =
304
+ * Updated: Faster loading content of gallery (update skins to new versions)
305
+ * New: Easily update demo skins to full version with license key. All your settings will be in save.
306
+ * Added: Remote control key for mobile application (application coming soon)
307
+
308
+ = v1.90 - 15.10.2012 =
309
+ * Fixed: FancyBox alternative gallery
310
+ * Fixed: Scroll for alternative gallery
311
+ * Changed: Alternative gallery categories bar styling
312
+ * Updated: Banner Rotator Default is now responsive and have 4 themes.
313
+
314
+ = v1.85 - 12.10.2012 =
315
+ * Changed: new way to add preview images for video and music
316
+
317
+ = v1.84 - 26.09.2012 =
318
+ * Fixed: edit thumbnail not worked on some servers (Major Fix)
319
+ * Fixed: gallery deep linkining
320
+
321
+ = v1.83 - 12.09.2012 =
322
+ * Updated: PhotoSwipe library and make it default alternative gallery
323
+ * Updated: Now FlAGallery widget in mobile browser opens galleries on new page, but not in popup
324
+ * Added: Backround image for GRAND Pages
325
+ * Fixed: cPanel for skins options (Major FIX)
326
+
327
+ = v1.82 - 20.08.2012 =
328
+ * Fixed: Compatibility with other plugins that use old swfobject
329
+
330
+ = v1.81 - 10.08.2012 =
331
+ * Fixed: Compatibility with some other flash embed plugins
332
+
333
+ = v1.80 - 25.07.2012 =
334
+ * Changed: New simple way to install skins
335
+
336
+ = v1.79 - 11.07.2012 =
337
+ * Added: Password protection for GRAND Pages
338
+ * Added: align=left|center|right parameter for shortcode
339
+ * Fixed: alternate gallery for https sites
340
+
341
+ = v1.78 - 25.06.2012 =
342
+ * Fixed: admin CSS for Overview page
343
+
344
+ = v1.77 - 16.05.2012 =
345
+ * Fixed: Fancybox javascript not worked when switched between gallery category
346
+ * Fixed: PhotoSwipe javascript not worked when switched between gallery category
347
+ * Updated: Added hitcounter to PhotoSwipe
348
+
349
+ = v1.76 - 13.05.2012 =
350
+ * Fixed: Fancybox javascript not worked in v1.75
351
+ * Updated: Fancybox javascript for Slider skin
352
+
353
+ = v1.75 - 10.05.2012 =
354
+ * Fixed: Saving Video skin settings for playlist
355
+ * Fixed: jQuery conflict for some new themes
356
+
357
+ = v1.74 - 25.04.2012 =
358
+ * Fixed: skins delete function
359
+
360
+ = v1.73 - 18.04.2012 =
361
+ * Fixed: xss vulnerability (skins.php)
362
+
363
+ = v1.72 - 10.04.2012 =
364
+ * Added: Sort by Image views option
365
+ * Added: Sort by Image likes option
366
+
367
+ = v1.71 - 03.04.2012 =
368
+ * Updated: Aflux Skin (added new features)
369
+
370
+ = v1.71 - 27.03.2012 =
371
+ * Updated: Default Skin (added view counter)
372
+ * Added: widget for GRAND Pages
373
+ * Fixed: JS for alternate gallery
374
+
375
+ = v1.70 - 20.03.2012 =
376
+ * Added: New Skin - PhotoBlog
377
+ * Added: Image Views, Likes and Rating for each images (available only in PhotoBlog skin)
378
+ * Fixed: CSS and JS small bugs
379
+
380
+ = v1.67 - 29.02.2012 =
381
+ * Added: Romanian language
382
+
383
+ = v1.66 - 23.02.2012 =
384
+ * Changed: FancyBox script for alternate gallery is now enabled by default.
385
+ * Optimized: Optimized Photoswipe script.
386
+ * Changed: Instructions for Facebook gallery page creation.
387
+ * Fixed: minor bugfixes.
388
+
389
+ = v1.65 - 15.02.2012 =
390
+ * Added: Now you can select FancyBox or PhotoSwipe script for alternate gallery. Added option to Options page. (Default is PhotoSwipe)
391
+ * Optimized: Optimized Photoswipe script for themes without mobile version.
392
+ * Fixed: FlAGallery media button above Post / Page editor.
393
+
394
+ = v1.64 - 07.02.2012 =
395
+ * Changed: Alternate Gallery changed fancybox script to PhotoSwipe. Full touchscreen support: iPhone, iPad, Android, Blackberry 6 and Desktop all supported.
396
+
397
+ = v1.63 - 24.01.2012 =
398
+ * Fixed: FlAGallery button on HTML Editor panel
399
+ * Added: FlAGallery Media button to Post and Page
400
+ * Changes: Minor changes
401
+
402
+ = v1.62 - 13.01.2012 =
403
+ * Fixed: script.js file error
404
+
405
+ = v1.61 - 12.01.2012 =
406
+ * Fixed: Import video from folder
407
+ * Fixed: Import mp3 from folder
408
+ * Fixed: Fancybox script for Slider skin (now it works in Safari browser)
409
+
410
+ = v1.60 - 10.01.2012 =
411
+ * Added: Default skin without any branding
412
+ * Added: Licenses to each skin folder
413
+
414
+ = v1.59 - 21.12.2011 =
415
+ * Updated: thumbnail generator script
416
+ * Updated: flagshow.php file
417
+
418
+ = v1.58 - 15.12.2011 =
419
+ * Bugfix: Compatibility with theme's custom post templates
420
+ * Bugfix: false positive xss vulnerability (flagshow.php)
421
+ * Updated: Compatibility with Wordpress 3.3
422
+ * Fixed: Support any language for Add Gallery field
423
+
424
+ = v1.57 - 01.12.2011 =
425
+ * Bugfix: Error when update from very old version
426
+ * Bugfix: xss vulnerability (facebook.php)
427
+ * Updated: 3D FlatWall, 3D Cube and Afflux skins compatibility with GRAND Pages
428
+
429
+ = v1.56 - 23.11.2011 =
430
+ * Added: Icon for GRAND Pages
431
+ * Added: FlAGallery Music Widget
432
+ * Added: New Music Player Skin
433
+ * Fixed: Bugfix in Baner Box import function
434
+ * Fixed: Music Box didn't update skin settings
435
+
436
+ = v1.55 - 09.11.2011 =
437
+ * Fixed: GRAND Pages permalinks
438
+ * Added: Option to disable deep linking in the flash (not all skins support this feature)
439
+ * Fixed: Alternative gallery
440
+ * Fixed: CSS for FancyBox
441
+ * Added: Alternative for Music Player Default
442
+
443
+ = v1.54 - 09.11.2011 =
444
+ * Added: GRAND Pages - Full Window Gallery Template
445
+ * Updated: Script for Slider skin (multiple Sliders on one page)
446
+
447
+ = v1.53 - 02.11.2011 =
448
+ * Updated : Feedburner RSS now display bold title near image (not only description)
449
+ * Added : Support for very old skins
450
+
451
+ = v1.52 - 01.11.2011 =
452
+ * Updated : Singleton (mini) mp3 player
453
+ * Added : Autoplay for singleton (mini) mp3 player
454
+ * Bugfix : Android browser support
455
+
456
+ = v1.51 - 04.10.2011 =
457
+ * Major Fix : Updated cPanel for skins (compatibility with Adobe Flash Player v11)
458
+ * Added : RSS for FeedBurner
459
+ * Added : Supported new Slider skin - FancyBox fullscreen preview
460
+ * Updated : SEO optimization for serch engines
461
+ * Updated : Optimization for RSS Readers (added image description)
462
+ * Updated : Scripts for feature SlideShow Skin
463
+
464
+ = v1.50 - 20.09.2011 =
465
+ * Fixed : Widget for Banner Rotator (refresh skins)
466
+ * Removed : Unnecessary links on Banner Rotator
467
+
468
+ = v1.49 - 06.09.2011 =
469
+ * Added : Widget for Video Playlists
470
+ * Fixed : Minor Bugs
471
+
472
+ = v1.48 - 30.08.2011 =
473
+ * Fixed : iPhone/iPad alternative for music and video default players
474
+
475
+ = v1.47 - 29.08.2011 =
476
+ * Added : Support mp3 for iPhone/iPad
477
+ * Added : Alternative for video and music for non-flash browsers
478
+ * Added : Widget Option for fancybox size
479
+ * Fixed : music and video default players
480
+
481
+ = v1.45 - 23.08.2011 =
482
+ * Added : Widget for Album Gallery
483
+ * Added : Lithuanian language
484
+ * Fixed : Minor bugs
485
+
486
+ = v1.44 - 18.08.2011 =
487
+ * Fixed : Widget for Banner Rotator
488
+
489
+ = v1.43 - 17.08.2011 =
490
+ * Added : Widget for Banner Rotator
491
+ * Fixed : Change playlist options
492
+ * Fixed : PHP4 Compatibility
493
+
494
+ = v1.42 - 08.08.2011 =
495
+ * Major Bugfix
496
+ * Fixed : Banner Rotator (update skins, please)
497
+
498
+ = v1.41 - 25.07.2011 =
499
+ * Fixed : Bug fix for WP v3.0.*
500
+ * Fixed : Photo Gallery shortcode generator in Visual Editor mode
501
+ * Fixed : Banner Rotator skin for WP v3.0
502
+ * Added : Ukrainian translation
503
+
504
+ = v1.40 - 18.07.2011 =
505
+ * Added : Video gallery playlist creation
506
+ * Added : Video blog skin
507
+ * Added : Banner box page to create banner rotators and 3d content galleries
508
+ * Added : Banner Rotator skin
509
+ * Added : Facebook link generator for Video gallery and Banner rotator
510
+ * Added : Album of galleries creation
511
+ * Added : Option to disable alternative jQuery gallery for iPad/iPhone
512
+ * Updated : swf files for skin options, mp3 mini.swf, video_mini.swf
513
+
514
+ = v1.33 - 13.07.2011 =
515
+ * Major Update for FlaGallery
516
+ * Fixed : Bug with music and video sorting in playlists
517
+
518
+ = v1.32 - 12.07.2011 =
519
+ * Fixed : Bug with Image Gallery Shortcode insertion via TinyMCE button
520
+ * Updated : Video player (new version)
521
+ * Updated : Wordpress v.3.2 compatibility
522
+
523
+ = v1.31 - 04.07.2011 =
524
+ * Added : Creating Multicategorized photo albums with galleries
525
+ * Added : Options for Single MP3 Player
526
+ * Fixed : Skins settings changing
527
+ * Fixed : Bug with Database capitalized prefix
528
+
529
+ = v1.23 - 20.06.2011 =
530
+ * Added : Video Box page (list of video from WP Media Library)
531
+ * Added : FLV Video Player and shortcode for it
532
+ * Added : Import mp3 files from server folder to WP Media Library
533
+ * Added : Import flv files from server folder to WP Media Library
534
+
535
+ = v1.22 - 11.06.2011 =
536
+ * Fixed : Facebook gallery template (you should copy facebook.php in the root directory again if you did it before)
537
+ * Fixed : php4 compatibility
538
+ * Added : Autoplay option to Music player (you should update skins)
539
+ * Fixed : alternate jQuery gallery show only if no flash
540
+
541
+ = v1.21 - 07.06.2011 =
542
+ * Fixed : javascript for alternative jQuery gallery
543
+ * Fixed : php4 unexpected T_STATIC error
544
+
545
+ = v1.20 - 06.06.2011 =
546
+ * Updated : Music player skin (added autoplay option)
547
+ * Added : Alternate jQuery gallery for iPad, iPhone
548
+ * Added : Options for alternate jQuery gallery
549
+ * Added : additional javascript for flash
550
+ * Changed : swfObject output for all galleries
551
+ * Updated : cPanel.swf for skin optoins
552
+
553
+ = v1.13 - 26.05.2011 =
554
+ * Fixed : Refresh Skin button make aktive skin broken (reinstall broken skin please)
555
+
556
+ = v1.12 - 24.05.2011 =
557
+ * Added : Roles for Music and Facebook pages
558
+ * Updated : Midnight Skin v3.0 for photo gallery
559
+ * Fixed : Facebook image gallery generator javascript on Mac browsers
560
+
561
+ = v1.11 - 23.05.2011 =
562
+ * Added : Music gallery 'Music Box'
563
+ * Added : Flash Gallery for Facebook page
564
+ * Fixed : small fixes
565
+
566
+ = v0.61 - 22.05.2011 =
567
+ * Added : Azerbaijani translation
568
+
569
+ = v0.60 - 11.04.2011 =
570
+ * Fixed : Security fix in two files
571
+
572
+ = v0.59 - 23.03.2011 =
573
+ * Fixed : Fix for default skins - don't load empty photo galleries
574
+ * Fixed : Fix for edit big thumbs
575
+ * Notice : New photo gallery flash skin released today
576
+
577
+ = v0.58pl1 - 19.02.2011 =
578
+ * Changed : Fix for compatibility with new skin
579
+ * Notice : New photo gallery flash skin released today
580
+
581
+ = v0.58 - 17.02.2011 =
582
+ * Changed : core files for skins swfobject
583
+ * Notice : all feature photo gallery skins require plugin v0.58 or higher
584
+
585
+ = v0.57 - 17.02.2011 =
586
+ * Added : js for feature skin
587
+ * Fixed : small fixes
588
+
589
+ = v0.56 - 17.02.2011 =
590
+ * Fixed : transparent and bg color for image gallery skins
591
+ * Added : functionality for feature flash photo gallery skin
592
+
593
+ = v0.55 - 18.01.2011 =
594
+ * Removed : disablescroll.js - very buggy
595
+
596
+ = v0.54 - 18.01.2011 =
597
+ * Added : javascript - flash scroll without html scroll
598
+ * Added : Dutch language
599
+
600
+ = v0.52 - 5.10.2010 =
601
+ * Added : Polish translation
602
+
603
+ = v0.50 - 19.07.2010 =
604
+ * Fixed : Metadata to description wrong tag
605
+
606
+ = v0.49 - 28.06.2010 =
607
+ * Added : Bulk action: copy image metadata to image description
608
+ * Added : Russian translation
609
+ * Bug fixes and CSS fixes
610
+
611
+ = v0.46 - 03.05.2010 =
612
+ * Added : Belorussian language
613
+
614
+ = v0.45 - 22.04.2010 =
615
+ * Added : WordPress MU support
616
+ * Small bug fixes
617
+
618
+ = v0.44 - 12.04.2010 =
619
+ * Added : Turkish language
620
+ * Small bug fixes
621
+
622
+ = v0.43 - 28.03.2010 =
623
+ * Added : More informative error messages on plugin upgrade
624
+ * Bugfix : Conflicted with NGG JWPlayer
625
+ * Bugfix : Help screen replaced on all admin pages
626
+ * Bugfix : Wrong pager calculate
627
+ * Changed : swfobject js for compability with older version of js library
628
+
629
+ = v0.42 - 25.03.2010 =
630
+ * Changed : Replaced all php short_open_tag from '<?=...?>' to '<?php echo ...; ?>'
631
+
632
+ = v0.41 - 25.03.2010 =
633
+ * Bugfix : Photo gallery Skin options didn't save colors
634
+
635
+ = v0.40 - 24.03.2010 =
636
+ * Change : DataBase structure
637
+ * Change : Photo gallery Skin options now on skins page
638
+ * Change : Skins now in separate folder outside of FlaGallery plugin folder
639
+ * Added : Each image gallery skin has own color settings saved in file
640
+ * Added : Hide image for unregistered users option
641
+ * Added : SWFaddress for deeplinking in flash
642
+ * Added : Meta data for Images
643
+ * Added : Action popup for Resize image... and Create new thumbnails
644
+ * Added : New Action - Import Meta data
645
+ * Added : Actions on Manage Galleries page
646
+ * Added : Search Images on Manage Galleries page
647
+
648
+ = v0.39pl3 - 12.02.2010 =
649
+ * Bugfix : Image uploader fix (Error 'no valid image')
650
+ * Added : German translation
651
+
652
+ = v0.39pl2 - 04.02.2010 =
653
+ * Bugfix : TinyMCE button insert wrong shortcode for flash photo gallery
654
+ * Bugfix : Color tab and color settings not showing
655
+
656
+ = v0.39pl1 - 31.01.2010 =
657
+ * Added : Portuguese translation
658
+ * Added : Traditional Chinese translation
659
+
660
+ = v0.39 - 25.12.2009 =
661
+ * Added : Spanish translation
662
+ * Bugfix : bugfixes for WP2.9
663
+
664
+ = v0.38 - 08.12.2009 =
665
+ * Added : Photo gallery shortcode parameters (orderby=gid | title | random, order=DESC | ASC, exclude, skin)
666
+ * Added : Popup tabs for additional shortcode parameters
667
+ * Added : Ability to add more flash albums in post/posts with different skins
668
+ * Added : Ability set default skin colors or leave your own
669
+ * Bugfix : small fixes
670
+
671
+ = v0.37 - 13.11.2009 =
672
+ * Added : French translation
673
+ * Bugfix : Fix for GRAND FlaGallery Skin page (blank page)
674
+
675
+ = v0.36 - 5.11.2009 =
676
+ * Added : Italian translation
677
+ * Update : Little fixes of text
678
+
679
+ = v0.35 - 22.10.2009 =
680
+ * Added : Confirmation popup for delete skin option
681
+ * Bugfix: Fix for included skins with WP 2.7.1 and PHP 4
682
+ * Update : Update for Wordpress v.2.8.5
683
+
684
+ = v0.34 - 19.10.2009 =
685
+ * Added : Delete skin option
686
+ * Added : Capability for 'delete skin'
687
+ * Bugfix : Fix for flag.ajax.js (conflict with wp-security-scan plugin)
688
+
689
+ = v0.33 - 5.10.2009 =
690
+ * Bugfix : Fix for skins upload
691
+ * Bugfix : Fix editor buttons in IE
692
+
693
+ = v0.32 - 30.09.2009 =
694
+ * Added : Skin "Photo Gallery PRO 1.0 DEMO"
695
+ * Bugfix : Fix for image date & time
696
+ * Bugfix : Fixed html special chars in description of image
697
+ * Changed : Database structure
698
+
699
+ = v0.29 - 17.08.2009 =
700
+ * NEW : Import images from folder
701
+ * Added : Button "FlAGallery" on HTML Editor panel, even if Visual Editor is disabled
702
+ * Added : International Skin to display any language in the flash
703
+ * Added : Loader for News Box on Overview page
704
+ * Added : To display all galleries in the album, added parameter value "all", e.g.: gid=all
705
+ * Changed : Shortcode 'album' replaced with 'flagallery', becouse of conflict with NextGEN Gallery
706
+ * Bugfix : Fix for Upload Images button on Overview page
707
+ * Bugfix : Fixed conflict with NextGEN Gallery (creating thumbnails cause error)
flag.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: GRAND FlaGallery
4
  Plugin URI: https://mypgc.co/
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: 5.1.8
7
  Author: Rattus
8
  Author URI: https://codeasily.com/
9
  Text Domain: flash-album-gallery
@@ -24,7 +24,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
24
  if (!class_exists('flagLoad')) {
25
  class flagLoad {
26
 
27
- var $version = '5.1.8';
28
  var $dbversion = '5.0';
29
  var $minium_WP = '3.7';
30
  var $minium_WPMU = '3.7';
@@ -79,8 +79,19 @@ class flagLoad {
79
  add_action( 'wp_enqueue_scripts', array( &$this, 'register_scripts_frontend' ), 3 );
80
 
81
  add_action('activated_plugin', array(&$this, 'save_error') );
 
 
82
  }
83
 
 
 
 
 
 
 
 
 
 
84
  function save_error(){
85
  update_option('flag_plugin_error', ob_get_contents());
86
  }
@@ -130,41 +141,9 @@ class flagLoad {
130
  include_once ( dirname (__FILE__) . '/admin/upgrade.php' );
131
  flag_upgrade();
132
  add_action( 'admin_notices', create_function('', 'echo \'<div id="message" class="updated"><p>\' . __(\'Grand Flagallery database upgraded\', "flash-album-gallery" ) . \'</p></div>\';') );
133
-
134
- if('5.0' === FLAG_DBVERSION){
135
- add_action('admin_notices', array( &$this, 'update_5_0_message' ));
136
- }
137
  }
138
  }
139
 
140
- function update_5_0_message() {
141
- ?>
142
- <div id="message" class="updated"><?php _e('<h2>Flagallery Wordpress Plugin v5.0</h2>
143
- <p>WordPress announced removing adobe flash based plugins from WordPress v4.9.<br />
144
- Flagallery was reworked from the ground and here is the all new skins now built with HTML and JS.<br />
145
- <b style="color:red;">Note:</b> all your old galleries now will be replaced with new default skin "Phantom".<br />
146
- You can install new skins at the skins page and use them in flagallery shortcodes.</p>
147
- <p><b><i>Changes:</i></b><br />
148
- * All flash code replaced with HTML & JS<br />
149
- * GRAND Page have new option for background: Background Size<br />
150
- * GRAND Page added \'assist\' link for Background Image<br />
151
- * iFrame tool now have embed code, which you can copy and paste whenever you need</p>
152
- <p>* <b>New Skins:</b><br />
153
- - Phantom - free<br />
154
- - NivoGallery - free<br />
155
- - Nivo Slider - free Banner Rotator<br />
156
- - jQ Music Player - free Music Playlist<br />
157
- - WP Video Player - free Video Playlist<br />
158
- - Photomania - premium<br />
159
- - FlipGrid - premium with multicategory<br />
160
- - PhotoBox - premium<br />
161
- - Mosaic - premium<br />
162
- - AlbumsGrid - premium splash gallery<br />
163
- - AlbumsSwitcher - premium splash gallery<br />
164
- - PhotoCluster - premium splash gallery</p>', "flash-album-gallery" ); ?></p></div>
165
- <?php
166
- }
167
-
168
  function required_version() {
169
 
170
  global $wp_version, $wpmu_version;
3
  Plugin Name: GRAND FlaGallery
4
  Plugin URI: https://mypgc.co/
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: 5.2.1
7
  Author: Rattus
8
  Author URI: https://codeasily.com/
9
  Text Domain: flash-album-gallery
24
  if (!class_exists('flagLoad')) {
25
  class flagLoad {
26
 
27
+ var $version = '5.2.1';
28
  var $dbversion = '5.0';
29
  var $minium_WP = '3.7';
30
  var $minium_WPMU = '3.7';
79
  add_action( 'wp_enqueue_scripts', array( &$this, 'register_scripts_frontend' ), 3 );
80
 
81
  add_action('activated_plugin', array(&$this, 'save_error') );
82
+
83
+ add_filter( 'mime_types', array(&$this, 'mime_types') );
84
  }
85
 
86
+ function mime_types( $output ) {
87
+ $output['JPG'] = 'image/JPG';
88
+ $output['JPEG'] = 'image/JPEG';
89
+ $output['PNG'] = 'image/PNG';
90
+ $output['GIF'] = 'image/GIF';
91
+
92
+ return $output;
93
+ }
94
+
95
  function save_error(){
96
  update_option('flag_plugin_error', ob_get_contents());
97
  }
141
  include_once ( dirname (__FILE__) . '/admin/upgrade.php' );
142
  flag_upgrade();
143
  add_action( 'admin_notices', create_function('', 'echo \'<div id="message" class="updated"><p>\' . __(\'Grand Flagallery database upgraded\', "flash-album-gallery" ) . \'</p></div>\';') );
 
 
 
 
144
  }
145
  }
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  function required_version() {
148
 
149
  global $wp_version, $wpmu_version;
lib/image.php CHANGED
@@ -57,14 +57,16 @@ class flagImage{
57
  $this->alttext = $gallery->alttext;
58
  $this->description = $gallery->description;
59
 
 
 
60
  // set urls and paths
61
- $this->imageURL = get_option ('siteurl') . '/' . $this->path . '/' . $this->filename;
62
- $this->webimageURL = get_option ('siteurl') . '/' . $this->path . '/webview/' . $this->filename;
63
- $this->thumbURL = get_option ('siteurl') . '/' . $this->path . '/thumbs/thumbs_' . $this->filename;
64
- $this->imagePath = WINABSPATH.$this->path . '/' . $this->filename;
65
- $this->webimagePath = WINABSPATH.$this->path . '/webview/' . $this->filename;
66
- $this->thumbPath = WINABSPATH.$this->path . '/thumbs/thumbs_' . $this->filename;
67
- $this->meta_data = unserialize($this->meta_data);
68
 
69
  wp_cache_add($this->pid, $this, 'flag_image');
70
 
57
  $this->alttext = $gallery->alttext;
58
  $this->description = $gallery->description;
59
 
60
+ $siteurl = trailingslashit( get_option ('siteurl') );
61
+
62
  // set urls and paths
63
+ $this->imageURL = $siteurl . $this->path . '/' . $this->filename;
64
+ $this->webimageURL = $siteurl . $this->path . '/webview/' . $this->filename;
65
+ $this->thumbURL = $siteurl . $this->path . '/thumbs/thumbs_' . $this->filename;
66
+ $this->imagePath = WINABSPATH . $this->path . '/' . $this->filename;
67
+ $this->webimagePath = WINABSPATH . $this->path . '/webview/' . $this->filename;
68
+ $this->thumbPath = WINABSPATH . $this->path . '/thumbs/thumbs_' . $this->filename;
69
+ $this->meta_data = unserialize($this->meta_data);
70
 
71
  wp_cache_add($this->pid, $this, 'flag_image');
72
 
readme.txt CHANGED
@@ -33,6 +33,8 @@ With this gallery plugin you can easy upload images, create music and video play
33
 
34
  **[How to add gallery to your Wordpress site](https://mypgc.co/how-to/)** - full HowTo guide.
35
 
 
 
36
  For more information read **[Review, Tutorials, FAQ](https://mypgc.co/ "Grand Flagallery Home Page")** and see demos created with "Grand Flagallery" WordPress Plugin.
37
 
38
  'Custom Links' feature support in gallery skins. [See PhotoMania Skin demo](https://mypgc.co/portfolio-item/photomania/).
@@ -55,6 +57,17 @@ See "Views" of each photo in the gallery and allow visitors to "Like" photos.
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
 
 
 
 
 
58
  = v5.1.8 - 22.01.2018 =
59
  * Fixed Music, Video, Banner skins show only 5 items on some themes
60
  * Updated MediaElements.js library to the latest version with fixed vulnerability.
@@ -124,714 +137,7 @@ You can install new skins at the skins page and use them in flagallery shortcode
124
  - AlbumsSwitcher - premium splash gallery
125
  - PhotoCluster - premium splash gallery
126
 
127
- = v4.48 - 13.05.2017 =
128
- * Fixed warning on PHP 7
129
-
130
- = v4.47 - 17.03.2017 =
131
- * Fixed warning on PHP 7
132
- * Small CSS fixes
133
-
134
- = v4.46 - 04.12.2016 =
135
- * Fixed admin over https schema
136
- * Small fixes
137
-
138
- = v4.45 - 25.10.2016 =
139
- * Fixed deprecated JS function
140
- * Fixed PHP Notice when gallery is empty
141
- * Added isolation from other plugins assets in admin panel to avoid JS errors
142
-
143
- = v4.44 - 22.09.2016 =
144
- * Compatibility with WP v4.6
145
- * Fixed Links to Skins Demos
146
- * Fixed Skins install
147
- * Fixed Warning on skins page
148
-
149
- = v4.43 - 30.08.2016 =
150
- * Rotate images automaticaly on upload based on EXIF orientation
151
- * Fixed few PHP Notices
152
-
153
- = v4.42 - 14.07.2016 =
154
- * Fixed Shortcode Helper Button not worked on some servers
155
-
156
- = v4.41 - 14.06.2016 =
157
- * Fixed Gallery name not inserted in shortcode.
158
-
159
- = v4.40 - 18.04.2016 =
160
- * Improved skins installation
161
-
162
- = v4.39 - 11.01.2016 =
163
- * Fixed Warning compatibility with NextGen Gallery plugin
164
-
165
- = v4.38 - 02.11.2015 =
166
- * Warning fix on Music Box page
167
-
168
- = v4.37 - 27.09.2015 =
169
- * Update for importing the plugin into the translate.wordpress.org translation system
170
-
171
- = v4.36 - 12.08.2015 =
172
- * Support of Wordpress v4.3
173
-
174
- = v4.35 - 01.07.2015 =
175
- * Fixed alternative gallery thumbnails not showed on some themes
176
-
177
- = v4.34 - 02.05.2015 =
178
- * Fixed alternative gallery (when links in image descriptions)
179
-
180
- = v4.33 - 24.04.2015 =
181
- * Compatibility with WP 4.2
182
-
183
- = v4.32 - 30.03.2015 =
184
- * Fixed Widget slow loading images
185
-
186
- = v4.31 - 13.03.2015 =
187
- * Fixed Alternative gallery for some themes
188
 
189
- = v4.30 - 18.02.2015 =
190
- * Added Combobox for search and insert galleries when insert shortcode
191
- (Select gallerires in order you need for shortcode, drag'n'drop galleries inside combobox)
192
- * Fixed and improved CSS on all admin pages
193
-
194
- = v4.29 - 21.01.2015 =
195
- * Fixed warning on Skins page when open_basedir = 'Off'
196
-
197
- = v4.28 - 12.01.2015 =
198
- * Fixed urls to install skins and other plugin's website links
199
-
200
- = v4.27 - 26.12.2014 =
201
- * Fixed few PHP Notices
202
- * Compatibility with EWW Image Optimizer plugin
203
-
204
- = v4.26 - 20.11.2014 =
205
- * Fixed few PHP Notices
206
-
207
- = v4.25 - 23.10.2014 =
208
- * Fixed vulnerability in banner skins
209
- * Rename banner to rotator
210
-
211
- = v4.24 - 22.10.2014 =
212
- * Improved script for Alternate JS gallery
213
- * Fixed js error with widgets
214
- * Minima skin updated: New option to preview alternative gallery (To update skins click Reset Settings button on Overview page)
215
-
216
- = v4.23 - 9.09.2014 =
217
- * Wordpress 4.0 compatibility
218
-
219
- = v4.22 - 27.08.2014 =
220
- * Now you can add Google Analytics Tracking Code for GRAND Pages in Flagallery Options
221
-
222
- = v4.21 - 07.08.2014 =
223
- * Fix for Widget
224
-
225
- = v4.20 - 24.07.2014 =
226
- * Added Flagallery Iframe page
227
-
228
- = v4.19 - 24.07.2014 =
229
- * Fixes and improvements
230
-
231
- = v4.18 - 16.06.2014 =
232
- * Replaced deprecated wordpress function
233
- * Fix error on Skins page when no cURL installed on server
234
-
235
- = v4.17 - 23.05.2014 =
236
- * Fix conflict with Gmedia Gallery
237
- * Fix js error 'swfobject undefined'
238
-
239
- = v4.16 - 13.05.2014 =
240
- * Slider skin small fix
241
- * Remove Facebook page due to changed Facebook API
242
-
243
- = v4.15 - 13.05.2014 =
244
- * Added support for themes with Ajax page loading
245
-
246
- = v4.14 - 22.04.2014 =
247
- * fix albums drag&drop
248
-
249
- = v4.13 - 22.04.2014 =
250
- * fix plupload uploader for wordpress 3.9
251
- * update plupload uploader to loatest version
252
- * small css changes
253
-
254
- = v4.12 - 26.03.2014 =
255
- * fix for video galleries and banners
256
- * optimization for some themes
257
- * added new action: Reset Views & Likes Counters
258
-
259
- = v4.10 - 11.02.2014 =
260
- * optimization for new iOS app
261
- * fixed hitcounter.php on some servers
262
- * small changes and improvements
263
-
264
- = v4.00 - 17.01.2014 =
265
- * added ability to set thumb size while upload
266
- * added optimized image size for mobile devices
267
- * added ability to turn off optimized images for mobile devices
268
- * fixed strict warnings
269
- * added hooks when creating thumbs or resizing images
270
- * fixed alternative gallery for firefox based browsers
271
- * added action for creating optimized images on Manage Galleries page and on Edit Gallery page
272
- * show sizes for thumbnails and optimized images
273
- * small fixes and improvements
274
-
275
- = v3.20 - 15.10.2013 =
276
- * Fix alternative gallery
277
- * Added Gallery sorting on Manage Galleries page
278
- * Added fields on Options page for gallery sorting
279
-
280
- = v3.19 - 10.10.2013 =
281
- * Fix browser upload (submit button was absent)
282
- * fix for switch between uploaders
283
-
284
- = v3.18 - 10.10.2013 =
285
- * Replace swfupload with plupload uploader.
286
- * Added: compatibility with old flagallery database (if it was not upgraded)
287
- * Update: Minima skin
288
-
289
- = v3.16 - 28.09.2013 =
290
- * Fix: for Flagallery widget
291
-
292
- = v3.15 - 27.09.2013 =
293
- * Fix: New skins not loaded sometimes
294
- * Added: Thumb Qty field to Flagallery widget
295
- * Added: Hungarian translate
296
-
297
- = v3.14 - 28.08.2013 =
298
- * Fix: Flash Uploader not worked on some servers
299
- * Fix: Upload for iOS application
300
- * Fix: Banner Widget, Music and Video player (click reset options on Overview page to update default skins to latest versions)
301
-
302
- = v3.12 - 18.07.2013 =
303
- * Fix: Not worked for wordpress with custom 'wp-content' folder
304
- * Fix: Minima skin wrong install url
305
- * Fix: Photoswipe js
306
-
307
- = v3.11 - 18.07.2013 =
308
- * Fix: Widgets page was not accessible
309
-
310
- = v3.10 - 17.07.2013 =
311
- * Fix: Security bugs reported by Nikolai Tschacher for the White Fir Design Bug Bounty
312
- * Fix: Small bugs and improvements
313
- * Added: 2 new languages
314
-
315
- = v3.01 - 09.07.2013 =
316
- * New: iOS application 'MyPGC' for Flagallery plugin now available on the App Store for everyone
317
-
318
- = v3.00 - 03.07.2013 =
319
- * Fix: Free skins settings reset to default after plugin update
320
- * Fix: XSS bugs reported by Ken S for the White Fir Design Bug Bounty
321
- * Fix: small bugfixes
322
- * New: iOS application 'MyPGC' for Flagallery plugin now available on the App Store
323
-
324
- = v2.78 - 26.06.2013 =
325
- * Fix: bundled free skins not copied to flagallery-skins directory
326
-
327
- = v2.77 - 25.06.2013 =
328
- * Fix: XSS vulnerability with albums (thanks to Ken S - for the White Fir Design Bug Bounty)
329
- * Fix: PHP Notices
330
- * Fix: Compatibility with some modern themes
331
- * Update: New version of swfupload
332
- * Update: Compatibility with Wordpress SEO plugin
333
- * Update: Update code for default skins
334
-
335
- = v2.76 - 13.06.2013 =
336
- * Fixed: Size for thumbs on Manage Images page
337
- * Fixed: Create New Thumbnails not working properly with fix dimensions
338
- * Fixed: First activation of plugin do not move free skins to 'flagallery-skins' folder
339
- * Fixed: GRAND Page do not remembers playlist option
340
-
341
- = v2.75 - 10.06.2013 =
342
- * Added: Link feald for image (optional for skin)
343
- * Added: Draft for galleries
344
- * Fixed: PHP and CSS improvements
345
-
346
- = v2.72 - 20.05.2013 =
347
- * Added: pagination on Music Box page
348
- * Fixed: small fixes for Banner Box page
349
-
350
- = v2.71 - 07.05.2013 =
351
- * Added: pagination on Banner Box page
352
- * Fixed: reports sometimes a error "Fatal error: Only variables can be passed by reference"
353
- * Fixed: compatibility with SEO plugin
354
- * Changed: Options page
355
- * Fixed: Vulnerability on Search images.
356
-
357
- = v2.70 - 11.04.2013 =
358
- * Fixed: Compatibility with some modern themes
359
- * Added: Music for gallery skins
360
-
361
- = v2.56 - 25.03.2013 =
362
- * Fixed: SQL injection vulnerability
363
- * Fixed: Video Box admin shows parse error
364
- * Fixed: Restrict access to menu "GRAND Pages"
365
- * Added: Informative descriptions on skins and options pages
366
- * Updated: Minima skin now have option to hide views/likes counter
367
-
368
- = v2.55 - 19.03.2013 =
369
- * Fixed: Alternative gallery on mobile browsers not shows big image on tap
370
- * Fixed: Alternative gallery brokes if file name have spaces.
371
- * Added: Option to hide views/likes counter on alternative gallery
372
- * Fixed: Back button for GRAND Pages
373
- * Fixed: Playlists not worked if galleries path different from default
374
-
375
- = v2.54 - 05.03.2013 =
376
- * Fixed: Error opening pages "call this page directly" message
377
- * Changed: Decreased flash version detection (for Mac OS users)
378
-
379
- = v2.53 - 27.02.2013 =
380
- * Fixed: Multiple Vulnerabilities
381
-
382
- = v2.52 - 23.02.2013 =
383
- * Fixed: Install skins on some servers failed
384
-
385
- = v2.51 - 19.02.2013 =
386
- * Fixed: 'Import folder' for Banner Box
387
- * Fixed: Video preview in admin area
388
- * Fixed: https support for CSS and JS includes
389
- * Fixed: Error 'URL file-access is disabled in the server configuration.'
390
- * Updated: bundled skins
391
- * Added: License for Banners and Video Blog
392
-
393
- = v2.50 - 05.02.2013 =
394
- * Added: New Default 'Minima' skin - better, faster, nicer.
395
- * Added: Image views and likes now visible in alternative gallery
396
-
397
- = v2.18 - 23.01.2013 =
398
- * Fixed: Minor fix for skin settings. Skin settings not saved on some servers.
399
-
400
- = v2.17 - 08.01.2013 =
401
- * Added: Sort images option: Randomly
402
- * Changed: Alternative gallery thumbs for not square images
403
- * Fixed: Skin name was wrong when click delete skin
404
- * Fixed: Small fixes
405
-
406
- = v2.16 - 17.12.2012 =
407
- * Added: Hooks for manage images/galleries
408
-
409
- = v2.15 - 04.12.2012 =
410
- * Optimized: Code optimized
411
- * Added: Hook for bulk actions dropdown
412
- * Added: Hook after thumbnail/image created
413
- * Fixed: Small PHP and JS fixes
414
-
415
- = v2.14 - 20.11.2012 =
416
- * Fixed: swfobject path was wrong on some servers
417
-
418
- = v2.12 - 12.11.2012 =
419
- * Fixed: XSS vulnerability in swfupload
420
-
421
- = v2.11 - 03.11.2012 =
422
- * Updated: New system of checking license key
423
- * Changed: Skins update box.
424
-
425
- = v2.10 - 29.10.2012 =
426
- * Fixed: Vulnerability in shortcode function, album saving, saving skin options, facebook.php file
427
- * Fixed: Delete image will delete it from FTP
428
-
429
- = v2.00 - 22.10.2012 =
430
- * Updated: Faster loading content of gallery (update skins to new versions)
431
- * New: Easily update demo skins to full version with license key. All your settings will be in save.
432
- * Added: Remote control key for mobile application (application coming soon)
433
-
434
- = v1.90 - 15.10.2012 =
435
- * Fixed: FancyBox alternative gallery
436
- * Fixed: Scroll for alternative gallery
437
- * Changed: Alternative gallery categories bar styling
438
- * Updated: Banner Rotator Default is now responsive and have 4 themes.
439
-
440
- = v1.85 - 12.10.2012 =
441
- * Changed: new way to add preview images for video and music
442
-
443
- = v1.84 - 26.09.2012 =
444
- * Fixed: edit thumbnail not worked on some servers (Major Fix)
445
- * Fixed: gallery deep linkining
446
-
447
- = v1.83 - 12.09.2012 =
448
- * Updated: PhotoSwipe library and make it default alternative gallery
449
- * Updated: Now FlAGallery widget in mobile browser opens galleries on new page, but not in popup
450
- * Added: Backround image for GRAND Pages
451
- * Fixed: cPanel for skins options (Major FIX)
452
-
453
- = v1.82 - 20.08.2012 =
454
- * Fixed: Compatibility with other plugins that use old swfobject
455
-
456
- = v1.81 - 10.08.2012 =
457
- * Fixed: Compatibility with some other flash embed plugins
458
-
459
- = v1.80 - 25.07.2012 =
460
- * Changed: New simple way to install skins
461
-
462
- = v1.79 - 11.07.2012 =
463
- * Added: Password protection for GRAND Pages
464
- * Added: align=left|center|right parameter for shortcode
465
- * Fixed: alternate gallery for https sites
466
-
467
- = v1.78 - 25.06.2012 =
468
- * Fixed: admin CSS for Overview page
469
-
470
- = v1.77 - 16.05.2012 =
471
- * Fixed: Fancybox javascript not worked when switched between gallery category
472
- * Fixed: PhotoSwipe javascript not worked when switched between gallery category
473
- * Updated: Added hitcounter to PhotoSwipe
474
-
475
- = v1.76 - 13.05.2012 =
476
- * Fixed: Fancybox javascript not worked in v1.75
477
- * Updated: Fancybox javascript for Slider skin
478
-
479
- = v1.75 - 10.05.2012 =
480
- * Fixed: Saving Video skin settings for playlist
481
- * Fixed: jQuery conflict for some new themes
482
-
483
- = v1.74 - 25.04.2012 =
484
- * Fixed: skins delete function
485
-
486
- = v1.73 - 18.04.2012 =
487
- * Fixed: xss vulnerability (skins.php)
488
-
489
- = v1.72 - 10.04.2012 =
490
- * Added: Sort by Image views option
491
- * Added: Sort by Image likes option
492
-
493
- = v1.71 - 03.04.2012 =
494
- * Updated: Aflux Skin (added new features)
495
-
496
- = v1.71 - 27.03.2012 =
497
- * Updated: Default Skin (added view counter)
498
- * Added: widget for GRAND Pages
499
- * Fixed: JS for alternate gallery
500
-
501
- = v1.70 - 20.03.2012 =
502
- * Added: New Skin - PhotoBlog
503
- * Added: Image Views, Likes and Rating for each images (available only in PhotoBlog skin)
504
- * Fixed: CSS and JS small bugs
505
-
506
- = v1.67 - 29.02.2012 =
507
- * Added: Romanian language
508
-
509
- = v1.66 - 23.02.2012 =
510
- * Changed: FancyBox script for alternate gallery is now enabled by default.
511
- * Optimized: Optimized Photoswipe script.
512
- * Changed: Instructions for Facebook gallery page creation.
513
- * Fixed: minor bugfixes.
514
-
515
- = v1.65 - 15.02.2012 =
516
- * Added: Now you can select FancyBox or PhotoSwipe script for alternate gallery. Added option to Options page. (Default is PhotoSwipe)
517
- * Optimized: Optimized Photoswipe script for themes without mobile version.
518
- * Fixed: FlAGallery media button above Post / Page editor.
519
-
520
- = v1.64 - 07.02.2012 =
521
- * Changed: Alternate Gallery changed fancybox script to PhotoSwipe. Full touchscreen support: iPhone, iPad, Android, Blackberry 6 and Desktop all supported.
522
-
523
- = v1.63 - 24.01.2012 =
524
- * Fixed: FlAGallery button on HTML Editor panel
525
- * Added: FlAGallery Media button to Post and Page
526
- * Changes: Minor changes
527
-
528
- = v1.62 - 13.01.2012 =
529
- * Fixed: script.js file error
530
-
531
- = v1.61 - 12.01.2012 =
532
- * Fixed: Import video from folder
533
- * Fixed: Import mp3 from folder
534
- * Fixed: Fancybox script for Slider skin (now it works in Safari browser)
535
-
536
- = v1.60 - 10.01.2012 =
537
- * Added: Default skin without any branding
538
- * Added: Licenses to each skin folder
539
-
540
- = v1.59 - 21.12.2011 =
541
- * Updated: thumbnail generator script
542
- * Updated: flagshow.php file
543
-
544
- = v1.58 - 15.12.2011 =
545
- * Bugfix: Compatibility with theme's custom post templates
546
- * Bugfix: false positive xss vulnerability (flagshow.php)
547
- * Updated: Compatibility with Wordpress 3.3
548
- * Fixed: Support any language for Add Gallery field
549
-
550
- = v1.57 - 01.12.2011 =
551
- * Bugfix: Error when update from very old version
552
- * Bugfix: xss vulnerability (facebook.php)
553
- * Updated: 3D FlatWall, 3D Cube and Afflux skins compatibility with GRAND Pages
554
-
555
- = v1.56 - 23.11.2011 =
556
- * Added: Icon for GRAND Pages
557
- * Added: FlAGallery Music Widget
558
- * Added: New Music Player Skin
559
- * Fixed: Bugfix in Baner Box import function
560
- * Fixed: Music Box didn't update skin settings
561
-
562
- = v1.55 - 09.11.2011 =
563
- * Fixed: GRAND Pages permalinks
564
- * Added: Option to disable deep linking in the flash (not all skins support this feature)
565
- * Fixed: Alternative gallery
566
- * Fixed: CSS for FancyBox
567
- * Added: Alternative for Music Player Default
568
-
569
- = v1.54 - 09.11.2011 =
570
- * Added: GRAND Pages - Full Window Gallery Template
571
- * Updated: Script for Slider skin (multiple Sliders on one page)
572
-
573
- = v1.53 - 02.11.2011 =
574
- * Updated : Feedburner RSS now display bold title near image (not only description)
575
- * Added : Support for very old skins
576
-
577
- = v1.52 - 01.11.2011 =
578
- * Updated : Singleton (mini) mp3 player
579
- * Added : Autoplay for singleton (mini) mp3 player
580
- * Bugfix : Android browser support
581
-
582
- = v1.51 - 04.10.2011 =
583
- * Major Fix : Updated cPanel for skins (compatibility with Adobe Flash Player v11)
584
- * Added : RSS for FeedBurner
585
- * Added : Supported new Slider skin - FancyBox fullscreen preview
586
- * Updated : SEO optimization for serch engines
587
- * Updated : Optimization for RSS Readers (added image description)
588
- * Updated : Scripts for feature SlideShow Skin
589
-
590
- = v1.50 - 20.09.2011 =
591
- * Fixed : Widget for Banner Rotator (refresh skins)
592
- * Removed : Unnecessary links on Banner Rotator
593
-
594
- = v1.49 - 06.09.2011 =
595
- * Added : Widget for Video Playlists
596
- * Fixed : Minor Bugs
597
-
598
- = v1.48 - 30.08.2011 =
599
- * Fixed : iPhone/iPad alternative for music and video default players
600
-
601
- = v1.47 - 29.08.2011 =
602
- * Added : Support mp3 for iPhone/iPad
603
- * Added : Alternative for video and music for non-flash browsers
604
- * Added : Widget Option for fancybox size
605
- * Fixed : music and video default players
606
-
607
- = v1.45 - 23.08.2011 =
608
- * Added : Widget for Album Gallery
609
- * Added : Lithuanian language
610
- * Fixed : Minor bugs
611
-
612
- = v1.44 - 18.08.2011 =
613
- * Fixed : Widget for Banner Rotator
614
-
615
- = v1.43 - 17.08.2011 =
616
- * Added : Widget for Banner Rotator
617
- * Fixed : Change playlist options
618
- * Fixed : PHP4 Compatibility
619
-
620
- = v1.42 - 08.08.2011 =
621
- * Major Bugfix
622
- * Fixed : Banner Rotator (update skins, please)
623
-
624
- = v1.41 - 25.07.2011 =
625
- * Fixed : Bug fix for WP v3.0.*
626
- * Fixed : Photo Gallery shortcode generator in Visual Editor mode
627
- * Fixed : Banner Rotator skin for WP v3.0
628
- * Added : Ukrainian translation
629
-
630
- = v1.40 - 18.07.2011 =
631
- * Added : Video gallery playlist creation
632
- * Added : Video blog skin
633
- * Added : Banner box page to create banner rotators and 3d content galleries
634
- * Added : Banner Rotator skin
635
- * Added : Facebook link generator for Video gallery and Banner rotator
636
- * Added : Album of galleries creation
637
- * Added : Option to disable alternative jQuery gallery for iPad/iPhone
638
- * Updated : swf files for skin options, mp3 mini.swf, video_mini.swf
639
-
640
- = v1.33 - 13.07.2011 =
641
- * Major Update for FlaGallery
642
- * Fixed : Bug with music and video sorting in playlists
643
-
644
- = v1.32 - 12.07.2011 =
645
- * Fixed : Bug with Image Gallery Shortcode insertion via TinyMCE button
646
- * Updated : Video player (new version)
647
- * Updated : Wordpress v.3.2 compatibility
648
-
649
- = v1.31 - 04.07.2011 =
650
- * Added : Creating Multicategorized photo albums with galleries
651
- * Added : Options for Single MP3 Player
652
- * Fixed : Skins settings changing
653
- * Fixed : Bug with Database capitalized prefix
654
-
655
- = v1.23 - 20.06.2011 =
656
- * Added : Video Box page (list of video from WP Media Library)
657
- * Added : FLV Video Player and shortcode for it
658
- * Added : Import mp3 files from server folder to WP Media Library
659
- * Added : Import flv files from server folder to WP Media Library
660
-
661
- = v1.22 - 11.06.2011 =
662
- * Fixed : Facebook gallery template (you should copy facebook.php in the root directory again if you did it before)
663
- * Fixed : php4 compatibility
664
- * Added : Autoplay option to Music player (you should update skins)
665
- * Fixed : alternate jQuery gallery show only if no flash
666
-
667
- = v1.21 - 07.06.2011 =
668
- * Fixed : javascript for alternative jQuery gallery
669
- * Fixed : php4 unexpected T_STATIC error
670
-
671
- = v1.20 - 06.06.2011 =
672
- * Updated : Music player skin (added autoplay option)
673
- * Added : Alternate jQuery gallery for iPad, iPhone
674
- * Added : Options for alternate jQuery gallery
675
- * Added : additional javascript for flash
676
- * Changed : swfObject output for all galleries
677
- * Updated : cPanel.swf for skin optoins
678
-
679
- = v1.13 - 26.05.2011 =
680
- * Fixed : Refresh Skin button make aktive skin broken (reinstall broken skin please)
681
-
682
- = v1.12 - 24.05.2011 =
683
- * Added : Roles for Music and Facebook pages
684
- * Updated : Midnight Skin v3.0 for photo gallery
685
- * Fixed : Facebook image gallery generator javascript on Mac browsers
686
-
687
- = v1.11 - 23.05.2011 =
688
- * Added : Music gallery 'Music Box'
689
- * Added : Flash Gallery for Facebook page
690
- * Fixed : small fixes
691
-
692
- = v0.61 - 22.05.2011 =
693
- * Added : Azerbaijani translation
694
-
695
- = v0.60 - 11.04.2011 =
696
- * Fixed : Security fix in two files
697
-
698
- = v0.59 - 23.03.2011 =
699
- * Fixed : Fix for default skins - don't load empty photo galleries
700
- * Fixed : Fix for edit big thumbs
701
- * Notice : New photo gallery flash skin released today
702
-
703
- = v0.58pl1 - 19.02.2011 =
704
- * Changed : Fix for compatibility with new skin
705
- * Notice : New photo gallery flash skin released today
706
-
707
- = v0.58 - 17.02.2011 =
708
- * Changed : core files for skins swfobject
709
- * Notice : all feature photo gallery skins require plugin v0.58 or higher
710
-
711
- = v0.57 - 17.02.2011 =
712
- * Added : js for feature skin
713
- * Fixed : small fixes
714
-
715
- = v0.56 - 17.02.2011 =
716
- * Fixed : transparent and bg color for image gallery skins
717
- * Added : functionality for feature flash photo gallery skin
718
-
719
- = v0.55 - 18.01.2011 =
720
- * Removed : disablescroll.js - very buggy
721
-
722
- = v0.54 - 18.01.2011 =
723
- * Added : javascript - flash scroll without html scroll
724
- * Added : Dutch language
725
-
726
- = v0.52 - 5.10.2010 =
727
- * Added : Polish translation
728
-
729
- = v0.50 - 19.07.2010 =
730
- * Fixed : Metadata to description wrong tag
731
-
732
- = v0.49 - 28.06.2010 =
733
- * Added : Bulk action: copy image metadata to image description
734
- * Added : Russian translation
735
- * Bug fixes and CSS fixes
736
-
737
- = v0.46 - 03.05.2010 =
738
- * Added : Belorussian language
739
-
740
- = v0.45 - 22.04.2010 =
741
- * Added : WordPress MU support
742
- * Small bug fixes
743
-
744
- = v0.44 - 12.04.2010 =
745
- * Added : Turkish language
746
- * Small bug fixes
747
-
748
- = v0.43 - 28.03.2010 =
749
- * Added : More informative error messages on plugin upgrade
750
- * Bugfix : Conflicted with NGG JWPlayer
751
- * Bugfix : Help screen replaced on all admin pages
752
- * Bugfix : Wrong pager calculate
753
- * Changed : swfobject js for compability with older version of js library
754
-
755
- = v0.42 - 25.03.2010 =
756
- * Changed : Replaced all php short_open_tag from '<?=...?>' to '<?php echo ...; ?>'
757
-
758
- = v0.41 - 25.03.2010 =
759
- * Bugfix : Photo gallery Skin options didn't save colors
760
-
761
- = v0.40 - 24.03.2010 =
762
- * Change : DataBase structure
763
- * Change : Photo gallery Skin options now on skins page
764
- * Change : Skins now in separate folder outside of FlaGallery plugin folder
765
- * Added : Each image gallery skin has own color settings saved in file
766
- * Added : Hide image for unregistered users option
767
- * Added : SWFaddress for deeplinking in flash
768
- * Added : Meta data for Images
769
- * Added : Action popup for Resize image... and Create new thumbnails
770
- * Added : New Action - Import Meta data
771
- * Added : Actions on Manage Galleries page
772
- * Added : Search Images on Manage Galleries page
773
-
774
- = v0.39pl3 - 12.02.2010 =
775
- * Bugfix : Image uploader fix (Error 'no valid image')
776
- * Added : German translation
777
-
778
- = v0.39pl2 - 04.02.2010 =
779
- * Bugfix : TinyMCE button insert wrong shortcode for flash photo gallery
780
- * Bugfix : Color tab and color settings not showing
781
-
782
- = v0.39pl1 - 31.01.2010 =
783
- * Added : Portuguese translation
784
- * Added : Traditional Chinese translation
785
-
786
- = v0.39 - 25.12.2009 =
787
- * Added : Spanish translation
788
- * Bugfix : bugfixes for WP2.9
789
-
790
- = v0.38 - 08.12.2009 =
791
- * Added : Photo gallery shortcode parameters (orderby=gid | title | random, order=DESC | ASC, exclude, skin)
792
- * Added : Popup tabs for additional shortcode parameters
793
- * Added : Ability to add more flash albums in post/posts with different skins
794
- * Added : Ability set default skin colors or leave your own
795
- * Bugfix : small fixes
796
-
797
- = v0.37 - 13.11.2009 =
798
- * Added : French translation
799
- * Bugfix : Fix for GRAND FlaGallery Skin page (blank page)
800
-
801
- = v0.36 - 5.11.2009 =
802
- * Added : Italian translation
803
- * Update : Little fixes of text
804
-
805
- = v0.35 - 22.10.2009 =
806
- * Added : Confirmation popup for delete skin option
807
- * Bugfix: Fix for included skins with WP 2.7.1 and PHP 4
808
- * Update : Update for Wordpress v.2.8.5
809
-
810
- = v0.34 - 19.10.2009 =
811
- * Added : Delete skin option
812
- * Added : Capability for 'delete skin'
813
- * Bugfix : Fix for flag.ajax.js (conflict with wp-security-scan plugin)
814
-
815
- = v0.33 - 5.10.2009 =
816
- * Bugfix : Fix for skins upload
817
- * Bugfix : Fix editor buttons in IE
818
-
819
- = v0.32 - 30.09.2009 =
820
- * Added : Skin "Photo Gallery PRO 1.0 DEMO"
821
- * Bugfix : Fix for image date & time
822
- * Bugfix : Fixed html special chars in description of image
823
- * Changed : Database structure
824
-
825
- = v0.29 - 17.08.2009 =
826
- * NEW : Import images from folder
827
- * Added : Button "FlAGallery" on HTML Editor panel, even if Visual Editor is disabled
828
- * Added : International Skin to display any language in the flash
829
- * Added : Loader for News Box on Overview page
830
- * Added : To display all galleries in the album, added parameter value "all", e.g.: gid=all
831
- * Changed : Shortcode 'album' replaced with 'flagallery', becouse of conflict with NextGEN Gallery
832
- * Bugfix : Fix for Upload Images button on Overview page
833
- * Bugfix : Fixed conflict with NextGEN Gallery (creating thumbnails cause error)
834
-
835
  = Upgrade Notice =
836
  * After plugin update go to Skins page and update skins with 'Update skins' button.
837
  * 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'.
33
 
34
  **[How to add gallery to your Wordpress site](https://mypgc.co/how-to/)** - full HowTo guide.
35
 
36
+ https://www.youtube.com/watch?v=JQDD-gFiLrA
37
+
38
  For more information read **[Review, Tutorials, FAQ](https://mypgc.co/ "Grand Flagallery Home Page")** and see demos created with "Grand Flagallery" WordPress Plugin.
39
 
40
  'Custom Links' feature support in gallery skins. [See PhotoMania Skin demo](https://mypgc.co/portfolio-item/photomania/).
57
 
58
  == Changelog ==
59
 
60
+ = v5.2.1 - 07.05.2018 =
61
+ * Fixed skin options not open on some themes
62
+ * Small bug fixes
63
+ * Plugin code improvements
64
+
65
+ = v5.2.0 - 20.03.2018 =
66
+ * Plugin code improvements
67
+
68
+ = v5.1.9 - 20.02.2018 =
69
+ * Fixed Edit Thumbnail
70
+
71
  = v5.1.8 - 22.01.2018 =
72
  * Fixed Music, Video, Banner skins show only 5 items on some themes
73
  * Updated MediaElements.js library to the latest version with fixed vulnerability.
137
  - AlbumsSwitcher - premium splash gallery
138
  - PhotoCluster - premium splash gallery
139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  = Upgrade Notice =
142
  * After plugin update go to Skins page and update skins with 'Update skins' button.
143
  * 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'.
skins/phantom/init.php CHANGED
@@ -85,11 +85,6 @@ if('label' == $settings['thumbsInfo']){
85
  $item_data['views'] = $item['hitcounter'];
86
  $item_data['likes'] = $item['total_votes'];
87
 
88
- if($settings['show_download_button']){
89
- $item_data['download'] = $download_link;
90
- $item_data['filename'] = $item['filename'];
91
- }
92
-
93
  if($item['link']){
94
  $item_data['link'] = $item['link'];
95
  $item_data['target'] = $link_target;
85
  $item_data['views'] = $item['hitcounter'];
86
  $item_data['likes'] = $item['total_votes'];
87
 
 
 
 
 
 
88
  if($item['link']){
89
  $item_data['link'] = $item['link'];
90
  $item_data['target'] = $link_target;
skins/phantom/settings.php CHANGED
@@ -43,7 +43,6 @@ $default_options = array(
43
  'likesEnabled' => '1',
44
  'thumb2link' => '0',
45
  'show_title' => '1',
46
- 'show_download_button' => '1',
47
  'initRPdelay' => '200',
48
  'customCSS' => ''
49
  );
@@ -134,12 +133,6 @@ $options_tree = array(
134
  'attr' => '',
135
  'text' => ''
136
  ),
137
- 'show_download_button' => array(
138
- 'label' => __('Show Download Button', 'flash-album-gallery'),
139
- 'tag' => 'checkbox',
140
- 'attr' => '',
141
- 'text' => ''
142
- ),
143
  )
144
  ),
145
  array(
43
  'likesEnabled' => '1',
44
  'thumb2link' => '0',
45
  'show_title' => '1',
 
46
  'initRPdelay' => '200',
47
  'customCSS' => ''
48
  );
133
  'attr' => '',
134
  'text' => ''
135
  ),
 
 
 
 
 
 
136
  )
137
  ),
138
  array(