Changeset 2946395
- Timestamp:
- 08/02/2023 06:42:46 AM (2 years ago)
- Location:
- auto-install-free-ssl
- Files:
-
- 277 added
- 12 edited
-
tags/3.6.1 (added)
-
tags/3.6.1/FreeSSLAuto (added)
-
tags/3.6.1/FreeSSLAuto/src (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/AcmeV2.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/Base64UrlSafeEncoder.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/Client.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/ClientInterface.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/Factory.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Acme/openssl.cnf (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/AdminNotice.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/AutoDataEntry.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/Factory.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/ForceHttpsPage.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/ForceSSL.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/HomeOptions.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Admin/Log.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Controller.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Email.php (added)
-
tags/3.6.1/FreeSSLAuto/src/Logger.php (added)
-
tags/3.6.1/assets (added)
-
tags/3.6.1/assets/css (added)
-
tags/3.6.1/assets/css/aifs-admin.css (added)
-
tags/3.6.1/assets/img (added)
-
tags/3.6.1/assets/img/fire.webp (added)
-
tags/3.6.1/assets/img/icon.jpg (added)
-
tags/3.6.1/assets/img/ssl-error.jpg (added)
-
tags/3.6.1/assets/js (added)
-
tags/3.6.1/assets/js/script.js (added)
-
tags/3.6.1/auto-install-free-ssl.php (added)
-
tags/3.6.1/composer.json (added)
-
tags/3.6.1/composer.lock (added)
-
tags/3.6.1/freemius (added)
-
tags/3.6.1/freemius/LICENSE.txt (added)
-
tags/3.6.1/freemius/assets (added)
-
tags/3.6.1/freemius/assets/css (added)
-
tags/3.6.1/freemius/assets/css/admin (added)
-
tags/3.6.1/freemius/assets/css/admin/account.css (added)
-
tags/3.6.1/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.6.1/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.6.1/freemius/assets/css/admin/checkout.css (added)
-
tags/3.6.1/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.6.1/freemius/assets/css/admin/common.css (added)
-
tags/3.6.1/freemius/assets/css/admin/connect.css (added)
-
tags/3.6.1/freemius/assets/css/admin/debug.css (added)
-
tags/3.6.1/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.6.1/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.6.1/freemius/assets/css/admin/index.php (added)
-
tags/3.6.1/freemius/assets/css/admin/optout.css (added)
-
tags/3.6.1/freemius/assets/css/admin/plugins.css (added)
-
tags/3.6.1/freemius/assets/css/customizer.css (added)
-
tags/3.6.1/freemius/assets/css/index.php (added)
-
tags/3.6.1/freemius/assets/img (added)
-
tags/3.6.1/freemius/assets/img/auto-install-free-ssl.png (added)
-
tags/3.6.1/freemius/assets/img/index.php (added)
-
tags/3.6.1/freemius/assets/img/plugin-icon.png (added)
-
tags/3.6.1/freemius/assets/img/theme-icon.png (added)
-
tags/3.6.1/freemius/assets/index.php (added)
-
tags/3.6.1/freemius/assets/js (added)
-
tags/3.6.1/freemius/assets/js/index.php (added)
-
tags/3.6.1/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.6.1/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.6.1/freemius/assets/js/postmessage.js (added)
-
tags/3.6.1/freemius/config.php (added)
-
tags/3.6.1/freemius/includes (added)
-
tags/3.6.1/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.6.1/freemius/includes/class-freemius.php (added)
-
tags/3.6.1/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.6.1/freemius/includes/class-fs-api.php (added)
-
tags/3.6.1/freemius/includes/class-fs-lock.php (added)
-
tags/3.6.1/freemius/includes/class-fs-logger.php (added)
-
tags/3.6.1/freemius/includes/class-fs-options.php (added)
-
tags/3.6.1/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.6.1/freemius/includes/class-fs-security.php (added)
-
tags/3.6.1/freemius/includes/class-fs-storage.php (added)
-
tags/3.6.1/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.6.1/freemius/includes/customizer (added)
-
tags/3.6.1/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.6.1/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.6.1/freemius/includes/customizer/index.php (added)
-
tags/3.6.1/freemius/includes/debug (added)
-
tags/3.6.1/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.6.1/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.6.1/freemius/includes/debug/index.php (added)
-
tags/3.6.1/freemius/includes/entities (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.6.1/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.6.1/freemius/includes/entities/index.php (added)
-
tags/3.6.1/freemius/includes/fs-core-functions.php (added)
-
tags/3.6.1/freemius/includes/fs-essential-functions.php (added)
-
tags/3.6.1/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/3.6.1/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.6.1/freemius/includes/index.php (added)
-
tags/3.6.1/freemius/includes/l10n.php (added)
-
tags/3.6.1/freemius/includes/managers (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.6.1/freemius/includes/managers/index.php (added)
-
tags/3.6.1/freemius/includes/sdk (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.6.1/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.6.1/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.6.1/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.6.1/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.6.1/freemius/includes/sdk/index.php (added)
-
tags/3.6.1/freemius/includes/supplements (added)
-
tags/3.6.1/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.6.1/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.6.1/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.6.1/freemius/includes/supplements/index.php (added)
-
tags/3.6.1/freemius/index.php (added)
-
tags/3.6.1/freemius/languages (added)
-
tags/3.6.1/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.6.1/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.6.1/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.6.1/freemius/languages/freemius-en.mo (added)
-
tags/3.6.1/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.6.1/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.6.1/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.6.1/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.6.1/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.6.1/freemius/languages/freemius-ja.mo (added)
-
tags/3.6.1/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.6.1/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.6.1/freemius/languages/freemius-ta.mo (added)
-
tags/3.6.1/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.6.1/freemius/languages/freemius.pot (added)
-
tags/3.6.1/freemius/languages/index.php (added)
-
tags/3.6.1/freemius/require.php (added)
-
tags/3.6.1/freemius/start.php (added)
-
tags/3.6.1/freemius/templates (added)
-
tags/3.6.1/freemius/templates/account (added)
-
tags/3.6.1/freemius/templates/account.php (added)
-
tags/3.6.1/freemius/templates/account/billing.php (added)
-
tags/3.6.1/freemius/templates/account/index.php (added)
-
tags/3.6.1/freemius/templates/account/partials (added)
-
tags/3.6.1/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.6.1/freemius/templates/account/partials/addon.php (added)
-
tags/3.6.1/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.6.1/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.6.1/freemius/templates/account/partials/index.php (added)
-
tags/3.6.1/freemius/templates/account/partials/site.php (added)
-
tags/3.6.1/freemius/templates/account/payments.php (added)
-
tags/3.6.1/freemius/templates/add-ons.php (added)
-
tags/3.6.1/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.6.1/freemius/templates/admin-notice.php (added)
-
tags/3.6.1/freemius/templates/ajax-loader.php (added)
-
tags/3.6.1/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.6.1/freemius/templates/auto-installation.php (added)
-
tags/3.6.1/freemius/templates/checkout.php (added)
-
tags/3.6.1/freemius/templates/clone-resolution-js.php (added)
-
tags/3.6.1/freemius/templates/connect (added)
-
tags/3.6.1/freemius/templates/connect.php (added)
-
tags/3.6.1/freemius/templates/connect/index.php (added)
-
tags/3.6.1/freemius/templates/connect/permission.php (added)
-
tags/3.6.1/freemius/templates/connect/permissions-group.php (added)
-
tags/3.6.1/freemius/templates/contact.php (added)
-
tags/3.6.1/freemius/templates/debug (added)
-
tags/3.6.1/freemius/templates/debug.php (added)
-
tags/3.6.1/freemius/templates/debug/api-calls.php (added)
-
tags/3.6.1/freemius/templates/debug/index.php (added)
-
tags/3.6.1/freemius/templates/debug/logger.php (added)
-
tags/3.6.1/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.6.1/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.6.1/freemius/templates/email.php (added)
-
tags/3.6.1/freemius/templates/forms (added)
-
tags/3.6.1/freemius/templates/forms/affiliation.php (added)
-
tags/3.6.1/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.6.1/freemius/templates/forms/deactivation (added)
-
tags/3.6.1/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.6.1/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.6.1/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.6.1/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.6.1/freemius/templates/forms/email-address-update.php (added)
-
tags/3.6.1/freemius/templates/forms/index.php (added)
-
tags/3.6.1/freemius/templates/forms/license-activation.php (added)
-
tags/3.6.1/freemius/templates/forms/optout.php (added)
-
tags/3.6.1/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.6.1/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.6.1/freemius/templates/forms/resend-key.php (added)
-
tags/3.6.1/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.6.1/freemius/templates/forms/trial-start.php (added)
-
tags/3.6.1/freemius/templates/forms/user-change.php (added)
-
tags/3.6.1/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.6.1/freemius/templates/index.php (added)
-
tags/3.6.1/freemius/templates/js (added)
-
tags/3.6.1/freemius/templates/js/index.php (added)
-
tags/3.6.1/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.6.1/freemius/templates/js/open-license-activation.php (added)
-
tags/3.6.1/freemius/templates/js/permissions.php (added)
-
tags/3.6.1/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.6.1/freemius/templates/partials (added)
-
tags/3.6.1/freemius/templates/partials/index.php (added)
-
tags/3.6.1/freemius/templates/partials/network-activation.php (added)
-
tags/3.6.1/freemius/templates/plugin-icon.php (added)
-
tags/3.6.1/freemius/templates/plugin-info (added)
-
tags/3.6.1/freemius/templates/plugin-info/description.php (added)
-
tags/3.6.1/freemius/templates/plugin-info/features.php (added)
-
tags/3.6.1/freemius/templates/plugin-info/index.php (added)
-
tags/3.6.1/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.6.1/freemius/templates/powered-by.php (added)
-
tags/3.6.1/freemius/templates/pricing.php (added)
-
tags/3.6.1/freemius/templates/secure-https-header.php (added)
-
tags/3.6.1/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.6.1/freemius/templates/tabs-capture-js.php (added)
-
tags/3.6.1/freemius/templates/tabs.php (added)
-
tags/3.6.1/index.php (added)
-
tags/3.6.1/languages (added)
-
tags/3.6.1/languages/index.php (added)
-
tags/3.6.1/license.txt (added)
-
tags/3.6.1/readme.txt (added)
-
tags/3.6.1/vendor (added)
-
tags/3.6.1/vendor/autoload.php (added)
-
tags/3.6.1/vendor/bin (added)
-
tags/3.6.1/vendor/composer (added)
-
tags/3.6.1/vendor/composer/ClassLoader.php (added)
-
tags/3.6.1/vendor/composer/InstalledVersions.php (added)
-
tags/3.6.1/vendor/composer/LICENSE (added)
-
tags/3.6.1/vendor/composer/autoload_classmap.php (added)
-
tags/3.6.1/vendor/composer/autoload_files.php (added)
-
tags/3.6.1/vendor/composer/autoload_namespaces.php (added)
-
tags/3.6.1/vendor/composer/autoload_psr4.php (added)
-
tags/3.6.1/vendor/composer/autoload_real.php (added)
-
tags/3.6.1/vendor/composer/autoload_static.php (added)
-
tags/3.6.1/vendor/composer/installed.json (added)
-
tags/3.6.1/vendor/composer/installed.php (added)
-
tags/3.6.1/vendor/composer/platform_check.php (added)
-
tags/3.6.1/vendor/indigophp (added)
-
tags/3.6.1/vendor/indigophp/hash-compat (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/CHANGELOG.md (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/LICENSE (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/README.md (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/Vagrantfile (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/composer.json (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/src (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/src/hash_equals.php (added)
-
tags/3.6.1/vendor/indigophp/hash-compat/src/hash_pbkdf2.php (added)
-
tags/3.6.1/vendor/usrflo (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/.gitignore (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP/effectiveTLDs.inc.php (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP/regDomain.class.php (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP/regDomain.inc.php (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.sh (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/README.txt (added)
-
tags/3.6.1/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php (added)
-
trunk/FreeSSLAuto/src/Acme/AcmeV2.php (modified) (8 diffs)
-
trunk/FreeSSLAuto/src/Acme/Client.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Acme/Factory.php (modified) (4 diffs)
-
trunk/FreeSSLAuto/src/Admin/AdminNotice.php (modified) (1 diff)
-
trunk/FreeSSLAuto/src/Admin/Factory.php (modified) (9 diffs)
-
trunk/FreeSSLAuto/src/Admin/ForceSSL.php (modified) (1 diff)
-
trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Controller.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Email.php (modified) (1 diff)
-
trunk/FreeSSLAuto/src/Logger.php (modified) (2 diffs)
-
trunk/auto-install-free-ssl.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
auto-install-free-ssl/trunk/FreeSSLAuto/src/Acme/AcmeV2.php
r2905766 r2946395 186 186 if ( empty($response2['challenges']) ) { 187 187 /* translators: %s: A domain name, e.g., example.com */ 188 $msg = sprintf( __( "Challenge for %s is not available. Whole response:", 'auto-install-free-ssl' ), $domain ) . " <br />\n"; 188 //$msg = sprintf(__("Challenge for %s is not available. Whole response:", 'auto-install-free-ssl'), $domain) . " <br />\n"; 189 $msg = sprintf( "Challenge for %s is not available. Whole response:", $domain ) . " <br />\n"; 190 //since 3.6.1, Don't translate this error message. 189 191 190 192 if ( $this->logger->is_cli() ) { … … 212 214 //"dns-01" is NOT available 213 215 /* translators: %s: A domain name, e.g., example.com */ 214 $msg = sprintf( __( "Neither 'HTTP-01' nor 'DNS-01' challenge for %s is available. Whole response:", 'auto-install-free-ssl' ), $domain ) . " <br />\n"; 216 //$msg = sprintf(__("Neither 'HTTP-01' nor 'DNS-01' challenge for %s is available. Whole response:", 'auto-install-free-ssl'), $domain) . " <br />\n"; 217 $msg = sprintf( "Neither 'HTTP-01' nor 'DNS-01' challenge for %s is available. Whole response:", $domain ) . " <br />\n"; 218 //since 3.6.1, Don't translate this error message. 215 219 216 220 if ( $this->logger->is_cli() ) { … … 457 461 // waiting loop 458 462 do { 463 459 464 if ( !$ended ) { 460 465 // send request to challenge … … 464 469 'token' => $challenge['token'], 465 470 ] ); 466 } 471 // START since 3.6.1 (added July 16, 2023) 472 /*if($this->logger->is_cli()) { 473 $result_text = print_r($result, true); 474 } 475 else{ 476 $result_text = '<pre>'. print_r($result, true) .'</pre>'; 477 } 478 479 $this->logger->log("Let's Encrypt server response (Challenge result): <br />\n". $result_text);*/ 480 // END since 3.6.1 (added July 16, 2023) 481 } 482 467 483 468 484 if ( empty($result['status']) || 'invalid' === $result['status'] || 400 === $result['status'] || 404 === $result['status'] ) { 469 485 $ended = true; 470 $msg = "<br />\n " . __( "Content of", 'auto-install-free-ssl' ) . " " . $challenge['url'] . " <br />\n"; 486 //$msg = "<br />\n " . __( "Content of", 'auto-install-free-ssl' ) . " " . $challenge['url'] . " <br />\n"; 487 $msg = "<br />\n Content of " . $challenge['url'] . " <br />\n"; 488 //since 3.6.1, Don't translate this error message. 471 489 $challenge_url_content = $this->client->get( $challenge['url'] ); 472 490 … … 478 496 479 497 $this->logger->log_v2( 'error', $msg ); 480 $msg = __( "Verification ended with an error", 'auto-install-free-ssl' ) . ": <br />\n"; 498 //$msg = __( "Verification ended with an error", 'auto-install-free-ssl' ) . ": <br />\n"; 499 $msg = "Verification ended with an error: <br />\n"; 500 //since 3.6.1, Don't translate this error message. 481 501 482 502 if ( $this->logger->is_cli() ) { … … 574 594 } 575 595 596 576 597 if ( 200 !== $this->client->getLastCode() ) { 577 //throw new \RuntimeException("Invalid response code: ".$this->client->getLastCode().", ".json_encode($result)); 578 $this->logger->exception_sse_friendly( __( "Invalid response code", 'auto-install-free-ssl' ) . ": " . $this->client->getLastCode() . ", " . json_encode( $result ), __FILE__, __LINE__ ); 579 } 598 //$this->logger->exception_sse_friendly(__( "Invalid response code", 'auto-install-free-ssl' ) . ": " . $this->client->getLastCode().", ".json_encode($result), __FILE__, __LINE__); 599 $this->logger->exception_sse_friendly( "Invalid response code: " . $this->client->getLastCode() . ", " . json_encode( $result ), __FILE__, __LINE__ ); 600 //since 3.6.1, Don't translate exception message 601 } 602 580 603 $location = $result['certificate']; 581 604 // waiting loop … … 596 619 break; 597 620 } else { 598 //throw new \RuntimeException("Can't get certificate: HTTP code ".$this->client->getLastCode()); 599 $this->logger->exception_sse_friendly( __( "Can't get a certificate: HTTP code", 'auto-install-free-ssl' ) . ": " . $this->client->getLastCode(), __FILE__, __LINE__ ); 600 } 601 602 } 621 //$this->logger->exception_sse_friendly(__( "Can't get a certificate: HTTP code", 'auto-install-free-ssl' ) . ": ". $this->client->getLastCode(), __FILE__, __LINE__); 622 $this->logger->exception_sse_friendly( "Can't get a certificate: HTTP code: " . $this->client->getLastCode(), __FILE__, __LINE__ ); 623 //since 3.6.1, Don't translate exception message. 624 } 625 626 } 627 603 628 if ( empty($certificates) ) { 604 //throw new \RuntimeException("No certificates generated"); 605 $this->logger->exception_sse_friendly( __( "No certificates generated", 'auto-install-free-ssl' ), __FILE__, __LINE__ ); 606 } 629 //$this->logger->exception_sse_friendly(__( "No certificates generated", 'auto-install-free-ssl' ), __FILE__, __LINE__); 630 $this->logger->exception_sse_friendly( "No certificates generated", __FILE__, __LINE__ ); 631 //since 3.6.1, Don't translate exception message. 632 } 633 607 634 $this->logger->log( __( "Saving Certificate (CRT) certificate.pem", 'auto-install-free-ssl' ) ); 608 635 file_put_contents( $domainPath . DS . 'certificate.pem', $certificates[0] ); … … 808 835 } else { 809 836 /* translators: %1$s: A directory path, e.g., /home/username/ssl-cert; %2$s: A kid (characters) generated by Let's Encrypt */ 810 $error_text = sprintf( __( 'Error creating kid.txt file. Please create a text file with the filename \'kid.txt\' in this path %1$s and paste the following text in it: %2$s Then try again.', 'auto-install-free-ssl' ), "<strong>" . \dirname( $this->accountKeyPath ) . "</strong>", "<pre>" . $this->kid . "</pre>" ); 811 $this->logger->log_v2( 'error', $error_text . " " . __( "Closing the connection", 'auto-install-free-ssl' ), [ 837 //$error_text = sprintf(__( 'Error creating kid.txt file. Please create a text file with the filename \'kid.txt\' in this path %1$s and paste the following text in it: %2$s Then try again.', 'auto-install-free-ssl' ), "<strong>" . \dirname($this->accountKeyPath) . "</strong>", "<pre>" . $this->kid . "</pre>"); 838 //$this->logger->log_v2('error', $error_text . " " . __( "Closing the connection", 'auto-install-free-ssl' ), ['event' => 'exit']); 839 $error_text = sprintf( 'Error creating kid.txt file. Please create a text file with the filename \'kid.txt\' in this path %1$s and paste the following text in it: %2$s Then try again.', "<strong>" . \dirname( $this->accountKeyPath ) . "</strong>", "<pre>" . $this->kid . "</pre>" ); 840 $this->logger->log_v2( 'error', $error_text . " Closing the connection", [ 812 841 'event' => 'exit', 813 842 ] ); 843 //since 3.6.1, Don't translate this error message. 814 844 $return_array['error_text'] = $error_text; 815 845 $return_array['proceed'] = false; -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Acme/Client.php
r2905766 r2946395 82 82 } 83 83 $response = curl_exec( $handle ); 84 if ( curl_errno( $handle ) ) { 85 //throw new \RuntimeException("Curl: ".curl_error($handle)); 86 $this->logger->exception_sse_friendly( "Curl: " . curl_error( $handle ), __FILE__, __LINE__ ); 84 $error_number = curl_errno( $handle ); 85 //@since 3.6.1 86 if ( $error_number ) { 87 $this->logger->exception_sse_friendly( "cURL error {$error_number}: " . curl_error( $handle ), __FILE__, __LINE__ ); 87 88 } 88 89 $header_size = curl_getinfo( $handle, CURLINFO_HEADER_SIZE ); … … 105 106 //Failed 106 107 /* translators: %d: A number i.e., HTTP status code. ("Let's Encrypt" is a nonprofit SSL certificate authority.) */ 107 $this->logger->log_v2( 'error', sprintf( __( "Sorry, the Let's Encrypt™ server response (%d) is unexpected. The complete server response is given below.", 'auto-install-free-ssl' ), $this->lastCode ) ); 108 //$this->logger->log_v2('error', sprintf(__("Sorry, the Let's Encrypt™ server response (%d) is unexpected. The complete server response is given below.", 'auto-install-free-ssl'), $this->lastCode)); 109 $this->logger->log_v2( 'error', sprintf( "Sorry, the Let's Encrypt™ server response (%d) is unexpected. The complete server response is given below.", $this->lastCode ) ); 110 //since 3.6.1, Don't translate this error message. 108 111 109 112 if ( $this->logger->is_cli() ) { 110 113 $this->logger->log_v2( 'error', print_r( $result, true ) ); 111 die( __( "Closing the connection", 'auto-install-free-ssl' ) ); 114 //die(__( "Closing the connection", 'auto-install-free-ssl' )); 115 die( "Closing the connection" ); 116 //since 3.6.1, Don't translate this error message. 112 117 } else { 113 118 $this->logger->log_v2( 'error', '<pre>' . print_r( $result, true ) . '</pre>' ); 114 $this->logger->log_v2( 'error', __( "Closing the connection", 'auto-install-free-ssl' ), [ 119 //$this->logger->log_v2('error', __( "Closing the connection", 'auto-install-free-ssl' ), ['event' => 'exit']); 120 $this->logger->log_v2( 'error', "Closing the connection", [ 115 121 'event' => 'exit', 116 122 ] ); 123 //since 3.6.1, Don't translate this error message. 124 } 125 126 } else { 127 128 if ( get_option( 'aifs_log_all_ca_server_response' ) ) { 129 //since 3.6.1 130 $result_text = '<pre>' . (( is_array( $result ) ? print_r( $result, true ) : $result )) . '</pre>'; 131 $this->logger->log( sprintf( "Let's Encrypt™ server response (%d) details is given below", $this->lastCode ) . ": <br />\n" . $result_text ); 117 132 } 118 133 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Acme/Factory.php
r2934344 r2946395 202 202 203 203 if ( $res === false ) { 204 $error = __( "Could not generate key pair! Check your OpenSSL configuration. Got this OpenSSL Error: ", 'auto-install-free-ssl' ) . PHP_EOL; 204 //$error = __( "Could not generate key pair! Check your OpenSSL configuration. Got this OpenSSL Error: ", 'auto-install-free-ssl' ) . PHP_EOL; 205 $error = "Could not generate key pair! Check your OpenSSL configuration. Got this OpenSSL Error: " . PHP_EOL; 206 //since 3.6.1, Don't translate exception message. 205 207 while ( $message = openssl_error_string() ) { 206 208 $error .= $message . PHP_EOL; … … 218 220 ) ) { 219 221 //throw new \RuntimeException("Key export failed!"); 220 $error = __( "RSA keypair export failed!! Error: ", 'auto-install-free-ssl' ) . PHP_EOL; 222 //$error = __( "RSA keypair export failed!! Error: ", 'auto-install-free-ssl' ) . PHP_EOL; 223 $error = "RSA keypair export failed!! Error: " . PHP_EOL; 224 //since 3.6.1, Don't translate exception message. 221 225 while ( $message = openssl_error_string() ) { 222 226 $error .= $message . PHP_EOL; … … 229 233 @mkdir( $outputDirectory, 0700, true ); 230 234 } 235 231 236 if ( !is_dir( $outputDirectory ) ) { 232 237 //throw new \RuntimeException("Can't create directory ${outputDirectory}. Please manually create the directory in your certificate directory and set permission 0700 and try again."); 233 238 /* translators: %s: A directory path */ 234 $this->logger->exception_sse_friendly( sprintf( __( "Can't create directory %s. Please manually create the directory in your certificate directory, set permission 0700, and try again.", 'auto-install-free-ssl' ), $outputDirectory ), __FILE__, __LINE__ ); 235 } 239 //$this->logger->exception_sse_friendly(sprintf(__("Can't create directory %s. Please manually create the directory in your certificate directory, set permission 0700, and try again.", 'auto-install-free-ssl'), $outputDirectory), __FILE__, __LINE__); 240 $this->logger->exception_sse_friendly( sprintf( "Can't create directory %s. Please manually create the directory in your certificate directory, set permission 0700, and try again.", $outputDirectory ), __FILE__, __LINE__ ); 241 //since 3.6.1, Don't translate exception message. 242 } 243 236 244 file_put_contents( $outputDirectory . DS . 'private.pem', $privateKey ); 237 245 file_put_contents( $outputDirectory . DS . 'public.pem', $details['key'] ); … … 294 302 'digest_alg' => 'sha256', 295 303 ] ); 304 296 305 if ( !$csr ) { 297 306 //throw new \RuntimeException("CSR couldn't be generated! ".openssl_error_string()); 298 $this->logger->exception_sse_friendly( __( "CSR couldn't be generated!", 'auto-install-free-ssl' ) . " " . openssl_error_string(), __FILE__, __LINE__ ); 299 } 307 //$this->logger->exception_sse_friendly(__( "CSR couldn't be generated!", 'auto-install-free-ssl' ) . " ". openssl_error_string(), __FILE__, __LINE__); 308 $this->logger->exception_sse_friendly( "CSR couldn't be generated! " . openssl_error_string(), __FILE__, __LINE__ ); 309 //since 3.6.1, Don't translate exception message. 310 } 311 300 312 openssl_csr_export( $csr, $csr ); 301 313 fclose( $tmpConf ); -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/AdminNotice.php
r2934344 r2946395 238 238 /* translators: %s: Name of the SSL certificate authority, e.g., Let's Encrypt */ 239 239 $html .= '<span style="font-size: small;">(' . sprintf( __( "The validity of %s free SSL is 90 days. They recommend renewing 30 days before expiry.", 'auto-install-free-ssl' ), $issuerShort ) . ')</span><!-- <br /><strong>~' . AIFS_NAME . '</strong>--> 240 <br /><span style="font-size: medium; line-height: 3em;">' . __( "Tired of renewing & installing SSL certificates manually every 60 days? Try Premium Version, and the plugin will do it automatically!", 'auto-install-free-ssl' ) . '</span></p>240 <br /><span style="font-size: medium; line-height: 2em;">' . __( "Tired of renewing & installing SSL certificates manually every 60 days? Try Premium Version, and the plugin will do it automatically!", 'auto-install-free-ssl' ) . '</span></p> 241 241 </div> 242 242 <div style="margin-left: 8%; margin-top: -1%; margin-bottom: -2%;"> -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Factory.php
r2934344 r2946395 59 59 public function getSubDirectories( $dirPath ) 60 60 { 61 61 62 if ( !is_dir( $dirPath ) ) { 62 63 //throw new InvalidArgumentException("${dirPath} must be a directory"); 63 64 /* translators: %s: A directory path */ 64 $this->logger->exception_sse_friendly( sprintf( __( "%s must be a directory", 'auto-install-free-ssl' ), $dirPath ), __FILE__, __LINE__ ); 65 } 65 //$this->logger->exception_sse_friendly(sprintf(__("%s must be a directory", 'auto-install-free-ssl'), $dirPath), __FILE__, __LINE__); 66 $this->logger->exception_sse_friendly( sprintf( "%s must be a directory", $dirPath ), __FILE__, __LINE__ ); 67 //since 3.6.1, Don't translate exception message. 68 } 69 66 70 if ( '/' !== substr( $dirPath, \strlen( $dirPath ) - 1, 1 ) ) { 67 71 $dirPath .= '/'; … … 358 362 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 359 363 $response = curl_exec( $handle ); 364 $error_number = curl_errno( $handle ); 365 //@since 3.6.1 366 367 if ( $error_number ) { 368 $error_text = "cURL error {$error_number}: " . curl_error( $handle ); 369 $error_text .= "\n\n File: " . __FILE__ . "\n Line number: " . __LINE__ . "\n\n"; 370 $this->logger->write_log( 'error', $error_text, [ 371 'event' => 'ping', 372 ] ); 373 } 374 360 375 $effective_url = curl_getinfo( $handle, CURLINFO_EFFECTIVE_URL ); 361 376 $redirect_url = curl_getinfo( $handle, CURLINFO_REDIRECT_URL ); 362 377 $http_status_code = curl_getinfo( $handle, CURLINFO_HTTP_CODE ); 363 $error = curl_errno( $handle );364 378 curl_close( $handle ); 365 379 $checkURL = $this->checkcPanelInUrl( $effective_url ); … … 725 739 @mkdir( AIFS_UPLOAD_DIR, 0700, true ); 726 740 } 741 727 742 if ( !is_dir( AIFS_UPLOAD_DIR ) ) { 728 743 //throw new \RuntimeException("Can't create directory '".AIFS_UPLOAD_DIR."'. Please manually create it, set permission 0755 and try again."); 729 744 /* translators: %1$s: A directory path, e.g., /home/user/public_html, %2$s: Directory permissions number, e.g., 0700 */ 730 $this->logger->exception_sse_friendly( sprintf( __( 'Can not create the directory %1$s. Please manually create it, set permission %2$s, and try again.', 'auto-install-free-ssl' ), AIFS_UPLOAD_DIR, '0700' ), __FILE__, __LINE__ ); 731 } 745 //$this->logger->exception_sse_friendly(sprintf(__('Can not create the directory %1$s. Please manually create it, set permission %2$s, and try again.', 'auto-install-free-ssl'), AIFS_UPLOAD_DIR, '0700'), __FILE__, __LINE__); 746 $this->logger->exception_sse_friendly( sprintf( 'Can not create the directory %1$s. Please manually create it, set permission %2$s, and try again.', AIFS_UPLOAD_DIR, '0700' ), __FILE__, __LINE__ ); 747 //since 3.6.1, Don't translate exception message. 748 } 749 732 750 733 751 if ( is_writable( AIFS_UPLOAD_DIR ) ) { … … 745 763 746 764 } else { 765 747 766 if ( !is_writable( AIFS_UPLOAD_DIR ) ) { 748 767 //throw new \RuntimeException("The directory '".AIFS_UPLOAD_DIR."' is not writable. Please manually set permission 0755 or 0777 to this directory and try again."); 749 768 /* translators: %s: A directory path, e.g., /home/user/public_html */ 750 $this->logger->exception_sse_friendly( sprintf( __( "The directory '%s' is not writable. Please manually set the permission 0755 or 0777 to this directory and try again.", 'auto-install-free-ssl' ), AIFS_UPLOAD_DIR ), __FILE__, __LINE__ ); 751 } 769 //$this->logger->exception_sse_friendly(sprintf(__("The directory '%s' is not writable. Please manually set the permission 0755 or 0777 to this directory and try again.", 'auto-install-free-ssl'), AIFS_UPLOAD_DIR), __FILE__, __LINE__); 770 $this->logger->exception_sse_friendly( sprintf( "The directory '%s' is not writable. Please manually set the permission 0755 or 0777 to this directory and try again.", AIFS_UPLOAD_DIR ), __FILE__, __LINE__ ); 771 //since 3.6.1, Don't translate exception message. 772 } 773 752 774 } 753 775 … … 807 829 $file = ".htaccess"; 808 830 if ( !file_exists( $dir_path . DS . $file ) && (aifs_server_software() == "apache" || aifs_server_software() === false) ) { 831 809 832 if ( !file_put_contents( $dir_path . DS . $file, $data ) ) { 810 833 //echo "<pre>$data</pre>"; 811 834 //throw new \RuntimeException("Can't create .htaccess file in the directory '".$dir_path."'. Please manually create it, and paste the above code in it."); 835 /*$this->logger->exception_sse_friendly(sprintf( 836 /* translators: %1$s: A file name; %2$s: A directory path; %3$s: Code that will be written in the file */ 837 /*__('Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 'auto-install-free-ssl'), 838 $file, 839 $dir_path, 840 "<pre>" . htmlspecialchars($data) . "</pre>" 841 ), __FILE__, __LINE__);*/ 812 842 $this->logger->exception_sse_friendly( sprintf( 813 /* translators: %1$s: A file name; %2$s: A directory path; %3$s: Code that will be written in the file */ 814 __( 'Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 'auto-install-free-ssl' ), 843 'Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 815 844 $file, 816 845 $dir_path, 817 846 "<pre>" . htmlspecialchars( $data ) . "</pre>" 818 847 ), __FILE__, __LINE__ ); 819 } 848 //since 3.6.1, Don't translate exception message. 849 } 850 820 851 } 821 852 } … … 831 862 $file = "web.config"; 832 863 if ( !file_exists( $dir_path . DS . $file ) && (aifs_server_software() == "ms-iis" || aifs_server_software() === false) ) { 864 833 865 if ( !file_put_contents( $dir_path . DS . $file, $data ) ) { 834 866 //echo "<pre>$data</pre>"; 835 867 //throw new \RuntimeException("Can't create .htaccess file in the directory '".$dir_path."'. Please manually create it, and paste the above code in it."); 868 /*$this->logger->exception_sse_friendly(sprintf( 869 /* translators: %1$s: A file name; %2$s: A directory path; %3$s: Code that will be written in the file */ 870 /*__('Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 'auto-install-free-ssl'), 871 $file, 872 $dir_path, 873 "<pre>" . htmlspecialchars($data, ENT_XML1) . "</pre>" 874 ), __FILE__, __LINE__);*/ 836 875 $this->logger->exception_sse_friendly( sprintf( 837 /* translators: %1$s: A file name; %2$s: A directory path; %3$s: Code that will be written in the file */ 838 __( 'Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 'auto-install-free-ssl' ), 876 'Can\'t create the \'%1$s\' file in the directory \'%2$s\'. Please manually create it, and paste this code into it: %3$s', 839 877 $file, 840 878 $dir_path, 841 879 "<pre>" . htmlspecialchars( $data, ENT_XML1 ) . "</pre>" 842 880 ), __FILE__, __LINE__ ); 843 } 881 //since 3.6.1, Don't translate exception message. 882 } 883 844 884 } 845 885 } … … 903 943 // Get response 904 944 $response = curl_exec( $curlInit ); 945 $error_number = curl_errno( $curlInit ); 946 //@since 3.6.1 947 948 if ( $error_number ) { 949 $error_text = "cURL error {$error_number}: " . curl_error( $curlInit ); 950 $error_text .= "\n\n File: " . __FILE__ . "\n Line number: " . __LINE__ . "\n\n"; 951 $this->logger->write_log( 'error', $error_text, [ 952 'event' => 'ping', 953 ] ); 954 } 955 905 956 //$http_code = curl_getinfo($curlInit, CURLINFO_HTTP_CODE); 906 957 // Close a cURL session … … 1144 1195 curl_setopt( $ch, CURLOPT_HEADER, true ); 1145 1196 $result = curl_exec( $ch ); 1197 $error_number = curl_errno( $ch ); 1198 //@since 3.6.1 1199 1200 if ( $error_number ) { 1201 $error_text = "cURL error {$error_number}: " . curl_error( $ch ); 1202 $error_text .= "\n\n File: " . __FILE__ . "\n Line number: " . __LINE__ . "\n\n"; 1203 $this->logger->write_log( 'error', $error_text, [ 1204 'event' => 'ping', 1205 ] ); 1206 } 1207 1146 1208 $info = curl_getinfo( $ch ); 1147 1209 curl_close( $ch ); … … 1263 1325 curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); 1264 1326 curl_exec( $ch ); 1327 $error_number = curl_errno( $ch ); 1328 //@since 3.6.1 1329 1330 if ( $error_number ) { 1331 $error_text = "cURL error {$error_number}: " . curl_error( $ch ); 1332 $error_text .= "\n\n File: " . __FILE__ . "\n Line number: " . __LINE__ . "\n\n"; 1333 $this->logger->write_log( 'error', $error_text, [ 1334 'event' => 'ping', 1335 ] ); 1336 } 1337 1265 1338 $http_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE ); 1266 1339 curl_close( $ch ); -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/ForceSSL.php
r2905766 r2946395 473 473 $subject = sprintf( __( '\'%1$s\' has activated Force HTTPS on your website %2$s.', 'auto-install-free-ssl' ), AIFS_NAME, aifs_get_domain( false ) ); 474 474 $headers[] = 'MIME-Version: 1.0'; 475 $headers[] = 'Content- type: text/html; charset=UTF-8';475 $headers[] = 'Content-Type: text/html; charset=UTF-8'; 476 476 $headers[] = 'From:wordpress@' . aifs_get_domain(); 477 477 //Email body -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php
r2921218 r2946395 1204 1204 /* translators: %1$d: A number; %2$d: Another number; %3$s: A domain name, e.g., example.com */ 1205 1205 $text = sprintf(__('The number of authorizations: %1$d. But the number of validated domains: %2$d. Sorry, the SSL certificate can not be issued to %3$s.', 'auto-install-free-ssl'), count( $this->return_array_step1['response']['authorizations'] ), $number_of_validated_domains, $this->return_array_step1['domains_array'][0]) . " "; 1206 $text_for_log = sprintf('The number of authorizations: %1$d. But the number of validated domains: %2$d. Sorry, the SSL certificate can not be issued to %3$s.', count( $this->return_array_step1['response']['authorizations'] ), $number_of_validated_domains, $this->return_array_step1['domains_array'][0]) . " "; //since 3.6.1, Don't translate this error message. 1206 1207 1207 1208 $difference = \count( $this->return_array_step1['response']['authorizations'] ) - $number_of_validated_domains; … … 1210 1211 /* translators: %d: A plural number */ 1211 1212 $text .= sprintf(__('%d domains were not validated.', 'auto-install-free-ssl'), $difference); 1213 $text_for_log .= sprintf('%d domains were not validated.', $difference); //since 3.6.1, Don't translate this error message. 1212 1214 } 1213 1215 else{ 1214 1216 /* translators: %d: A singular number, i.e., 1 */ 1215 1217 $text .= sprintf(__('%d domain was not validated.', 'auto-install-free-ssl'), $difference); 1218 $text_for_log .= sprintf('%d domain was not validated.', $difference); //since 3.6.1, Don't translate this error message. 1216 1219 } 1217 1220 1218 $this->logger->log_v2( 'error', $text );1221 $this->logger->log_v2( 'error', $text_for_log ); 1219 1222 1220 1223 //save error msg in a variable -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Controller.php
r2934344 r2946395 92 92 $domains_online[] = $domain; 93 93 } else { 94 /*$this->logger->log( sprintf( 95 /* translators: %1$s: A IP address, e.g., 192.168.1.1, %2$s: A domain name, e.g., example.com, %3$s: Another IP address, e.g., 10.0.0.1 */ 96 /* __( 'The IP of this server is %1$s. But %2$s points to different IP (%3$s). So, skipping it.', 'auto-install-free-ssl' ), 97 $ip_of_this_server, 98 $domain, 99 $dns[0]['ip'] 100 ) );*/ 94 101 $this->logger->log( sprintf( 95 /* translators: %1$s: A IP address, e.g., 192.168.1.1, %2$s: A domain name, e.g., example.com, %3$s: Another IP address, e.g., 10.0.0.1 */ 96 __( 'The IP of this server is %1$s. But %2$s points to different IP (%3$s). So, skipping it.', 'auto-install-free-ssl' ), 102 'The IP of this server is %1$s. But %2$s points to different IP (%3$s). So, skipping it.', 97 103 $ip_of_this_server, 98 104 $domain, 99 105 $dns[0]['ip'] 100 106 ) ); 107 //since 3.6.1, Don't translate this soft error message. 101 108 } 102 109 … … 108 115 //domain offline 109 116 /* translators: %s: A domain name, e.g., example.com */ 110 $this->logger->log( sprintf( __( "%s is offline. Skipping it.", 'auto-install-free-ssl' ), $domain ) ); 117 //$this->logger->log( sprintf(__( "%s is offline. Skipping it.", 'auto-install-free-ssl' ), $domain) ); 118 $this->logger->log( sprintf( "%s is offline. Skipping it.", $domain ) ); 119 //since 3.6.1, Don't translate this soft error message. 111 120 } 112 121 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Email.php
r2934344 r2946395 184 184 $headers = []; 185 185 $headers[] = 'MIME-Version: 1.0'; 186 $headers[] = 'Content-type: text/html; charset=iso-8859-1'; 186 //$headers[] = 'Content-type: text/html; charset=iso-8859-1'; 187 $headers[] = 'Content-Type: text/html; charset=UTF-8'; 187 188 $headers[] = 'From:wordpress@' . aifs_get_domain(); 188 189 // Send the email -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Logger.php
r2934344 r2946395 86 86 @mkdir( $log_directory, 0700, true ); 87 87 } 88 88 89 if ( !is_dir( $log_directory ) ) { 89 90 //throw new \RuntimeException("Can't create directory '$log_directory'. Please manually create this directory, set permission 0755 and try again."); 91 /*$this->exception_sse_friendly( 92 /* translators: %s: A directory path */ 93 /* sprintf(__( "Can't create directory '%s'. Please manually create this directory, set permission 0755, and try again.", 'auto-install-free-ssl' ), $log_directory), 94 __FILE__, 95 __LINE__, 96 false 97 );*/ 90 98 $this->exception_sse_friendly( 91 99 /* translators: %s: A directory path */ 92 sprintf( __( "Can't create directory '%s'. Please manually create this directory, set permission 0755, and try again.", 'auto-install-free-ssl' ), $log_directory ),100 sprintf( "Can't create directory '%s'. Please manually create this directory, set permission 0755, and try again.", $log_directory ), 93 101 __FILE__, 94 102 __LINE__, 95 103 false 96 104 ); 97 } 105 //since 3.6.1, Don't translate exception message. 106 } 107 98 108 /*if(!file_exists($log_directory . DS . ".htaccess")){ 99 109 if(!file_put_contents($log_directory . DS . ".htaccess", "Order deny,allow\nDeny from all")){ … … 132 142 ) 133 143 { 134 $exp_text .= "\n\n" . __( "File:", 'auto-install-free-ssl' ) . " " . $file_name . "\n" . __( "Line number:", 'auto-install-free-ssl' ) . " " . $line_number . "\n\n"; 144 //$exp_text .= "\n\n". __( "File:", 'auto-install-free-ssl' ) ." ".$file_name . "\n". __( "Line number:", 'auto-install-free-ssl' ) ." ". $line_number . "\n\n"; 145 $exp_text .= "\n\n File: " . $file_name . "\n Line number: " . $line_number . "\n\n"; 146 //since 3.6.1, Don't translate exception message 135 147 136 148 if ( $this->is_cli() ) { 149 137 150 if ( $write_in_log_file ) { 138 $this->write_log( 'error', current_time( 'mysql' ) . " [error] " . $exp_text . "\n\n" . __( "Connection closed", 'auto-install-free-ssl' ) . "\n", [ 151 //$this->write_log('error', current_time('mysql')." [error] ". $exp_text ."\n\n". __( "Connection closed", 'auto-install-free-ssl' ) ."\n", ['event' => 'exit']); 152 $this->write_log( 'error', current_time( 'mysql' ) . " [error] " . $exp_text . "\n\n Connection closed \n", [ 139 153 'event' => 'exit', 140 154 ] ); 155 //since 3.6.1, Don't translate exception message 141 156 } 157 142 158 throw new \RuntimeException( $exp_text ); 143 159 /*echo current_time('mysql')." [error] ".$exp_text; -
auto-install-free-ssl/trunk/auto-install-free-ssl.php
r2934344 r2946395 7 7 * Plugin URI: https://freessl.tech 8 8 * Description: Generate & install Free SSL Certificates, activate force HTTPS redirect with one click to fix insecure links & mixed content warnings, and get automatic Renewal Reminders. 9 * Version: 3.6. 09 * Version: 3.6.1 10 10 * Requires at least: 4.1 11 11 * Requires PHP: 5.6 -
auto-install-free-ssl/trunk/readme.txt
r2934344 r2946395 6 6 Tags: free ssl,free ssl certificate,ssl certificate,https,force ssl 7 7 Requires at least: 4.1 8 Tested up to: 6. 29 Stable tag: 3.6. 08 Tested up to: 6.3 9 Stable tag: 3.6.1 10 10 Requires PHP: 5.6 11 11 Development location: https://freessl.tech
Note: See TracChangeset
for help on using the changeset viewer.