Plugin Directory

Changeset 3257340


Ignore:
Timestamp:
03/17/2025 06:37:44 PM (13 months ago)
Author:
ilovepdf
Message:

Update to version 2.2.8 from GitHub

Location:
watermark-protect-images
Files:
40 edited
1 copied

Legend:

Unmodified
Added
Removed
  • watermark-protect-images/tags/2.2.8/README.txt

    r3255408 r3257340  
    11=== Best Watermark - Protect images on your site with iLoveIMG ===
    22Plugin Name: Best Watermark - Protect images on your site with iLoveIMG
    3 Version: 2.2.7
     3Version: 2.2.8
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.7
     10Stable tag: 2.2.8
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.8 =
     104Improved
     105* library compatibility with PHP 7.4
    102106
    103107= 2.2.7 =
  • watermark-protect-images/tags/2.2.8/admin/Ilove_Img_Wm_Plugin.php

    r3255408 r3257340  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.7';
     21    const VERSION = '2.2.8';
    2222
    2323    /**
  • watermark-protect-images/tags/2.2.8/composer.json

    r3255408 r3257340  
    1212    ],
    1313    "require": {
     14        "php": ">=7.4",
    1415        "ilovepdf/iloveimg-php": "dev-master"
    1516    },
     
    2122    },
    2223    "config": {
     24        "platform": {
     25            "php": "7.4"
     26        },
    2327        "allow-plugins": {
    2428            "phpstan/extension-installer": true,
  • watermark-protect-images/tags/2.2.8/ilove-img-watermark.php

    r3255408 r3257340  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Protect your site from image theft with our reliable and easy-to-use watermark plugin. Effective protection for your images.
    13  * Version:           2.2.7
     13 * Version:           2.2.8
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/tags/2.2.8/vendor/autoload.php

    r3255408 r3257340  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c::getLoader();
     25return ComposerAutoloaderInitde156987eddab1a8576764e401676d2b::getLoader();
  • watermark-protect-images/tags/2.2.8/vendor/composer/autoload_real.php

    r3255408 r3257340  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c
     5class ComposerAutoloaderInitde156987eddab1a8576764e401676d2b
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitde156987eddab1a8576764e401676d2b', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitde156987eddab1a8576764e401676d2b', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitde156987eddab1a8576764e401676d2b::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitde156987eddab1a8576764e401676d2b::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • watermark-protect-images/tags/2.2.8/vendor/composer/autoload_static.php

    r3255408 r3257340  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c
     7class ComposerStaticInitde156987eddab1a8576764e401676d2b
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInitde156987eddab1a8576764e401676d2b::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInitde156987eddab1a8576764e401676d2b::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInitde156987eddab1a8576764e401676d2b::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • watermark-protect-images/tags/2.2.8/vendor/composer/installed.json

    r3255408 r3257340  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.11.0",
    87             "version_normalized": "6.11.0.0",
     86            "version": "v6.10.0",
     87            "version_normalized": "6.10.0.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    96                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    97                 "shasum": ""
    98             },
    99             "require": {
    100                 "php": "^8.0"
     91                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
     96                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
     97                "shasum": ""
     98            },
     99            "require": {
     100                "php": "^7.4||^8.0"
    101101            },
    102102            "require-dev": {
    103                 "guzzlehttp/guzzle": "^7.4",
     103                "guzzlehttp/guzzle": "^6.5||^7.4",
    104104                "phpspec/prophecy-phpunit": "^2.0",
    105105                "phpunit/phpunit": "^9.5",
    106                 "psr/cache": "^2.0||^3.0",
     106                "psr/cache": "^1.0||^2.0",
    107107                "psr/http-client": "^1.0",
    108108                "psr/http-factory": "^1.0"
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2025-01-23T05:11:06+00:00",
     114            "time": "2023-12-01T16:26:39+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.11.0"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    11741174        {
    11751175            "name": "symfony/deprecation-contracts",
    1176             "version": "v3.5.1",
    1177             "version_normalized": "3.5.1.0",
     1176            "version": "v2.5.4",
     1177            "version_normalized": "2.5.4.0",
    11781178            "source": {
    11791179                "type": "git",
    11801180                "url": "https://github.com/symfony/deprecation-contracts.git",
    1181                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
    1182             },
    1183             "dist": {
    1184                 "type": "zip",
    1185                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1186                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1187                 "shasum": ""
    1188             },
    1189             "require": {
    1190                 "php": ">=8.1"
    1191             },
    1192             "time": "2024-09-25T14:20:29+00:00",
     1181                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918"
     1182            },
     1183            "dist": {
     1184                "type": "zip",
     1185                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918",
     1186                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918",
     1187                "shasum": ""
     1188            },
     1189            "require": {
     1190                "php": ">=7.1"
     1191            },
     1192            "time": "2024-09-25T14:11:13+00:00",
    11931193            "type": "library",
    11941194            "extra": {
     
    11981198                },
    11991199                "branch-alias": {
    1200                     "dev-main": "3.5-dev"
     1200                    "dev-main": "2.5-dev"
    12011201                }
    12021202            },
     
    12241224            "homepage": "https://symfony.com",
    12251225            "support": {
    1226                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
     1226                "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4"
    12271227            },
    12281228            "funding": [
  • watermark-protect-images/tags/2.2.8/vendor/composer/installed.php

    r3255408 r3257340  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
     6        'reference' => '47559d1e4faba756b3943c23c88673ebd07e33cb',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.11.0',
    24             'version' => '6.11.0.0',
    25             'reference' => '8f718f4dfc9c5d5f0c994cdfd103921b43592712',
     23            'pretty_version' => 'v6.10.0',
     24            'version' => '6.10.0.0',
     25            'reference' => 'a49db6f0a5033aef5143295342f1c95521b075ff',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
     72            'reference' => '47559d1e4faba756b3943c23c88673ebd07e33cb',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.1',
    188             'version' => '3.5.1.0',
    189             'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
     187            'pretty_version' => 'v2.5.4',
     188            'version' => '2.5.4.0',
     189            'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • watermark-protect-images/tags/2.2.8/vendor/composer/platform_check.php

    r3119477 r3257340  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 80100)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/CHANGELOG.md

    r3240632 r3257340  
    11# Changelog
    2 
    3 ## [6.11.0](https://github.com/firebase/php-jwt/compare/v6.10.2...v6.11.0) (2025-01-23)
    4 
    5 
    6 ### Features
    7 
    8 * support octet typed JWK ([#587](https://github.com/firebase/php-jwt/issues/587)) ([7cb8a26](https://github.com/firebase/php-jwt/commit/7cb8a265fa81edf2fa6ef8098f5bc5ae573c33ad))
    9 
    10 
    11 ### Bug Fixes
    12 
    13 * refactor constructor Key to use PHP 8.0 syntax ([#577](https://github.com/firebase/php-jwt/issues/577)) ([29fa2ce](https://github.com/firebase/php-jwt/commit/29fa2ce9e0582cd397711eec1e80c05ce20fabca))
    14 
    15 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
    16 
    17 
    18 ### Bug Fixes
    19 
    20 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
    21 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    22 
    23 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
    24 
    25 
    26 ### Bug Fixes
    27 
    28 * ensure ratelimit expiry is set every time ([#556](https://github.com/firebase/php-jwt/issues/556)) ([09cb208](https://github.com/firebase/php-jwt/commit/09cb2081c2c3bc0f61e2f2a5fbea5741f7498648))
    29 * ratelimit cache expiration ([#550](https://github.com/firebase/php-jwt/issues/550)) ([dda7250](https://github.com/firebase/php-jwt/commit/dda725033585ece30ff8cae8937320d7e9f18bae))
    302
    313## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/README.md

    r3240632 r3257340  
    1818
    1919Optionally, install the `paragonie/sodium_compat` package from composer if your
    20 php env does not have libsodium installed:
     20php is < 7.2 or does not have libsodium installed:
    2121
    2222```bash
     
    4949
    5050// Pass a stdClass in as the third parameter to get the decoded header values
    51 $headers = new stdClass();
    52 $decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers);
     51$decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers = new stdClass());
    5352print_r($headers);
    5453
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/composer.json

    r3165756 r3257340  
    2121    "license": "BSD-3-Clause",
    2222    "require": {
    23         "php": "^8.0"
     23        "php": "^7.4||^8.0"
    2424    },
    2525    "suggest": {
     
    3333    },
    3434    "require-dev": {
    35         "guzzlehttp/guzzle": "^7.4",
     35        "guzzlehttp/guzzle": "^6.5||^7.4",
    3636        "phpspec/prophecy-phpunit": "^2.0",
    3737        "phpunit/phpunit": "^9.5",
    38         "psr/cache": "^2.0||^3.0",
     38        "psr/cache": "^1.0||^2.0",
    3939        "psr/http-client": "^1.0",
    4040        "psr/http-factory": "^1.0"
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3223598 r3257340  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         ?int $expiresAfter = null,
     83        int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         ?string $defaultAlg = null
     85        string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     \sprintf('HTTP Error: %d %s for URI "%s"',
     183                    sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
     
    213213
    214214        $cacheItem = $this->cache->getItem($this->rateLimitCacheKey);
    215 
    216         $cacheItemData = [];
    217         if ($cacheItem->isHit() && \is_array($data = $cacheItem->get())) {
    218             $cacheItemData = $data;
    219         }
    220 
    221         $callsPerMinute = $cacheItemData['callsPerMinute'] ?? 0;
    222         $expiry = $cacheItemData['expiry'] ?? new \DateTime('+60 seconds', new \DateTimeZone('UTC'));
    223 
     215        if (!$cacheItem->isHit()) {
     216            $cacheItem->expiresAfter(1); // # of calls are cached each minute
     217        }
     218
     219        $callsPerMinute = (int) $cacheItem->get();
    224220        if (++$callsPerMinute > $this->maxCallsPerMinute) {
    225221            return true;
    226222        }
    227 
    228         $cacheItem->set(['expiry' => $expiry, 'callsPerMinute' => $callsPerMinute]);
    229         $cacheItem->expiresAt($expiry);
     223        $cacheItem->set($callsPerMinute);
    230224        $this->cache->save($cacheItem);
    231225        return false;
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/src/JWK.php

    r3240632 r3257340  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    173173                $publicKey = JWT::convertBase64urlToBase64($jwk['x']);
    174174                return new Key($publicKey, $jwk['alg']);
    175             case 'oct':
    176                 if (!isset($jwk['k'])) {
    177                     throw new UnexpectedValueException('k not set');
    178                 }
    179 
    180                 return new Key(JWT::urlsafeB64Decode($jwk['k']), $jwk['alg']);
    181175            default:
    182176                break;
     
    219213            );
    220214
    221         return \sprintf(
     215        return sprintf(
    222216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    223217            wordwrap(base64_encode($pem), 64, "\n", true)
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/src/JWT.php

    r3223598 r3257340  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         ?stdClass &$headers = null
     99        stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         ?string $keyId = null,
    204         ?array $head = null
     203        string $keyId = null,
     204        array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head)) {
     207        if (isset($head) && \is_array($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    252252            case 'openssl':
    253253                $signature = '';
    254                 if (!\is_resource($key) && !openssl_pkey_get_private($key)) {
    255                     throw new DomainException('OpenSSL unable to validate key');
    256                 }
    257254                $success = \openssl_sign($msg, $signature, $key, $algorithm); // @phpstan-ignore-line
    258255                if (!$success) {
     
    388385    public static function jsonEncode(array $input): string
    389386    {
    390         $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     387        if (PHP_VERSION_ID >= 50400) {
     388            $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     389        } else {
     390            // PHP 5.3 only
     391            $json = \json_encode($input);
     392        }
    391393        if ($errno = \json_last_error()) {
    392394            self::handleJsonError($errno);
  • watermark-protect-images/tags/2.2.8/vendor/firebase/php-jwt/src/Key.php

    r3240632 r3257340  
    1010class Key
    1111{
     12    /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
     13    private $keyMaterial;
     14    /** @var string */
     15    private $algorithm;
     16
    1217    /**
    1318     * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
     
    1520     */
    1621    public function __construct(
    17         private $keyMaterial,
    18         private string $algorithm
     22        $keyMaterial,
     23        string $algorithm
    1924    ) {
    2025        if (
     
    3439            throw new InvalidArgumentException('Algorithm must not be empty');
    3540        }
     41
     42        // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
     43        $this->keyMaterial = $keyMaterial;
     44        $this->algorithm = $algorithm;
    3645    }
    3746
  • watermark-protect-images/tags/2.2.8/vendor/symfony/deprecation-contracts/README.md

    r3165141 r3257340  
    2323`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
    2424
    25 While not recommended, the deprecation notices can be completely ignored by declaring an empty
     25While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty
    2626`function trigger_deprecation() {}` in your application.
  • watermark-protect-images/tags/2.2.8/vendor/symfony/deprecation-contracts/composer.json

    r3165141 r3257340  
    1616    ],
    1717    "require": {
    18         "php": ">=8.1"
     18        "php": ">=7.1"
    1919    },
    2020    "autoload": {
     
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.5-dev"
     28            "dev-main": "2.5-dev"
    2929        },
    3030        "thanks": {
  • watermark-protect-images/tags/2.2.8/vendor/symfony/deprecation-contracts/function.php

    r3165141 r3257340  
    2121     * @author Nicolas Grekas <p@tchwork.com>
    2222     */
    23     function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
     23    function trigger_deprecation(string $package, string $version, string $message, ...$args): void
    2424    {
    2525        @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
  • watermark-protect-images/trunk/README.txt

    r3255408 r3257340  
    11=== Best Watermark - Protect images on your site with iLoveIMG ===
    22Plugin Name: Best Watermark - Protect images on your site with iLoveIMG
    3 Version: 2.2.7
     3Version: 2.2.8
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.7
     10Stable tag: 2.2.8
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.8 =
     104Improved
     105* library compatibility with PHP 7.4
    102106
    103107= 2.2.7 =
  • watermark-protect-images/trunk/admin/Ilove_Img_Wm_Plugin.php

    r3255408 r3257340  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.7';
     21    const VERSION = '2.2.8';
    2222
    2323    /**
  • watermark-protect-images/trunk/composer.json

    r3255408 r3257340  
    1212    ],
    1313    "require": {
     14        "php": ">=7.4",
    1415        "ilovepdf/iloveimg-php": "dev-master"
    1516    },
     
    2122    },
    2223    "config": {
     24        "platform": {
     25            "php": "7.4"
     26        },
    2327        "allow-plugins": {
    2428            "phpstan/extension-installer": true,
  • watermark-protect-images/trunk/ilove-img-watermark.php

    r3255408 r3257340  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Protect your site from image theft with our reliable and easy-to-use watermark plugin. Effective protection for your images.
    13  * Version:           2.2.7
     13 * Version:           2.2.8
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/trunk/vendor/autoload.php

    r3255408 r3257340  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c::getLoader();
     25return ComposerAutoloaderInitde156987eddab1a8576764e401676d2b::getLoader();
  • watermark-protect-images/trunk/vendor/composer/autoload_real.php

    r3255408 r3257340  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c
     5class ComposerAutoloaderInitde156987eddab1a8576764e401676d2b
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitde156987eddab1a8576764e401676d2b', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitde156987eddab1a8576764e401676d2b', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitde156987eddab1a8576764e401676d2b::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitde156987eddab1a8576764e401676d2b::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • watermark-protect-images/trunk/vendor/composer/autoload_static.php

    r3255408 r3257340  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c
     7class ComposerStaticInitde156987eddab1a8576764e401676d2b
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInitde156987eddab1a8576764e401676d2b::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInitde156987eddab1a8576764e401676d2b::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInitde156987eddab1a8576764e401676d2b::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • watermark-protect-images/trunk/vendor/composer/installed.json

    r3255408 r3257340  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.11.0",
    87             "version_normalized": "6.11.0.0",
     86            "version": "v6.10.0",
     87            "version_normalized": "6.10.0.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    96                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    97                 "shasum": ""
    98             },
    99             "require": {
    100                 "php": "^8.0"
     91                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
     96                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
     97                "shasum": ""
     98            },
     99            "require": {
     100                "php": "^7.4||^8.0"
    101101            },
    102102            "require-dev": {
    103                 "guzzlehttp/guzzle": "^7.4",
     103                "guzzlehttp/guzzle": "^6.5||^7.4",
    104104                "phpspec/prophecy-phpunit": "^2.0",
    105105                "phpunit/phpunit": "^9.5",
    106                 "psr/cache": "^2.0||^3.0",
     106                "psr/cache": "^1.0||^2.0",
    107107                "psr/http-client": "^1.0",
    108108                "psr/http-factory": "^1.0"
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2025-01-23T05:11:06+00:00",
     114            "time": "2023-12-01T16:26:39+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.11.0"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    11741174        {
    11751175            "name": "symfony/deprecation-contracts",
    1176             "version": "v3.5.1",
    1177             "version_normalized": "3.5.1.0",
     1176            "version": "v2.5.4",
     1177            "version_normalized": "2.5.4.0",
    11781178            "source": {
    11791179                "type": "git",
    11801180                "url": "https://github.com/symfony/deprecation-contracts.git",
    1181                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
    1182             },
    1183             "dist": {
    1184                 "type": "zip",
    1185                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1186                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1187                 "shasum": ""
    1188             },
    1189             "require": {
    1190                 "php": ">=8.1"
    1191             },
    1192             "time": "2024-09-25T14:20:29+00:00",
     1181                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918"
     1182            },
     1183            "dist": {
     1184                "type": "zip",
     1185                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918",
     1186                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918",
     1187                "shasum": ""
     1188            },
     1189            "require": {
     1190                "php": ">=7.1"
     1191            },
     1192            "time": "2024-09-25T14:11:13+00:00",
    11931193            "type": "library",
    11941194            "extra": {
     
    11981198                },
    11991199                "branch-alias": {
    1200                     "dev-main": "3.5-dev"
     1200                    "dev-main": "2.5-dev"
    12011201                }
    12021202            },
     
    12241224            "homepage": "https://symfony.com",
    12251225            "support": {
    1226                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
     1226                "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4"
    12271227            },
    12281228            "funding": [
  • watermark-protect-images/trunk/vendor/composer/installed.php

    r3255408 r3257340  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
     6        'reference' => '47559d1e4faba756b3943c23c88673ebd07e33cb',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.11.0',
    24             'version' => '6.11.0.0',
    25             'reference' => '8f718f4dfc9c5d5f0c994cdfd103921b43592712',
     23            'pretty_version' => 'v6.10.0',
     24            'version' => '6.10.0.0',
     25            'reference' => 'a49db6f0a5033aef5143295342f1c95521b075ff',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
     72            'reference' => '47559d1e4faba756b3943c23c88673ebd07e33cb',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.1',
    188             'version' => '3.5.1.0',
    189             'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
     187            'pretty_version' => 'v2.5.4',
     188            'version' => '2.5.4.0',
     189            'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • watermark-protect-images/trunk/vendor/composer/platform_check.php

    r3119477 r3257340  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 80100)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/CHANGELOG.md

    r3240632 r3257340  
    11# Changelog
    2 
    3 ## [6.11.0](https://github.com/firebase/php-jwt/compare/v6.10.2...v6.11.0) (2025-01-23)
    4 
    5 
    6 ### Features
    7 
    8 * support octet typed JWK ([#587](https://github.com/firebase/php-jwt/issues/587)) ([7cb8a26](https://github.com/firebase/php-jwt/commit/7cb8a265fa81edf2fa6ef8098f5bc5ae573c33ad))
    9 
    10 
    11 ### Bug Fixes
    12 
    13 * refactor constructor Key to use PHP 8.0 syntax ([#577](https://github.com/firebase/php-jwt/issues/577)) ([29fa2ce](https://github.com/firebase/php-jwt/commit/29fa2ce9e0582cd397711eec1e80c05ce20fabca))
    14 
    15 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
    16 
    17 
    18 ### Bug Fixes
    19 
    20 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
    21 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    22 
    23 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
    24 
    25 
    26 ### Bug Fixes
    27 
    28 * ensure ratelimit expiry is set every time ([#556](https://github.com/firebase/php-jwt/issues/556)) ([09cb208](https://github.com/firebase/php-jwt/commit/09cb2081c2c3bc0f61e2f2a5fbea5741f7498648))
    29 * ratelimit cache expiration ([#550](https://github.com/firebase/php-jwt/issues/550)) ([dda7250](https://github.com/firebase/php-jwt/commit/dda725033585ece30ff8cae8937320d7e9f18bae))
    302
    313## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/README.md

    r3240632 r3257340  
    1818
    1919Optionally, install the `paragonie/sodium_compat` package from composer if your
    20 php env does not have libsodium installed:
     20php is < 7.2 or does not have libsodium installed:
    2121
    2222```bash
     
    4949
    5050// Pass a stdClass in as the third parameter to get the decoded header values
    51 $headers = new stdClass();
    52 $decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers);
     51$decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers = new stdClass());
    5352print_r($headers);
    5453
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/composer.json

    r3165756 r3257340  
    2121    "license": "BSD-3-Clause",
    2222    "require": {
    23         "php": "^8.0"
     23        "php": "^7.4||^8.0"
    2424    },
    2525    "suggest": {
     
    3333    },
    3434    "require-dev": {
    35         "guzzlehttp/guzzle": "^7.4",
     35        "guzzlehttp/guzzle": "^6.5||^7.4",
    3636        "phpspec/prophecy-phpunit": "^2.0",
    3737        "phpunit/phpunit": "^9.5",
    38         "psr/cache": "^2.0||^3.0",
     38        "psr/cache": "^1.0||^2.0",
    3939        "psr/http-client": "^1.0",
    4040        "psr/http-factory": "^1.0"
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3223598 r3257340  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         ?int $expiresAfter = null,
     83        int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         ?string $defaultAlg = null
     85        string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     \sprintf('HTTP Error: %d %s for URI "%s"',
     183                    sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
     
    213213
    214214        $cacheItem = $this->cache->getItem($this->rateLimitCacheKey);
    215 
    216         $cacheItemData = [];
    217         if ($cacheItem->isHit() && \is_array($data = $cacheItem->get())) {
    218             $cacheItemData = $data;
    219         }
    220 
    221         $callsPerMinute = $cacheItemData['callsPerMinute'] ?? 0;
    222         $expiry = $cacheItemData['expiry'] ?? new \DateTime('+60 seconds', new \DateTimeZone('UTC'));
    223 
     215        if (!$cacheItem->isHit()) {
     216            $cacheItem->expiresAfter(1); // # of calls are cached each minute
     217        }
     218
     219        $callsPerMinute = (int) $cacheItem->get();
    224220        if (++$callsPerMinute > $this->maxCallsPerMinute) {
    225221            return true;
    226222        }
    227 
    228         $cacheItem->set(['expiry' => $expiry, 'callsPerMinute' => $callsPerMinute]);
    229         $cacheItem->expiresAt($expiry);
     223        $cacheItem->set($callsPerMinute);
    230224        $this->cache->save($cacheItem);
    231225        return false;
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/JWK.php

    r3240632 r3257340  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    173173                $publicKey = JWT::convertBase64urlToBase64($jwk['x']);
    174174                return new Key($publicKey, $jwk['alg']);
    175             case 'oct':
    176                 if (!isset($jwk['k'])) {
    177                     throw new UnexpectedValueException('k not set');
    178                 }
    179 
    180                 return new Key(JWT::urlsafeB64Decode($jwk['k']), $jwk['alg']);
    181175            default:
    182176                break;
     
    219213            );
    220214
    221         return \sprintf(
     215        return sprintf(
    222216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    223217            wordwrap(base64_encode($pem), 64, "\n", true)
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/JWT.php

    r3223598 r3257340  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         ?stdClass &$headers = null
     99        stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         ?string $keyId = null,
    204         ?array $head = null
     203        string $keyId = null,
     204        array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head)) {
     207        if (isset($head) && \is_array($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    252252            case 'openssl':
    253253                $signature = '';
    254                 if (!\is_resource($key) && !openssl_pkey_get_private($key)) {
    255                     throw new DomainException('OpenSSL unable to validate key');
    256                 }
    257254                $success = \openssl_sign($msg, $signature, $key, $algorithm); // @phpstan-ignore-line
    258255                if (!$success) {
     
    388385    public static function jsonEncode(array $input): string
    389386    {
    390         $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     387        if (PHP_VERSION_ID >= 50400) {
     388            $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     389        } else {
     390            // PHP 5.3 only
     391            $json = \json_encode($input);
     392        }
    391393        if ($errno = \json_last_error()) {
    392394            self::handleJsonError($errno);
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/Key.php

    r3240632 r3257340  
    1010class Key
    1111{
     12    /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
     13    private $keyMaterial;
     14    /** @var string */
     15    private $algorithm;
     16
    1217    /**
    1318     * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
     
    1520     */
    1621    public function __construct(
    17         private $keyMaterial,
    18         private string $algorithm
     22        $keyMaterial,
     23        string $algorithm
    1924    ) {
    2025        if (
     
    3439            throw new InvalidArgumentException('Algorithm must not be empty');
    3540        }
     41
     42        // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
     43        $this->keyMaterial = $keyMaterial;
     44        $this->algorithm = $algorithm;
    3645    }
    3746
  • watermark-protect-images/trunk/vendor/symfony/deprecation-contracts/README.md

    r3165141 r3257340  
    2323`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
    2424
    25 While not recommended, the deprecation notices can be completely ignored by declaring an empty
     25While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty
    2626`function trigger_deprecation() {}` in your application.
  • watermark-protect-images/trunk/vendor/symfony/deprecation-contracts/composer.json

    r3165141 r3257340  
    1616    ],
    1717    "require": {
    18         "php": ">=8.1"
     18        "php": ">=7.1"
    1919    },
    2020    "autoload": {
     
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.5-dev"
     28            "dev-main": "2.5-dev"
    2929        },
    3030        "thanks": {
  • watermark-protect-images/trunk/vendor/symfony/deprecation-contracts/function.php

    r3165141 r3257340  
    2121     * @author Nicolas Grekas <p@tchwork.com>
    2222     */
    23     function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
     23    function trigger_deprecation(string $package, string $version, string $message, ...$args): void
    2424    {
    2525        @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
Note: See TracChangeset for help on using the changeset viewer.