Gallery – Flagallery Photo Portfolio - Version 4.12

Version Description

Download this release

Release Info

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

Code changes from version 4.00 to 4.12

admin/admin.php CHANGED
@@ -25,13 +25,17 @@ class flagAdminPanel{
25
  require_once(dirname (__FILE__) . '/flag_install.php' );
26
  $default_options = flag_list_options();
27
  $flag_db_options = get_option('flag_options');
28
- if(function_exists('array_diff_key')) {
29
- $flag_new_options = array_diff_key($default_options, $flag_db_options);
30
- } else {
31
- $flag_new_options = $this->PHP4_array_diff_key($default_options, $flag_db_options);
 
 
 
 
 
 
32
  }
33
- $flag_options = array_merge($flag_db_options, $flag_new_options);
34
- update_option('flag_options', $flag_options);
35
  }
36
 
37
  function PHP4_array_diff_key() {
25
  require_once(dirname (__FILE__) . '/flag_install.php' );
26
  $default_options = flag_list_options();
27
  $flag_db_options = get_option('flag_options');
28
+ if($flag_db_options){
29
+ if(function_exists('array_diff_key')) {
30
+ $flag_new_options = array_diff_key($default_options, $flag_db_options);
31
+ } else {
32
+ $flag_new_options = $this->PHP4_array_diff_key($default_options, $flag_db_options);
33
+ }
34
+ $flag_options = array_merge($flag_db_options, $flag_new_options);
35
+ update_option('flag_options', $flag_options);
36
+ } else{
37
+ update_option('flag_options', $default_options);
38
  }
 
 
39
  }
40
 
41
  function PHP4_array_diff_key() {
admin/functions.php CHANGED
@@ -111,7 +111,10 @@ class flagAdmin{
111
  if ($result) {
112
  if ($output) flagGallery::show_error( _n( 'Gallery', 'Galleries', 1, 'flag' ) .' <strong>' . $galleryname . '</strong> '.__('already exists', 'flag'));
113
  return true;
114
- } else {
 
 
 
115
  $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->flaggallery (name, path, title, galdesc, author, status) VALUES (%s, %s, %s, %s, %s, %d)", $galleryname, $flagpath, $gallerytitle, $description, $user_ID, $status) );
116
  // and give me the new id
117
  $gallery_id = (int) $wpdb->insert_id;
111
  if ($result) {
112
  if ($output) flagGallery::show_error( _n( 'Gallery', 'Galleries', 1, 'flag' ) .' <strong>' . $galleryname . '</strong> '.__('already exists', 'flag'));
113
  return true;
114
+ } else {
115
+ if(empty($user_ID)){
116
+ $user_ID = $wpdb->get_var("SELECT ID FROM $wpdb->users ORDER BY ID");
117
+ }
118
  $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->flaggallery (name, path, title, galdesc, author, status) VALUES (%s, %s, %s, %s, %s, %d)", $galleryname, $flagpath, $gallerytitle, $description, $user_ID, $status) );
119
  // and give me the new id
120
  $gallery_id = (int) $wpdb->insert_id;
admin/jgallery.php CHANGED
@@ -133,7 +133,7 @@ foreach ( $gID as $galID ) {
133
  } else {
134
  $views_panel = '';
135
  }
136
- $xml['alt'] .= '<a class="i'. $j++ .' flag_pic_alt" href="'.$siteurl.'/'.$thegalleries['path'].$webview.'/'.$picture['filename'].'" id="flag_pic_'.$pid.'" title="'.esc_attr(strip_tags(htmlspecialchars_decode($picture['alttext']))).'">[img src='.$siteurl.'/'.$thegalleries['path'].'/thumbs/thumbs_'.$picture['filename'].']'.$views_panel.'<span class="flag_pic_desc" id="flag_desc_'.$pid.'"><strong>'.$picture['alttext'].'</strong><br /><span>'.$picture['description'].'</span></span></a>';
137
  }
138
  }
139
  $xml['alt'] .= '</div>';
133
  } else {
134
  $views_panel = '';
135
  }
136
+ $xml['alt'] .= '<a class="i' . $j++ . ' flag_pic_alt" href="' . $siteurl . '/' . $thegalleries['path'] . $webview . '/' . $picture['filename'] . '" id="flag_pic_' . $pid . '" title="' . esc_attr(strip_tags(htmlspecialchars_decode($picture['alttext']))) . '">[img src=' . $siteurl . '/' . $thegalleries['path'] . '/thumbs/thumbs_' . $picture['filename'] . ']' . $views_panel . '<span class="flag_pic_desc" id="flag_desc_' . $pid . '"><strong>' . $picture['alttext'] . '</strong><br /><span>' . nl2br($picture['description']) . '</span></span></a>';
137
  }
138
  }
139
  $xml['alt'] .= '</div>';
admin/manage-images.php CHANGED
@@ -286,6 +286,7 @@ jQuery(document).ready( function() {
286
  <option value="copy_meta" ><?php _e("Metadata to description",'flag')?></option>
287
  <option value="copy_to" ><?php _e("Copy to...",'flag')?></option>
288
  <option value="move_to"><?php _e("Move to...",'flag')?></option>
 
289
  <?php do_action('flag_manage_images_bulkaction'); ?>
290
  </select>
291
  <input class="button-secondary alignleft" style="margin-right:10px;" type="submit" name="showThickbox" value="<?php _e("OK",'flag')?>" onclick="if ( !checkSelected() ) return false;" />
286
  <option value="copy_meta" ><?php _e("Metadata to description",'flag')?></option>
287
  <option value="copy_to" ><?php _e("Copy to...",'flag')?></option>
288
  <option value="move_to"><?php _e("Move to...",'flag')?></option>
289
+ <option value="reset_counters"><?php _e("Reset Views & Likes counters", 'flag') ?></option>
290
  <?php do_action('flag_manage_images_bulkaction'); ?>
291
  </select>
292
  <input class="button-secondary alignleft" style="margin-right:10px;" type="submit" name="showThickbox" value="<?php _e("OK",'flag')?>" onclick="if ( !checkSelected() ) return false;" />
admin/manage.php CHANGED
@@ -283,6 +283,15 @@ class flagManageGallery {
283
  case 'webview_images':
284
  flagAdmin::do_ajax_operation( 'webview_image' , $_POST['doaction'], __('Creating images optimized for web','flag') );
285
  break;
 
 
 
 
 
 
 
 
 
286
  }
287
  }
288
 
@@ -384,14 +393,14 @@ class flagManageGallery {
384
 
385
  if ( is_array($description) ) {
386
  foreach( $description as $key => $value ) {
387
- $desc = $wpdb->escape($value);
388
  $key =intval($key);
389
  $wpdb->query( "UPDATE $wpdb->flagpictures SET description = '$desc' WHERE pid = $key");
390
  }
391
  }
392
  if ( is_array($alttext) ){
393
  foreach( $alttext as $key => $value ) {
394
- $alttext = $wpdb->escape($value);
395
  $key =intval($key);
396
  $wpdb->query( "UPDATE $wpdb->flagpictures SET alttext = '$alttext' WHERE pid = $key");
397
  }
@@ -401,7 +410,7 @@ class flagManageGallery {
401
  if (!empty($value) && parse_url($value, PHP_URL_SCHEME) === null) {
402
  $value = 'http://'.$value;
403
  }
404
- $link = $wpdb->escape($value);
405
  $key =intval($key);
406
  $wpdb->query( "UPDATE $wpdb->flagpictures SET link = '$link' WHERE pid = $key");
407
  }
283
  case 'webview_images':
284
  flagAdmin::do_ajax_operation( 'webview_image' , $_POST['doaction'], __('Creating images optimized for web','flag') );
285
  break;
286
+ case 'reset_counters':
287
+ if(is_array($_POST['doaction'])){
288
+ $images = $flagdb->find_images_in_list($_POST['doaction']);
289
+ foreach($images as $image){
290
+ $img_id = $image->pid;
291
+ $wpdb->query("UPDATE $wpdb->flagpictures SET hitcounter = '0', total_votes = '0' WHERE pid = $img_id");
292
+ }
293
+ }
294
+ break;
295
  }
296
  }
297
 
393
 
394
  if ( is_array($description) ) {
395
  foreach( $description as $key => $value ) {
396
+ $desc = esc_sql($value);
397
  $key =intval($key);
398
  $wpdb->query( "UPDATE $wpdb->flagpictures SET description = '$desc' WHERE pid = $key");
399
  }
400
  }
401
  if ( is_array($alttext) ){
402
  foreach( $alttext as $key => $value ) {
403
+ $alttext = esc_sql($value);
404
  $key =intval($key);
405
  $wpdb->query( "UPDATE $wpdb->flagpictures SET alttext = '$alttext' WHERE pid = $key");
406
  }
410
  if (!empty($value) && parse_url($value, PHP_URL_SCHEME) === null) {
411
  $value = 'http://'.$value;
412
  }
413
+ $link = esc_sql($value);
414
  $key =intval($key);
415
  $wpdb->query( "UPDATE $wpdb->flagpictures SET link = '$link' WHERE pid = $key");
416
  }
admin/settings.php CHANGED
@@ -324,35 +324,36 @@ jQuery(document).ready(function() {
324
  </tr>
325
  <tr>
326
  <th valign="top" width="200"><?php _e('Remote App Access Key','flag'); ?>:</th>
327
- <td valign="top"><input type="text" size="40" id="access_key" name="access_key" value="<?php echo $flag_options['access_key']?>" /><br>
328
- <small><?php _e('Leave blank to disable access from application', 'flag'); ?></small></td>
 
329
  </tr>
330
  </table>
331
  <p><a href="https://itunes.apple.com/us/app/mypgc/id663405181?ls=1&mt=8"><img src="<?php echo plugins_url() . '/' . FLAGFOLDER; ?>/admin/images/appstore_button.png" alt="Download from AppStore" /></a></p>
332
  <div class="submit"><input class="button-primary" type="submit" name="membership" value="<?php _e('Update Settings for Remote Access', 'flag'); ?>"/></div>
333
  </form>
334
- <?php if($regform || empty($flag_options['access_key'])){ ?>
335
- <form name="reg_on_mypgc" method="post" style="float: left; border: 1px solid #666666; background-color: #ffffee; margin-top: 95px; width: 49%;">
336
- <?php wp_nonce_field('flag_settings'); ?>
337
- <h3 style="padding-left: 10px;"><?php _e('Register with form below or <a href="http://mypgc.co/membership/" target="_blank">purchase license key</a>','flag'); ?></h3>
338
- <div style="padding:0 10px;">
339
- <p><?php _e("this email and password that you'll receive will be used to login in iOS application",'flag'); ?></p>
340
- <p><?php _e("Note: if you already purchased license key you don't need register again.",'flag'); ?></p>
341
- </div>
342
- <input type="hidden" name="access_key" value="<?php echo $flag_options['access_key']?>" />
343
- <input type="hidden" name="access_url" value="<?php echo plugins_url() . '/' . FLAGFOLDER . '/lib/app.php'; ?>" />
344
- <table class="form-table" style="100%;">
345
- <tr>
346
- <td valign="top" style="width: 50%;"><?php _e('First Name', 'flag') ?>:<br><input type="text" id="customer_first_name" name="customer_first_name" value="" style="width: 95%;" /></td>
347
- <td valign="top"><?php _e('Last Name', 'flag') ?>:<br><input type="text" id="customer_last_name" name="customer_last_name" value="" style="width: 95%;" /></td>
348
- </tr>
349
- <tr>
350
- <td valign="top"><?php _e('Email', 'flag') ?>:<br><input type="text" size="54" id="customer_email" name="customer_email" value="" style="width: 95%;" /></td>
351
- <td valign="top"><div class="submit"><input class="button-primary" type="submit" name="register_subscriber" value="<?php _e('Register', 'flag'); ?>"/></div></td>
352
- </tr>
353
- </table>
354
- </form>
355
- <?php } ?>
356
  <div style="clear: both;"> </div>
357
  </div>
358
  <?php } ?>
324
  </tr>
325
  <tr>
326
  <th valign="top" width="200"><?php _e('Remote App Access Key','flag'); ?>:</th>
327
+ <td valign="top"><input type="text" size="40" id="access_key" name="access_key" value="<?php echo $flag_options['access_key']?>" />
328
+ <button type="button" onclick="jQuery('#flag_register_form').toggle();"><?php _e('Register free account Form', 'flag') ?></button>
329
+ <br><small><?php _e('Leave blank to disable access from application', 'flag'); ?></small></td>
330
  </tr>
331
  </table>
332
  <p><a href="https://itunes.apple.com/us/app/mypgc/id663405181?ls=1&mt=8"><img src="<?php echo plugins_url() . '/' . FLAGFOLDER; ?>/admin/images/appstore_button.png" alt="Download from AppStore" /></a></p>
333
  <div class="submit"><input class="button-primary" type="submit" name="membership" value="<?php _e('Update Settings for Remote Access', 'flag'); ?>"/></div>
334
  </form>
335
+
336
+ <form id="flag_register_form" name="reg_on_mypgc" method="post" style="<?php if(!$regform || !empty($flag_options['access_key'])){ ?>display:none;<?php } ?> float: left; border: 1px solid #666666; background-color: #ffffee; margin-top: 95px; width: 49%;">
337
+ <?php wp_nonce_field('flag_settings'); ?>
338
+ <h3 style="padding-left: 10px;"><?php _e('Register with form below or <a href="http://mypgc.co/membership/" target="_blank">purchase license key</a>','flag'); ?></h3>
339
+ <div style="padding:0 10px;">
340
+ <p><?php _e("this email and password that you'll receive will be used to login in iOS application",'flag'); ?></p>
341
+ <p><b><?php _e("Note: if you already purchased license key or already registered this website you don't need register again. Just create your own Access Key and Save",'flag'); ?></b></p>
342
+ </div>
343
+ <input type="hidden" name="access_key" value="<?php echo $flag_options['access_key']?>" />
344
+ <input type="hidden" name="access_url" value="<?php echo plugins_url() . '/' . FLAGFOLDER . '/lib/app.php'; ?>" />
345
+ <table class="form-table" style="100%;">
346
+ <tr>
347
+ <td valign="top" style="width: 50%;"><?php _e('First Name', 'flag') ?>:<br><input type="text" id="customer_first_name" name="customer_first_name" value="" style="width: 95%;" /></td>
348
+ <td valign="top"><?php _e('Last Name', 'flag') ?>:<br><input type="text" id="customer_last_name" name="customer_last_name" value="" style="width: 95%;" /></td>
349
+ </tr>
350
+ <tr>
351
+ <td valign="top"><?php _e('Email', 'flag') ?>:<br><input type="text" size="54" id="customer_email" name="customer_email" value="" style="width: 95%;" /></td>
352
+ <td valign="top"><div class="submit"><input class="button-primary" type="submit" name="register_subscriber" value="<?php _e('Register', 'flag'); ?>"/></div></td>
353
+ </tr>
354
+ </table>
355
+ </form>
356
+
357
  <div style="clear: both;"> </div>
358
  </div>
359
  <?php } ?>
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: 4.00
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 = '4.00';
27
  var $dbversion = '2.75';
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: 4.12
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
+ var $version = '4.12';
27
  var $dbversion = '2.75';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
lib/app.php CHANGED
@@ -49,7 +49,7 @@ if(isset($_REQUEST['account'])){
49
  $exclude = intval($account->exclude);
50
  $location = esc_sql($account->location);
51
 
52
- $wpdb->query( "INSERT INTO `{$wpdb->flagpictures}` (`galleryid`, `filename`, `alttext`, `description`, `exclude`, `location`) VALUES ('$gid', '$filename', '$alttext', '$description', '$exclude', '$location')" );
53
 
54
  // and give me the new id
55
  $pic_id = (int) $wpdb->insert_id;
@@ -91,7 +91,7 @@ if(isset($_REQUEST['account'])){
91
  $exclude = intval($account->exclude);
92
  $location = esc_sql($account->location);
93
 
94
- $wpdb->query( "INSERT INTO `{$wpdb->flagpictures}` (`galleryid`, `filename`, `alttext`, `description`, `exclude`, `location`) VALUES ('$gid', '$filename', '$alttext', '$description', '$exclude', '$location')" );
95
 
96
  // and give me the new id
97
  $pic_id = (int) $wpdb->insert_id;
@@ -106,7 +106,6 @@ if(isset($_REQUEST['account'])){
106
 
107
  $thumb = flagAdmin::create_thumbnail($pic_id);
108
  if($thumb != '1') {
109
- fclose( $out );
110
  die('{"status":"thumb_error: '.$thumb.'"}');
111
  }
112
 
49
  $exclude = intval($account->exclude);
50
  $location = esc_sql($account->location);
51
 
52
+ $wpdb->query("INSERT INTO {$wpdb->flagpictures} (galleryid, filename, alttext, description, exclude, location) VALUES ('$gid', '$filename', '$alttext', '$description', '$exclude', '$location')");
53
 
54
  // and give me the new id
55
  $pic_id = (int) $wpdb->insert_id;
91
  $exclude = intval($account->exclude);
92
  $location = esc_sql($account->location);
93
 
94
+ $wpdb->query("INSERT INTO {$wpdb->flagpictures} (galleryid, filename, alttext, description, exclude, location) VALUES ('$gid', '$filename', '$alttext', '$description', '$exclude', '$location')");
95
 
96
  // and give me the new id
97
  $pic_id = (int) $wpdb->insert_id;
106
 
107
  $thumb = flagAdmin::create_thumbnail($pic_id);
108
  if($thumb != '1') {
 
109
  die('{"status":"thumb_error: '.$thumb.'"}');
110
  }
111
 
lib/class.swfobject.php CHANGED
@@ -27,11 +27,12 @@ class flag_swfobject {
27
  * @param array|bool $flashvars (optional) specifies your flashvars with name:value pairs
28
  * @param array|bool $params (optional) specifies your nested object element params with name:value pair
29
  * @param array|bool $attributes (optional) specifies your object's attributes with name:value pairs
 
30
  *
31
  * @return string the content
32
  */
33
- function flag_swfobject( $swfUrl, $id, $width, $height, $version, $expressInstallSwfurl = false, $flashvars = false, $params = false, $attributes = false ) {
34
-
35
  global $swfCounter;
36
 
37
  // look for a other swfobject instance
@@ -48,7 +49,13 @@ class flag_swfobject {
48
 
49
  $this->embedSWF = 'if(jQuery.isFunction(swfobject.switchOffAutoHideShow)){ swfobject.switchOffAutoHideShow(); }';
50
  $this->embedSWF .= 'swfobject.embedSWF("'. $swfUrl .'", "'. $this->id .'", "'. $width .'", "'. $height .'", "'. $version .'", "'. $expressInstallSwfurl .'", this.flashvars, this.params , this.attr );';
51
- $this->embedSWF .= 'swfobject.createCSS("#'. $id . '","outline:none");';
 
 
 
 
 
 
52
  }
53
 
54
  function output ($alternate = '') {
27
  * @param array|bool $flashvars (optional) specifies your flashvars with name:value pairs
28
  * @param array|bool $params (optional) specifies your nested object element params with name:value pair
29
  * @param array|bool $attributes (optional) specifies your object's attributes with name:value pairs
30
+ * @param bool $gallery
31
  *
32
  * @return string the content
33
  */
34
+ function flag_swfobject($swfUrl, $id, $width, $height, $version, $expressInstallSwfurl = false, $flashvars = false, $params = false, $attributes = false, $gallery = false){
35
+
36
  global $swfCounter;
37
 
38
  // look for a other swfobject instance
49
 
50
  $this->embedSWF = 'if(jQuery.isFunction(swfobject.switchOffAutoHideShow)){ swfobject.switchOffAutoHideShow(); }';
51
  $this->embedSWF .= 'swfobject.embedSWF("'. $swfUrl .'", "'. $this->id .'", "'. $width .'", "'. $height .'", "'. $version .'", "'. $expressInstallSwfurl .'", this.flashvars, this.params , this.attr );';
52
+ if($gallery){
53
+ $this->embedSWF .= 'swfobject.createCSS("#' . $id . '","outline:none;width:100%;height:100%;");';
54
+ } else{
55
+ $width_css = strpos($width, '%')? '' : 'width:' . $width . 'px;';
56
+ $height_css = strpos($height, '%')? '' : 'height:' . $height . 'px;';
57
+ $this->embedSWF .= 'swfobject.createCSS("#' . $id . '","outline:none;' . $height_css . $width_css . '");';
58
+ }
59
  }
60
 
61
  function output ($alternate = '') {
lib/core.php CHANGED
@@ -369,10 +369,12 @@ class flagGallery {
369
  $postmeta = get_post_meta($item_id, 'thumbnail', true);
370
  $postlink = get_post_meta($item_id, 'link', true);
371
  $postpreview = get_post_meta($item_id, 'preview', true);
372
- if ( isset($item['post_content']) )
373
- $post['post_content'] = $wpdb->escape($item['post_content']);
374
- if ( isset($item['post_title']) )
375
- $post['post_title'] = $wpdb->escape($item['post_title']);
 
 
376
 
377
  $post = apply_filters('attachment_fields_to_save', $post, $item);
378
 
369
  $postmeta = get_post_meta($item_id, 'thumbnail', true);
370
  $postlink = get_post_meta($item_id, 'link', true);
371
  $postpreview = get_post_meta($item_id, 'preview', true);
372
+ if(isset($item['post_content'])){
373
+ $post['post_content'] = esc_sql($item['post_content']);
374
+ }
375
+ if(isset($item['post_title'])){
376
+ $post['post_title'] = esc_sql($item['post_title']);
377
+ }
378
 
379
  $post = apply_filters('attachment_fields_to_save', $post, $item);
380
 
lib/hitcounter.php CHANGED
@@ -4,10 +4,10 @@
4
  if ( empty( $_SERVER['HTTP_REFERER'] ) ) {
5
  die('0');
6
  } else {
7
- $ref = $_SERVER['HTTP_REFERER'];
8
- if ( false === strpos( $ref, get_home_url() ) ) {
9
- $homeUrl = get_home_url();
10
- echo 'referer:'.$_SERVER['HTTP_REFERER']."\n";
11
  echo 'homeUrl:'.$homeUrl."\n";
12
  die('-1');
13
  }
4
  if ( empty( $_SERVER['HTTP_REFERER'] ) ) {
5
  die('0');
6
  } else {
7
+ $homeUrl = strtolower(get_home_url());
8
+ $ref = strtolower($_SERVER['HTTP_REFERER']);
9
+ if ( false === strpos( $ref, $homeUrl ) ) {
10
+ echo 'referer:'.$ref."\n";
11
  echo 'homeUrl:'.$homeUrl."\n";
12
  die('-1');
13
  }
lib/swfobject.php CHANGED
@@ -106,7 +106,7 @@ function flagShowFlashAlbum($galleryID, $name='Gallery', $width='', $height='',
106
  $height = 'auto';
107
  // init the flash output
108
  require_once ( dirname(__FILE__) . '/class.swfobject.php' );
109
- $swfobject = new flag_swfobject( plugins_url('flagallery-skins/'.$skin.'/gallery.swf') , $skinID, '100%', '100%', '10.1.52', plugins_url('/skins/expressInstall.swf', dirname(__FILE__)));
110
 
111
  $swfobject->add_params('wmode', $wmode);
112
  $swfobject->add_params('allowfullscreen', 'true');
106
  $height = 'auto';
107
  // init the flash output
108
  require_once ( dirname(__FILE__) . '/class.swfobject.php' );
109
+ $swfobject = new flag_swfobject(plugins_url('flagallery-skins/' . $skin . '/gallery.swf'), $skinID, '100%', '100%', '10.1.52', plugins_url('/skins/expressInstall.swf', dirname(__FILE__)), false, false, false, true);
110
 
111
  $swfobject->add_params('wmode', $wmode);
112
  $swfobject->add_params('allowfullscreen', 'true');
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
- === Grand Flagallery - Photo Gallery Plugin ===
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, slideshow, video, widget, iphone gallery, best gallery, portfolio, banner rotator
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
  Stable tag: trunk
@@ -10,9 +10,9 @@ Photo Gallery, Video Gallery, Music Album & Banner Rotator plugin with powerfull
10
 
11
  == Description ==
12
 
13
- Grand Flagallery - powerfull media gallery content plugin. Easy interface for handling photos, image galleries, audio and video galleries.
14
 
15
- > Now You can upload and manage your images and photo galleries, anywhere.
16
  > Download new **[application for iPhone](http://mypgc.co/ios-app/)**
17
 
18
  With this gallery plugin you can easy upload images, create music and video playlists, create photo gallery, group pictures in photo slideshow and add descriptions for each image, mp3 or video - Grand Flagallery is the smart choice when showing the best of your product or describing in brief any event. Grand Flagallery can easily beautify your site with **photo gallery, mp3 player, video player, banner rotator, nivo slider or nice slideshow widgets**. SEO optimized, compatibility with Google Reader, FeedBerner, etc.
@@ -50,6 +50,16 @@ Now you can see "Views" of each photo in the gallery and visitors can "Like" ima
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
 
 
 
 
53
  = v4.00 - 17.01.2014 =
54
  * added ability to set thumb size while upload
55
  * added optimized image size for mobile devices
1
+ === Grand Flagallery - Photo Gallery Plugin ===
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, photo gallery, slider, plugin, slideshow, video, widget, iphone gallery, best gallery, portfolio, banner rotator
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
  Stable tag: trunk
10
 
11
  == Description ==
12
 
13
+ Grand Flagallery - powerfull media and image gallery plugin. Easy interface for handling photos, image galleries, audio and video galleries.
14
 
15
+ > Now You can upload and manage your images and photo galleries, anywhere
16
  > Download new **[application for iPhone](http://mypgc.co/ios-app/)**
17
 
18
  With this gallery plugin you can easy upload images, create music and video playlists, create photo gallery, group pictures in photo slideshow and add descriptions for each image, mp3 or video - Grand Flagallery is the smart choice when showing the best of your product or describing in brief any event. Grand Flagallery can easily beautify your site with **photo gallery, mp3 player, video player, banner rotator, nivo slider or nice slideshow widgets**. SEO optimized, compatibility with Google Reader, FeedBerner, etc.
50
 
51
  == Changelog ==
52
 
53
+ = v4.12 - 26.03.2014 =
54
+ * fix for video galleries and banners
55
+ * optimization for some themes
56
+ * added new action: Reset Views & Likes Counters
57
+
58
+ = v4.10 - 11.02.2014 =
59
+ * optimization for new iOS app
60
+ * fixed hitcounter.php on some servers
61
+ * small changes and improvements
62
+
63
  = v4.00 - 17.01.2014 =
64
  * added ability to set thumb size while upload
65
  * added optimized image size for mobile devices