Changeset 3371390
- Timestamp:
- 10/01/2025 07:26:32 PM (6 months ago)
- Location:
- grand-media/trunk
- Files:
-
- 11 edited
-
. (modified) (1 prop)
-
admin/ajax.php (modified) (3 diffs)
-
admin/assets/js/gmedia.admin.js (modified) (1 diff)
-
admin/processor/class.processor.library.php (modified) (1 diff)
-
config.php (modified) (1 diff)
-
grand-media.php (modified) (2 diffs)
-
inc/core.php (modified) (1 diff)
-
module (modified) (1 prop)
-
module/jq-mplayer/index.php (modified) (1 diff)
-
module/jq-mplayer/js/gm-music-player.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grand-media/trunk
- Property svn:ignore
-
old new 3 3 temp.php 4 4 .gitignore 5 current_state.md
-
- Property svn:ignore
-
grand-media/trunk/admin/ajax.php
r2895405 r3371390 2427 2427 global $gmDB, $gmCore; 2428 2428 2429 // $nonce_valid = false; 2430 // if ( isset( $_REQUEST['_ajax_nonce'] ) ) { 2431 // $nonce_valid = (bool) check_ajax_referer( 'GmediaGallery', '_ajax_nonce', false ); 2432 // } 2433 // if ( ! $nonce_valid && isset( $_REQUEST['nonce'] ) ) { 2434 // $nonce_valid = (bool) check_ajax_referer( 'GmediaGallery', 'nonce', false ); 2435 // } 2436 // if ( ! $nonce_valid ) { 2437 // wp_send_json_error( array( 'code' => 'invalid_nonce' ), 403 ); 2438 // } 2439 2429 2440 $referer = isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : ''; 2430 2441 $protocol = isset( $_SERVER['SERVER_PROTOCOL'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_PROTOCOL'] ) ) : ''; … … 2463 2474 $gmRate = $gmCore->_post( 'rate' ); 2464 2475 if ( $gmRate ) { 2465 /** 2466 * @var $uip 2467 * @var $gmid 2468 * @var $rate 2469 */ 2476 $gmRate = wp_parse_args( (array) $gmRate, array( 'uip' => '', 'gmid' => 0, 'rate' => 0 ) ); 2470 2477 extract( $gmRate, EXTR_OVERWRITE ); 2471 2478 if ( ! intval( $gmid ) || ( null === $gmDB->get_gmedia( $gmid ) ) ) { … … 2537 2544 global $gmDB, $gmProcessor, $gmGallery, $gm_allowed_tags; 2538 2545 2546 // $nonce_valid = false; 2547 // if ( isset( $_REQUEST['_ajax_nonce'] ) ) { 2548 // $nonce_valid = (bool) check_ajax_referer( 'GmediaGallery', '_ajax_nonce', false ); 2549 // } 2550 // if ( ! $nonce_valid && isset( $_REQUEST['nonce'] ) ) { 2551 // $nonce_valid = (bool) check_ajax_referer( 'GmediaGallery', 'nonce', false ); 2552 // } 2553 // if ( ! $nonce_valid ) { 2554 // wp_send_json_error( array( 'code' => 'invalid_nonce' ), 403 ); 2555 // } 2556 2539 2557 /** @var $gmProcessorLibrary */ 2540 2558 include_once GMEDIA_ABSPATH . 'admin/processor/class.processor.library.php'; -
grand-media/trunk/admin/assets/js/gmedia.admin.js
r2895405 r3371390 1298 1298 if ( getData.length ) { 1299 1299 jQuery.get( ajaxurl, 1300 {action: 'gmedia_get_data', gmedia__in: getData}, 1300 { 1301 action: 'gmedia_get_data', 1302 nonce: (window.GmediaGallery && GmediaGallery.nonce) ? GmediaGallery.nonce : '', 1303 gmedia__in: getData 1304 }, 1301 1305 function( data, textStatus, jqXHR ) { 1302 1306 if ( jQuery.isArray( data ) && data.length ) { -
grand-media/trunk/admin/processor/class.processor.library.php
r2737116 r3371390 839 839 $args['author__in'] = parent::filter_by_author( $gmCore->_get( 'author__in', $gmCore->_get( 'author' ) ) ); 840 840 $args['alb'] = $gmCore->_get( 'alb' ); 841 $args['album__in'] = $gmCore->_get( 'album__in');842 $args['album__not_in'] = $gmCore->_get( 'album__not_in');843 $args['tag_id'] = $gmCore->_get( 'tag_id' );844 $args['tag__in'] = $gmCore->_get( 'tag__in');845 $args['tag__and'] = $gmCore->_get( 'tag__and');846 $args['tag__not_in'] = $gmCore->_get( 'tag__not_in');847 $args['cat'] = $gmCore->_get( 'cat' );848 $args['category__in'] = $gmCore->_get( 'category__in');849 $args['category__not_in'] = $gmCore->_get( 'category__not_in');850 $args['category__and'] = $gmCore->_get( 'category__and');841 $args['album__in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'album__in' ) ) ); 842 $args['album__not_in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'album__not_in' ) ) ); 843 $args['tag_id'] = (int) $gmCore->_get( 'tag_id' ); 844 $args['tag__in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'tag__in' ) ) ); 845 $args['tag__and'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'tag__and' ) ) ); 846 $args['tag__not_in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'tag__not_in' ) ) ); 847 $args['cat'] = (int) $gmCore->_get( 'cat' ); 848 $args['category__in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'category__in' ) ) ); 849 $args['category__not_in'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'category__not_in' ) ) ); 850 $args['category__and'] = array_filter( array_map( 'intval', (array) $gmCore->_get( 'category__and' ) ) ); 851 851 $args['gmedia__in'] = $gmCore->_get( 'gmedia__in' ); 852 852 $args['s'] = $gmCore->_get( 's' ); -
grand-media/trunk/config.php
r2280337 r3371390 11 11 define( 'GMEDIA_ABSPATH', plugin_dir_path( __FILE__ ) ); 12 12 13 define( 'GMEDIA_GALLERY_EMPTY', __( 'No Supported Files in Gallery', 'grand-media' ));13 define( 'GMEDIA_GALLERY_EMPTY', 'No Supported Files in Gallery' ); -
grand-media/trunk/grand-media.php
r3060147 r3371390 4 4 * Plugin URI: http://wordpress.org/extend/plugins/grand-media/ 5 5 * Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files. 6 * Version: 1.2 3.06 * Version: 1.24.0 7 7 * Author: Rattus 8 8 * Author URI: https://codeasily.com/ … … 40 40 class Gmedia { 41 41 42 public $version = '1.2 3.0';42 public $version = '1.24.0'; 43 43 public $dbversion = '1.8.0'; 44 44 public $minium_WP = '5.3'; -
grand-media/trunk/inc/core.php
r2895405 r3371390 417 417 global $gmGallery; 418 418 if ( empty( $module_name ) ) { 419 return false; 420 } 421 422 if ( ! preg_match( '/^[A-Za-z0-9_-]+$/', $module_name ) ) { 419 423 return false; 420 424 } -
grand-media/trunk/module
- Property svn:ignore
-
old new 77 77 phantom 78 78 photomania 79 phantom-pro.zip 80 cubik-lite.zip
-
- Property svn:ignore
-
grand-media/trunk/module/jq-mplayer/index.php
r2737116 r3371390 4 4 'name' => 'jq-mplayer', 5 5 'title' => 'jQ Music Player', 6 'version' => '2. 13',6 'version' => '2.23', 7 7 'author' => 'CodEasily.com', 8 8 'description' => __( 'This beautiful audio player is totally written in JQuery and HTML5 + visitors can set rating for each track', 'grand-media' ), -
grand-media/trunk/module/jq-mplayer/js/gm-music-player.js
r1985348 r3371390 381 381 var gmid = myPlaylist[index].id, 382 382 uip = userOptions.ip; 383 $.post(options.ajaxurl, {action: 'gmedia_module_interaction', rate: {uip: uip, gmid: gmid, rate: rating}}, function (r) {383 $.post(options.ajaxurl, {action: 'gmedia_module_interaction', nonce: (GmediaGallery && GmediaGallery.nonce) ? GmediaGallery.nonce : '', rate: {uip: uip, gmid: gmid, rate: rating}}, function (r) { 384 384 //console.log(r); 385 385 }); -
grand-media/trunk/readme.txt
r3060147 r3371390 4 4 Tags: best gallery plugin, gallery, image gallery, photo gallery, wordpress gallery plugin 5 5 Requires at least: 5.3.0 6 Tested up to: 6. 57 Requires PHP: 5. 48 Stable tag: /trunk6 Tested up to: 6.8 7 Requires PHP: 5.6 8 Stable tag: 1.24.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Gmedia Gallery - photo gallery with comments, show EXIF & Metadata, gallery with map geolocation (GPS), private galleries , music player, video support.12 Gmedia Gallery - photo gallery with comments, show EXIF & Metadata, gallery with map geolocation (GPS), private galleries. 13 13 14 14 == Description == … … 140 140 * Go to Gmedia Modules page and update installed premium modules to latest versions 141 141 142 = v1.24.0 = 143 * Compatibility with latest WordPress versions 144 * Fix vulnerability 145 * Fix PHP warnings 146 142 147 = v1.23.0 = 143 148 * Compatibility with latest WordPress versions
Note: See TracChangeset
for help on using the changeset viewer.