Gallery – Flagallery Photo Portfolio - Version 2.52

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.52
Comparing to
See all releases

Code changes from version 2.51 to 2.52

Files changed (4) hide show
  1. admin/skins.php +23 -2
  2. changelog.txt +3 -0
  3. flag.php +2 -2
  4. readme.txt +4 -1
admin/skins.php CHANGED
@@ -21,10 +21,31 @@ if( isset($_POST['installskin']) ) {
21
  }
22
  if( isset($_POST['skinzipurl']) ) {
23
  $url = $_POST['skinzipurl'];
 
24
  $mzip = download_url($url);
25
- $mzip = str_replace("\\", "/", $mzip);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- $skins_dir = $flag_options['skinsDirABS'];
28
 
29
  if( class_exists('ZipArchive') ){
30
  $zip = new ZipArchive;
21
  }
22
  if( isset($_POST['skinzipurl']) ) {
23
  $url = $_POST['skinzipurl'];
24
+ $skins_dir = $flag_options['skinsDirABS'];
25
  $mzip = download_url($url);
26
+ if(is_wp_error($mzip)){
27
+ $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)';
28
+ $filename = basename($url);
29
+ $mzip = rtrim($skins_dir,'/').'/'.$filename;
30
+ $ch = curl_init();
31
+ $fp = fopen("$mzip", "w");
32
+ curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
33
+ curl_setopt($ch, CURLOPT_URL,$url);
34
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
35
+ curl_setopt($ch, CURLOPT_HEADER,0);
36
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
37
+ curl_setopt($ch, CURLOPT_AUTOREFERER, true);
38
+ curl_setopt($ch, CURLOPT_BINARYTRANSFER,true);
39
+ curl_setopt($ch, CURLOPT_TIMEOUT, 10);
40
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
41
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
42
+ curl_setopt($ch, CURLOPT_FILE, $fp);
43
+ $data = curl_exec($ch);
44
+ curl_close($ch);
45
+ fclose($fp);
46
+ }
47
 
48
+ $mzip = str_replace("\\", "/", $mzip);
49
 
50
  if( class_exists('ZipArchive') ){
51
  $zip = new ZipArchive;
changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
 
 
 
4
  = v2.51 - 19.02.2013 =
5
  * Fixed: 'Import folder' for Banner Box
6
  * Fixed: Video preview in admin area
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
4
+ = v2.51 - 23.02.2013 =
5
+ * Fixed: Install skins on some servers failed
6
+
7
  = v2.51 - 19.02.2013 =
8
  * Fixed: 'Import folder' for Banner Box
9
  * Fixed: Video preview in admin area
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.51
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.51';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
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.52
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
+ var $version = '2.52';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === GRAND FlAGallery ===
2
  Contributors: Rattus
3
  Donate link: http://photogallerycreator.com/grand-flagallery/
4
- Tags: admin, flash, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, slider, plugin, Post, posts, slideshow, video, widget, iOS gallery, iphone gallery
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
  Stable tag: trunk
@@ -41,6 +41,9 @@ Now you can see "Views" of each photo in the gallery and visitors can "Like" ima
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = v2.51 - 19.02.2013 =
45
  * Fixed: 'Import folder' for Banner Box
46
  * Fixed: Video preview in admin area
1
  === GRAND FlAGallery ===
2
  Contributors: Rattus
3
  Donate link: http://photogallerycreator.com/grand-flagallery/
4
+ Tags: admin, flash, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, slider, plugin, Post, posts, slideshow, video, widget, iOS gallery, iphone gallery, best gallery
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
  Stable tag: trunk
41
 
42
  == Changelog ==
43
 
44
+ = v2.51 - 23.02.2013 =
45
+ * Fixed: Install skins on some servers failed
46
+
47
  = v2.51 - 19.02.2013 =
48
  * Fixed: 'Import folder' for Banner Box
49
  * Fixed: Video preview in admin area