Changeset 3032524
- Timestamp:
- 02/07/2024 07:00:35 AM (2 years ago)
- Location:
- everest-backup
- Files:
-
- 343 added
- 42 edited
-
tags/2.2.4 (added)
-
tags/2.2.4/LICENSE (added)
-
tags/2.2.4/assets (added)
-
tags/2.2.4/assets/css (added)
-
tags/2.2.4/assets/css/admin.css (added)
-
tags/2.2.4/assets/css/admin.min.css (added)
-
tags/2.2.4/assets/images (added)
-
tags/2.2.4/assets/images/active-ribbon-shadow.png (added)
-
tags/2.2.4/assets/images/eb_icon_home.svg (added)
-
tags/2.2.4/assets/images/ebwp-loading.gif (added)
-
tags/2.2.4/assets/images/ebwp-stop.png (added)
-
tags/2.2.4/assets/images/everest-backup-logo.svg (added)
-
tags/2.2.4/assets/images/icon-backupIcon.svg (added)
-
tags/2.2.4/assets/images/icon-download-backup.svg (added)
-
tags/2.2.4/assets/images/icon-generate-key.svg (added)
-
tags/2.2.4/assets/images/icon.png (added)
-
tags/2.2.4/assets/js (added)
-
tags/2.2.4/assets/js/addons.js (added)
-
tags/2.2.4/assets/js/addons.js.map (added)
-
tags/2.2.4/assets/js/backup.js (added)
-
tags/2.2.4/assets/js/backup.js.map (added)
-
tags/2.2.4/assets/js/index.js (added)
-
tags/2.2.4/assets/js/index.js.map (added)
-
tags/2.2.4/assets/js/migration-clone.js (added)
-
tags/2.2.4/assets/js/migration-clone.js.map (added)
-
tags/2.2.4/assets/js/restore.js (added)
-
tags/2.2.4/assets/js/restore.js.map (added)
-
tags/2.2.4/assets/js/settings.js (added)
-
tags/2.2.4/assets/js/settings.js.map (added)
-
tags/2.2.4/changelog.txt (added)
-
tags/2.2.4/everest-backup.php (added)
-
tags/2.2.4/inc (added)
-
tags/2.2.4/inc/classes (added)
-
tags/2.2.4/inc/classes/class-admin-menu.php (added)
-
tags/2.2.4/inc/classes/class-ajax.php (added)
-
tags/2.2.4/inc/classes/class-archiver.php (added)
-
tags/2.2.4/inc/classes/class-backup-directory.php (added)
-
tags/2.2.4/inc/classes/class-cloud.php (added)
-
tags/2.2.4/inc/classes/class-compress.php (added)
-
tags/2.2.4/inc/classes/class-cron.php (added)
-
tags/2.2.4/inc/classes/class-database.php (added)
-
tags/2.2.4/inc/classes/class-email.php (added)
-
tags/2.2.4/inc/classes/class-everest-backup.php (added)
-
tags/2.2.4/inc/classes/class-extract.php (added)
-
tags/2.2.4/inc/classes/class-file-uploader.php (added)
-
tags/2.2.4/inc/classes/class-filesystem.php (added)
-
tags/2.2.4/inc/classes/class-logs.php (added)
-
tags/2.2.4/inc/classes/class-migration-clone.php (added)
-
tags/2.2.4/inc/classes/class-proc-lock.php (added)
-
tags/2.2.4/inc/classes/class-server-information.php (added)
-
tags/2.2.4/inc/classes/class-tabs-factory.php (added)
-
tags/2.2.4/inc/classes/class-tags.php (added)
-
tags/2.2.4/inc/classes/class-temp-directory.php (added)
-
tags/2.2.4/inc/classes/class-transient.php (added)
-
tags/2.2.4/inc/classes/class-updater.php (added)
-
tags/2.2.4/inc/classes/index.php (added)
-
tags/2.2.4/inc/constants.php (added)
-
tags/2.2.4/inc/core (added)
-
tags/2.2.4/inc/core/class-api.php (added)
-
tags/2.2.4/inc/core/class-archiver-v2.php (added)
-
tags/2.2.4/inc/core/class-archiver.php (added)
-
tags/2.2.4/inc/core/class-export.php (added)
-
tags/2.2.4/inc/core/class-import.php (added)
-
tags/2.2.4/inc/core/class-init.php (added)
-
tags/2.2.4/inc/core/controllers (added)
-
tags/2.2.4/inc/core/controllers/class-base.php (added)
-
tags/2.2.4/inc/core/controllers/index.php (added)
-
tags/2.2.4/inc/core/controllers/v1 (added)
-
tags/2.2.4/inc/core/controllers/v1/class-access-token-controller.php (added)
-
tags/2.2.4/inc/core/controllers/v1/class-manual-backup-controller.php (added)
-
tags/2.2.4/inc/core/controllers/v1/class-schedule-backup-controller.php (added)
-
tags/2.2.4/inc/core/controllers/v1/docs (added)
-
tags/2.2.4/inc/core/controllers/v1/docs/access-token.md (added)
-
tags/2.2.4/inc/core/controllers/v1/docs/manual-backup.md (added)
-
tags/2.2.4/inc/core/export (added)
-
tags/2.2.4/inc/core/export/class-content.php (added)
-
tags/2.2.4/inc/core/export/class-database.php (added)
-
tags/2.2.4/inc/core/export/class-media.php (added)
-
tags/2.2.4/inc/core/export/class-plugins.php (added)
-
tags/2.2.4/inc/core/export/class-setup.php (added)
-
tags/2.2.4/inc/core/export/class-themes.php (added)
-
tags/2.2.4/inc/core/export/class-wrapup.php (added)
-
tags/2.2.4/inc/core/import (added)
-
tags/2.2.4/inc/core/import/class-check.php (added)
-
tags/2.2.4/inc/core/import/class-extraction.php (added)
-
tags/2.2.4/inc/core/import/class-wrapup.php (added)
-
tags/2.2.4/inc/core/index.php (added)
-
tags/2.2.4/inc/deprecated (added)
-
tags/2.2.4/inc/deprecated/1.1.2.php (added)
-
tags/2.2.4/inc/deprecated/2.1.5.php (added)
-
tags/2.2.4/inc/deprecated/index.php (added)
-
tags/2.2.4/inc/functions.php (added)
-
tags/2.2.4/inc/index.php (added)
-
tags/2.2.4/inc/modules (added)
-
tags/2.2.4/inc/modules/backup (added)
-
tags/2.2.4/inc/modules/backup/class-backup-config.php (added)
-
tags/2.2.4/inc/modules/backup/class-backup-content.php (added)
-
tags/2.2.4/inc/modules/backup/class-backup-database.php (added)
-
tags/2.2.4/inc/modules/backup/class-backup-plugins.php (added)
-
tags/2.2.4/inc/modules/backup/class-backup-themes.php (added)
-
tags/2.2.4/inc/modules/backup/class-backup-uploads.php (added)
-
tags/2.2.4/inc/modules/backup/index.php (added)
-
tags/2.2.4/inc/modules/cron (added)
-
tags/2.2.4/inc/modules/cron/class-cron-actions.php (added)
-
tags/2.2.4/inc/modules/cron/class-cron-handler.php (added)
-
tags/2.2.4/inc/modules/cron/index.php (added)
-
tags/2.2.4/inc/modules/database (added)
-
tags/2.2.4/inc/modules/database/class-export-database.php (added)
-
tags/2.2.4/inc/modules/database/class-import-database.php (added)
-
tags/2.2.4/inc/modules/database/index.php (added)
-
tags/2.2.4/inc/modules/email (added)
-
tags/2.2.4/inc/modules/email/class-email-logs.php (added)
-
tags/2.2.4/inc/modules/email/class-send-test-email.php (added)
-
tags/2.2.4/inc/modules/email/index.php (added)
-
tags/2.2.4/inc/modules/history (added)
-
tags/2.2.4/inc/modules/history/class-history-table.php (added)
-
tags/2.2.4/inc/modules/history/index.php (added)
-
tags/2.2.4/inc/modules/index.php (added)
-
tags/2.2.4/inc/modules/logs (added)
-
tags/2.2.4/inc/modules/logs/class-logs-table.php (added)
-
tags/2.2.4/inc/modules/logs/index.php (added)
-
tags/2.2.4/inc/modules/migration-clone (added)
-
tags/2.2.4/inc/modules/migration-clone/class-cloner.php (added)
-
tags/2.2.4/inc/modules/migration-clone/class-migration.php (added)
-
tags/2.2.4/inc/modules/restore (added)
-
tags/2.2.4/inc/modules/restore/class-restore-config.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-content.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-database.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-multisite.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-plugins.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-themes.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-uploads.php (added)
-
tags/2.2.4/inc/modules/restore/class-restore-users.php (added)
-
tags/2.2.4/inc/modules/restore/index.php (added)
-
tags/2.2.4/inc/modules/tabs (added)
-
tags/2.2.4/inc/modules/tabs/class-backup-tab.php (added)
-
tags/2.2.4/inc/modules/tabs/class-migration-clone-tab.php (added)
-
tags/2.2.4/inc/modules/tabs/class-restore-tab.php (added)
-
tags/2.2.4/inc/modules/tabs/class-settings-tab.php (added)
-
tags/2.2.4/inc/require.php (added)
-
tags/2.2.4/inc/stats (added)
-
tags/2.2.4/inc/stats/class-stats.php (added)
-
tags/2.2.4/inc/template-functions.php (added)
-
tags/2.2.4/inc/traits (added)
-
tags/2.2.4/inc/traits/index.php (added)
-
tags/2.2.4/inc/traits/trait-backup.php (added)
-
tags/2.2.4/inc/traits/trait-export.php (added)
-
tags/2.2.4/inc/traits/trait-import.php (added)
-
tags/2.2.4/inc/traits/trait-restore.php (added)
-
tags/2.2.4/inc/traits/trait-singleton.php (added)
-
tags/2.2.4/inc/views (added)
-
tags/2.2.4/inc/views/addons (added)
-
tags/2.2.4/inc/views/addons.php (added)
-
tags/2.2.4/inc/views/addons/addon-not-found.php (added)
-
tags/2.2.4/inc/views/addons/listings.php (added)
-
tags/2.2.4/inc/views/backup (added)
-
tags/2.2.4/inc/views/backup.php (added)
-
tags/2.2.4/inc/views/backup/manual-backup.php (added)
-
tags/2.2.4/inc/views/backup/schedule-backup.php (added)
-
tags/2.2.4/inc/views/changelogs.php (added)
-
tags/2.2.4/inc/views/history.php (added)
-
tags/2.2.4/inc/views/index.php (added)
-
tags/2.2.4/inc/views/logs.php (added)
-
tags/2.2.4/inc/views/migration-clone (added)
-
tags/2.2.4/inc/views/migration-clone.php (added)
-
tags/2.2.4/inc/views/migration-clone/clone.php (added)
-
tags/2.2.4/inc/views/migration-clone/migration.php (added)
-
tags/2.2.4/inc/views/restore (added)
-
tags/2.2.4/inc/views/restore.php (added)
-
tags/2.2.4/inc/views/restore/upload-file.php (added)
-
tags/2.2.4/inc/views/settings (added)
-
tags/2.2.4/inc/views/settings.php (added)
-
tags/2.2.4/inc/views/settings/cloud.php (added)
-
tags/2.2.4/inc/views/settings/debug.php (added)
-
tags/2.2.4/inc/views/settings/general.php (added)
-
tags/2.2.4/inc/views/template-parts (added)
-
tags/2.2.4/inc/views/template-parts/consent-dialog.php (added)
-
tags/2.2.4/inc/views/template-parts/header.php (added)
-
tags/2.2.4/inc/views/template-parts/message-box.php (added)
-
tags/2.2.4/inc/views/template-parts/modal.php (added)
-
tags/2.2.4/inc/views/template-parts/on-error-modal.php (added)
-
tags/2.2.4/inc/views/template-parts/proc-lock-info.php (added)
-
tags/2.2.4/inc/views/template-parts/sidebar-card.php (added)
-
tags/2.2.4/inc/views/template-parts/sidebar.php (added)
-
tags/2.2.4/inc/views/template-parts/upsells.php (added)
-
tags/2.2.4/index.php (added)
-
tags/2.2.4/languages (added)
-
tags/2.2.4/languages/everest-backup-nl_BE.mo (added)
-
tags/2.2.4/languages/everest-backup-nl_BE.po (added)
-
tags/2.2.4/languages/everest-backup-nl_NL.mo (added)
-
tags/2.2.4/languages/everest-backup-nl_NL.po (added)
-
tags/2.2.4/languages/everest-backup.pot (added)
-
tags/2.2.4/readme.txt (added)
-
tags/2.2.4/vendor (added)
-
tags/2.2.4/vendor/autoload.php (added)
-
tags/2.2.4/vendor/composer (added)
-
tags/2.2.4/vendor/composer/ClassLoader.php (added)
-
tags/2.2.4/vendor/composer/InstalledVersions.php (added)
-
tags/2.2.4/vendor/composer/LICENSE (added)
-
tags/2.2.4/vendor/composer/autoload_classmap.php (added)
-
tags/2.2.4/vendor/composer/autoload_namespaces.php (added)
-
tags/2.2.4/vendor/composer/autoload_psr4.php (added)
-
tags/2.2.4/vendor/composer/autoload_real.php (added)
-
tags/2.2.4/vendor/composer/autoload_static.php (added)
-
tags/2.2.4/vendor/composer/installed.json (added)
-
tags/2.2.4/vendor/composer/installed.php (added)
-
tags/2.2.4/vendor/composer/platform_check.php (added)
-
tags/2.2.4/vendor/nelexa (added)
-
tags/2.2.4/vendor/nelexa/zip (added)
-
tags/2.2.4/vendor/nelexa/zip/.php-cs-fixer.php (added)
-
tags/2.2.4/vendor/nelexa/zip/.phpstorm.meta.php (added)
-
tags/2.2.4/vendor/nelexa/zip/LICENSE (added)
-
tags/2.2.4/vendor/nelexa/zip/README.RU.md (added)
-
tags/2.2.4/vendor/nelexa/zip/README.md (added)
-
tags/2.2.4/vendor/nelexa/zip/composer.json (added)
-
tags/2.2.4/vendor/nelexa/zip/src (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/DosAttrs.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/DosCodePage.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/GeneralPurposeBitFlag.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/UnixStat.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipCompressionLevel.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipCompressionMethod.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipConstants.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipEncryptionMethod.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipOptions.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipPlatform.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Constants/ZipVersion.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/Crc32Exception.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/InvalidArgumentException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/RuntimeException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/ZipAuthenticationException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/ZipCryptoException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/ZipEntryNotFoundException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/ZipException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Exception/ZipUnsupportMethodException.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/Pkware (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/Pkware/PKCryptContext.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/Pkware/PKDecryptionStreamFilter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/Pkware/PKEncryptionStreamFilter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/WinZipAes (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/WinZipAes/WinZipAesContext.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/WinZipAes/WinZipAesDecryptionStreamFilter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Filter/Cipher/WinZipAes/WinZipAesEncryptionStreamFilter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Stream (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Stream/ResponseStream.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/Stream/ZipEntryStreamWrapper.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/ZipReader.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/IO/ZipWriter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Data (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Data/ZipFileData.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Data/ZipNewData.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Data/ZipSourceFileData.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/EndOfCentralDirectory.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/ExtraFieldsCollection.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/AbstractUnicodeExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/ApkAlignmentExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/AsiExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/ExtendedTimestampExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/JarMarkerExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/NewUnixExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/NtfsExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/OldUnixExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/UnicodeCommentExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/UnicodePathExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/UnrecognizedExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/WinZipAesExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/Fields/Zip64ExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/ZipExtraDriver.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/Extra/ZipExtraField.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/ImmutableZipContainer.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/ZipContainer.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/ZipData.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/ZipEntry.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Model/ZipEntryMatcher.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/CryptoUtil.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/DateTimeConverter.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/FileAttribUtil.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/FilesUtil.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/Iterator (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/Iterator/IgnoreFilesFilterIterator.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/Iterator/IgnoreFilesRecursiveFilterIterator.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/MathUtil.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/Util/StringUtil.php (added)
-
tags/2.2.4/vendor/nelexa/zip/src/ZipFile.php (added)
-
tags/2.2.4/vendor/psr (added)
-
tags/2.2.4/vendor/psr/http-message (added)
-
tags/2.2.4/vendor/psr/http-message/CHANGELOG.md (added)
-
tags/2.2.4/vendor/psr/http-message/LICENSE (added)
-
tags/2.2.4/vendor/psr/http-message/README.md (added)
-
tags/2.2.4/vendor/psr/http-message/composer.json (added)
-
tags/2.2.4/vendor/psr/http-message/docs (added)
-
tags/2.2.4/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
tags/2.2.4/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
tags/2.2.4/vendor/psr/http-message/src (added)
-
tags/2.2.4/vendor/psr/http-message/src/MessageInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/RequestInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/ResponseInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/ServerRequestInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/StreamInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/UploadedFileInterface.php (added)
-
tags/2.2.4/vendor/psr/http-message/src/UriInterface.php (added)
-
tags/2.2.4/vendor/symfony (added)
-
tags/2.2.4/vendor/symfony/finder (added)
-
tags/2.2.4/vendor/symfony/finder/CHANGELOG.md (added)
-
tags/2.2.4/vendor/symfony/finder/Comparator (added)
-
tags/2.2.4/vendor/symfony/finder/Comparator/Comparator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Comparator/DateComparator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Comparator/NumberComparator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Exception (added)
-
tags/2.2.4/vendor/symfony/finder/Exception/AccessDeniedException.php (added)
-
tags/2.2.4/vendor/symfony/finder/Exception/DirectoryNotFoundException.php (added)
-
tags/2.2.4/vendor/symfony/finder/Finder.php (added)
-
tags/2.2.4/vendor/symfony/finder/Gitignore.php (added)
-
tags/2.2.4/vendor/symfony/finder/Glob.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/CustomFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/FilenameFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/LazyIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/PathFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/SortableIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php (added)
-
tags/2.2.4/vendor/symfony/finder/LICENSE (added)
-
tags/2.2.4/vendor/symfony/finder/README.md (added)
-
tags/2.2.4/vendor/symfony/finder/SplFileInfo.php (added)
-
tags/2.2.4/vendor/symfony/finder/composer.json (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/everest-backup.php (modified) (1 diff)
-
trunk/inc/classes/class-ajax.php (modified) (1 diff)
-
trunk/inc/classes/class-filesystem.php (modified) (2 diffs)
-
trunk/inc/classes/class-tags.php (modified) (1 diff)
-
trunk/inc/core/class-archiver-v2.php (added)
-
trunk/inc/core/class-archiver.php (modified) (4 diffs)
-
trunk/inc/core/class-init.php (modified) (1 diff)
-
trunk/inc/core/export/class-wrapup.php (modified) (8 diffs)
-
trunk/inc/core/import/class-check.php (modified) (7 diffs)
-
trunk/inc/core/import/class-extraction.php (modified) (15 diffs)
-
trunk/inc/traits/trait-import.php (modified) (1 diff)
-
trunk/languages/everest-backup.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.json (modified) (4 diffs)
-
trunk/vendor/composer/installed.php (modified) (4 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/symfony/finder/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/symfony/finder/Comparator/Comparator.php (modified) (3 diffs)
-
trunk/vendor/symfony/finder/Comparator/NumberComparator.php (modified) (1 diff)
-
trunk/vendor/symfony/finder/Finder.php (modified) (34 diffs)
-
trunk/vendor/symfony/finder/Glob.php (modified) (1 diff)
-
trunk/vendor/symfony/finder/Iterator/CustomFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php (modified) (3 diffs)
-
trunk/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/FilenameFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/LazyIterator.php (modified) (1 diff)
-
trunk/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php (modified) (3 diffs)
-
trunk/vendor/symfony/finder/Iterator/PathFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php (modified) (7 diffs)
-
trunk/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php (modified) (2 diffs)
-
trunk/vendor/symfony/finder/Iterator/SortableIterator.php (modified) (4 diffs)
-
trunk/vendor/symfony/finder/LICENSE (modified) (1 diff)
-
trunk/vendor/symfony/finder/SplFileInfo.php (modified) (4 diffs)
-
trunk/vendor/symfony/finder/composer.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
everest-backup/trunk/changelog.txt
r3005651 r3032524 1 1 == Changelog == 2 3 = v2.2.4 = 4 * Update: Security Patch. 5 * New: New archiver for more flexible, stable and faster backup. 2 6 3 7 = v2.2.3 = -
everest-backup/trunk/everest-backup.php
r3005651 r3032524 6 6 * Author: everestthemes 7 7 * Author URI: https://everestthemes.com/ 8 * Version: 2.2. 38 * Version: 2.2.4 9 9 * Text Domain: everest-backup 10 10 * License: GPLv3 or later -
everest-backup/trunk/inc/classes/class-ajax.php
r2975595 r3032524 205 205 everest_backup_setup_environment(); 206 206 207 if ( 'ebwp' !== pathinfo( $_POST['name'], PATHINFO_EXTENSION ) ) { 208 $message = __( 'It seems current uploaded file seems to be tampered with.', 'everest-backup' ); 209 Logs::error( $message ); 210 everest_backup_send_error( $message ); 211 } 212 207 213 everest_backup_get_ajax_response( EVEREST_BACKUP_UPLOAD_PACKAGE_ACTION ); 208 214 -
everest-backup/trunk/inc/classes/class-filesystem.php
r2871628 r3032524 165 165 public function move_file( $from, $to ) { 166 166 167 if ( $from === $to ) { 168 $message = __( 'Source and destination same (during upload save).', 'everest-backup' ); 169 Logs::error( $message ); 170 return false; 171 } 172 167 173 if ( ! $this->is_file( $from ) ) { 174 $message = __( 'Uploaded file cannot be verified as a file (during upload save).', 'everest-backup' ); 175 Logs::error( $message ); 168 176 return false; 169 177 } … … 182 190 */ 183 191 if ( file_exists( $to ) ) { 184 unlink( $to ); 192 $message = __( 'File with same name already exists (during upload save).', 'everest-backup' ); 193 Logs::error( $message ); 194 wp_delete_file( $to ); 185 195 } 186 196 -
everest-backup/trunk/inc/classes/class-tags.php
r2968522 r3032524 306 306 } 307 307 308 if ( everest_backup_is_gzip( $zipfile ) ) { 309 return $this->get_from_v200( $tags_display_type, $zipfile ); 310 } 311 312 return $this->get_before_v200( $tags_display_type, $zipfile ); 308 return $this->get_from_v200( $tags_display_type, $zipfile ); 313 309 314 310 } -
everest-backup/trunk/inc/core/class-archiver.php
r2871628 r3032524 66 66 } 67 67 68 public function add_file( $file ) { 68 public function add_file( $file, $subtask = array() ) { 69 70 $timestart = time(); 69 71 70 72 $file = wp_normalize_path( $file ); … … 76 78 $path = $this->get_entryname( $file ); 77 79 78 $handle = fopen( $file, 'rb' ); 80 $handle = gzopen( $file, 'rb' ); 81 82 if ( ! empty( $subtask['c_f'] ) && ! empty( $subtask['c_ftell'] ) ) { 83 if ( $file == $subtask['c_f'] ) { 84 gzseek( $handle, $subtask['c_ftell'] ); 85 } 86 } 79 87 80 88 gzwrite( $this->ziphandle, "EBWPFILE_START:{$path}\n" ); … … 82 90 while ( ! feof( $handle ) ) { 83 91 gzwrite( $this->ziphandle, fread( $handle, self::$READ_LIMIT ) ); 92 93 if ( ( time() - $timestart ) > 10 ) { 94 return array( 95 'current_file_ftell' => ftell( $handle ), 96 'file_name' => $file, 97 ); 98 } 84 99 } 85 100 86 101 gzwrite( $this->ziphandle, "\nEBWPFILE_END:{$path}\n" ); 87 102 88 return fclose( $handle );103 return gzclose( $handle ); 89 104 } 90 105 … … 109 124 if ( ! $metadata ) { 110 125 if ( $this->open( 'r' ) ) { 111 $metajson = ltrim( gzgets( $this->ziphandle ), 'EBWPFILE_METADATA:' );126 $metajson = ltrim( fgets( $this->ziphandle ), 'EBWPFILE_METADATA:' ); 112 127 $this->close(); 113 128 -
everest-backup/trunk/inc/core/class-init.php
r2918414 r3032524 70 70 $files = array( 71 71 'class-archiver.php', 72 'class-archiver-v2.php', 72 73 'class-export.php', 73 74 'class-import.php', -
everest-backup/trunk/inc/core/export/class-wrapup.php
r2924700 r3032524 8 8 namespace Everest_Backup\Core\Export; 9 9 10 use Everest_Backup\Core\Archiver ;10 use Everest_Backup\Core\Archiver_V2; 11 11 use Everest_Backup\Filesystem; 12 12 use Everest_Backup\Logs; … … 109 109 private static function run() { 110 110 111 Logs::set_proc_stat( 112 array( 113 'log' => 'info', 114 'status' => 'in-process', 115 'progress' => 80, 116 'message' => __( 'Wrapping things up', 'everest-backup' ), 117 ) 118 ); 119 120 $zip = self::get_archive_path(); 111 $subtask = ! empty( self::$params['subtask'] ) ? json_decode( self::$params['subtask'], true ) : array(); 112 113 if ( ! $subtask ) { 114 Logs::set_proc_stat( 115 array( 116 'log' => 'info', 117 'status' => 'in-process', 118 'progress' => 80, 119 'message' => __( 'Wrapping things up', 'everest-backup' ), 120 ) 121 ); 122 } 121 123 122 124 $listpath = everest_backup_current_request_storage_path( self::$LISTFILENAME ); … … 126 128 } 127 129 128 Logs::set_proc_stat( 129 array( 130 'log' => 'info', 131 'status' => 'in-process', 132 'progress' => 80, 133 'message' => __( 'Checking available space', 'everest-backup' ), 134 ) 135 ); 136 137 sleep( 1 ); 138 139 $stats = self::files_stats( $listpath ); 130 $zip = self::get_archive_path(); 131 $timestart = time(); 132 133 if ( ! $subtask ) { 134 Logs::set_proc_stat( 135 array( 136 'log' => 'info', 137 'status' => 'in-process', 138 'progress' => 80, 139 'message' => __( 'Checking available space', 'everest-backup' ), 140 ) 141 ); 142 } 143 144 $stats = ! empty( $subtask['stats'] ) ? $subtask['stats'] : self::files_stats( $listpath ); 140 145 141 146 if ( ! everest_backup_is_space_available( EVEREST_BACKUP_BACKUP_DIR_PATH, $stats['size'] ) ) { … … 143 148 } 144 149 145 Logs::set_proc_stat( 146 array( 147 'log' => 'info', 148 'status' => 'in-process', 149 'progress' => 80, 150 'message' => __( 'Space available, archiving files', 'everest-backup' ), 151 ) 152 ); 153 154 $archiver = new Archiver( $zip ); 155 156 if ( $archiver->open() ) { 157 158 $archiver->set_metadata( 150 if ( ! $subtask ) { 151 Logs::set_proc_stat( 159 152 array( 160 'stats' => $stats, 161 'filename' => self::get_archive_name(), 162 'request_id' => everest_backup_current_request_id(), 163 'tags' => everest_backup_generate_tags_from_params( self::read_config( 'Params' ) ), 164 'config' => self::read_config(), 153 'log' => 'info', 154 'status' => 'in-process', 155 'progress' => 80, 156 'message' => __( 'Space available, archiving files', 'everest-backup' ), 165 157 ) 166 158 ); 167 168 $handle = fopen( $listpath, "r" ); 159 } 160 161 $archiver = new Archiver_V2( $zip ); 162 163 if ( $archiver->open( $subtask ? 'ab' : 'wb' ) ) { 164 165 if ( ! $subtask ) { 166 $archiver->set_metadata( 167 array( 168 'stats' => $stats, 169 'filename' => self::get_archive_name(), 170 'request_id' => everest_backup_current_request_id(), 171 'tags' => everest_backup_generate_tags_from_params( self::read_config( 'Params' ) ), 172 'config' => self::read_config(), 173 ) 174 ); 175 } 176 177 $handle = fopen( $listpath, 'r' ); 169 178 170 179 if ( is_resource( $handle ) ) { 171 180 172 $count = 1; 173 174 while( !feof( $handle ) ){ 175 $line = fgets( $handle ); 176 177 if ( ! $line ) { 178 continue; 181 $count = ! empty( $subtask['count'] ) ? absint( $subtask['count'] ) : 1; 182 183 if ( ! empty( $subtask['ftell'] ) ) { 184 fseek( $handle, absint( $subtask['ftell'] ) ); 185 } 186 while ( ! feof( $handle ) ) { 187 if ( empty( $subtask['c_f'] ) && empty( $subtask['c_ftell'] ) ) { 188 $line = fgets( $handle ); 189 190 if ( ! $line ) { 191 continue; 192 } 193 194 $filepath = trim( $line ); 195 196 if ( ! file_exists( $filepath ) ) { 197 continue; 198 } 199 200 if ( 'ebwp' === pathinfo( $line, PATHINFO_EXTENSION ) ) { 201 continue; 202 } 203 } else { 204 $filepath = $subtask['c_f']; 179 205 } 180 206 181 $filepath = trim( $line ); 182 183 if ( ! file_exists( $filepath ) ) { 184 continue; 185 } 186 187 if ( 'ebwp' === pathinfo( $line, PATHINFO_EXTENSION ) ) { 188 continue; 189 } 190 191 if ( $archiver->add_file( $filepath ) ) { 207 if ( $file_write_return = $archiver->add_file( $filepath, $subtask ) ) { 208 $subtask['c_f'] = ''; 209 $subtask['c_ftell'] = ''; 192 210 193 211 $progress = ( $count / $stats['total'] ) * 100; … … 201 219 esc_html( $progress ) 202 220 ), 203 'detail' => sprintf( __( 'Archived: %1$s out of %2$s', 'everest-backup' ), esc_html( $count ), esc_html( $stats['total'] ) ) 221 'detail' => sprintf( __( 'Archived: %1$s out of %2$s', 'everest-backup' ), esc_html( $count ), esc_html( $stats['total'] ) ), 204 222 ) 205 223 ); … … 207 225 $count++; 208 226 227 } 228 229 if ( is_array( $file_write_return ) ) { 230 return self::set_next( 231 'wrapup', 232 json_encode( 233 array( 234 'count' => $count, 235 'ftell' => ftell( $handle ), 236 'stats' => $stats, 237 'c_ftell' => $file_write_return['current_file_ftell'], 238 'c_f' => $file_write_return['file_name'], 239 ) 240 ) 241 ); 242 } 243 244 if ( ( time() - $timestart ) > 10 ) { 245 return self::set_next( 246 'wrapup', 247 json_encode( 248 array( 249 'count' => $count, 250 'ftell' => ftell( $handle ), 251 'stats' => $stats 252 ) 253 ) 254 ); 209 255 } 210 256 … … 236 282 Logs::done( __( 'Backup completed', 'everest-backup' ) ); 237 283 284 // if ( ! wp_next_scheduled( 'everest_backup_ebwp_file_upload_cloud' ) ) { 285 // wp_schedule_single_event( 286 // time() + 20, 287 // 'everest_backup_ebwp_file_upload_cloud', 288 // array( 289 // $zip, 290 // $migration->get_url(), 291 // ) 292 // ); 293 // } 294 238 295 do_action( 'everest_backup_after_zip_done', $zip, $migration->get_url() ); 239 296 … … 246 303 ) 247 304 ); 248 249 305 } 250 251 306 } -
everest-backup/trunk/inc/core/import/class-check.php
r2924700 r3032524 9 9 10 10 use Everest_Backup\Core\Archiver; 11 use Everest_Backup\Core\Archiver_V2; 11 12 use Everest_Backup\Logs; 12 13 use Everest_Backup\Traits\Import; … … 19 20 } 20 21 22 /** 23 * Check for file integrity. 24 */ 21 25 class Check { 22 26 … … 86 90 87 91 if ( ! everest_backup_is_gzip( self::$params['package'] ) ) { 88 throw new \Exception( __( 'Your backup file requires Everest Backup version 1.1.7 or earlier, aborting restore.', 'everest-backup' ) ); 89 } 90 91 $archiver = new Archiver( self::$params['package'] ); 92 $archiver = new Archiver_V2( self::$params['package'] ); 93 // throw new \Exception( __( 'Your backup file requires Everest Backup version 1.1.7 or earlier, aborting restore.', 'everest-backup' ) ); 94 } else { 95 $archiver = new Archiver( self::$params['package'] ); 96 } 92 97 93 98 /** … … 100 105 101 106 if ( empty( $stats ) ) { 102 throw new \Exception( __( 'Uploaded backup is either corrupted or not supported. Metadata missing, aborting restore.' , 'everest-backup' ) );107 throw new \Exception( __( 'Uploaded backup is either corrupted or not supported. Metadata missing, aborting restore.' . json_encode( $archiver->get_metadatas() ), 'everest-backup' ) ); 103 108 } 104 109 … … 121 126 'progress' => 4, 122 127 'message' => __( 'Restore initialized. Checking server vitals for restore.' ), 123 'detail' => __( 'Space available', 'everest-backup' ) 128 'detail' => __( 'Space available', 'everest-backup' ), 124 129 ) 125 130 ); … … 199 204 'progress' => 10, 200 205 'message' => __( 'Restoration might fail... Major difference found in PHP version' ), 201 'detail' => $detail 206 'detail' => $detail, 202 207 ) 203 208 ); … … 228 233 'progress' => 12, 229 234 'message' => __( 'All checks passed. Starting files extraction...' ), 230 'next' => 'extraction' 235 'next' => 'extraction', 231 236 ) 232 237 ); 233 238 234 239 deactivate_plugins( everest_backup_get_other_plugins(), true ); 235 236 240 } 237 241 } -
everest-backup/trunk/inc/core/import/class-extraction.php
r3005651 r3032524 9 9 10 10 use Everest_Backup\Core\Archiver; 11 use Everest_Backup\Core\Archiver_V2; 11 12 use Everest_Backup\Filesystem; 12 13 use Everest_Backup\Logs; … … 27 28 28 29 if ( false !== strpos( $filepath, LANGDIR ) ) { 29 // Bail if we are inside language directory.30 // Bail if we are inside language directory. 30 31 return; 31 32 } … … 42 43 } 43 44 44 private static function run( ) {45 private static function run( $params ) { 45 46 46 47 $metadata = self::get_metadata(); … … 56 57 $stats = $metadata['stats']; 57 58 58 $archiver = new Archiver( $metadata['FilePath'] ); 59 if ( everest_backup_is_gzip( $metadata['FilePath'] ) ) { 60 $archiver = new Archiver( $metadata['FilePath'] ); 61 } else { 62 $archiver = new Archiver_V2( $metadata['FilePath'] ); 63 } 59 64 60 65 if ( $archiver->open( 'rb' ) ) { … … 67 72 $handle = false; 68 73 69 while ( ! gzeof( $archiver->get_ziphandle() ) ) { 70 $line = gzgets( $archiver->get_ziphandle() ); 74 $current_position = 0; 75 if ( ! empty( $params['current_position'] ) ) { 76 $current_position = $params['current_position']; 77 } 78 if ( ! empty( $params['count'] ) ) { 79 $count = $params['count']; 80 } 81 82 $time = time(); 83 $start_time = 0; 84 85 fseek( $archiver->get_ziphandle(), $current_position ); // Start file read from previous position. 86 87 if ( ! empty( $params['current_file_name'] ) && ! empty( $params['current_file_seek'] ) ) { 88 $path = $params['current_file_name']; 89 if ( file_exists( $path ) ) { 90 $handle = fopen( $path, 'ab' ); 91 if ( ! $handle ) { 92 throw new \Exception( 'Could not open file for append: ' . $path ); 93 } 94 $start_time = microtime( true ); 95 } else { 96 throw new \Exception( 'Extraction error. Created file not found.' ); 97 } 98 if ( false !== strpos( $path, 'ebwp-files' ) ) { 99 $type = 'ebwp-files'; 100 } else { 101 $_type = strstr( $path, '/', true ); 102 $type = $_type ? $_type : 'others'; 103 } 104 } 105 106 while ( ! feof( $archiver->get_ziphandle() ) ) { 107 $line = fgets( $archiver->get_ziphandle() ); 71 108 72 109 /** … … 77 114 * =============================================== 78 115 */ 79 if ( false !== strpos( $line, 'EBWPFILE_START:' ) ) {116 if ( 0 === strpos( $line, 'EBWPFILE_START:' ) ) { 80 117 $path = trim( str_replace( 'EBWPFILE_START:', '', $line ) ); 81 118 $path = str_replace( chr( 0 ), '', $path ); // Fix for null byte issue. … … 85 122 $path = everest_backup_current_request_storage_path( $path ); 86 123 } else { 87 $_type = strstr( $path, '/' , true );124 $_type = strstr( $path, '/', true ); 88 125 89 126 $type = $_type ? $_type : 'others'; … … 101 138 } 102 139 103 $handle = @fopen( $path, 'wb' ); 140 $handle = fopen( $path, 'wb' ); 141 if ( ! $handle ) { 142 throw new \Exception( 'Unable to create file: ' . $path ); 143 } 144 $start_time = microtime( true ); 104 145 continue; 105 146 } … … 114 155 * ======================================== 115 156 */ 116 if ( false !== strpos( $line, 'EBWPFILE_END:' ) ) { 117 if ( is_resource( $handle ) ) { 118 119 /** 120 * Lets truncate the extra line that is being added at the end of the restored file. 121 * This is also the fix for issue: #217 122 */ 123 $curr_pos = ftell( $handle ); 124 125 if ( !! $curr_pos ) { 126 // Remove additional last line which gets added during archive process. 127 ftruncate( $handle, $curr_pos - 1 ); 157 if ( 0 === strpos( $line, 'EBWPFILE_END:' ) ) { 158 if ( empty( $params['current_file_name'] ) || $path !== $params['current_file_name'] ) { 159 if ( is_resource( $handle ) ) { 160 161 /** 162 * Lets truncate the extra line that is being added at the end of the restored file. 163 * This is also the fix for issue: #217 164 */ 165 $curr_pos = ftell( $handle ); 166 167 if ( ! ! $curr_pos ) { 168 // Remove additional last line which gets added during archive process. 169 ftruncate( $handle, $curr_pos - 1 ); 170 } 128 171 } 129 130 fclose( $handle );131 172 } 132 173 … … 144 185 } 145 186 146 $calc = ( $count / $stats['total'] ) * 100 ; 187 ++$count; 188 189 $calc = ( $count / $stats['total'] ) * 100; 147 190 $progress = $calc > 100 ? 100 : $calc; 148 191 149 $ count++;192 $time_taken = microtime( true ) - $start_time; 150 193 151 194 Logs::set_proc_stat( 152 195 array( 153 196 'status' => 'in-process', 154 'progress' => round( $progress * 0.3 + 30, 2 ), // At the end, it is always going to be 60% 197 'progress' => round( $progress * 0.3 + 30, 2 ), // At the end, it is always going to be 60%. 155 198 'message' => sprintf( 156 199 __( 'Restoring files [ %1$s ] : %2$d%% completed', 'everest-backup' ), … … 158 201 esc_html( $progress ) 159 202 ), 160 'detail' => sprintf( __( 'Restored: %1$s out of %2$s', 'everest-backup' ), esc_html( $count ), esc_html( $stats['total'] ) ) 203 'detail' => sprintf( __( 'Restored: %1$s out of %2$s', 'everest-backup' ), esc_html( $count ), esc_html( $stats['total'] ) ), 204 'params' => $params, 205 'time_taken' => $time_taken, 161 206 ) 162 207 ); … … 165 210 $line = ''; 166 211 $path = ''; 212 213 @fclose( $handle ); 167 214 $handle = false; 168 215 … … 179 226 if ( $handle ) { 180 227 fwrite( $handle, $line ); 181 } 182 228 229 if ( ( time() - $time ) > 10 ) { 230 231 $calc = ( $count / $stats['total'] ) * 100; 232 $progress = $calc > 100 ? 100 : $calc; 233 234 $time_taken = microtime( true ) - $start_time; 235 236 $current_position = ftell( $archiver->get_ziphandle() ); 237 238 Logs::set_proc_stat( 239 array( 240 'status' => 'in-process', 241 'progress' => round( $progress * 0.3 + 30, 2 ), // At the end, it is always going to be 60%. 242 'message' => sprintf( 243 __( 'Restoring files [ %1$s ] : %2$d%% completed', 'everest-backup' ), 244 esc_html( ucwords( str_replace( '-', ' ', $type ) ) ), 245 esc_html( $progress ) 246 ), 247 'detail' => sprintf( __( 'Restored: %1$s out of %2$s', 'everest-backup' ), esc_html( $count ), esc_html( $stats['total'] ) ), 248 'current_position' => $current_position, 249 'current_file_name' => $path, 250 'current_file_seek' => ftell( $handle ), 251 'next' => 'extraction', // Set next to same. 252 'count' => $count, // current count. 253 'time_taken' => $time_taken, 254 ) 255 ); 256 return; 257 } 258 } 183 259 } 184 260 … … 200 276 esc_html( human_time_diff( $timer_start ) ) 201 277 ), 202 'detail' => 'yes' === $delete_after_restore? __( 'Removing uploaded archive file', 'everest-backup' ) : __( 'Keeping uploaded archive file.', 'everest-backup' ),203 'next' => 'wrapup'// Set next.278 'detail' => ( 'yes' === $delete_after_restore ) ? __( 'Removing uploaded archive file', 'everest-backup' ) : __( 'Keeping uploaded archive file.', 'everest-backup' ), 279 'next' => 'wrapup', // Set next. 204 280 ) 205 281 ); … … 208 284 unlink( $metadata['FilePath'] ); 209 285 } 210 211 286 } 212 213 287 } 214 -
everest-backup/trunk/inc/traits/trait-import.php
r2924700 r3032524 32 32 self::$params = apply_filters( 'everest_backup_filter_restore_params', $params ); 33 33 34 self::run( );34 self::run( self::$params ); 35 35 36 36 everest_backup_send_json( self::$params ); -
everest-backup/trunk/languages/everest-backup.pot
r3005651 r3032524 1 # Copyright (C) 202 3Everest Backup1 # Copyright (C) 2024 Everest Backup 2 2 # This file is distributed under the same license as the Everest Backup package. 3 3 msgid "" … … 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 202 3-12-05 04:55+0000\n"9 "POT-Creation-Date: 2024-02-07 05:55+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 236 236 msgstr "" 237 237 238 #: ../inc/classes/class-ajax.php:200, ../inc/classes/class-ajax.php:22 3, ../inc/classes/class-ajax.php:258, ../inc/classes/class-ajax.php:297238 #: ../inc/classes/class-ajax.php:200, ../inc/classes/class-ajax.php:229, ../inc/classes/class-ajax.php:264, ../inc/classes/class-ajax.php:303 239 239 msgid "Current user does not have permission to upload files." 240 240 msgstr "" 241 241 242 #: ../inc/classes/class-ajax.php:208 243 msgid "It seems current uploaded file seems to be tampered with." 244 msgstr "" 245 242 246 #. translators: %s is the restore start time. 243 #: ../inc/classes/class-ajax.php:3 19247 #: ../inc/classes/class-ajax.php:325 244 248 msgid "Restore started at: %s" 245 249 msgstr "" 246 250 247 #: ../inc/classes/class-ajax.php:3 25251 #: ../inc/classes/class-ajax.php:331 248 252 msgid "Extracting package" 249 253 msgstr "" 250 254 251 #: ../inc/classes/class-ajax.php:3 44255 #: ../inc/classes/class-ajax.php:350 252 256 msgid "Cleaning remaining extracted files" 253 257 msgstr "" 254 258 255 259 #. translators: %s is the restore completed time. 256 #: ../inc/classes/class-ajax.php:35 1260 #: ../inc/classes/class-ajax.php:357 257 261 msgid "Restore completed at: %s" 258 262 msgstr "" 259 263 260 264 #. translators: %s is the total restore time. 261 #: ../inc/classes/class-ajax.php:3 54265 #: ../inc/classes/class-ajax.php:360 262 266 msgid "Total time: %s" 263 267 msgstr "" 264 268 265 #: ../inc/classes/class-ajax.php:3 56, ../inc/core/import/class-wrapup.php:147269 #: ../inc/classes/class-ajax.php:362, ../inc/core/import/class-wrapup.php:147 266 270 msgid "Restore completed." 267 271 msgstr "" … … 542 546 msgstr "" 543 547 544 #: ../inc/classes/class-filesystem.php:333 548 #: ../inc/classes/class-filesystem.php:168 549 msgid "Source and destination same (during upload save)." 550 msgstr "" 551 552 #: ../inc/classes/class-filesystem.php:174 553 msgid "Uploaded file cannot be verified as a file (during upload save)." 554 msgstr "" 555 556 #: ../inc/classes/class-filesystem.php:192 557 msgid "File with same name already exists (during upload save)." 558 msgstr "" 559 560 #: ../inc/classes/class-filesystem.php:343 545 561 msgid "Failed to check free space using custom function, probably no space left on device. Aborting process" 546 562 msgstr "" … … 931 947 msgstr "" 932 948 933 #: ../inc/core/export/class-setup.php:121, ../inc/core/import/class-check.php:22 1949 #: ../inc/core/export/class-setup.php:121, ../inc/core/import/class-check.php:226 934 950 msgid "This error is generated manually using Everest Backup debugger." 935 951 msgstr "" … … 955 971 msgstr "" 956 972 957 #: ../inc/core/export/class-wrapup.php:11 6973 #: ../inc/core/export/class-wrapup.php:119 958 974 msgid "Wrapping things up" 959 975 msgstr "" 960 976 961 #: ../inc/core/export/class-wrapup.php:12 5977 #: ../inc/core/export/class-wrapup.php:127 962 978 msgid "Files list not found, aborting backup." 963 979 msgstr "" 964 980 965 #: ../inc/core/export/class-wrapup.php:13 3981 #: ../inc/core/export/class-wrapup.php:139 966 982 msgid "Checking available space" 967 983 msgstr "" 968 984 969 #: ../inc/core/export/class-wrapup.php:14 2985 #: ../inc/core/export/class-wrapup.php:147 970 986 msgid "Required space not available, aborting backup." 971 987 msgstr "" 972 988 973 #: ../inc/core/export/class-wrapup.php:15 0989 #: ../inc/core/export/class-wrapup.php:156 974 990 msgid "Space available, archiving files" 975 991 msgstr "" 976 992 977 #: ../inc/core/export/class-wrapup.php:2 00993 #: ../inc/core/export/class-wrapup.php:218 978 994 msgid "Archiving files: %d%% completed" 979 995 msgstr "" 980 996 981 #: ../inc/core/export/class-wrapup.php:2 03997 #: ../inc/core/export/class-wrapup.php:221 982 998 msgid "Archived: %1$s out of %2$s" 983 999 msgstr "" 984 1000 985 #: ../inc/core/export/class-wrapup.php:2 321001 #: ../inc/core/export/class-wrapup.php:278 986 1002 msgid "Time elapsed: %s" 987 1003 msgstr "" 988 1004 989 #: ../inc/core/export/class-wrapup.php:2 341005 #: ../inc/core/export/class-wrapup.php:280 990 1006 msgid "File size: %s" 991 1007 msgstr "" 992 1008 993 #: ../inc/core/export/class-wrapup.php:2 361009 #: ../inc/core/export/class-wrapup.php:282 994 1010 msgid "Backup completed" 995 1011 msgstr "" 996 1012 997 #: ../inc/core/import/class-check.php:3 51013 #: ../inc/core/import/class-check.php:39 998 1014 msgid "Preparing package" 999 1015 msgstr "" 1000 1016 1001 #: ../inc/core/import/class-check.php:8 11017 #: ../inc/core/import/class-check.php:85 1002 1018 msgid "Restoring: %s" 1003 1019 msgstr "" 1004 1020 1005 #: ../inc/core/import/class-check.php:88 1006 msgid "Your backup file requires Everest Backup version 1.1.7 or earlier, aborting restore." 1007 msgstr "" 1008 1009 #: ../inc/core/import/class-check.php:102 1010 msgid "Uploaded backup is either corrupted or not supported. Metadata missing, aborting restore." 1011 msgstr "" 1012 1013 #: ../inc/core/import/class-check.php:110 1021 #: ../inc/core/import/class-check.php:115 1014 1022 msgid "Total files to restore: %s. Checking available space..." 1015 1023 msgstr "" 1016 1024 1017 #: ../inc/core/import/class-check.php:1 151025 #: ../inc/core/import/class-check.php:120 1018 1026 msgid "Required space not available, aborting restore." 1019 1027 msgstr "" 1020 1028 1021 #: ../inc/core/import/class-check.php:12 31029 #: ../inc/core/import/class-check.php:128 1022 1030 msgid "Space available" 1023 1031 msgstr "" 1024 1032 1025 #: ../inc/core/import/class-check.php:14 31033 #: ../inc/core/import/class-check.php:148 1026 1034 msgid "Modules excluded: %s" 1027 1035 msgstr "" 1028 1036 1029 #: ../inc/core/import/class-check.php:16 31037 #: ../inc/core/import/class-check.php:168 1030 1038 msgid "Backup file created: %s ago" 1031 1039 msgstr "" 1032 1040 1033 #: ../inc/core/import/class-check.php:18 01041 #: ../inc/core/import/class-check.php:185 1034 1042 msgid "Checking PHP version" 1035 1043 msgstr "" 1036 1044 1037 #: ../inc/core/import/class-check.php:19 31045 #: ../inc/core/import/class-check.php:198 1038 1046 msgid "Attention: You are restoring from PHP %1$s to %2$s" 1039 1047 msgstr "" 1040 1048 1041 #: ../inc/core/import/class-extraction.php: 491049 #: ../inc/core/import/class-extraction.php:50 1042 1050 msgid "Archive file path missing from metadata. Aborting restore." 1043 1051 msgstr "" 1044 1052 1045 #: ../inc/core/import/class-extraction.php:5 21053 #: ../inc/core/import/class-extraction.php:53 1046 1054 msgid "Restoring files" 1047 1055 msgstr "" 1048 1056 1049 #: ../inc/core/import/class-extraction.php:1 561057 #: ../inc/core/import/class-extraction.php:199, ../inc/core/import/class-extraction.php:243 1050 1058 msgid "Restoring files [ %1$s ] : %2$d%% completed" 1051 1059 msgstr "" 1052 1060 1053 #: ../inc/core/import/class-extraction.php: 1601061 #: ../inc/core/import/class-extraction.php:203, ../inc/core/import/class-extraction.php:247 1054 1062 msgid "Restored: %1$s out of %2$s" 1055 1063 msgstr "" 1056 1064 1057 #: ../inc/core/import/class-extraction.php: 1981065 #: ../inc/core/import/class-extraction.php:274 1058 1066 msgid "Restored %1$d files. Time taken: %2$s" 1059 1067 msgstr "" 1060 1068 1061 #: ../inc/core/import/class-extraction.php:2 021069 #: ../inc/core/import/class-extraction.php:278 1062 1070 msgid "Removing uploaded archive file" 1063 1071 msgstr "" 1064 1072 1065 #: ../inc/core/import/class-extraction.php:2 021073 #: ../inc/core/import/class-extraction.php:278 1066 1074 msgid "Keeping uploaded archive file." 1067 1075 msgstr "" -
everest-backup/trunk/readme.txt
r3005651 r3032524 6 6 Tested up to: 6.4 7 7 Requires PHP: 7.4 8 Stable tag: 2.2. 38 Stable tag: 2.2.4 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
everest-backup/trunk/vendor/autoload.php
r2980292 r3032524 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit eb33690ef56a03552354de09656002f2::getLoader();25 return ComposerAutoloaderInitb56e537aed8c5b2292774101d9234d11::getLoader(); -
everest-backup/trunk/vendor/composer/autoload_classmap.php
r3001767 r3032524 7 7 8 8 return array( 9 'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',10 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 11 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',12 'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',13 'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',14 'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',15 10 ); -
everest-backup/trunk/vendor/composer/autoload_psr4.php
r3001767 r3032524 7 7 8 8 return array( 9 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),10 9 'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'), 11 10 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), -
everest-backup/trunk/vendor/composer/autoload_real.php
r3001767 r3032524 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit eb33690ef56a03552354de09656002f25 class ComposerAutoloaderInitb56e537aed8c5b2292774101d9234d11 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit eb33690ef56a03552354de09656002f2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb56e537aed8c5b2292774101d9234d11', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit eb33690ef56a03552354de09656002f2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb56e537aed8c5b2292774101d9234d11', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit eb33690ef56a03552354de09656002f2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb56e537aed8c5b2292774101d9234d11::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticIniteb33690ef56a03552354de09656002f2::$files;37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;40 41 require $file;42 }43 }, null, null);44 foreach ($filesToLoad as $fileIdentifier => $file) {45 $requireFile($fileIdentifier, $file);46 }47 35 48 36 return $loader; -
everest-backup/trunk/vendor/composer/autoload_static.php
r3001767 r3032524 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit eb33690ef56a03552354de09656002f27 class ComposerStaticInitb56e537aed8c5b2292774101d9234d11 8 8 { 9 public static $files = array (10 '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',11 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',12 );13 14 9 public static $prefixLengthsPsr4 = array ( 15 10 'S' => 16 11 array ( 17 'Symfony\\Polyfill\\Php80\\' => 23,18 12 'Symfony\\Component\\Finder\\' => 25, 19 13 ), … … 26 20 27 21 public static $prefixDirsPsr4 = array ( 28 'Symfony\\Polyfill\\Php80\\' =>29 array (30 0 => __DIR__ . '/..' . '/symfony/polyfill-php80',31 ),32 22 'Symfony\\Component\\Finder\\' => 33 23 array ( … … 45 35 46 36 public static $classMap = array ( 47 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',48 37 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 49 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',50 'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',51 'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',52 'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',53 38 ); 54 39 … … 56 41 { 57 42 return \Closure::bind(function () use ($loader) { 58 $loader->prefixLengthsPsr4 = ComposerStaticInit eb33690ef56a03552354de09656002f2::$prefixLengthsPsr4;59 $loader->prefixDirsPsr4 = ComposerStaticInit eb33690ef56a03552354de09656002f2::$prefixDirsPsr4;60 $loader->classMap = ComposerStaticInit eb33690ef56a03552354de09656002f2::$classMap;43 $loader->prefixLengthsPsr4 = ComposerStaticInitb56e537aed8c5b2292774101d9234d11::$prefixLengthsPsr4; 44 $loader->prefixDirsPsr4 = ComposerStaticInitb56e537aed8c5b2292774101d9234d11::$prefixDirsPsr4; 45 $loader->classMap = ComposerStaticInitb56e537aed8c5b2292774101d9234d11::$classMap; 61 46 62 47 }, null, ClassLoader::class); -
everest-backup/trunk/vendor/composer/installed.json
r3001767 r3032524 149 149 }, 150 150 { 151 "name": "symfony/ deprecation-contracts",152 "version": "v 2.5.2",153 "version_normalized": " 2.5.2.0",151 "name": "symfony/finder", 152 "version": "v6.0.19", 153 "version_normalized": "6.0.19.0", 154 154 "source": { 155 155 "type": "git", 156 "url": "https://github.com/symfony/ deprecation-contracts.git",157 "reference": " e8b495ea28c1d97b5e0c121748d6f9b53d075c66"156 "url": "https://github.com/symfony/finder.git", 157 "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11" 158 158 }, 159 159 "dist": { 160 160 "type": "zip", 161 "url": "https://api.github.com/repos/symfony/ deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",162 "reference": " e8b495ea28c1d97b5e0c121748d6f9b53d075c66",161 "url": "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11", 162 "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11", 163 163 "shasum": "" 164 164 }, 165 165 "require": { 166 "php": ">= 7.1"167 }, 168 "time": "202 2-01-02T09:53:40+00:00",166 "php": ">=8.0.2" 167 }, 168 "time": "2023-01-20T17:44:14+00:00", 169 169 "type": "library", 170 "extra": {171 "branch-alias": {172 "dev-main": "2.5-dev"173 },174 "thanks": {175 "name": "symfony/contracts",176 "url": "https://github.com/symfony/contracts"177 }178 },179 170 "installation-source": "dist", 180 171 "autoload": { 181 "files": [ 182 "function.php" 172 "psr-4": { 173 "Symfony\\Component\\Finder\\": "" 174 }, 175 "exclude-from-classmap": [ 176 "/Tests/" 183 177 ] 184 178 }, … … 189 183 "authors": [ 190 184 { 191 "name": "Nicolas Grekas",192 "email": "p@tchwork.com"193 },194 {195 "name": "Symfony Community",196 "homepage": "https://symfony.com/contributors"197 }198 ],199 "description": "A generic function and convention to trigger deprecation notices",200 "homepage": "https://symfony.com",201 "support": {202 "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"203 },204 "funding": [205 {206 "url": "https://symfony.com/sponsor",207 "type": "custom"208 },209 {210 "url": "https://github.com/fabpot",211 "type": "github"212 },213 {214 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",215 "type": "tidelift"216 }217 ],218 "install-path": "../symfony/deprecation-contracts"219 },220 {221 "name": "symfony/finder",222 "version": "v5.4.27",223 "version_normalized": "5.4.27.0",224 "source": {225 "type": "git",226 "url": "https://github.com/symfony/finder.git",227 "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d"228 },229 "dist": {230 "type": "zip",231 "url": "https://api.github.com/repos/symfony/finder/zipball/ff4bce3c33451e7ec778070e45bd23f74214cd5d",232 "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d",233 "shasum": ""234 },235 "require": {236 "php": ">=7.2.5",237 "symfony/deprecation-contracts": "^2.1|^3",238 "symfony/polyfill-php80": "^1.16"239 },240 "time": "2023-07-31T08:02:31+00:00",241 "type": "library",242 "installation-source": "dist",243 "autoload": {244 "psr-4": {245 "Symfony\\Component\\Finder\\": ""246 },247 "exclude-from-classmap": [248 "/Tests/"249 ]250 },251 "notification-url": "https://packagist.org/downloads/",252 "license": [253 "MIT"254 ],255 "authors": [256 {257 185 "name": "Fabien Potencier", 258 186 "email": "fabien@symfony.com" … … 266 194 "homepage": "https://symfony.com", 267 195 "support": { 268 "source": "https://github.com/symfony/finder/tree/v 5.4.27"196 "source": "https://github.com/symfony/finder/tree/v6.0.19" 269 197 }, 270 198 "funding": [ … … 283 211 ], 284 212 "install-path": "../symfony/finder" 285 },286 {287 "name": "symfony/polyfill-php80",288 "version": "v1.28.0",289 "version_normalized": "1.28.0.0",290 "source": {291 "type": "git",292 "url": "https://github.com/symfony/polyfill-php80.git",293 "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5"294 },295 "dist": {296 "type": "zip",297 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5",298 "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5",299 "shasum": ""300 },301 "require": {302 "php": ">=7.1"303 },304 "time": "2023-01-26T09:26:14+00:00",305 "type": "library",306 "extra": {307 "branch-alias": {308 "dev-main": "1.28-dev"309 },310 "thanks": {311 "name": "symfony/polyfill",312 "url": "https://github.com/symfony/polyfill"313 }314 },315 "installation-source": "dist",316 "autoload": {317 "files": [318 "bootstrap.php"319 ],320 "psr-4": {321 "Symfony\\Polyfill\\Php80\\": ""322 },323 "classmap": [324 "Resources/stubs"325 ]326 },327 "notification-url": "https://packagist.org/downloads/",328 "license": [329 "MIT"330 ],331 "authors": [332 {333 "name": "Ion Bazan",334 "email": "ion.bazan@gmail.com"335 },336 {337 "name": "Nicolas Grekas",338 "email": "p@tchwork.com"339 },340 {341 "name": "Symfony Community",342 "homepage": "https://symfony.com/contributors"343 }344 ],345 "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",346 "homepage": "https://symfony.com",347 "keywords": [348 "compatibility",349 "polyfill",350 "portable",351 "shim"352 ],353 "support": {354 "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0"355 },356 "funding": [357 {358 "url": "https://symfony.com/sponsor",359 "type": "custom"360 },361 {362 "url": "https://github.com/fabpot",363 "type": "github"364 },365 {366 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",367 "type": "tidelift"368 }369 ],370 "install-path": "../symfony/polyfill-php80"371 213 } 372 214 ], -
everest-backup/trunk/vendor/composer/installed.php
r3005651 r3032524 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 3ba534af007bcedab00d9ffc5508dce487a9af72',6 'reference' => '543205581e244a40f12e8411f52d8d3216f184d5', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 3ba534af007bcedab00d9ffc5508dce487a9af72',16 'reference' => '543205581e244a40f12e8411f52d8d3216f184d5', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', … … 40 40 'dev_requirement' => false, 41 41 ), 42 'symfony/deprecation-contracts' => array(43 'pretty_version' => 'v2.5.2',44 'version' => '2.5.2.0',45 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',46 'type' => 'library',47 'install_path' => __DIR__ . '/../symfony/deprecation-contracts',48 'aliases' => array(),49 'dev_requirement' => false,50 ),51 42 'symfony/finder' => array( 52 'pretty_version' => 'v 5.4.27',53 'version' => ' 5.4.27.0',54 'reference' => ' ff4bce3c33451e7ec778070e45bd23f74214cd5d',43 'pretty_version' => 'v6.0.19', 44 'version' => '6.0.19.0', 45 'reference' => '5cc9cac6586fc0c28cd173780ca696e419fefa11', 55 46 'type' => 'library', 56 47 'install_path' => __DIR__ . '/../symfony/finder', … … 58 49 'dev_requirement' => false, 59 50 ), 60 'symfony/polyfill-php80' => array(61 'pretty_version' => 'v1.28.0',62 'version' => '1.28.0.0',63 'reference' => '6caa57379c4aec19c0a12a38b59b26487dcfe4b5',64 'type' => 'library',65 'install_path' => __DIR__ . '/../symfony/polyfill-php80',66 'aliases' => array(),67 'dev_requirement' => false,68 ),69 51 ), 70 52 ); -
everest-backup/trunk/vendor/composer/platform_check.php
r3001767 r3032524 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70400)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 80002)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.2". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
everest-backup/trunk/vendor/symfony/finder/CHANGELOG.md
r3001767 r3032524 1 1 CHANGELOG 2 2 ========= 3 4 6.0 5 --- 6 7 * Remove `Comparator::setTarget()` and `Comparator::setOperator()` 3 8 4 9 5.4.0 -
everest-backup/trunk/vendor/symfony/finder/Comparator/Comparator.php
r3001767 r3032524 17 17 class Comparator 18 18 { 19 private $target;20 private $operator = '==';19 private string $target; 20 private string $operator; 21 21 22 public function __construct(string $target = null, string $operator = '==')22 public function __construct(string $target, string $operator = '==') 23 23 { 24 if ( null === $target) {25 t rigger_deprecation('symfony/finder', '5.4', 'Constructing a "%s" without setting "$target" is deprecated.', __CLASS__);24 if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) { 25 throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); 26 26 } 27 27 28 28 $this->target = $target; 29 $this-> doSetOperator($operator);29 $this->operator = $operator; 30 30 } 31 31 32 32 /** 33 33 * Gets the target value. 34 *35 * @return string36 34 */ 37 public function getTarget() 35 public function getTarget(): string 38 36 { 39 if (null === $this->target) {40 trigger_deprecation('symfony/finder', '5.4', 'Calling "%s" without initializing the target is deprecated.', __METHOD__);41 }42 43 37 return $this->target; 44 38 } 45 39 46 40 /** 47 * @deprecated set the target via the constructor instead41 * Gets the comparison operator. 48 42 */ 49 public function setTarget(string $target) 50 { 51 trigger_deprecation('symfony/finder', '5.4', '"%s" is deprecated. Set the target via the constructor instead.', __METHOD__); 52 53 $this->target = $target; 54 } 55 56 /** 57 * Gets the comparison operator. 58 * 59 * @return string 60 */ 61 public function getOperator() 43 public function getOperator(): string 62 44 { 63 45 return $this->operator; … … 65 47 66 48 /** 67 * Sets the comparison operator. 68 * 69 * @throws \InvalidArgumentException 70 * 71 * @deprecated set the operator via the constructor instead 49 * Tests against the target. 72 50 */ 73 public function setOperator(string $operator)51 public function test(mixed $test): bool 74 52 { 75 trigger_deprecation('symfony/finder', '5.4', '"%s" is deprecated. Set the operator via the constructor instead.', __METHOD__);76 77 $this->doSetOperator('' === $operator ? '==' : $operator);78 }79 80 /**81 * Tests against the target.82 *83 * @param mixed $test A test value84 *85 * @return bool86 */87 public function test($test)88 {89 if (null === $this->target) {90 trigger_deprecation('symfony/finder', '5.4', 'Calling "%s" without initializing the target is deprecated.', __METHOD__);91 }92 93 53 switch ($this->operator) { 94 54 case '>': … … 106 66 return $test == $this->target; 107 67 } 108 109 private function doSetOperator(string $operator): void110 {111 if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) {112 throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator));113 }114 115 $this->operator = $operator;116 }117 68 } -
everest-backup/trunk/vendor/symfony/finder/Comparator/NumberComparator.php
r2980292 r3032524 36 36 { 37 37 /** 38 * @param string| null $test A comparison string or null38 * @param string|int $test A comparison string or an integer 39 39 * 40 40 * @throws \InvalidArgumentException If the test is not understood -
everest-backup/trunk/vendor/symfony/finder/Finder.php
r3001767 r3032524 46 46 public const IGNORE_VCS_IGNORED_FILES = 4; 47 47 48 private $mode = 0;49 private $names = [];50 private $notNames = [];51 private $exclude = [];52 private $filters = [];53 private $depths = [];54 private $sizes = [];55 private $followLinks = false;56 private $reverseSorting = false;57 private $sort = false;58 private $ignore = 0;59 private $dirs = [];60 private $dates = [];61 private $iterators = [];62 private $contains = [];63 private $notContains = [];64 private $paths = [];65 private $notPaths = [];66 private $ignoreUnreadableDirs = false;67 68 private static $vcsPatterns = ['.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg'];48 private int $mode = 0; 49 private array $names = []; 50 private array $notNames = []; 51 private array $exclude = []; 52 private array $filters = []; 53 private array $depths = []; 54 private array $sizes = []; 55 private bool $followLinks = false; 56 private bool $reverseSorting = false; 57 private \Closure|int|false $sort = false; 58 private int $ignore = 0; 59 private array $dirs = []; 60 private array $dates = []; 61 private array $iterators = []; 62 private array $contains = []; 63 private array $notContains = []; 64 private array $paths = []; 65 private array $notPaths = []; 66 private bool $ignoreUnreadableDirs = false; 67 68 private static array $vcsPatterns = ['.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg']; 69 69 70 70 public function __construct() … … 75 75 /** 76 76 * Creates a new Finder. 77 * 78 * @return static 79 */ 80 public static function create() 77 */ 78 public static function create(): static 81 79 { 82 80 return new static(); … … 88 86 * @return $this 89 87 */ 90 public function directories() 88 public function directories(): static 91 89 { 92 90 $this->mode = Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES; … … 100 98 * @return $this 101 99 */ 102 public function files() 100 public function files(): static 103 101 { 104 102 $this->mode = Iterator\FileTypeFilterIterator::ONLY_FILES; … … 123 121 * @see NumberComparator 124 122 */ 125 public function depth( $levels)123 public function depth(string|int|array $levels): static 126 124 { 127 125 foreach ((array) $levels as $level) { … … 151 149 * @see DateComparator 152 150 */ 153 public function date( $dates)151 public function date(string|array $dates): static 154 152 { 155 153 foreach ((array) $dates as $date) { … … 165 163 * You can use patterns (delimited with / sign), globs or simple strings. 166 164 * 167 * $finder->name(' /\.php$/')168 * $finder->name(' *.php') // same as above, without dot files165 * $finder->name('*.php') 166 * $finder->name('/\.php$/') // same as above 169 167 * $finder->name('test.php') 170 168 * $finder->name(['test.py', 'test.php']) … … 176 174 * @see FilenameFilterIterator 177 175 */ 178 public function name( $patterns)176 public function name(string|array $patterns): static 179 177 { 180 178 $this->names = array_merge($this->names, (array) $patterns); … … 192 190 * @see FilenameFilterIterator 193 191 */ 194 public function notName( $patterns)192 public function notName(string|array $patterns): static 195 193 { 196 194 $this->notNames = array_merge($this->notNames, (array) $patterns); … … 214 212 * @see FilecontentFilterIterator 215 213 */ 216 public function contains( $patterns)214 public function contains(string|array $patterns): static 217 215 { 218 216 $this->contains = array_merge($this->contains, (array) $patterns); … … 236 234 * @see FilecontentFilterIterator 237 235 */ 238 public function notContains( $patterns)236 public function notContains(string|array $patterns): static 239 237 { 240 238 $this->notContains = array_merge($this->notContains, (array) $patterns); … … 260 258 * @see FilenameFilterIterator 261 259 */ 262 public function path( $patterns)260 public function path(string|array $patterns): static 263 261 { 264 262 $this->paths = array_merge($this->paths, (array) $patterns); … … 284 282 * @see FilenameFilterIterator 285 283 */ 286 public function notPath( $patterns)284 public function notPath(string|array $patterns): static 287 285 { 288 286 $this->notPaths = array_merge($this->notPaths, (array) $patterns); … … 306 304 * @see NumberComparator 307 305 */ 308 public function size( $sizes)306 public function size(string|int|array $sizes): static 309 307 { 310 308 foreach ((array) $sizes as $size) { … … 328 326 * @see ExcludeDirectoryFilterIterator 329 327 */ 330 public function exclude( $dirs)328 public function exclude(string|array $dirs): static 331 329 { 332 330 $this->exclude = array_merge($this->exclude, (array) $dirs); … … 344 342 * @see ExcludeDirectoryFilterIterator 345 343 */ 346 public function ignoreDotFiles(bool $ignoreDotFiles) 344 public function ignoreDotFiles(bool $ignoreDotFiles): static 347 345 { 348 346 if ($ignoreDotFiles) { … … 364 362 * @see ExcludeDirectoryFilterIterator 365 363 */ 366 public function ignoreVCS(bool $ignoreVCS) 364 public function ignoreVCS(bool $ignoreVCS): static 367 365 { 368 366 if ($ignoreVCS) { … … 382 380 * @return $this 383 381 */ 384 public function ignoreVCSIgnored(bool $ignoreVCSIgnored) 382 public function ignoreVCSIgnored(bool $ignoreVCSIgnored): static 385 383 { 386 384 if ($ignoreVCSIgnored) { … … 400 398 * @param string|string[] $pattern VCS patterns to ignore 401 399 */ 402 public static function addVCSPattern( $pattern)400 public static function addVCSPattern(string|array $pattern) 403 401 { 404 402 foreach ((array) $pattern as $p) { … … 420 418 * @see SortableIterator 421 419 */ 422 public function sort(\Closure $closure) 420 public function sort(\Closure $closure): static 423 421 { 424 422 $this->sort = $closure; … … 436 434 * @see SortableIterator 437 435 */ 438 public function sortByName(bool $useNaturalSort = false) 436 public function sortByName(bool $useNaturalSort = false): static 439 437 { 440 438 $this->sort = $useNaturalSort ? Iterator\SortableIterator::SORT_BY_NAME_NATURAL : Iterator\SortableIterator::SORT_BY_NAME; … … 452 450 * @see SortableIterator 453 451 */ 454 public function sortByType() 452 public function sortByType(): static 455 453 { 456 454 $this->sort = Iterator\SortableIterator::SORT_BY_TYPE; … … 470 468 * @see SortableIterator 471 469 */ 472 public function sortByAccessedTime() 470 public function sortByAccessedTime(): static 473 471 { 474 472 $this->sort = Iterator\SortableIterator::SORT_BY_ACCESSED_TIME; … … 482 480 * @return $this 483 481 */ 484 public function reverseSorting() 482 public function reverseSorting(): static 485 483 { 486 484 $this->reverseSorting = true; … … 502 500 * @see SortableIterator 503 501 */ 504 public function sortByChangedTime() 502 public function sortByChangedTime(): static 505 503 { 506 504 $this->sort = Iterator\SortableIterator::SORT_BY_CHANGED_TIME; … … 520 518 * @see SortableIterator 521 519 */ 522 public function sortByModifiedTime() 520 public function sortByModifiedTime(): static 523 521 { 524 522 $this->sort = Iterator\SortableIterator::SORT_BY_MODIFIED_TIME; … … 537 535 * @see CustomFilterIterator 538 536 */ 539 public function filter(\Closure $closure) 537 public function filter(\Closure $closure): static 540 538 { 541 539 $this->filters[] = $closure; … … 549 547 * @return $this 550 548 */ 551 public function followLinks() 549 public function followLinks(): static 552 550 { 553 551 $this->followLinks = true; … … 563 561 * @return $this 564 562 */ 565 public function ignoreUnreadableDirs(bool $ignore = true) 563 public function ignoreUnreadableDirs(bool $ignore = true): static 566 564 { 567 565 $this->ignoreUnreadableDirs = $ignore; … … 579 577 * @throws DirectoryNotFoundException if one of the directories does not exist 580 578 */ 581 public function in( $dirs)579 public function in(string|array $dirs): static 582 580 { 583 581 $resolvedDirs = []; … … 608 606 * @throws \LogicException if the in() method has not been called 609 607 */ 610 #[\ReturnTypeWillChange] 611 public function getIterator() 608 public function getIterator(): \Iterator 612 609 { 613 610 if (0 === \count($this->dirs) && 0 === \count($this->iterators)) { … … 652 649 * @throws \InvalidArgumentException when the given argument is not iterable 653 650 */ 654 public function append(iterable $iterator) 651 public function append(iterable $iterator): static 655 652 { 656 653 if ($iterator instanceof \IteratorAggregate) { … … 674 671 /** 675 672 * Check if any results were found. 676 * 677 * @return bool 678 */ 679 public function hasResults() 673 */ 674 public function hasResults(): bool 680 675 { 681 676 foreach ($this->getIterator() as $_) { … … 688 683 /** 689 684 * Counts all the results collected by the iterators. 690 * 691 * @return int 692 */ 693 #[\ReturnTypeWillChange] 694 public function count() 685 */ 686 public function count(): int 695 687 { 696 688 return iterator_count($this->getIterator()); -
everest-backup/trunk/vendor/symfony/finder/Glob.php
r3001767 r3032524 38 38 /** 39 39 * Returns a regexp which is the equivalent of the glob pattern. 40 *41 * @return string42 40 */ 43 public static function toRegex(string $glob, bool $strictLeadingDot = true, bool $strictWildcardSlash = true, string $delimiter = '#') 41 public static function toRegex(string $glob, bool $strictLeadingDot = true, bool $strictWildcardSlash = true, string $delimiter = '#'): string 44 42 { 45 43 $firstByte = true; -
everest-backup/trunk/vendor/symfony/finder/Iterator/CustomFilterIterator.php
r3001767 r3032524 24 24 class CustomFilterIterator extends \FilterIterator 25 25 { 26 private $filters = [];26 private array $filters = []; 27 27 28 28 /** … … 46 46 /** 47 47 * Filters the iterator values. 48 *49 * @return bool50 48 */ 51 #[\ReturnTypeWillChange] 52 public function accept() 49 public function accept(): bool 53 50 { 54 51 $fileinfo = $this->current(); -
everest-backup/trunk/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php
r3001767 r3032524 23 23 class DateRangeFilterIterator extends \FilterIterator 24 24 { 25 private $comparators = [];25 private array $comparators = []; 26 26 27 27 /** … … 38 38 /** 39 39 * Filters the iterator values. 40 *41 * @return bool42 40 */ 43 #[\ReturnTypeWillChange] 44 public function accept() 41 public function accept(): bool 45 42 { 46 43 $fileinfo = $this->current(); -
everest-backup/trunk/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php
r3001767 r3032524 24 24 class DepthRangeFilterIterator extends \FilterIterator 25 25 { 26 private $minDepth = 0;26 private int $minDepth = 0; 27 27 28 28 /** … … 41 41 /** 42 42 * Filters the iterator values. 43 *44 * @return bool45 43 */ 46 #[\ReturnTypeWillChange] 47 public function accept() 44 public function accept(): bool 48 45 { 49 46 return $this->getInnerIterator()->getDepth() >= $this->minDepth; -
everest-backup/trunk/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php
r3001767 r3032524 18 18 * 19 19 * @extends \FilterIterator<string, \SplFileInfo> 20 *21 20 * @implements \RecursiveIterator<string, \SplFileInfo> 22 21 */ 23 22 class ExcludeDirectoryFilterIterator extends \FilterIterator implements \RecursiveIterator 24 23 { 25 private $iterator;26 private $isRecursive;27 private $excludedDirs = [];28 private $excludedPattern;24 private \Iterator $iterator; 25 private bool $isRecursive; 26 private array $excludedDirs = []; 27 private ?string $excludedPattern = null; 29 28 30 29 /** … … 54 53 /** 55 54 * Filters the iterator values. 56 *57 * @return bool58 55 */ 59 #[\ReturnTypeWillChange] 60 public function accept() 56 public function accept(): bool 61 57 { 62 58 if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) { … … 74 70 } 75 71 76 /** 77 * @return bool 78 */ 79 #[\ReturnTypeWillChange] 80 public function hasChildren() 72 public function hasChildren(): bool 81 73 { 82 74 return $this->isRecursive && $this->iterator->hasChildren(); 83 75 } 84 76 85 /** 86 * @return self 87 */ 88 #[\ReturnTypeWillChange] 89 public function getChildren() 77 public function getChildren(): self 90 78 { 91 79 $children = new self($this->iterator->getChildren(), []); -
everest-backup/trunk/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php
r3001767 r3032524 24 24 public const ONLY_DIRECTORIES = 2; 25 25 26 private $mode;26 private int $mode; 27 27 28 28 /** … … 39 39 /** 40 40 * Filters the iterator values. 41 *42 * @return bool43 41 */ 44 #[\ReturnTypeWillChange] 45 public function accept() 42 public function accept(): bool 46 43 { 47 44 $fileinfo = $this->current(); -
everest-backup/trunk/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php
r3001767 r3032524 24 24 /** 25 25 * Filters the iterator values. 26 *27 * @return bool28 26 */ 29 #[\ReturnTypeWillChange] 30 public function accept() 27 public function accept(): bool 31 28 { 32 29 if (!$this->matchRegexps && !$this->noMatchRegexps) { … … 52 49 * 53 50 * @param string $str Pattern: string or regexp 54 *55 * @return string56 51 */ 57 protected function toRegex(string $str) 52 protected function toRegex(string $str): string 58 53 { 59 54 return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/'; -
everest-backup/trunk/vendor/symfony/finder/Iterator/FilenameFilterIterator.php
r3001767 r3032524 25 25 /** 26 26 * Filters the iterator values. 27 *28 * @return bool29 27 */ 30 #[\ReturnTypeWillChange] 31 public function accept() 28 public function accept(): bool 32 29 { 33 30 return $this->isAccepted($this->current()->getFilename()); … … 41 38 * 42 39 * @param string $str Pattern: glob or regexp 43 *44 * @return string45 40 */ 46 protected function toRegex(string $str) 41 protected function toRegex(string $str): string 47 42 { 48 43 return $this->isRegex($str) ? $str : Glob::toRegex($str); -
everest-backup/trunk/vendor/symfony/finder/Iterator/LazyIterator.php
r3001767 r3032524 19 19 class LazyIterator implements \IteratorAggregate 20 20 { 21 private $iteratorFactory;21 private \Closure $iteratorFactory; 22 22 23 23 public function __construct(callable $iteratorFactory) 24 24 { 25 $this->iteratorFactory = $iteratorFactory ;25 $this->iteratorFactory = $iteratorFactory instanceof \Closure ? $iteratorFactory : \Closure::fromCallable($iteratorFactory); 26 26 } 27 27 -
everest-backup/trunk/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php
r3001767 r3032524 51 51 * Such case can be handled by child classes before calling the method if they want to 52 52 * apply a different behavior. 53 *54 * @return bool55 53 */ 56 protected function isAccepted(string $string) 54 protected function isAccepted(string $string): bool 57 55 { 58 56 // should at least not match one rule to exclude … … 80 78 /** 81 79 * Checks whether the string is a regex. 82 *83 * @return bool84 80 */ 85 protected function isRegex(string $str) 81 protected function isRegex(string $str): bool 86 82 { 87 83 $availableModifiers = 'imsxuADU'; … … 111 107 /** 112 108 * Converts string into regexp. 113 *114 * @return string115 109 */ 116 abstract protected function toRegex(string $str) ;110 abstract protected function toRegex(string $str): string; 117 111 } -
everest-backup/trunk/vendor/symfony/finder/Iterator/PathFilterIterator.php
r3001767 r3032524 24 24 /** 25 25 * Filters the iterator values. 26 *27 * @return bool28 26 */ 29 #[\ReturnTypeWillChange] 30 public function accept() 27 public function accept(): bool 31 28 { 32 29 $filename = $this->current()->getRelativePathname(); … … 50 47 * 51 48 * @param string $str Pattern: regexp or dirname 52 *53 * @return string54 49 */ 55 protected function toRegex(string $str) 50 protected function toRegex(string $str): string 56 51 { 57 52 return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/'; -
everest-backup/trunk/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php
r3001767 r3032524 22 22 class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator 23 23 { 24 /** 25 * @var bool 26 */ 27 private $ignoreUnreadableDirs; 28 29 /** 30 * @var bool 31 */ 32 private $ignoreFirstRewind = true; 24 private bool $ignoreUnreadableDirs; 25 private ?bool $rewindable = null; 33 26 34 27 // these 3 properties take part of the performance optimization to avoid redoing the same work in all iterations 35 private $rootPath;36 private $subPath;37 private $directorySeparator = '/';28 private string $rootPath; 29 private string $subPath; 30 private string $directorySeparator = '/'; 38 31 39 32 /** … … 56 49 /** 57 50 * Return an instance of SplFileInfo with support for relative paths. 58 *59 * @return SplFileInfo60 51 */ 61 #[\ReturnTypeWillChange] 62 public function current() 52 public function current(): SplFileInfo 63 53 { 64 54 // the logic here avoids redoing the same work in all iterations 65 55 66 if ( null === $subPathname = $this->subPath) {67 $ subPathname = $this->subPath = $this->getSubPath();56 if (!isset($this->subPath)) { 57 $this->subPath = $this->getSubPath(); 68 58 } 59 $subPathname = $this->subPath; 69 60 if ('' !== $subPathname) { 70 61 $subPathname .= $this->directorySeparator; … … 79 70 } 80 71 81 /** 82 * @param bool $allowLinks 83 * 84 * @return bool 85 */ 86 #[\ReturnTypeWillChange] 87 public function hasChildren($allowLinks = false) 72 public function hasChildren(bool $allowLinks = false): bool 88 73 { 89 74 $hasChildren = parent::hasChildren($allowLinks); … … 104 89 105 90 /** 106 * @return \RecursiveDirectoryIterator107 *108 91 * @throws AccessDeniedException 109 92 */ 110 #[\ReturnTypeWillChange] 111 public function getChildren() 93 public function getChildren(): \RecursiveDirectoryIterator 112 94 { 113 95 try { … … 119 101 120 102 // performance optimization to avoid redoing the same work in all children 103 $children->rewindable = &$this->rewindable; 121 104 $children->rootPath = $this->rootPath; 122 105 } … … 129 112 130 113 /** 131 * @return void114 * Do nothing for non rewindable stream. 132 115 */ 133 #[\ReturnTypeWillChange] 134 public function next() 116 public function rewind(): void 135 117 { 136 $this->ignoreFirstRewind = false; 137 138 parent::next(); 139 } 140 141 /** 142 * @return void 143 */ 144 #[\ReturnTypeWillChange] 145 public function rewind() 146 { 147 // some streams like FTP are not rewindable, ignore the first rewind after creation, 148 // as newly created DirectoryIterator does not need to be rewound 149 if ($this->ignoreFirstRewind) { 150 $this->ignoreFirstRewind = false; 151 118 if (false === $this->isRewindable()) { 152 119 return; 153 120 } … … 155 122 parent::rewind(); 156 123 } 124 125 /** 126 * Checks if the stream is rewindable. 127 */ 128 public function isRewindable(): bool 129 { 130 if (null !== $this->rewindable) { 131 return $this->rewindable; 132 } 133 134 if (false !== $stream = @opendir($this->getPath())) { 135 $infos = stream_get_meta_data($stream); 136 closedir($stream); 137 138 if ($infos['seekable']) { 139 return $this->rewindable = true; 140 } 141 } 142 143 return $this->rewindable = false; 144 } 157 145 } -
everest-backup/trunk/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php
r3001767 r3032524 23 23 class SizeRangeFilterIterator extends \FilterIterator 24 24 { 25 private $comparators = [];25 private array $comparators = []; 26 26 27 27 /** … … 38 38 /** 39 39 * Filters the iterator values. 40 *41 * @return bool42 40 */ 43 #[\ReturnTypeWillChange] 44 public function accept() 41 public function accept(): bool 45 42 { 46 43 $fileinfo = $this->current(); -
everest-backup/trunk/vendor/symfony/finder/Iterator/SortableIterator.php
r3001767 r3032524 29 29 public const SORT_BY_NAME_NATURAL = 6; 30 30 31 private $iterator;32 private $sort;31 private \Traversable $iterator; 32 private \Closure|int $sort; 33 33 34 34 /** … … 38 38 * @throws \InvalidArgumentException 39 39 */ 40 public function __construct(\Traversable $iterator, $sort, bool $reverseOrder = false)40 public function __construct(\Traversable $iterator, int|callable $sort, bool $reverseOrder = false) 41 41 { 42 42 $this->iterator = $iterator; … … 76 76 $this->sort = $order; 77 77 } elseif (\is_callable($sort)) { 78 $this->sort = $reverseOrder ? static function (\SplFileInfo $a, \SplFileInfo $b) use ($sort) { return -$sort($a, $b); } : $sort;78 $this->sort = $reverseOrder ? static function (\SplFileInfo $a, \SplFileInfo $b) use ($sort) { return -$sort($a, $b); } : \Closure::fromCallable($sort); 79 79 } else { 80 80 throw new \InvalidArgumentException('The SortableIterator takes a PHP callable or a valid built-in sort algorithm as an argument.'); … … 82 82 } 83 83 84 /** 85 * @return \Traversable<string, \SplFileInfo> 86 */ 87 #[\ReturnTypeWillChange] 88 public function getIterator() 84 public function getIterator(): \Traversable 89 85 { 90 86 if (1 === $this->sort) { -
everest-backup/trunk/vendor/symfony/finder/LICENSE
r2980292 r3032524 1 Copyright (c) 2004- presentFabien Potencier1 Copyright (c) 2004-2023 Fabien Potencier 2 2 3 3 Permission is hereby granted, free of charge, to any person obtaining a copy -
everest-backup/trunk/vendor/symfony/finder/SplFileInfo.php
r3001767 r3032524 19 19 class SplFileInfo extends \SplFileInfo 20 20 { 21 private $relativePath;22 private $relativePathname;21 private string $relativePath; 22 private string $relativePathname; 23 23 24 24 /** … … 38 38 * 39 39 * This path does not contain the file name. 40 *41 * @return string42 40 */ 43 public function getRelativePath() 41 public function getRelativePath(): string 44 42 { 45 43 return $this->relativePath; … … 50 48 * 51 49 * This path contains the file name. 52 *53 * @return string54 50 */ 55 public function getRelativePathname() 51 public function getRelativePathname(): string 56 52 { 57 53 return $this->relativePathname; … … 68 64 * Returns the contents of the file. 69 65 * 70 * @return string71 *72 66 * @throws \RuntimeException 73 67 */ 74 public function getContents() 68 public function getContents(): string 75 69 { 76 70 set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; }); -
everest-backup/trunk/vendor/symfony/finder/composer.json
r3001767 r3032524 17 17 ], 18 18 "require": { 19 "php": ">=7.2.5", 20 "symfony/deprecation-contracts": "^2.1|^3", 21 "symfony/polyfill-php80": "^1.16" 19 "php": ">=8.0.2" 22 20 }, 23 21 "autoload": {
Note: See TracChangeset
for help on using the changeset viewer.