From d64196afd92d273dcb3f7ac681d0f7e4339bd4f6 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy Glenn Webb Sr" Date: Mon, 7 Sep 2020 05:22:24 +0000 Subject: [PATCH 1/6] Composer updates for PHP7.4.9 --- src/composer.json | 101 ++--- src/composer.lock | 933 +++++++++++++++++++++++++++++++++++++++------- 2 files changed, 842 insertions(+), 192 deletions(-) diff --git a/src/composer.json b/src/composer.json index 438c34c34..a2cb41786 100644 --- a/src/composer.json +++ b/src/composer.json @@ -1,50 +1,51 @@ -{ - "name": "boxbilling/boxbilling", - "description": "Open Source Billing Software", - "type": "project", - "license": "Apache-2.0", - "keywords": ["billing", "invoice", "client management"], - "homepage": "http://www.boxbilling.com", - "authors": [ - { - "name": "Andrius Putna", - "email": "andrius@boxbilling.com" - } - ], - "require": { - "php": ">=7.2.0", - "ext-curl": "*", - "ext-zlib": "*", - "ext-PDO": "*", - "ext-mbstring" : "*", - "pimple/pimple": "v3.3.0", - "twig/twig": "v2.13.0", - "twig/extensions": "1.5.4", - "rev42/tfpdf": "v1.24", - "geoip2/geoip2": "v2.1.0", - "ircmaxell/password-compat": "v1.0.4", - "phpmailer/phpmailer": "6.1.6", - "mustangostang/spyc": "0.5.1", - "michelf/php-markdown": "1.7.0", - "stripe/stripe-php": "2.1.1" - }, - "suggest": { - "ext-gettext": "*" - }, - "config": { - "vendor-dir": "bb-vendor" - }, - "autoload": { - "psr-0": {"": "bb-library"}, - "psr-4": {"Box\\Mod\\": "bb-modules"} - }, - - "require-dev": { - "phpunit/phpunit": "^9.0", - "squizlabs/php_codesniffer": "1.*" - - }, - "autoload-dev": { - "psr-0": { "": "../tests/bb-library" } - } -} +{ + "name": "boxbilling/boxbilling", + "description": "Open Source Billing Software", + "type": "project", + "license": "Apache-2.0", + "keywords": ["billing", "invoice", "client management"], + "homepage": "http://www.boxbilling.com", + "authors": [ + { + "name": "Andrius Putna", + "email": "andrius@boxbilling.com" + } + ], + "require": { + "php": ">=7.2.0", + "ext-curl": "*", + "ext-zlib": "*", + "ext-PDO": "*", + "ext-mbstring" : "*", + "pimple/pimple": "v3.3.0", + "twig/twig": "v2.13.0", + "twig/extensions": "1.5.4", + "mpdf/mpdf": "v8.0.4", + "geoip2/geoip2": "v2.10.0", + "ircmaxell/password-compat": "v1.0.4", + "phpmailer/phpmailer": "6.1.6", + "mustangostang/spyc": "0.5.1", + "michelf/php-markdown": "1.7.0", + "stripe/stripe-php": "2.1.1", + "guzzlehttp/guzzle": "^v3.8.1" + }, + "suggest": { + "ext-gettext": "*" + }, + "config": { + "vendor-dir": "bb-vendor" + }, + "autoload": { + "psr-0": {"": "bb-library"}, + "psr-4": {"Box\\Mod\\": "bb-modules"} + }, + + "require-dev": { + "phpunit/phpunit": "^9.0", + "squizlabs/php_codesniffer": "1.*" + + }, + "autoload-dev": { + "psr-0": { "": "../tests/bb-library" } + } +} diff --git a/src/composer.lock b/src/composer.lock index 87c2b8ce7..11682c0b7 100644 --- a/src/composer.lock +++ b/src/composer.lock @@ -4,36 +4,107 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "61556a0e814aa34603e8a0f8ce034fbc", + "content-hash": "88040af9ed5a3d739878434ed0363cdf", "packages": [ { - "name": "geoip2/geoip2", - "version": "v2.1.0", + "name": "composer/ca-bundle", + "version": "1.2.8", "source": { "type": "git", - "url": "https://github.com/maxmind/GeoIP2-php.git", - "reference": "64f226209342c4a2f54b82ba3f0707db944f7d70" + "url": "https://github.com/composer/ca-bundle.git", + "reference": "8a7ecad675253e4654ea05505233285377405215" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/64f226209342c4a2f54b82ba3f0707db944f7d70", - "reference": "64f226209342c4a2f54b82ba3f0707db944f7d70", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8a7ecad675253e4654ea05505233285377405215", + "reference": "8a7ecad675253e4654ea05505233285377405215", "shasum": "" }, "require": { - "guzzle/guzzle": "3.*", - "maxmind-db/reader": "~1.0", - "php": ">=5.3.1" + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "4.2.*", - "satooshi/php-coveralls": "dev-master" + "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2020-08-23T12:54:47+00:00" + }, + { + "name": "geoip2/geoip2", + "version": "v2.10.0", + "source": { + "type": "git", + "url": "https://github.com/maxmind/GeoIP2-php.git", + "reference": "419557cd21d9fe039721a83490701a58c8ce784a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/419557cd21d9fe039721a83490701a58c8ce784a", + "reference": "419557cd21d9fe039721a83490701a58c8ce784a", + "shasum": "" + }, + "require": { + "ext-json": "*", + "maxmind-db/reader": "~1.5", + "maxmind/web-service-common": "~0.6", + "php": ">=5.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "2.*", + "phpunit/phpunit": "5.*", + "squizlabs/php_codesniffer": "3.*" }, "type": "library", "autoload": { - "psr-0": { - "GeoIp2": "src/", - "JsonSerializable": "compat/" + "psr-4": { + "GeoIp2\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -44,7 +115,7 @@ { "name": "Gregory J. Oschwald", "email": "goschwald@maxmind.com", - "homepage": "http://www.maxmind.com/" + "homepage": "https://www.maxmind.com/" } ], "description": "MaxMind GeoIP2 PHP API", @@ -56,26 +127,26 @@ "geolocation", "maxmind" ], - "time": "2014-10-29T17:11:44+00:00" + "time": "2019-12-12T18:48:39+00:00" }, { - "name": "guzzle/guzzle", - "version": "v3.9.3", + "name": "guzzlehttp/guzzle", + "version": "v3.8.1", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle3.git", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9" + "url": "https://github.com/guzzle/guzzle.git", + "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4de0618a01b34aa1c8c33a3f13f396dcd3882eba", + "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba", "shasum": "" }, "require": { "ext-curl": "*", "php": ">=5.3.3", - "symfony/event-dispatcher": "~2.1" + "symfony/event-dispatcher": ">=2.1" }, "replace": { "guzzle/batch": "self.version", @@ -102,21 +173,18 @@ "guzzle/stream": "self.version" }, "require-dev": { - "doctrine/cache": "~1.3", - "monolog/monolog": "~1.0", + "doctrine/cache": "*", + "monolog/monolog": "1.*", "phpunit/phpunit": "3.7.*", - "psr/log": "~1.0", - "symfony/class-loader": "~2.1", - "zendframework/zend-cache": "2.*,<2.3", - "zendframework/zend-log": "2.*,<2.3" - }, - "suggest": { - "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated." + "psr/log": "1.0.*", + "symfony/class-loader": "*", + "zendframework/zend-cache": "<2.3", + "zendframework/zend-log": "<2.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.9-dev" + "dev-master": "3.8-dev" } }, "autoload": { @@ -140,7 +208,7 @@ "homepage": "https://github.com/guzzle/guzzle/contributors" } ], - "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle", + "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients", "homepage": "http://guzzlephp.org/", "keywords": [ "client", @@ -151,8 +219,7 @@ "rest", "web service" ], - "abandoned": "guzzlehttp/guzzle", - "time": "2015-03-18T18:23:50+00:00" + "time": "2014-01-28T22:29:15+00:00" }, { "name": "ircmaxell/password-compat", @@ -256,6 +323,52 @@ ], "time": "2020-08-07T22:10:05+00:00" }, + { + "name": "maxmind/web-service-common", + "version": "v0.7.0", + "source": { + "type": "git", + "url": "https://github.com/maxmind/web-service-common-php.git", + "reference": "74c996c218ada5c639c8c2f076756e059f5552fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maxmind/web-service-common-php/zipball/74c996c218ada5c639c8c2f076756e059f5552fc", + "reference": "74c996c218ada5c639c8c2f076756e059f5552fc", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.0.3", + "ext-curl": "*", + "ext-json": "*", + "php": ">=5.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "2.*", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0", + "squizlabs/php_codesniffer": "3.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "MaxMind\\Exception\\": "src/Exception", + "MaxMind\\WebService\\": "src/WebService" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Gregory Oschwald", + "email": "goschwald@maxmind.com" + } + ], + "description": "Internal MaxMind Web Service API", + "homepage": "https://github.com/maxmind/web-service-common-php", + "time": "2020-05-06T14:07:26+00:00" + }, { "name": "michelf/php-markdown", "version": "1.7.0", @@ -307,6 +420,75 @@ ], "time": "2016-10-29T18:58:20+00:00" }, + { + "name": "mpdf/mpdf", + "version": "v8.0.4", + "source": { + "type": "git", + "url": "https://github.com/mpdf/mpdf.git", + "reference": "d3147a0d790b6d11936fd9c73fa31a7ed45e3f6f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mpdf/mpdf/zipball/d3147a0d790b6d11936fd9c73fa31a7ed45e3f6f", + "reference": "d3147a0d790b6d11936fd9c73fa31a7ed45e3f6f", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "ext-mbstring": "*", + "myclabs/deep-copy": "^1.7", + "paragonie/random_compat": "^1.4|^2.0|9.99.99", + "php": "^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0", + "psr/log": "^1.0", + "setasign/fpdi": "^2.1" + }, + "require-dev": { + "mockery/mockery": "^0.9.5", + "mpdf/qrcode": "^1.0.0", + "phpunit/phpunit": "^5.0", + "squizlabs/php_codesniffer": "^3.5.0", + "tracy/tracy": "^2.4" + }, + "suggest": { + "ext-bcmath": "Needed for generation of some types of barcodes", + "ext-xml": "Needed mainly for SVG manipulation", + "ext-zlib": "Needed for compression of embedded resources, such as fonts" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-development": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "Mpdf\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-only" + ], + "authors": [ + { + "name": "Matěj Humpál", + "role": "Developer, maintainer" + }, + { + "name": "Ian Back", + "role": "Developer (retired)" + } + ], + "description": "PHP library generating PDF files from UTF-8 encoded HTML", + "homepage": "https://mpdf.github.io", + "keywords": [ + "pdf", + "php", + "utf-8" + ], + "time": "2019-11-28T09:39:33+00:00" + }, { "name": "mustangostang/spyc", "version": "0.5.1", @@ -354,6 +536,105 @@ ], "time": "2013-02-21T10:52:01+00:00" }, + { + "name": "myclabs/deep-copy", + "version": "1.10.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-06-29T13:22:24+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.99", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", + "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", + "shasum": "" + }, + "require": { + "php": "^7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "time": "2018-07-02T15:55:56+00:00" + }, { "name": "phpmailer/phpmailer", "version": "v6.1.6", @@ -522,42 +803,165 @@ "time": "2017-02-14T16:28:37+00:00" }, { - "name": "rev42/tfpdf", - "version": "v1.24", + "name": "psr/event-dispatcher", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/rev42/tfpdf.git", - "reference": "a6c61aa39be95a8604fb863026e8c2b969ae4113" + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rev42/tfpdf/zipball/a6c61aa39be95a8604fb863026e8c2b969ae4113", - "reference": "a6c61aa39be95a8604fb863026e8c2b969ae4113", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", "shasum": "" }, + "require": { + "php": ">=7.2.0" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { - "psr-0": { - "tFPDF": "src/" + "psr-4": { + "Psr\\EventDispatcher\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "LGPL" + "MIT" ], "authors": [ { - "name": "Ian Back", - "email": "ianb@bpm1.com" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "tFPDF", - "homepage": "http://fpdf.org/fr/script/script92.php", + "description": "Standard interfaces for event handling.", "keywords": [ + "events", + "psr", + "psr-14" + ], + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/log", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2020-03-23T09:12:05+00:00" + }, + { + "name": "setasign/fpdi", + "version": "v2.3.4", + "source": { + "type": "git", + "url": "https://github.com/Setasign/FPDI.git", + "reference": "2b5fb811c04f937ef257ef3f798cebeded33c136" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Setasign/FPDI/zipball/2b5fb811c04f937ef257ef3f798cebeded33c136", + "reference": "2b5fb811c04f937ef257ef3f798cebeded33c136", + "shasum": "" + }, + "require": { + "ext-zlib": "*", + "php": "^5.6 || ^7.0" + }, + "conflict": { + "setasign/tfpdf": "<1.31" + }, + "require-dev": { + "phpunit/phpunit": "~5.7", + "setasign/fpdf": "~1.8", + "setasign/tfpdf": "1.31", + "squizlabs/php_codesniffer": "^3.5", + "tecnickcom/tcpdf": "~6.2" + }, + "suggest": { + "setasign/fpdf": "FPDI will extend this class but as it is also possible to use TCPDF or tFPDF as an alternative. There's no fixed dependency configured." + }, + "type": "library", + "autoload": { + "psr-4": { + "setasign\\Fpdi\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Slabon", + "email": "jan.slabon@setasign.com", + "homepage": "https://www.setasign.com" + }, + { + "name": "Maximilian Kresse", + "email": "maximilian.kresse@setasign.com", + "homepage": "https://www.setasign.com" + } + ], + "description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.", + "homepage": "https://www.setasign.com/fpdi", + "keywords": [ + "fpdf", + "fpdi", "pdf" ], - "abandoned": "docnet/tFPDF", - "time": "2014-01-19T09:18:44+00:00" + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/setasign/fpdi", + "type": "tidelift" + } + ], + "time": "2020-08-27T06:55:47+00:00" }, { "name": "stripe/stripe-php", @@ -615,28 +1019,104 @@ "time": "2015-03-02T05:44:40+00:00" }, { - "name": "symfony/event-dispatcher", - "version": "v2.8.52", + "name": "symfony/deprecation-contracts", + "version": "v2.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0" + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0", - "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5e20b83385a77593259c9f8beb2c43cd03b2ac14", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-06T08:49:21+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.1.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "94871fc0a69c3c5da57764187724cdce0755899c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/94871fc0a69c3c5da57764187724cdce0755899c", + "reference": "94871fc0a69c3c5da57764187724cdce0755899c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/event-dispatcher-contracts": "^2", + "symfony/polyfill-php80": "^1.15" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "^2.0.5|~3.0.0", - "symfony/dependency-injection": "~2.6|~3.0.0", - "symfony/expression-language": "~2.6|~3.0.0", - "symfony/stopwatch": "~2.3|~3.0.0" + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/expression-language": "^4.4|^5.0", + "symfony/http-foundation": "^4.4|^5.0", + "symfony/service-contracts": "^1.1|^2", + "symfony/stopwatch": "^4.4|^5.0" }, "suggest": { "symfony/dependency-injection": "", @@ -645,7 +1125,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -672,7 +1152,97 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2018-11-21T14:20:20+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-08-13T14:19:42+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f6f613d74cfc5a623fc36294d3451eb7fa5a042b", + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { "name": "symfony/polyfill-ctype", @@ -827,6 +1397,86 @@ ], "time": "2020-07-14T12:35:20+00:00" }, + { + "name": "symfony/polyfill-php80", + "version": "v1.18.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981", + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981", + "shasum": "" + }, + "require": { + "php": ">=7.0.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" + }, { "name": "twig/extensions", "version": "v1.5.4", @@ -1041,72 +1691,18 @@ ], "time": "2020-05-29T17:27:14+00:00" }, - { - "name": "myclabs/deep-copy", - "version": "1.10.1", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "replace": { - "myclabs/deep-copy": "self.version" - }, - "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2020-06-29T13:22:24+00:00" - }, { "name": "nikic/php-parser", - "version": "v4.8.0", + "version": "v4.9.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8c58eb4cd4f3883f82611abeac2efbc3dbed787e" + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8c58eb4cd4f3883f82611abeac2efbc3dbed787e", - "reference": "8c58eb4cd4f3883f82611abeac2efbc3dbed787e", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/88e519766fc58bd46b8265561fb79b54e2e00b28", + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28", "shasum": "" }, "require": { @@ -1114,7 +1710,7 @@ "php": ">=7.0" }, "require-dev": { - "ircmaxell/php-yacc": "^0.0.6", + "ircmaxell/php-yacc": "^0.0.7", "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" }, "bin": [ @@ -1123,7 +1719,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.8-dev" + "dev-master": "4.9-dev" } }, "autoload": { @@ -1145,7 +1741,7 @@ "parser", "php" ], - "time": "2020-08-09T10:23:20+00:00" + "time": "2020-08-30T16:15:20+00:00" }, { "name": "phar-io/manifest", @@ -1301,16 +1897,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.0", + "version": "5.2.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "3170448f5769fe19f456173d833734e0ff1b84df" + "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/3170448f5769fe19f456173d833734e0ff1b84df", - "reference": "3170448f5769fe19f456173d833734e0ff1b84df", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d870572532cd70bc3fab58f2e23ad423c8404c44", + "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44", "shasum": "" }, "require": { @@ -1349,7 +1945,7 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-07-20T20:05:34+00:00" + "time": "2020-08-15T11:14:08+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -1461,16 +2057,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.1.3", + "version": "9.1.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "4abbce3b0ad05f2e7143ea5f775d5513cb5261e4" + "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4abbce3b0ad05f2e7143ea5f775d5513cb5261e4", - "reference": "4abbce3b0ad05f2e7143ea5f775d5513cb5261e4", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2ef92bec3186a827faf7362ff92ae4e8ec2e49d2", + "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2", "shasum": "" }, "require": { @@ -1530,7 +2126,7 @@ "type": "github" } ], - "time": "2020-08-10T17:45:51+00:00" + "time": "2020-09-03T07:09:19+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1759,16 +2355,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.3.7", + "version": "9.3.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c638a0cac77347980352485912de48c99b42ad00" + "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c638a0cac77347980352485912de48c99b42ad00", - "reference": "c638a0cac77347980352485912de48c99b42ad00", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", + "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", "shasum": "" }, "require": { @@ -1784,11 +2380,12 @@ "phar-io/version": "^3.0.2", "php": "^7.3 || ^8.0", "phpspec/prophecy": "^1.11.1", - "phpunit/php-code-coverage": "^9.1.1", + "phpunit/php-code-coverage": "^9.1.5", "phpunit/php-file-iterator": "^3.0.4", "phpunit/php-invoker": "^3.1", "phpunit/php-text-template": "^2.0.2", "phpunit/php-timer": "^5.0.1", + "sebastian/cli-parser": "^1.0", "sebastian/code-unit": "^1.0.5", "sebastian/comparator": "^4.0.3", "sebastian/diff": "^4.0.2", @@ -1853,7 +2450,59 @@ "type": "github" } ], - "time": "2020-08-11T15:36:12+00:00" + "time": "2020-08-27T06:30:58+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", + "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-08-12T10:49:21+00:00" }, { "name": "sebastian/code-unit", From f468f6a3e7aa104b18729aac0b682a3ed117dfb9 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy Glenn Webb Sr" Date: Mon, 7 Sep 2020 06:30:55 +0000 Subject: [PATCH 2/6] More composer updates and initial client pages. --- src/bb-load.php | 21 ++++++++++++++------- src/bb-modules/Theme/Service.php | 5 +++-- src/composer.json | 2 +- src/composer.lock | 4 ++-- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/bb-load.php b/src/bb-load.php index 10a31ad6e..7dc6b8f3e 100644 --- a/src/bb-load.php +++ b/src/bb-load.php @@ -45,7 +45,7 @@ function handler_exception($e) print json_encode($result); return false; } - +} $page = " @@ -70,7 +70,7 @@ function handler_exception($e) print sprintf('

Line: "%s"

', $e->getLine()); print sprintf('Trace:
%s
', $e->getTraceAsString()); } -} + set_exception_handler("handler_exception"); set_error_handler('handler_error'); @@ -89,7 +89,7 @@ if((isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST']) || (php_sapi_name() = if(file_exists($predictConfigPath)) { $configPath = $predictConfigPath; } -} + // check if config is available if(!file_exists($configPath) || 0 == filesize( $configPath )) { @@ -138,9 +138,12 @@ ini_set('html_errors', FALSE); ini_set('error_log', BB_PATH_LOG . '/php_error.log'); // Strip magic quotes from request data. -if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { - // Create lamba style unescaping function (for portability) - $quotes_sybase = strtolower(ini_get('magic_quotes_sybase')); +/** +Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/vhosts/webbhostingservices.com/httpdocs/boxbilling/src/bb-load.php on line 141 +**/ +//if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) +// Create lamba style unescaping function (for portability) +// $quotes_sybase = strtolower(ini_get('magic_quotes_sybase')); /* create_function deprecated in PHP 7.2 $unescape_function = (empty($quotes_sybase) || $quotes_sybase === 'off') ? 'stripslashes($value)' : 'str_replace("\'\'","\'",$value)'; @@ -158,7 +161,7 @@ if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { } else if (is_array($value)) { foreach ($value as &$v) $fn($v, $fn); } - }; +}; // Unescape data @@ -166,4 +169,8 @@ if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $stripslashes_deep($_GET, $stripslashes_deep); $stripslashes_deep($_COOKIE, $stripslashes_deep); $stripslashes_deep($_REQUEST, $stripslashes_deep); + + + } +?> diff --git a/src/bb-modules/Theme/Service.php b/src/bb-modules/Theme/Service.php index 5bf0361e3..d8bc5047e 100644 --- a/src/bb-modules/Theme/Service.php +++ b/src/bb-modules/Theme/Service.php @@ -276,7 +276,8 @@ class Service implements InjectionAwareInterface $path = $this->getThemesPath(); if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { - if (is_dir($path . DIRECTORY_SEPARATOR . $file) && $file{0} != '.') { +//**Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/webbhostingservices.com/httpdocs/boxbilling/src/bb-modules/Theme/Service.php on line 279 *// + if (is_dir($path . DIRECTORY_SEPARATOR . $file) && $file(0) != '.') { try { if (!$client && strpos($file, 'admin') !== false) { @@ -383,4 +384,4 @@ class Service implements InjectionAwareInterface return $config; } -} \ No newline at end of file +} diff --git a/src/composer.json b/src/composer.json index a2cb41786..75eabce02 100644 --- a/src/composer.json +++ b/src/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=7.2.0", + "php": ">=7.4.9", "ext-curl": "*", "ext-zlib": "*", "ext-PDO": "*", diff --git a/src/composer.lock b/src/composer.lock index 11682c0b7..40b9295b6 100644 --- a/src/composer.lock +++ b/src/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "88040af9ed5a3d739878434ed0363cdf", + "content-hash": "bd8ef69354426d14d8383eaa001c6090", "packages": [ { "name": "composer/ca-bundle", @@ -3529,7 +3529,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.2.0", + "php": ">=7.4.9", "ext-curl": "*", "ext-zlib": "*", "ext-pdo": "*", From 15944b2fa29c1250813346db2204fe9921d29d44 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Mon, 7 Sep 2020 03:22:16 -0400 Subject: [PATCH 3/6] Update bb-load.php --- src/bb-load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-load.php b/src/bb-load.php index 7dc6b8f3e..83ec06a9c 100644 --- a/src/bb-load.php +++ b/src/bb-load.php @@ -139,7 +139,7 @@ ini_set('error_log', BB_PATH_LOG . '/php_error.log'); // Strip magic quotes from request data. /** -Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/vhosts/webbhostingservices.com/httpdocs/boxbilling/src/bb-load.php on line 141 +Deprecated: Function get_magic_quotes_gpc() is deprecated **/ //if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) // Create lamba style unescaping function (for portability) From 61b2efb6f42b7eec1115ff60a6ec2387e8d71cb8 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Mon, 7 Sep 2020 04:14:11 -0400 Subject: [PATCH 4/6] Update Service.php --- src/bb-modules/Theme/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Theme/Service.php b/src/bb-modules/Theme/Service.php index d8bc5047e..65e4f96f3 100644 --- a/src/bb-modules/Theme/Service.php +++ b/src/bb-modules/Theme/Service.php @@ -276,7 +276,7 @@ class Service implements InjectionAwareInterface $path = $this->getThemesPath(); if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { -//**Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/webbhostingservices.com/httpdocs/boxbilling/src/bb-modules/Theme/Service.php on line 279 *// +//**Deprecated: Array and string offset access syntax with curly braces *// if (is_dir($path . DIRECTORY_SEPARATOR . $file) && $file(0) != '.') { try { From 86da55db6b1d1b9b3fd105712edb1a994d0f42d9 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Mon, 7 Sep 2020 16:08:58 -0400 Subject: [PATCH 5/6] Update bb-load.php --- src/bb-load.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-load.php b/src/bb-load.php index 83ec06a9c..cc5b8f838 100644 --- a/src/bb-load.php +++ b/src/bb-load.php @@ -45,7 +45,7 @@ function handler_exception($e) print json_encode($result); return false; } -} + $page = " @@ -70,7 +70,7 @@ function handler_exception($e) print sprintf('

Line: "%s"

', $e->getLine()); print sprintf('Trace:
%s
', $e->getTraceAsString()); } - +} set_exception_handler("handler_exception"); set_error_handler('handler_error'); @@ -139,7 +139,7 @@ ini_set('error_log', BB_PATH_LOG . '/php_error.log'); // Strip magic quotes from request data. /** -Deprecated: Function get_magic_quotes_gpc() is deprecated +Deprecated: Function get_magic_quotes_gpc() **/ //if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) // Create lamba style unescaping function (for portability) From 9dd45fd530ddf4a9df03df897bda40349f2d5e28 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Mon, 7 Sep 2020 16:10:37 -0400 Subject: [PATCH 6/6] Update Service.php --- src/bb-modules/Theme/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Theme/Service.php b/src/bb-modules/Theme/Service.php index 65e4f96f3..8da62a14b 100644 --- a/src/bb-modules/Theme/Service.php +++ b/src/bb-modules/Theme/Service.php @@ -277,7 +277,7 @@ class Service implements InjectionAwareInterface if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { //**Deprecated: Array and string offset access syntax with curly braces *// - if (is_dir($path . DIRECTORY_SEPARATOR . $file) && $file(0) != '.') { + if (is_dir($path . DIRECTORY_SEPARATOR . $file) && $file[0] != '.') { try { if (!$client && strpos($file, 'admin') !== false) {