Plugin Directory

Changeset 3303207


Ignore:
Timestamp:
05/29/2025 09:40:37 PM (9 months ago)
Author:
BWW
Message:

Update to version 2.0.10 from GitHub

Location:
infinite-uploads
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • infinite-uploads/tags/2.0.10/inc/class-infinite-uploads.php

    r3299583 r3303207  
    10511051 */
    10521052function infinite_uploads_complainz_fix() {
    1053     $file_path = WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb';
    1054     $upload_dir = WP_CONTENT_DIR . '/uploads/complianz/maxmind/';
    1055     if ( ! is_dir( $upload_dir ) ) {
    1056         mkdir( $upload_dir, 0755, true );
    1057     }
    1058     $name = 'GeoLite2-Country.tar.gz';
    1059     $tar_file_name = str_replace( '.gz', '', $zip_file_name );
    1060     $result_file_name = str_replace( '.tar.gz', '.mmdb', $name );
    1061     $unzipped = $upload_dir . $result_file_name;
    1062     $db_url = 'https://cookiedatabase.org/maxmind/GeoLite2-Country.tar.gz';
    1063     $zip_file_name = apply_filters( 'cmplz_zip_file_path', $upload_dir . $name );
    1064     if ( ! file_exists( $file_path ) ) {
    1065         require_once ABSPATH . 'wp-admin/includes/file.php';
    1066         $name = 'GeoLite2-Country.tar.gz';
    1067         $tmpfile = download_url( $db_url, $timeout = 25 );
    1068         if ( ! file_exists( $zip_file_name ) ) {
    1069             copy( $tmpfile, $zip_file_name );
    1070         }
    1071         try {
    1072             $phar = new PharData( $zip_file_name ) ;
    1073             $phar->extractTo( $upload_dir );
    1074         } catch ( Exception $e ) {
    1075         }
    1076         foreach ( glob( $upload_dir . "*" ) as $file ) {
    1077             if ( is_dir( $file ) ) {
    1078                 copy( trailingslashit( $file ) . $result_file_name, $upload_dir . $result_file_name );             
    1079                 unlink( trailingslashit( $file ) . $result_file_name );
    1080                 foreach ( glob( $file.'/*' ) as $txt_file ) {
    1081                     unlink( $txt_file );
    1082                 }
    1083                 rmdir( $file );
    1084             }
    1085         }
    1086         update_option( 'cmplz_geo_ip_file', WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb' );
    1087         if ( file_exists( $zip_file_name ) ) {
    1088             unlink( $zip_file_name );
    1089         }
    1090 
    1091         if ( file_exists( $tar_file_name ) ) {
    1092             unlink( $tar_file_name );
    1093         }
    1094     }
     1053    if ( is_plugin_active( 'complianz-gdpr/complianz-gpdr.php' ) ) {
     1054        $file_path = WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb';
     1055        $upload_dir = WP_CONTENT_DIR . '/uploads/complianz/maxmind/';
     1056        if ( ! is_dir( $upload_dir ) ) {
     1057            mkdir( $upload_dir, 0755, true );
     1058        }
     1059        $name = 'GeoLite2-Country.tar.gz';
     1060        $tar_file_name = str_replace( '.gz', '', $name );
     1061        $result_file_name = str_replace( '.tar.gz', '.mmdb', $name );
     1062        $unzipped = $upload_dir . $result_file_name;
     1063        $db_url = 'https://cookiedatabase.org/maxmind/GeoLite2-Country.tar.gz';
     1064        $zip_file_name = apply_filters( 'cmplz_zip_file_path', $upload_dir . $name );
     1065        if ( ! file_exists( $file_path ) ) {
     1066            require_once ABSPATH . 'wp-admin/includes/file.php';
     1067            $name = 'GeoLite2-Country.tar.gz';
     1068            $tmpfile = download_url( $db_url, $timeout = 25 );
     1069            if ( ! file_exists( $zip_file_name ) ) {
     1070                copy( $tmpfile, $zip_file_name );
     1071            }
     1072            try {
     1073                $phar = new PharData( $zip_file_name ) ;
     1074                $phar->extractTo( $upload_dir );
     1075            } catch ( Exception $e ) {
     1076            }
     1077            foreach ( glob( $upload_dir . "*" ) as $file ) {
     1078                if ( is_dir( $file ) ) {
     1079                    copy( trailingslashit( $file ) . $result_file_name, $upload_dir . $result_file_name );
     1080                    unlink( trailingslashit( $file ) . $result_file_name );
     1081                    foreach ( glob( $file.'/*' ) as $txt_file ) {
     1082                        unlink( $txt_file );
     1083                    }
     1084                    rmdir( $file );
     1085                }
     1086            }
     1087            update_option( 'cmplz_geo_ip_file', WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb' );
     1088            if ( file_exists( $zip_file_name ) ) {
     1089                unlink( $zip_file_name );
     1090            }
     1091
     1092            if ( file_exists( $tar_file_name ) ) {
     1093                unlink( $tar_file_name );
     1094            }
     1095        }
     1096    }
    10951097}
    10961098add_action( 'init', 'infinite_uploads_complainz_fix' );
  • infinite-uploads/tags/2.0.10/infinite-uploads.php

    r3299583 r3303207  
    33 * Plugin Name: Infinite Uploads
    44 * Description: Infinitely scalable cloud storage and delivery for your videos and uploads made easy! Upload directly to cloud storage and manage your files right from the WordPress Media Library.
    5  * Version: 2.0.9
     5 * Version: 2.0.10
    66 * Author: Infinite Uploads
    77 * Author URI: https://infiniteuploads.com/?utm_source=iup_plugin&utm_medium=plugin&utm_campaign=iup_plugin&utm_content=meta
  • infinite-uploads/tags/2.0.10/readme.txt

    r3299583 r3303207  
    33Requires at least: 5.3
    44Tested up to: 6.6
    5 Stable tag: 2.0.9
     5Stable tag: 2.0.10
    66Requires PHP: 7.0
    77Contributors: uglyrobot, jdailey
     
    174174
    175175== Changelog ==
     1762.0.10 - 2025-05-29
     177----------------------------------------------------------------------
     178- Bug fix for Complianz plugin
     179
     1802.0.9 - 2025-05-23
     181----------------------------------------------------------------------
     182- Added Exclusion the WooCommerce Log file
     183- Added Exclusion For WooCommerce Product CSV Export
     184- Added Complianz Plugin Compatibility
    176185
    1771862.0.8 - 2025-02-28
  • infinite-uploads/trunk/inc/class-infinite-uploads.php

    r3299583 r3303207  
    10511051 */
    10521052function infinite_uploads_complainz_fix() {
    1053     $file_path = WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb';
    1054     $upload_dir = WP_CONTENT_DIR . '/uploads/complianz/maxmind/';
    1055     if ( ! is_dir( $upload_dir ) ) {
    1056         mkdir( $upload_dir, 0755, true );
    1057     }
    1058     $name = 'GeoLite2-Country.tar.gz';
    1059     $tar_file_name = str_replace( '.gz', '', $zip_file_name );
    1060     $result_file_name = str_replace( '.tar.gz', '.mmdb', $name );
    1061     $unzipped = $upload_dir . $result_file_name;
    1062     $db_url = 'https://cookiedatabase.org/maxmind/GeoLite2-Country.tar.gz';
    1063     $zip_file_name = apply_filters( 'cmplz_zip_file_path', $upload_dir . $name );
    1064     if ( ! file_exists( $file_path ) ) {
    1065         require_once ABSPATH . 'wp-admin/includes/file.php';
    1066         $name = 'GeoLite2-Country.tar.gz';
    1067         $tmpfile = download_url( $db_url, $timeout = 25 );
    1068         if ( ! file_exists( $zip_file_name ) ) {
    1069             copy( $tmpfile, $zip_file_name );
    1070         }
    1071         try {
    1072             $phar = new PharData( $zip_file_name ) ;
    1073             $phar->extractTo( $upload_dir );
    1074         } catch ( Exception $e ) {
    1075         }
    1076         foreach ( glob( $upload_dir . "*" ) as $file ) {
    1077             if ( is_dir( $file ) ) {
    1078                 copy( trailingslashit( $file ) . $result_file_name, $upload_dir . $result_file_name );             
    1079                 unlink( trailingslashit( $file ) . $result_file_name );
    1080                 foreach ( glob( $file.'/*' ) as $txt_file ) {
    1081                     unlink( $txt_file );
    1082                 }
    1083                 rmdir( $file );
    1084             }
    1085         }
    1086         update_option( 'cmplz_geo_ip_file', WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb' );
    1087         if ( file_exists( $zip_file_name ) ) {
    1088             unlink( $zip_file_name );
    1089         }
    1090 
    1091         if ( file_exists( $tar_file_name ) ) {
    1092             unlink( $tar_file_name );
    1093         }
    1094     }
     1053    if ( is_plugin_active( 'complianz-gdpr/complianz-gpdr.php' ) ) {
     1054        $file_path = WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb';
     1055        $upload_dir = WP_CONTENT_DIR . '/uploads/complianz/maxmind/';
     1056        if ( ! is_dir( $upload_dir ) ) {
     1057            mkdir( $upload_dir, 0755, true );
     1058        }
     1059        $name = 'GeoLite2-Country.tar.gz';
     1060        $tar_file_name = str_replace( '.gz', '', $name );
     1061        $result_file_name = str_replace( '.tar.gz', '.mmdb', $name );
     1062        $unzipped = $upload_dir . $result_file_name;
     1063        $db_url = 'https://cookiedatabase.org/maxmind/GeoLite2-Country.tar.gz';
     1064        $zip_file_name = apply_filters( 'cmplz_zip_file_path', $upload_dir . $name );
     1065        if ( ! file_exists( $file_path ) ) {
     1066            require_once ABSPATH . 'wp-admin/includes/file.php';
     1067            $name = 'GeoLite2-Country.tar.gz';
     1068            $tmpfile = download_url( $db_url, $timeout = 25 );
     1069            if ( ! file_exists( $zip_file_name ) ) {
     1070                copy( $tmpfile, $zip_file_name );
     1071            }
     1072            try {
     1073                $phar = new PharData( $zip_file_name ) ;
     1074                $phar->extractTo( $upload_dir );
     1075            } catch ( Exception $e ) {
     1076            }
     1077            foreach ( glob( $upload_dir . "*" ) as $file ) {
     1078                if ( is_dir( $file ) ) {
     1079                    copy( trailingslashit( $file ) . $result_file_name, $upload_dir . $result_file_name );
     1080                    unlink( trailingslashit( $file ) . $result_file_name );
     1081                    foreach ( glob( $file.'/*' ) as $txt_file ) {
     1082                        unlink( $txt_file );
     1083                    }
     1084                    rmdir( $file );
     1085                }
     1086            }
     1087            update_option( 'cmplz_geo_ip_file', WP_CONTENT_DIR . '/uploads/complianz/maxmind/GeoLite2-Country.mmdb' );
     1088            if ( file_exists( $zip_file_name ) ) {
     1089                unlink( $zip_file_name );
     1090            }
     1091
     1092            if ( file_exists( $tar_file_name ) ) {
     1093                unlink( $tar_file_name );
     1094            }
     1095        }
     1096    }
    10951097}
    10961098add_action( 'init', 'infinite_uploads_complainz_fix' );
  • infinite-uploads/trunk/infinite-uploads.php

    r3299583 r3303207  
    33 * Plugin Name: Infinite Uploads
    44 * Description: Infinitely scalable cloud storage and delivery for your videos and uploads made easy! Upload directly to cloud storage and manage your files right from the WordPress Media Library.
    5  * Version: 2.0.9
     5 * Version: 2.0.10
    66 * Author: Infinite Uploads
    77 * Author URI: https://infiniteuploads.com/?utm_source=iup_plugin&utm_medium=plugin&utm_campaign=iup_plugin&utm_content=meta
  • infinite-uploads/trunk/readme.txt

    r3299583 r3303207  
    33Requires at least: 5.3
    44Tested up to: 6.6
    5 Stable tag: 2.0.9
     5Stable tag: 2.0.10
    66Requires PHP: 7.0
    77Contributors: uglyrobot, jdailey
     
    174174
    175175== Changelog ==
     1762.0.10 - 2025-05-29
     177----------------------------------------------------------------------
     178- Bug fix for Complianz plugin
     179
     1802.0.9 - 2025-05-23
     181----------------------------------------------------------------------
     182- Added Exclusion the WooCommerce Log file
     183- Added Exclusion For WooCommerce Product CSV Export
     184- Added Complianz Plugin Compatibility
    176185
    1771862.0.8 - 2025-02-28
Note: See TracChangeset for help on using the changeset viewer.