Gallery – Flagallery Photo Portfolio - Version 2.18

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

Code changes from version 2.17 to 2.18

Files changed (5) hide show
  1. admin/skin_options.php +10 -7
  2. changelog.txt +3 -0
  3. flag.php +2 -2
  4. lib/constructor.php +7 -6
  5. readme.txt +3 -0
admin/skin_options.php CHANGED
@@ -16,9 +16,10 @@ $settingsXML = $settings.'/settings.xml';
16
 
17
  $flashPost = file_get_contents("php://input");
18
  // parse properties_skin
19
- parse_str($flashPost);
20
-
21
- if(isset($properties_skin) && !empty($properties_skin)) {
 
22
  $fp = fopen($settingsXML, "r");
23
  if(!$fp) {
24
  exit( "2");//Failure - not read;
@@ -30,11 +31,13 @@ if(isset($properties_skin) && !empty($properties_skin)) {
30
  $fp = fopen($settingsXML, "w");
31
  if(!$fp)
32
  exit("0");//Failure
33
- $properties_skin = str_replace( array( '=','?','"','$' ), '', $properties_skin );
34
- $newProperties = preg_replace("|<properties>.*?</properties>|si", $properties_skin, $mainXML);
35
- fwrite($fp, $newProperties);
 
 
 
36
  fclose($fp);
37
- echo "1";//Save
38
  }
39
 
40
  if(isset($_GET['show_options'])) {
16
 
17
  $flashPost = file_get_contents("php://input");
18
  // parse properties_skin
19
+ $arr = array();
20
+ parse_str($flashPost, $arr);
21
+ $settingsXML = str_replace("\\","/", dirname(dirname(dirname(__FILE__))).'/flagallery-skins/'.$arr['skin_name'].'/settings/settings.xml');
22
+ if(isset($arr['properties_skin']) && !empty($arr['properties_skin'])) {
23
  $fp = fopen($settingsXML, "r");
24
  if(!$fp) {
25
  exit( "2");//Failure - not read;
31
  $fp = fopen($settingsXML, "w");
32
  if(!$fp)
33
  exit("0");//Failure
34
+ $arr['properties_skin'] = str_replace( array( '=','?','"','$' ), '', $arr['properties_skin'] );
35
+ $newProperties = preg_replace("|<properties>.*?</properties>|si", $arr['properties_skin'], $mainXML);
36
+ if(fwrite($fp, $newProperties))
37
+ echo "1";//Save
38
+ else
39
+ echo "0";
40
  fclose($fp);
 
41
  }
42
 
43
  if(isset($_GET['show_options'])) {
changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
 
 
 
4
  = v2.17 - 08.01.2013 =
5
  * Added: Sort images option: Randomly
6
  * Changed: Alternative gallery thumbs for not square images
1
  GRAND FlAGallery
2
  by Rattus & CodEasily DEV Team
3
 
4
+ = v2.18 - 23.01.2013 =
5
+ * Fixed: Minor fix for skin settings. Skin settings not saved on some servers.
6
+
7
  = v2.17 - 08.01.2013 =
8
  * Added: Sort images option: Randomly
9
  * Changed: Alternative gallery thumbs for not square images
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.17
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.17';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '2.8';
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.18
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
+ var $version = '2.18';
27
  var $dbversion = '1.24';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '2.8';
lib/constructor.php CHANGED
@@ -21,22 +21,23 @@ if ( !current_user_can('FlAG Change skin') )
21
 
22
  $flashPost = file_get_contents("php://input");
23
  // parse properties_skin
24
- parse_str($flashPost);
25
- $settingsXML = str_replace("\\","/", dirname(dirname(dirname(__FILE__))).'/flagallery-skins/'.$skin_name.'/settings/settings.xml');
26
-
27
- if(isset($properties_skin) && !empty($properties_skin)) {
28
  $fp = fopen($settingsXML, "r");
29
  if(!$fp) {
30
  exit( "2");//Failure - not read;
31
  }
 
32
  while(!feof($fp)) {
33
  $mainXML .= fgetc($fp);
34
  }
35
  $fp = fopen($settingsXML, "w");
36
  if(!$fp)
37
  exit("0");//Failure
38
- $properties_skin = str_replace( array( '=','?','"','$' ), '', $properties_skin );
39
- $newProperties = preg_replace("|<properties>.*?</properties>|si", $properties_skin, $mainXML);
40
  if(fwrite($fp, $newProperties))
41
  echo "1";//Save
42
  else
21
 
22
  $flashPost = file_get_contents("php://input");
23
  // parse properties_skin
24
+ $arr = array();
25
+ parse_str($flashPost, $arr);
26
+ $settingsXML = str_replace("\\","/", dirname(dirname(dirname(__FILE__))).'/flagallery-skins/'.$arr['skin_name'].'/settings/settings.xml');
27
+ if(isset($arr['properties_skin']) && !empty($arr['properties_skin'])) {
28
  $fp = fopen($settingsXML, "r");
29
  if(!$fp) {
30
  exit( "2");//Failure - not read;
31
  }
32
+ $mainXML = '';
33
  while(!feof($fp)) {
34
  $mainXML .= fgetc($fp);
35
  }
36
  $fp = fopen($settingsXML, "w");
37
  if(!$fp)
38
  exit("0");//Failure
39
+ $arr['properties_skin'] = str_replace( array( '=','?','"','$' ), '', $arr['properties_skin'] );
40
+ $newProperties = preg_replace("|<properties>.*?</properties>|si", $arr['properties_skin'], $mainXML);
41
  if(fwrite($fp, $newProperties))
42
  echo "1";//Save
43
  else
readme.txt CHANGED
@@ -41,6 +41,9 @@ Starting with version 1.70 and with new [PhotoBlog skin](http://photogallerycrea
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = v2.17 - 08.01.2013 =
45
  * Added: Sort images option: Randomly
46
  * Changed: Alternative gallery thumbs for not square images
41
 
42
  == Changelog ==
43
 
44
+ = v2.18 - 23.01.2013 =
45
+ * Fixed: Minor fix for skin settings. Skin settings not saved on some servers.
46
+
47
  = v2.17 - 08.01.2013 =
48
  * Added: Sort images option: Randomly
49
  * Changed: Alternative gallery thumbs for not square images