Changeset 2934344
- Timestamp:
- 07/05/2023 09:26:21 AM (3 years ago)
- Location:
- auto-install-free-ssl
- Files:
-
- 278 added
- 20 edited
-
tags/3.6.0 (added)
-
tags/3.6.0/FreeSSLAuto (added)
-
tags/3.6.0/FreeSSLAuto/src (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/AcmeV2.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/Base64UrlSafeEncoder.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/Client.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/ClientInterface.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/Factory.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Acme/openssl.cnf (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/AdminNotice.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/AutoDataEntry.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/Factory.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/ForceHttpsPage.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/ForceSSL.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/HomeOptions.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Admin/Log.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Controller.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Email.php (added)
-
tags/3.6.0/FreeSSLAuto/src/Logger.php (added)
-
tags/3.6.0/assets (added)
-
tags/3.6.0/assets/css (added)
-
tags/3.6.0/assets/css/aifs-admin.css (added)
-
tags/3.6.0/assets/img (added)
-
tags/3.6.0/assets/img/fire.webp (added)
-
tags/3.6.0/assets/img/icon.jpg (added)
-
tags/3.6.0/assets/img/ssl-error.jpg (added)
-
tags/3.6.0/assets/js (added)
-
tags/3.6.0/assets/js/script.js (added)
-
tags/3.6.0/auto-install-free-ssl.php (added)
-
tags/3.6.0/composer.json (added)
-
tags/3.6.0/composer.lock (added)
-
tags/3.6.0/freemius (added)
-
tags/3.6.0/freemius/LICENSE.txt (added)
-
tags/3.6.0/freemius/assets (added)
-
tags/3.6.0/freemius/assets/css (added)
-
tags/3.6.0/freemius/assets/css/admin (added)
-
tags/3.6.0/freemius/assets/css/admin/account.css (added)
-
tags/3.6.0/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.6.0/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.6.0/freemius/assets/css/admin/checkout.css (added)
-
tags/3.6.0/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.6.0/freemius/assets/css/admin/common.css (added)
-
tags/3.6.0/freemius/assets/css/admin/connect.css (added)
-
tags/3.6.0/freemius/assets/css/admin/debug.css (added)
-
tags/3.6.0/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.6.0/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.6.0/freemius/assets/css/admin/index.php (added)
-
tags/3.6.0/freemius/assets/css/admin/optout.css (added)
-
tags/3.6.0/freemius/assets/css/admin/plugins.css (added)
-
tags/3.6.0/freemius/assets/css/customizer.css (added)
-
tags/3.6.0/freemius/assets/css/index.php (added)
-
tags/3.6.0/freemius/assets/img (added)
-
tags/3.6.0/freemius/assets/img/auto-install-free-ssl.png (added)
-
tags/3.6.0/freemius/assets/img/index.php (added)
-
tags/3.6.0/freemius/assets/img/plugin-icon.png (added)
-
tags/3.6.0/freemius/assets/img/theme-icon.png (added)
-
tags/3.6.0/freemius/assets/index.php (added)
-
tags/3.6.0/freemius/assets/js (added)
-
tags/3.6.0/freemius/assets/js/index.php (added)
-
tags/3.6.0/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.6.0/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.6.0/freemius/assets/js/postmessage.js (added)
-
tags/3.6.0/freemius/config.php (added)
-
tags/3.6.0/freemius/includes (added)
-
tags/3.6.0/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.6.0/freemius/includes/class-freemius.php (added)
-
tags/3.6.0/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.6.0/freemius/includes/class-fs-api.php (added)
-
tags/3.6.0/freemius/includes/class-fs-lock.php (added)
-
tags/3.6.0/freemius/includes/class-fs-logger.php (added)
-
tags/3.6.0/freemius/includes/class-fs-options.php (added)
-
tags/3.6.0/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.6.0/freemius/includes/class-fs-security.php (added)
-
tags/3.6.0/freemius/includes/class-fs-storage.php (added)
-
tags/3.6.0/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.6.0/freemius/includes/customizer (added)
-
tags/3.6.0/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.6.0/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.6.0/freemius/includes/customizer/index.php (added)
-
tags/3.6.0/freemius/includes/debug (added)
-
tags/3.6.0/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.6.0/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.6.0/freemius/includes/debug/index.php (added)
-
tags/3.6.0/freemius/includes/entities (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.6.0/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.6.0/freemius/includes/entities/index.php (added)
-
tags/3.6.0/freemius/includes/fs-core-functions.php (added)
-
tags/3.6.0/freemius/includes/fs-essential-functions.php (added)
-
tags/3.6.0/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/3.6.0/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.6.0/freemius/includes/index.php (added)
-
tags/3.6.0/freemius/includes/l10n.php (added)
-
tags/3.6.0/freemius/includes/managers (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.6.0/freemius/includes/managers/index.php (added)
-
tags/3.6.0/freemius/includes/sdk (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.6.0/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.6.0/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.6.0/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.6.0/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.6.0/freemius/includes/sdk/index.php (added)
-
tags/3.6.0/freemius/includes/supplements (added)
-
tags/3.6.0/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.6.0/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.6.0/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.6.0/freemius/includes/supplements/index.php (added)
-
tags/3.6.0/freemius/index.php (added)
-
tags/3.6.0/freemius/languages (added)
-
tags/3.6.0/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.6.0/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.6.0/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.6.0/freemius/languages/freemius-en.mo (added)
-
tags/3.6.0/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.6.0/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.6.0/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.6.0/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.6.0/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.6.0/freemius/languages/freemius-ja.mo (added)
-
tags/3.6.0/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.6.0/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.6.0/freemius/languages/freemius-ta.mo (added)
-
tags/3.6.0/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.6.0/freemius/languages/freemius.pot (added)
-
tags/3.6.0/freemius/languages/index.php (added)
-
tags/3.6.0/freemius/require.php (added)
-
tags/3.6.0/freemius/start.php (added)
-
tags/3.6.0/freemius/templates (added)
-
tags/3.6.0/freemius/templates/account (added)
-
tags/3.6.0/freemius/templates/account.php (added)
-
tags/3.6.0/freemius/templates/account/billing.php (added)
-
tags/3.6.0/freemius/templates/account/index.php (added)
-
tags/3.6.0/freemius/templates/account/partials (added)
-
tags/3.6.0/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.6.0/freemius/templates/account/partials/addon.php (added)
-
tags/3.6.0/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.6.0/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.6.0/freemius/templates/account/partials/index.php (added)
-
tags/3.6.0/freemius/templates/account/partials/site.php (added)
-
tags/3.6.0/freemius/templates/account/payments.php (added)
-
tags/3.6.0/freemius/templates/add-ons.php (added)
-
tags/3.6.0/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.6.0/freemius/templates/admin-notice.php (added)
-
tags/3.6.0/freemius/templates/ajax-loader.php (added)
-
tags/3.6.0/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.6.0/freemius/templates/auto-installation.php (added)
-
tags/3.6.0/freemius/templates/checkout.php (added)
-
tags/3.6.0/freemius/templates/clone-resolution-js.php (added)
-
tags/3.6.0/freemius/templates/connect (added)
-
tags/3.6.0/freemius/templates/connect.php (added)
-
tags/3.6.0/freemius/templates/connect/index.php (added)
-
tags/3.6.0/freemius/templates/connect/permission.php (added)
-
tags/3.6.0/freemius/templates/connect/permissions-group.php (added)
-
tags/3.6.0/freemius/templates/contact.php (added)
-
tags/3.6.0/freemius/templates/debug (added)
-
tags/3.6.0/freemius/templates/debug.php (added)
-
tags/3.6.0/freemius/templates/debug/api-calls.php (added)
-
tags/3.6.0/freemius/templates/debug/index.php (added)
-
tags/3.6.0/freemius/templates/debug/logger.php (added)
-
tags/3.6.0/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.6.0/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.6.0/freemius/templates/email.php (added)
-
tags/3.6.0/freemius/templates/forms (added)
-
tags/3.6.0/freemius/templates/forms/affiliation.php (added)
-
tags/3.6.0/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.6.0/freemius/templates/forms/deactivation (added)
-
tags/3.6.0/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.6.0/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.6.0/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.6.0/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.6.0/freemius/templates/forms/email-address-update.php (added)
-
tags/3.6.0/freemius/templates/forms/index.php (added)
-
tags/3.6.0/freemius/templates/forms/license-activation.php (added)
-
tags/3.6.0/freemius/templates/forms/optout.php (added)
-
tags/3.6.0/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.6.0/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.6.0/freemius/templates/forms/resend-key.php (added)
-
tags/3.6.0/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.6.0/freemius/templates/forms/trial-start.php (added)
-
tags/3.6.0/freemius/templates/forms/user-change.php (added)
-
tags/3.6.0/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.6.0/freemius/templates/index.php (added)
-
tags/3.6.0/freemius/templates/js (added)
-
tags/3.6.0/freemius/templates/js/index.php (added)
-
tags/3.6.0/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.6.0/freemius/templates/js/open-license-activation.php (added)
-
tags/3.6.0/freemius/templates/js/permissions.php (added)
-
tags/3.6.0/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.6.0/freemius/templates/partials (added)
-
tags/3.6.0/freemius/templates/partials/index.php (added)
-
tags/3.6.0/freemius/templates/partials/network-activation.php (added)
-
tags/3.6.0/freemius/templates/plugin-icon.php (added)
-
tags/3.6.0/freemius/templates/plugin-info (added)
-
tags/3.6.0/freemius/templates/plugin-info/description.php (added)
-
tags/3.6.0/freemius/templates/plugin-info/features.php (added)
-
tags/3.6.0/freemius/templates/plugin-info/index.php (added)
-
tags/3.6.0/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.6.0/freemius/templates/powered-by.php (added)
-
tags/3.6.0/freemius/templates/pricing.php (added)
-
tags/3.6.0/freemius/templates/secure-https-header.php (added)
-
tags/3.6.0/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.6.0/freemius/templates/tabs-capture-js.php (added)
-
tags/3.6.0/freemius/templates/tabs.php (added)
-
tags/3.6.0/index.php (added)
-
tags/3.6.0/languages (added)
-
tags/3.6.0/languages/index.php (added)
-
tags/3.6.0/license.txt (added)
-
tags/3.6.0/readme.txt (added)
-
tags/3.6.0/vendor (added)
-
tags/3.6.0/vendor/autoload.php (added)
-
tags/3.6.0/vendor/bin (added)
-
tags/3.6.0/vendor/composer (added)
-
tags/3.6.0/vendor/composer/ClassLoader.php (added)
-
tags/3.6.0/vendor/composer/InstalledVersions.php (added)
-
tags/3.6.0/vendor/composer/LICENSE (added)
-
tags/3.6.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.6.0/vendor/composer/autoload_files.php (added)
-
tags/3.6.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.6.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.6.0/vendor/composer/autoload_real.php (added)
-
tags/3.6.0/vendor/composer/autoload_static.php (added)
-
tags/3.6.0/vendor/composer/installed.json (added)
-
tags/3.6.0/vendor/composer/installed.php (added)
-
tags/3.6.0/vendor/composer/platform_check.php (added)
-
tags/3.6.0/vendor/indigophp (added)
-
tags/3.6.0/vendor/indigophp/hash-compat (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/CHANGELOG.md (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/LICENSE (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/README.md (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/Vagrantfile (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/composer.json (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/src (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/src/hash_equals.php (added)
-
tags/3.6.0/vendor/indigophp/hash-compat/src/hash_pbkdf2.php (added)
-
tags/3.6.0/vendor/usrflo (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/.gitignore (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP/effectiveTLDs.inc.php (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP/regDomain.class.php (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP/regDomain.inc.php (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.sh (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/README.txt (added)
-
tags/3.6.0/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php (added)
-
trunk/FreeSSLAuto/src/Acme/Factory.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Admin/AdminNotice.php (modified) (3 diffs)
-
trunk/FreeSSLAuto/src/Admin/Factory.php (modified) (6 diffs)
-
trunk/FreeSSLAuto/src/Admin/Log.php (modified) (2 diffs)
-
trunk/FreeSSLAuto/src/Controller.php (modified) (7 diffs)
-
trunk/FreeSSLAuto/src/Email.php (modified) (1 diff)
-
trunk/FreeSSLAuto/src/Logger.php (modified) (1 diff)
-
trunk/auto-install-free-ssl.php (modified) (6 diffs)
-
trunk/freemius/includes/class-freemius.php (modified) (15 diffs)
-
trunk/freemius/includes/class-fs-plugin-updater.php (modified) (2 diffs)
-
trunk/freemius/includes/fs-core-functions.php (modified) (5 diffs)
-
trunk/freemius/includes/fs-html-escaping-functions.php (added)
-
trunk/freemius/require.php (modified) (1 diff)
-
trunk/freemius/start.php (modified) (1 diff)
-
trunk/freemius/templates/account.php (modified) (9 diffs)
-
trunk/freemius/templates/account/billing.php (modified) (3 diffs)
-
trunk/freemius/templates/admin-notice.php (modified) (2 diffs)
-
trunk/freemius/templates/connect.php (modified) (5 diffs)
-
trunk/freemius/templates/forms/optout.php (modified) (3 diffs)
-
trunk/freemius/templates/partials/network-activation.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
auto-install-free-ssl/trunk/FreeSSLAuto/src/Acme/Factory.php
r2905766 r2934344 113 113 * 114 114 * 115 * Returns the certificate directory.115 * Returns the certificate Parent directory. 116 116 * 117 117 * @return string … … 139 139 } 140 140 return $this->getCertificatesDir() . DS . $domain . DS; 141 } 142 143 /** 144 * Get the Confirmed and Domain Specific SSL certificate directory. 145 * Returns false if no SSL certificate found. 146 * @param $domains_array 147 * 148 * @return false|string 149 * @since 3.6.0 150 */ 151 public function getConfirmedSslDir( $domains_array ) 152 { 153 $certificates_directory = $this->getCertificatesDir(); 154 $verified_dir = false; 155 foreach ( $domains_array as $domain ) { 156 157 if ( is_file( $certificates_directory . DS . $domain . DS . 'certificate.pem' ) ) { 158 $verified_dir = $certificates_directory . DS . $domain . DS; 159 break; 160 } 161 162 } 163 return $verified_dir; 141 164 } 142 165 -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/AdminNotice.php
r2921218 r2934344 28 28 namespace AutoInstallFreeSSL\FreeSSLAuto\Admin; 29 29 30 use AutoInstallFreeSSL\FreeSSLAuto\Acme\Factory as AcmeFactory ;31 use AutoInstallFreeSSL\FreeSSLAuto\Email ;32 use Exception ;33 30 /** 34 31 * Home page options … … 125 122 126 123 /** 127 * 128 * 129 * Display Admin notice 130 * 131 * @throws Exception 124 * Display Admin notice. 125 * Improved since 3.6.0 126 * 132 127 * @since 2.1.1 133 128 */ 134 129 public function aifs_display_admin_notice() 135 130 { 136 $display_review_request = true; 137 $cpanel_password_missing = false; 138 $dns_api_credential_missing = false; 131 $admin_notice_text = get_option( 'aifs_admin_notice_if_cpanel_connection_fails' ); 132 133 if ( !empty(trim( $admin_notice_text )) ) { 134 $display_review_request = false; 135 } else { 136 $display_review_request = true; 137 } 138 139 139 140 140 if ( isset( $this->options['homedir'] ) ) { … … 176 176 } else { 177 177 if ( aifssl_fs()->can_use_premium_code__premium_only() ) { 178 $this->aifs_ encryption_key_change_notification__premium_only( $cpanel_password_missing, $dns_api_credential_missing );178 $this->aifs_display_admin_notice_if_cpanel_connection_fails__premium_only( $cpanel_password_missing, $cpanel_api_token_missing, $dns_api_credential_missing ); 179 179 } 180 180 }*/ -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Factory.php
r2929749 r2934344 33 33 use AutoInstallFreeSSL\FreeSSLAuto\Controller ; 34 34 use AutoInstallFreeSSL\FreeSSLAuto\Logger ; 35 use AutoInstallFreeSSL\FreeSSLAuto\Email ; 35 36 use DateTime ; 36 37 class Factory … … 319 320 * @param $hostname 320 321 * 322 * @param bool $purge_cache 323 * 321 324 * @return false|string 322 325 */ 323 public function getcPanelHost( $hostname )326 public function getcPanelHost( $hostname, $purge_cache = false ) 324 327 { 325 328 $cpanel_settings = get_option( 'cpanel_settings_auto_install_free_ssl' ); 326 if ( isset( $cpanel_settings['cpanel_host'] ) ) {329 if ( !$purge_cache && isset( $cpanel_settings['cpanel_host'] ) ) { 327 330 return $cpanel_settings['cpanel_host']; 328 331 } … … 391 394 //following if block ensures detection even if all the above methods fail 392 395 if ( $cpanel_host === false ) { 393 394 396 if ( !$this->is_parent_dir_restricted_by_open_basedir() && is_dir( '/usr/local/cpanel' ) || $this->port_exists( 2083 ) || $this->port_exists( 2082 ) ) { 395 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 396 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 397 //If www. found at the beginning, remove it 398 $hostname = substr( $hostname, 4 ); 399 } 400 $cpanel_host = $hostname; 401 } 402 397 398 if ( gethostname() !== false ) { 399 $cpanel_host = gethostname(); 400 // Improved since 3.6.0 401 } else { 402 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 403 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 404 //If www. found at the beginning, remove it 405 $hostname = substr( $hostname, 4 ); 406 } 407 $cpanel_host = $hostname; 408 } 409 410 } 403 411 } 404 412 } … … 406 414 407 415 if ( $cpanel_settings && is_array( $cpanel_settings ) ) { 416 $previous_host = $cpanel_settings['cpanel_host']; 408 417 $cpanel_settings['cpanel_host'] = $cpanel_host; 409 418 update_option( 'cpanel_settings_auto_install_free_ssl', $cpanel_settings ); … … 490 499 $link = substr( $link, 4 ); 491 500 } 492 return $this->getcPanelHost ( $link );501 return $this->getcPanelHost_v1( $link ); 493 502 } 494 503 … … 496 505 if ( in_array( $http_status_code, [ 400 ] ) ) { 497 506 $link = str_replace( 'http://', 'https://', $hostname ); 498 return $this->getcPanelHost ( $link );507 return $this->getcPanelHost_v1( $link ); 499 508 } 500 509 501 510 if ( $http_status_code === 0 ) { 502 return $this->getcPanelHost ( $hostname );511 return $this->getcPanelHost_v1( $hostname ); 503 512 } 504 513 $checkURL = $this->checkcPanelInUrl( $effective_url ); -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Log.php
r2929749 r2934344 28 28 29 29 namespace AutoInstallFreeSSL\FreeSSLAuto\Admin; 30 30 31 31 32 /** … … 65 66 add_submenu_page('auto_install_free_ssl', __("Log Page", 'auto-install-free-ssl'), __("Log", 'auto-install-free-ssl'), 'manage_options', 'aifs_log', array( $this, 'log_admin_page' )); 66 67 } 67 68 69 /** 70 * 71 * Log page callback 72 */ 68 69 70 /** 71 * 72 * Log page callback 73 * 74 */ 73 75 public function log_admin_page() 74 76 { -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Controller.php
r2905766 r2934344 48 48 /** 49 49 * Make array of the domains pointing to the same document root of a domain. 50 * 50 * Improved since 3.6.0 51 51 * @param array $domains_array_raw 52 52 * @param array $domains_to_exclude … … 59 59 foreach ( $domains_array_raw as $domain ) { 60 60 61 if ( !(aifs_can_manage_multi_domain() && \in_array( $domain, $domains_to_exclude, true )) || $this->sslRequiredForFirstTime( $domain) ) {61 if ( !(aifs_can_manage_multi_domain() && \in_array( $domain, $domains_to_exclude, true )) || $this->sslRequiredForFirstTime() ) { 62 62 $domains_array[] = $domain; 63 63 } else { … … 69 69 //remove offline domains 70 70 $domains_online = []; 71 $ip_of_this_server = aifs_ip_of_this_server(); 72 //Improved since 3.6.0 71 73 foreach ( $domains_array as $key => $domain ) { 72 74 … … 87 89 $dns = dns_get_record( $domain, DNS_A ); 88 90 89 if ( $dns[0]['type'] == "A" && $dns[0]['ip'] == $ _SERVER['SERVER_ADDR']) {91 if ( $dns[0]['type'] == "A" && $dns[0]['ip'] == $ip_of_this_server ) { 90 92 $domains_online[] = $domain; 91 93 } else { … … 93 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 */ 94 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' ), 95 $ _SERVER['SERVER_ADDR'],97 $ip_of_this_server, 96 98 $domain, 97 99 $dns[0]['ip'] … … 120 122 $this_domain = aifs_get_domain( true ); 121 123 122 if ( in_array( $this_domain, $domains_online ) ) {124 if ( in_array( $this_domain, $domains_online ) || in_array( "www." . $this_domain, $domains_online ) ) { 123 125 $temp_domains_array = $domains_online; 124 126 unset( $domains_online ); … … 169 171 170 172 /** 171 * Checks whether SSL certificate MUST required for the given domain 172 * @param $domain 173 * 173 * Checks whether SSL certificate MUST required for the given domain. 174 * Improved since 3.6.0 174 175 * @return bool 175 176 */ 176 public function sslRequiredForFirstTime( $domain)177 public function sslRequiredForFirstTime() 177 178 { 178 179 //For free version always return true -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Email.php
r2905766 r2934344 61 61 $display_review = get_option( 'aifs_display_review' ); 62 62 63 if ( $display_review != false && $display_review != 0 ) {63 if ( $display_review !== false && $display_review !== 0 ) { 64 64 //If aifs_display_review is set to 1, add the review request 65 65 $html = "<div style='background-color: #000000; padding: 15px; margin-bottom: 18px;'>\n <div style='color: #FFFF00; font-size: 1.25em; margin-bottom: 16px;'>\n " . __( "Hey", 'auto-install-free-ssl' ) . " " . (( is_null( $admin_first_name ) ? aifs_admin_first_name() : $admin_first_name )) . ", "; -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Logger.php
r2921218 r2934344 202 202 203 203 /** 204 * Check if the script is running from CLI/cron or browser. 205 * Improved since 3.6.0 206 * @return boolean 207 */ 208 public function is_cli() 209 { 210 if ( defined( 'STDIN' ) ) { 211 return true; 212 } 213 if ( php_sapi_name() === 'cli' ) { 214 return true; 215 } 216 if ( !isset( $_SERVER['HTTP_USER_AGENT'] ) && !isset( $_SERVER['SERVER_ADDR'] ) && !isset( $_SERVER['REMOTE_ADDR'] ) && !isset( $_SERVER['HTTP_HOST'] ) && !isset( $_SERVER['REQUEST_METHOD'] ) ) { 217 return true; 218 } 219 /*if(isset($_SERVER['SHELL']) && strpos($_SERVER['SHELL'], '/bin/bash') !== false){ 220 return true; 221 }*/ 222 if ( !isset( $_SERVER['SERVER_SOFTWARE'] ) || empty($_SERVER['SERVER_SOFTWARE']) ) { 223 return true; 224 } 225 /*if(isset($_SERVER['PWD'])){ 226 return true; 227 }*/ 228 return false; 229 } 230 231 /** 204 232 * 205 233 * 206 234 * Check if running from CLI/cron or browser 207 * 235 * 208 236 * @return boolean 209 237 */ 210 public function is_cli ()238 public function is_cli_v0() 211 239 { 212 240 if ( defined( 'STDIN' ) ) { 213 241 return true; 214 242 } 215 if ( empty($_SERVER['REMOTE_ADDR']) && !isset( $_SERVER['HTTP_USER_AGENT'] ) && count( $_SERVER['argv'] ) > 0 ) {243 if ( empty($_SERVER['REMOTE_ADDR']) && !isset( $_SERVER['HTTP_USER_AGENT'] ) && is_array( $_SERVER['argv'] ) && count( $_SERVER['argv'] ) > 0 ) { 216 244 return true; 217 245 } -
auto-install-free-ssl/trunk/auto-install-free-ssl.php
r2929749 r2934344 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. 5.19 * Version: 3.6.0 10 10 * Requires at least: 4.1 11 11 * Requires PHP: 5.6 … … 220 220 221 221 /** 222 * This function will be called during the plugin activation 222 * This function will be called during the plugin activation. 223 * Improved since 3.6.0 223 224 * */ 224 225 function activate_auto_install_free_ssl() … … 228 229 add_option( 'aifs_user_since_free_only_version', (int) aifs_user_since_free_only_version() ); 229 230 } 231 //$app_settings = aifs_get_app_settings(); 232 $basic_settings = get_option( 'basic_settings_auto_install_free_ssl' ); 233 /** 234 * if already basic settings etc exists, don't run next code block 235 */ 236 //if ( !isset( $app_settings['acme_version'] ) || !isset( $app_settings['key_size'] ) || !isset($app_settings['all_domains']) || count($app_settings['all_domains']) == 0 ) { //This will over-right already entered data with version 2 237 238 if ( $basic_settings === false || !isset( $basic_settings['acme_version'] ) && !isset( $basic_settings['key_size'] ) ) { 239 $data = new AutoInstallFreeSSL\FreeSSLAuto\Admin\AutoDataEntry(); 240 $data->data_entry(); 241 } 242 230 243 /*if(aifssl_fs()->can_use_premium_code__premium_only()) { 231 244 if(aifs_license_is_unlimited__premium_only()) { … … 416 429 add_option('aifs_user_since_free_only_version', 1); 417 430 }*/ 418 $app_settings = aifs_get_app_settings();431 //$app_settings = aifs_get_app_settings(); 419 432 //if ( aifssl_fs()->can_use_premium_code__premium_only() ) { 420 433 /** … … 422 435 */ 423 436 //if ( !isset( $app_settings['acme_version'] ) || !isset( $app_settings['key_size'] ) || !isset($app_settings['all_domains']) || count($app_settings['all_domains']) == 0 ) { //This will over-right already entered data with version 2 424 425 if ( !isset( $app_settings['acme_version'] ) && !isset( $app_settings['key_size'] ) ) { 426 $data = new AutoInstallFreeSSL\FreeSSLAuto\Admin\AutoDataEntry(); 427 $data->data_entry(); 428 } 429 437 /*if ( !isset( $app_settings['acme_version'] ) && !isset( $app_settings['key_size'] ) ) { 438 $data = new AutoInstallFreeSSL\FreeSSLAuto\Admin\AutoDataEntry(); 439 $data->data_entry(); 440 }*/ 430 441 //} 431 442 /** … … 516 527 } 517 528 return $domain; 529 } 530 531 /** 532 * Get IPv4 of this server 533 * @return mixed|string 534 * @since 3.6.0 535 */ 536 function aifs_ip_of_this_server() 537 { 538 539 if ( isset( $_SERVER['SERVER_ADDR'] ) ) { 540 return $_SERVER['SERVER_ADDR']; 541 } else { 542 return gethostbyname( gethostname() ); 543 } 544 518 545 } 519 546 -
auto-install-free-ssl/trunk/freemius/includes/class-freemius.php
r2929749 r2934344 1547 1547 fs_request_is_action( 'reset_pending_activation_mode' ) 1548 1548 ) && 1549 $this->get_unique_affix() === fs_request_get ( 'fs_unique_affix' )1549 $this->get_unique_affix() === fs_request_get_raw( 'fs_unique_affix' ) 1550 1550 ) { 1551 1551 add_action( 'admin_init', array( &$this, 'connect_again' ) ); … … 3760 3760 } 3761 3761 3762 $option_value = fs_request_get ( 'option_value' );3762 $option_value = fs_request_get_raw( 'option_value' ); 3763 3763 3764 3764 if ( ! empty( $option_value ) ) { … … 13675 13675 $this->check_ajax_referer( 'activate_license' ); 13676 13676 13677 $license_key = trim( fs_request_get ( 'license_key' ) );13677 $license_key = trim( fs_request_get_raw( 'license_key' ) ); 13678 13678 13679 13679 if ( empty( $license_key ) ) { … … 16688 16688 16689 16689 return $clone; 16690 }16691 16692 /**16693 * Tries to activate account based on POST params.16694 *16695 * @author Vova Feldman (@svovaf)16696 * @since 1.0.216697 *16698 * @deprecated Not in use, outdated.16699 */16700 function _activate_account() {16701 if ( $this->is_registered() ) {16702 // Already activated.16703 return;16704 }16705 16706 self::_clean_admin_content_section();16707 16708 if ( fs_request_is_action( 'activate' ) && fs_request_is_post() ) {16709 // check_admin_referer( 'activate_' . $this->_plugin->public_key );16710 16711 // Verify matching plugin details.16712 if ( $this->_plugin->id != fs_request_get( 'plugin_id' ) || $this->_slug != fs_request_get( 'plugin_slug' ) ) {16713 return;16714 }16715 16716 $user = new FS_User();16717 $user->id = fs_request_get( 'user_id' );16718 $user->public_key = fs_request_get( 'user_public_key' );16719 $user->secret_key = fs_request_get( 'user_secret_key' );16720 $user->email = fs_request_get( 'user_email' );16721 $user->first = fs_request_get( 'user_first' );16722 $user->last = fs_request_get( 'user_last' );16723 $user->is_verified = fs_request_get_bool( 'user_is_verified' );16724 16725 $site = new FS_Site();16726 $site->id = fs_request_get( 'install_id' );16727 $site->public_key = fs_request_get( 'install_public_key' );16728 $site->secret_key = fs_request_get( 'install_secret_key' );16729 $site->plan_id = fs_request_get( 'plan_id' );16730 16731 $plans = array();16732 $plans_data = json_decode( urldecode( fs_request_get( 'plans' ) ) );16733 foreach ( $plans_data as $p ) {16734 $plan = new FS_Plugin_Plan( $p );16735 if ( $site->plan_id == $plan->id ) {16736 $plan->title = fs_request_get( 'plan_title' );16737 $plan->name = fs_request_get( 'plan_name' );16738 }16739 16740 $plans[] = $plan;16741 }16742 16743 $this->_set_account( $user, $site, $plans );16744 16745 // Reload the page with the keys.16746 fs_redirect( $this->_get_admin_page_url() );16747 }16748 16690 } 16749 16691 … … 17762 17704 $this->install_many_pending_with_user( 17763 17705 fs_request_get( 'user_id' ), 17764 fs_request_get ( 'user_public_key' ),17765 fs_request_get ( 'user_secret_key' ),17706 fs_request_get_raw( 'user_public_key' ), 17707 fs_request_get_raw( 'user_secret_key' ), 17766 17708 fs_request_get_bool( 'is_marketing_allowed', null ), 17767 17709 fs_request_get_bool( 'is_extensions_tracking_allowed', null ), … … 17774 17716 $this->install_with_new_user( 17775 17717 fs_request_get( 'user_id' ), 17776 fs_request_get ( 'user_public_key' ),17777 fs_request_get ( 'user_secret_key' ),17718 fs_request_get_raw( 'user_public_key' ), 17719 fs_request_get_raw( 'user_secret_key' ), 17778 17720 fs_request_get_bool( 'is_marketing_allowed', null ), 17779 17721 fs_request_get_bool( 'is_extensions_tracking_allowed', null ), 17780 17722 fs_request_get_bool( 'is_diagnostic_tracking_allowed', null ), 17781 17723 fs_request_get( 'install_id' ), 17782 fs_request_get ( 'install_public_key' ),17783 fs_request_get ( 'install_secret_key' ),17724 fs_request_get_raw( 'install_public_key' ), 17725 fs_request_get_raw( 'install_secret_key' ), 17784 17726 true, 17785 17727 fs_request_get_bool( 'auto_install' ) … … 18120 18062 18121 18063 if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) { 18122 // check_admin_referer( 'activate_existing_' . $this->_plugin->public_key);18064 check_admin_referer( $this->get_unique_affix() . '_activate_existing' ); 18123 18065 18124 18066 /** … … 18126 18068 * @since 1.1.9 Add license key if given. 18127 18069 */ 18128 $license_key = fs_request_get ( 'license_secret_key' );18070 $license_key = fs_request_get_raw( 'license_secret_key' ); 18129 18071 18130 18072 FS_Permission_Manager::instance( $this )->update_permissions_tracking_flag( array( … … 20861 20803 } 20862 20804 20863 $license_or_user_key = fs_request_get ( 'license_or_user_key' );20805 $license_or_user_key = fs_request_get_raw( 'license_or_user_key' ); 20864 20806 20865 20807 $transient_value = ( ! empty( $license_or_user_key ) ) ? … … 22699 22641 $user = new FS_User(); 22700 22642 $user->id = fs_request_get( 'user_id' ); 22701 $user->public_key = fs_request_get ( 'user_public_key' );22702 $user->secret_key = fs_request_get ( 'user_secret_key' );22643 $user->public_key = fs_request_get_raw( 'user_public_key' ); 22644 $user->secret_key = fs_request_get_raw( 'user_secret_key' ); 22703 22645 22704 22646 $prev_user = $this->_user; … … 23196 23138 switch ( $state ) { 23197 23139 case 'init': 23140 // The nonce is injected by the error handler in `_email_address_update_ajax_handler` function. 23141 check_admin_referer( 'change_owner' ); 23142 23198 23143 $candidate_email = fs_request_get( 'candidate_email' ); 23199 23144 $transfer_type = fs_request_get( 'transfer_type' ); … … 23208 23153 break; 23209 23154 case 'owner_confirmed': 23155 // We cannot (or need not to) check the nonce and referer here, because the link comes from the email sent by our API. 23210 23156 $candidate_email = fs_request_get( 'candidate_email', '' ); 23157 23158 if ( ! is_email($candidate_email ) ) { 23159 return; 23160 } 23211 23161 23212 23162 $this->_admin_notices->add( sprintf( $this->get_text_inline( 'Thanks for confirming the ownership change. An email was just sent to %s for final approval.', 'change-owner-request_owner-confirmed' ), '<b>' . $candidate_email . '</b>' ) ); 23213 23163 break; 23214 23164 case 'candidate_confirmed': 23165 // We do not need to validate the authenticity of this request here, because the `complete_change_owner` does that for us through API calls. 23215 23166 if ( $this->complete_change_owner() ) { 23216 23167 $this->_admin_notices->add_sticky( … … 23245 23196 23246 23197 #region Actions that might be called from external links (e.g. email) 23198 23199 /** 23200 * !!IMPORTANT!!: We cannot check for a valid nonce in this region, because the links could be coming from emails. 23201 */ 23247 23202 23248 23203 case 'cancel_trial': … … 23552 23507 'is_enriched' => true, 23553 23508 'trial' => fs_request_get_bool( 'trial' ), 23554 'sandbox' => fs_request_get ( 'sandbox' ),23555 's_ctx_type' => fs_request_get ( 's_ctx_type' ),23556 's_ctx_id' => fs_request_get ( 's_ctx_id' ),23557 's_ctx_ts' => fs_request_get ( 's_ctx_ts' ),23558 's_ctx_secure' => fs_request_get ( 's_ctx_secure' ),23509 'sandbox' => fs_request_get_raw( 'sandbox' ), 23510 's_ctx_type' => fs_request_get_raw( 's_ctx_type' ), 23511 's_ctx_id' => fs_request_get_raw( 's_ctx_id' ), 23512 's_ctx_ts' => fs_request_get_raw( 's_ctx_ts' ), 23513 's_ctx_secure' => fs_request_get_raw( 's_ctx_secure' ), 23559 23514 ); 23560 23515 … … 26175 26130 $this->check_ajax_referer( 'fetch_is_marketing_required_flag_value' ); 26176 26131 26177 $license_key = fs_request_get ( 'license_key' );26132 $license_key = fs_request_get_raw( 'license_key' ); 26178 26133 26179 26134 if ( empty($license_key) ) { -
auto-install-free-ssl/trunk/freemius/includes/class-fs-plugin-updater.php
r2886132 r2934344 135 135 if ( 136 136 'plugin-information' !== fs_request_get( 'tab', false ) || 137 $this->_fs->get_slug() !== fs_request_get ( 'plugin', false )137 $this->_fs->get_slug() !== fs_request_get_raw( 'plugin', false ) 138 138 ) { 139 139 return; … … 154 154 if ( 155 155 'plugin-information' !== fs_request_get( 'tab', false ) || 156 $this->_fs->get_slug() !== fs_request_get ( 'plugin', false )156 $this->_fs->get_slug() !== fs_request_get_raw( 'plugin', false ) 157 157 ) { 158 158 return; -
auto-install-free-ssl/trunk/freemius/includes/fs-core-functions.php
r2821062 r2934344 134 134 #-------------------------------------------------------------------------------- 135 135 136 if ( ! function_exists( 'fs_request_get_raw' ) ) { 137 /** 138 * A helper function to fetch GET/POST user input with an optional default value when the input is not set. 139 * This function does not do sanitization. It is up to the caller to properly sanitize and validate the input. 140 * 141 * The return of this function is always unslashed. 142 * 143 * @since 2.5.10 144 * 145 * @param string $key 146 * @param mixed $def 147 * @param string|bool $type When set to 'get', it will look for the value passed via query string. When 148 * set to 'post', it will look for the value passed via the POST request's body. Otherwise, 149 * it will check if the parameter was passed using any of the mentioned two methods. 150 * 151 * @return mixed 152 */ 153 function fs_request_get_raw( $key, $def = false, $type = false ) { 154 if ( is_string( $type ) ) { 155 $type = strtolower( $type ); 156 } 157 158 /** 159 * Note to WordPress.org reviewers: 160 * This is a helper function to fetch GET/POST user input with an optional default value when the input is not set. The actual sanitization is done in the scope of the function's usage. 161 */ 162 switch ( $type ) { 163 case 'post': 164 // phpcs:ignore WordPress.Security.NonceVerification.Missing 165 $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def; 166 break; 167 case 'get': 168 // phpcs:ignore WordPress.Security.NonceVerification.Recommended 169 $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def; 170 break; 171 default: 172 // phpcs:ignore WordPress.Security.NonceVerification.Recommended 173 $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def; 174 break; 175 } 176 177 // Don't unslash if the value itself is empty (empty string, null, empty array etc). 178 return empty( $value ) ? $value : wp_unslash( $value ); 179 } 180 } 181 182 if ( ! function_exists( 'fs_sanitize_input' ) ) { 183 /** 184 * Sanitizes input recursively (if an array). 185 * 186 * @param mixed $input 187 * 188 * @return mixed 189 * @uses sanitize_text_field() 190 * @since 2.5.10 191 */ 192 function fs_sanitize_input( $input ) { 193 if ( is_array( $input ) ) { 194 foreach ( $input as $key => $value ) { 195 $input[ $key ] = fs_sanitize_input( $value ); 196 } 197 } else { 198 // Allow empty values to pass through as-is, like `null`, `''`, `0`, `'0'` etc. 199 $input = empty( $input ) ? $input : sanitize_text_field( $input ); 200 } 201 202 return $input; 203 } 204 } 205 136 206 if ( ! function_exists( 'fs_request_get' ) ) { 137 207 /** 138 208 * A helper method to fetch GET/POST user input with an optional default value when the input is not set. 139 * @author Vova Feldman (@svovaf) 209 * 210 * @author Vova Feldman (@svovaf) 211 * 212 * @note The return value is always sanitized with sanitize_text_field(). 140 213 * 141 214 * @param string $key … … 145 218 * will check if the parameter was passed in any of the two. 146 219 * 220 * 147 221 * @return mixed 148 222 */ 149 223 function fs_request_get( $key, $def = false, $type = false ) { 150 if ( is_string( $type ) ) { 151 $type = strtolower( $type ); 152 } 153 154 /** 155 * Note to WordPress.org Reviewers: 156 * This is a helper method to fetch GET/POST user input with an optional default value when the input is not set. The actual sanitization is done in the scope of the function's usage. 157 */ 158 switch ( $type ) { 159 case 'post': 160 $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def; 161 break; 162 case 'get': 163 $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def; 164 break; 165 default: 166 $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def; 167 break; 168 } 169 170 return $value; 224 return fs_sanitize_input( fs_request_get_raw( $key, $def, $type ) ); 171 225 } 172 226 } … … 174 228 if ( ! function_exists( 'fs_request_has' ) ) { 175 229 function fs_request_has( $key ) { 230 // phpcs:ignore WordPress.Security.NonceVerification.Recommended 176 231 return isset( $_REQUEST[ $key ] ); 177 232 } … … 232 287 if ( ! function_exists( 'fs_get_action' ) ) { 233 288 function fs_get_action( $action_key = 'action' ) { 289 // phpcs:disable WordPress.Security.NonceVerification.Recommended 234 290 if ( ! empty( $_REQUEST[ $action_key ] ) && is_string( $_REQUEST[ $action_key ] ) ) { 235 291 return strtolower( $_REQUEST[ $action_key ] ); … … 245 301 246 302 return false; 303 // phpcs:enable WordPress.Security.NonceVerification.Recommended 247 304 } 248 305 } -
auto-install-free-ssl/trunk/freemius/require.php
r2821062 r2934344 14 14 require_once dirname( __FILE__ ) . '/config.php'; 15 15 require_once WP_FS__DIR_INCLUDES . '/fs-core-functions.php'; 16 require_once WP_FS__DIR_INCLUDES . '/fs-html-escaping-functions.php'; 16 17 17 18 // Logger must be loaded before any other. -
auto-install-free-ssl/trunk/freemius/start.php
r2929749 r2934344 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.5. 9';18 $this_sdk_version = '2.5.10'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- -
auto-install-free-ssl/trunk/freemius/templates/account.php
r2929749 r2934344 257 257 <?php if ( ! $has_tabs && ! $fs->apply_filters( 'hide_account_tabs', false ) ) : ?> 258 258 <h2 class="nav-tab-wrapper"> 259 <a href="<?php echo $fs->get_account_url() ?>"259 <a href="<?php echo esc_url( $fs->get_account_url() ) ?>" 260 260 class="nav-tab nav-tab-active"><?php fs_esc_html_echo_inline( 'Account', 'account', $slug ) ?></a> 261 261 <?php if ( $fs->has_addons() ) : ?> 262 <a href="<?php echo $fs->_get_admin_page_url( 'addons') ?>"262 <a href="<?php echo esc_url( $fs->_get_admin_page_url( 'addons' ) ) ?>" 263 263 class="nav-tab"><?php echo esc_html( $addons_text ) ?></a> 264 264 <?php endif ?> 265 265 <?php if ( $show_upgrade ) : ?> 266 <a href="<?php echo $fs->get_upgrade_url() ?>" class="nav-tab"><?php echo esc_html( $upgrade_text ) ?></a>266 <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>" class="nav-tab"><?php echo esc_html( $upgrade_text ) ?></a> 267 267 <?php if ( $fs->apply_filters( 'show_trial', true ) && ! $fs->is_trial_utilized() && $fs->has_trial_plan() ) : ?> 268 <a href="<?php echo $fs->get_trial_url() ?>" class="nav-tab"><?php fs_esc_html_echo_inline( 'Free Trial', 'free-trial', $slug ) ?></a>268 <a href="<?php echo esc_url( $fs->get_trial_url() ) ?>" class="nav-tab"><?php fs_esc_html_echo_inline( 'Free Trial', 'free-trial', $slug ) ?></a> 269 269 <?php endif ?> 270 270 <?php endif ?> … … 312 312 <?php if ( ! fs_is_network_admin() ) : ?> 313 313 <li> 314 <form action="<?php echo $fs->_get_admin_page_url( 'account') ?>" method="POST">314 <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST"> 315 315 <input type="hidden" name="fs_action" value="deactivate_license"> 316 316 <?php wp_nonce_field( 'deactivate_license' ) ?> … … 326 326 ) : ?> 327 327 <li> 328 <form action="<?php echo $fs->_get_admin_page_url( 'account') ?>" method="POST">328 <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST"> 329 329 <input type="hidden" name="fs_action" value="downgrade_account"> 330 330 <?php wp_nonce_field( 'downgrade_account' ) ?> … … 332 332 onclick="if ( confirm('<?php echo esc_attr( sprintf( 333 333 $downgrade_x_confirm_text, 334 ( $fs->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),334 ( $fs->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ), 335 335 $plan->title, 336 336 human_time_diff( time(), strtotime( $license->expiration ) ) … … 346 346 <?php if ( $is_plan_change_supported ) : ?> 347 347 <li> 348 <a href="<?php echo $fs->get_upgrade_url() ?>"><i348 <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>"><i 349 349 class="dashicons dashicons-grid-view"></i> <?php echo esc_html( $change_plan_text ) ?></a> 350 350 </li> … … 353 353 <?php elseif ( $is_paid_trial ) : ?> 354 354 <li> 355 <form action="<?php echo $fs->_get_admin_page_url( 'account') ?>" method="POST">355 <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST"> 356 356 <input type="hidden" name="fs_action" value="cancel_trial"> 357 357 <?php wp_nonce_field( 'cancel_trial' ) ?> … … 364 364 <?php endif ?> 365 365 <li> 366 <form action="<?php echo $fs->_get_admin_page_url( 'account') ?>" method="POST">367 <input type="hidden" name="fs_action" value="<?php echo $fs->get_unique_affix() ?>_sync_license">366 <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST"> 367 <input type="hidden" name="fs_action" value="<?php echo esc_attr( $fs->get_unique_affix() ) ?>_sync_license"> 368 368 <?php wp_nonce_field( $fs->get_unique_affix() . '_sync_license' ) ?> 369 369 <a href="#" onclick="this.parentNode.submit(); return false;"><i … … 509 509 } 510 510 ?> 511 <tr class="fs-field-<?php echo $p['id']?><?php if ( $odd ) : ?> alternate<?php endif ?>">511 <tr class="fs-field-<?php echo esc_attr( $p['id'] ) ?><?php if ( $odd ) : ?> alternate<?php endif ?>"> 512 512 <td> 513 <nobr><?php echo $p['title']?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr>513 <nobr><?php echo esc_attr( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr> 514 514 </td> 515 515 <td<?php if ( 'plan' === $p['id'] || 'bundle_plan' === $p['id'] ) { echo ' colspan="2"'; }?>> … … 564 564 fs_require_template( 'account/partials/activate-license-button.php', $view_params ); ?> 565 565 <?php else : ?> 566 <form action="<?php echo $fs->_get_admin_page_url( 'account') ?>"566 <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" 567 567 method="POST" class="button-group"> 568 568 <?php if ( $show_upgrade && $is_premium ) : ?> 569 <a class="button activate-license-trigger <?php echo $fs->get_unique_affix() ?>" href="#"><?php fs_esc_html_echo_inline( 'Activate License', 'activate-license', $slug ) ?></a>569 <a class="button activate-license-trigger <?php echo esc_attr( $fs->get_unique_affix() ) ?>" href="#"><?php fs_esc_html_echo_inline( 'Activate License', 'activate-license', $slug ) ?></a> 570 570 <?php endif ?> 571 571 <input type="submit" class="button" 572 572 value="<?php echo esc_attr( $sync_license_text ) ?>"> 573 573 <input type="hidden" name="fs_action" 574 value="<?php echo $fs->get_unique_affix() ?>_sync_license">574 value="<?php echo esc_attr( $fs->get_unique_affix() ) ?>_sync_license"> 575 575 <?php wp_nonce_field( $fs->get_unique_affix() . '_sync_license' ) ?> 576 576 <?php if ( $show_upgrade || $is_plan_change_supported ) : ?> 577 <a href="<?php echo $fs->get_upgrade_url() ?>"577 <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>" 578 578 class="button<?php 579 579 echo $show_upgrade ? -
auto-install-free-ssl/trunk/freemius/templates/account/billing.php
r2821062 r2934344 36 36 } ?>> 37 37 <tr> 38 <td><label><span><?php fs_esc_html_echo_inline( 'Business name', 'business-name', $slug ) ?>:</span> <input id="business_name" value="<?php echo $billing->business_name?>" placeholder="<?php fs_esc_attr_echo_inline( 'Business name', 'business-name', $slug ) ?>"></label></td>39 <td><label><span><?php fs_esc_html_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>:</span> <input id="tax_id" value="<?php echo $billing->tax_id?>" placeholder="<?php fs_esc_attr_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>"></label></td>38 <td><label><span><?php fs_esc_html_echo_inline( 'Business name', 'business-name', $slug ) ?>:</span> <input id="business_name" value="<?php echo esc_attr( $billing->business_name ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Business name', 'business-name', $slug ) ?>"></label></td> 39 <td><label><span><?php fs_esc_html_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>:</span> <input id="tax_id" value="<?php echo esc_attr( $billing->tax_id ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>"></label></td> 40 40 </tr> 41 41 <tr> 42 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>:</span> <input id="address_street" value="<?php echo $billing->address_street?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>"></label></td>43 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>:</span> <input id="address_apt" value="<?php echo $billing->address_apt?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>"></label></td>42 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>:</span> <input id="address_street" value="<?php echo esc_attr( $billing->address_street ) ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>"></label></td> 43 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>:</span> <input id="address_apt" value="<?php echo esc_attr( $billing->address_apt ) ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>"></label></td> 44 44 </tr> 45 45 <tr> 46 <td><label><span><?php fs_esc_html_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Town', 'town', $slug ) ?>:</span> <input id="address_city" value="<?php echo $billing->address_city?>" placeholder="<?php fs_esc_attr_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_attr_echo_inline( 'Town', 'town', $slug ) ?>"></label></td>47 <td><label><span><?php fs_esc_html_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>:</span> <input id="address_zip" value="<?php echo $billing->address_zip?>" placeholder="<?php fs_esc_attr_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>"></label></td>46 <td><label><span><?php fs_esc_html_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Town', 'town', $slug ) ?>:</span> <input id="address_city" value="<?php echo esc_attr( $billing->address_city ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_attr_echo_inline( 'Town', 'town', $slug ) ?>"></label></td> 47 <td><label><span><?php fs_esc_html_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>:</span> <input id="address_zip" value="<?php echo esc_attr( $billing->address_zip ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>"></label></td> 48 48 </tr> 49 49 <tr> … … 306 306 <?php foreach ( $countries as $code => $country ) : ?> 307 307 <option 308 value="<?php echo $code ?>" <?php selected( $billing->address_country_code, $code ) ?>><?php echo $country?></option>308 value="<?php echo esc_attr( $code ) ?>" <?php selected( $billing->address_country_code, $code ) ?>><?php echo esc_html( $country ) ?></option> 309 309 <?php endforeach ?> 310 310 </select></label></td> 311 311 <td><label><span><?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>:</span> 312 <input id="address_state" value="<?php echo $billing->address_state?>" placeholder="<?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>"></label></td>312 <input id="address_state" value="<?php echo esc_attr( $billing->address_state ) ?>" placeholder="<?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>"></label></td> 313 313 </tr> 314 314 <tr> … … 381 381 method : 'POST', 382 382 data : { 383 action : '<?php echo $fs->get_ajax_action( 'update_billing' ) ?>',384 security : '<?php echo $fs->get_ajax_security( 'update_billing' ) ?>',385 module_id: '<?php echo $fs->get_id() ?>',383 action : <?php echo wp_json_encode( $fs->get_ajax_action( 'update_billing' ) ) ?>, 384 security : <?php echo wp_json_encode( $fs->get_ajax_security( 'update_billing' ) ) ?>, 385 module_id: <?php echo wp_json_encode( $fs->get_id() ) ?>, 386 386 billing : billing 387 387 }, -
auto-install-free-ssl/trunk/freemius/templates/admin-notice.php
r2821062 r2934344 10 10 exit; 11 11 } 12 13 /** 14 * @var array $VARS 15 */ 12 16 13 17 $dismiss_text = fs_text_x_inline( 'Dismiss', 'as close a window', 'dismiss' ); … … 36 40 } 37 41 } 42 43 $attributes = array(); 44 if ( ! empty( $VARS['id'] ) ) { 45 $attributes['data-id'] = $VARS['id']; 46 } 47 if ( ! empty( $VARS['manager_id'] ) ) { 48 $attributes['data-manager-id'] = $VARS['manager_id']; 49 } 50 if ( ! empty( $slug ) ) { 51 $attributes['data-slug'] = $slug; 52 } 53 if ( ! empty( $type ) ) { 54 $attributes['data-type'] = $type; 55 } 56 57 $classes = array( 'fs-notice' ); 58 switch ( $VARS['type'] ) { 59 case 'error': 60 $classes[] = 'error'; 61 $classes[] = 'form-invalid'; 62 break; 63 case 'promotion': 64 $classes[] = 'updated'; 65 $classes[] = 'promotion'; 66 break; 67 case 'warn': 68 $classes[] = 'notice'; 69 $classes[] = 'notice-warning'; 70 break; 71 case 'update': 72 case 'success': 73 default: 74 $classes[] = 'updated'; 75 $classes[] = 'success'; 76 break; 77 } 78 if ( ! empty( $VARS['sticky'] ) ) { 79 $classes[] = 'fs-sticky'; 80 } 81 if ( ! empty( $VARS['plugin'] ) ) { 82 $classes[] = 'fs-has-title'; 83 } 84 if ( ! empty( $slug ) ) { 85 $classes[] = "fs-slug-{$slug}"; 86 } 87 if ( ! empty( $type ) ) { 88 $classes[] = "fs-type-{$type}"; 89 } 38 90 ?> 39 <div<?php if ( ! empty( $VARS['id'] ) ) : ?> data-id="<?php echo $VARS['id'] ?>"<?php endif ?><?php if ( ! empty( $VARS['manager_id'] ) ) : ?> data-manager-id="<?php echo $VARS['manager_id'] ?>"<?php endif ?><?php if ( ! empty( $slug ) ) : ?> data-slug="<?php echo $slug ?>"<?php endif ?><?php if ( ! empty( $type ) ) : ?> data-type="<?php echo $type ?>"<?php endif ?> 40 class="<?php 41 switch ( $VARS['type'] ) { 42 case 'error': 43 echo 'error form-invalid'; 44 break; 45 case 'promotion': 46 echo 'updated promotion'; 47 break; 48 case 'warn': 49 echo 'notice notice-warning'; 50 break; 51 case 'update': 52 // echo 'update-nag update'; 53 // break; 54 case 'success': 55 default: 56 echo 'updated success'; 57 break; 58 } 59 ?> fs-notice<?php if ( ! empty( $VARS['sticky'] ) ) { 60 echo ' fs-sticky'; 61 } ?><?php if ( ! empty( $VARS['plugin'] ) ) { 62 echo ' fs-has-title'; 63 } ?><?php if ( ! empty( $slug ) ) { 64 echo " fs-slug-{$slug}"; 65 } ?><?php if ( ! empty( $type ) ) { 66 echo " fs-type-{$type}"; 67 } ?>"><?php if ( ! empty( $VARS['plugin'] ) ) : ?> 68 <label class="fs-plugin-title"><?php echo $VARS['plugin'] ?></label> 91 <div class="<?php echo fs_html_get_classname( $classes ); ?>" <?php echo fs_html_get_attributes( $attributes ); ?>> 92 <?php if ( ! empty( $VARS['plugin'] ) ) : ?> 93 <label class="fs-plugin-title"> 94 <?php echo esc_html( $VARS['plugin'] ); ?> 95 </label> 69 96 <?php endif ?> 97 70 98 <?php if ( ! empty( $VARS['sticky'] ) && ( ! isset( $VARS['dismissible'] ) || false !== $VARS['dismissible'] ) ) : ?> 71 <div class="fs-close"><i class="dashicons dashicons-no" 72 title="<?php echo esc_attr( $dismiss_text ) ?>"></i> <span><?php echo esc_html( $dismiss_text ) ?></span> 99 <div class="fs-close"> 100 <i class="dashicons dashicons-no" title="<?php echo esc_attr( $dismiss_text ) ?>"></i> 101 <span><?php echo esc_html( $dismiss_text ); ?></span> 73 102 </div> 74 103 <?php endif ?> 104 75 105 <div class="fs-notice-body"> 76 <?php if ( ! empty( $VARS['title'] ) ) : ?><b><?php echo $VARS['title'] ?></b> <?php endif ?> 77 <?php echo $VARS['message'] ?> 106 <?php if ( ! empty( $VARS['title'] ) ) : ?> 107 <strong><?php echo fs_html_get_sanitized_html( $VARS['title'] ); ?></strong> 108 <?php endif ?> 109 110 <?php echo fs_html_get_sanitized_html( $VARS['message'] ); ?> 78 111 </div> 79 112 </div> -
auto-install-free-ssl/trunk/freemius/templates/connect.php
r2914082 r2934344 366 366 <form action="" method="POST"> 367 367 <input type="hidden" name="fs_action" 368 value="<?php echo $fs->get_unique_affix() ?>_activate_existing">369 <?php wp_nonce_field( 'activate_existing_' . $fs->get_public_key()) ?>368 value="<?php echo esc_attr( $fs->get_unique_affix() . '_activate_existing' ) ?>"> 369 <?php wp_nonce_field( $fs->get_unique_affix() . '_activate_existing' ) ?> 370 370 <input type="hidden" name="is_extensions_tracking_allowed" value="1"> 371 371 <input type="hidden" name="is_diagnostic_tracking_allowed" value="1"> … … 377 377 <?php unset( $optin_params['sites']); ?> 378 378 <?php foreach ( $optin_params as $name => $value ) : ?> 379 <input type="hidden" name="<?php echo $name?>" value="<?php echo esc_attr( $value ) ?>">379 <input type="hidden" name="<?php echo esc_attr( $name ) ?>" value="<?php echo esc_attr( $value ) ?>"> 380 380 <?php endforeach ?> 381 381 <input type="hidden" name="is_extensions_tracking_allowed" value="1"> … … 388 388 <?php endif ?> 389 389 <?php if ( $require_license_key ) : ?> 390 <a id="license_issues_link" href="<?php echo $fs->apply_filters( 'known_license_issues_url', 'https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/' ) ?>" target="_blank"><?php fs_esc_html_echo_inline( 'License issues?', 'license-issues', $slug ) ?></a> 390 <a id="license_issues_link" 391 href="<?php echo esc_url( $fs->apply_filters( 'known_license_issues_url', 'https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/' ) ) ?>" 392 target="_blank"><?php fs_esc_html_echo_inline( 'License issues?', 'license-issues', $slug ) ?></a> 391 393 <?php endif ?> 392 394 … … 413 415 <a class="fs-trigger wp-core-ui" href="#" tabindex="1" style="color: inherit;"><?php echo sprintf( 414 416 fs_esc_html_inline( 'For delivery of security & feature updates, and license management, %s needs to', 'license-sync-disclaimer', $slug ) . '<b class="fs-arrow"></b>', 415 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', $fs->get_plugin_title() )417 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', esc_html( $fs->get_plugin_title() ) ) 416 418 ) ?></a> 417 419 <?php else : ?> 418 420 <a class="fs-trigger wp-core-ui" href="#" tabindex="1" style="color: inherit;"><?php printf( 419 421 fs_esc_html_inline( 'This will allow %s to', 'this-will-allow-x', $slug ) . '<b class="fs-arrow"></b>', 420 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', $fs->get_plugin_title() )422 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', esc_html( $fs->get_plugin_title() ) ) 421 423 ) ?></a> 422 424 <?php endif ?> … … 443 445 </div> 444 446 <div class="fs-terms"> 445 <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo esc_url( $freemius_activation_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc') ?></span><?php endif ?></a>447 <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo esc_url( $freemius_activation_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo esc_html( $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc' ) ) ?></span><?php endif ?></a> 446 448 - 447 449 <a href="https://freemius.com/privacy/" target="_blank" rel="noopener" -
auto-install-free-ssl/trunk/freemius/templates/forms/optout.php
r2886132 r2934344 119 119 $form_id = "fs_opt_out_{$fs->get_id()}"; 120 120 ?> 121 <div id="<?php echo $form_id?>"121 <div id="<?php echo esc_attr( $form_id ) ?>" 122 122 class="fs-modal fs-modal-opt-out" 123 data-plugin-id="<?php echo $fs->get_id() ?>"124 data-action="<?php echo $fs->get_ajax_action( $ajax_action) ?>"125 data-security="<?php echo $fs->get_ajax_security( $ajax_action) ?>"123 data-plugin-id="<?php echo esc_attr( $fs->get_id() ) ?>" 124 data-action="<?php echo esc_attr( $fs->get_ajax_action( $ajax_action ) ) ?>" 125 data-security="<?php echo esc_attr( $fs->get_ajax_security( $ajax_action ) ) ?>" 126 126 style="display: none"> 127 127 <div class="fs-modal-dialog"> … … 146 146 <?php foreach ( $permission_groups as $i => $permission_group ) : ?> 147 147 <?php if ( ! empty( $permission_group[ 'prompt' ] ) ) : ?> 148 <div class="fs-<?php echo $permission_group[ 'id' ] ?>-opt-out fs-opt-out-disclaimer" data-group-id="<?php echo $permission_group[ 'id' ]?>" style="display: none">148 <div class="fs-<?php echo esc_attr( $permission_group[ 'id' ] ) ?>-opt-out fs-opt-out-disclaimer" data-group-id="<?php echo esc_attr( $permission_group[ 'id' ] ) ?>" style="display: none"> 149 149 <div class="fs-modal-body"> 150 150 <div class="fs-modal-panel active"> 151 151 <div class="notice notice-error inline opt-out-error-message"><p></p></div> 152 152 <?php foreach ( $permission_group[ 'prompt' ] as $p ) : ?> 153 <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 153 154 <p><?php echo $p ?></p> 154 155 <?php endforeach ?> … … 171 172 $( document ).ready(function() { 172 173 FS.OptOut( 173 '<?php echo $fs->get_id() ?>',174 '<?php echo $slug ?>',175 '<?php echo $fs->get_module_type() ?>',174 <?php echo wp_json_encode( $fs->get_id() ) ?>, 175 <?php echo wp_json_encode( $slug ) ?>, 176 <?php echo wp_json_encode( $fs->get_module_type() ) ?>, 176 177 <?php echo $fs->is_registered( true ) ? 'true' : 'false' ?>, 177 178 <?php echo $fs->is_tracking_allowed() ? 'true' : 'false' ?>, 178 '<?php echo esc_js( $reconnect_url ) ?>'179 <?php echo wp_json_encode( $reconnect_url ) ?> 179 180 ); 180 181 }); -
auto-install-free-ssl/trunk/freemius/templates/partials/network-activation.php
r2821062 r2934344 62 62 <?php foreach ( $sites as $site ) : ?> 63 63 <tr<?php if ( ! empty( $site['license_id'] ) ) { 64 echo ' data-license-id="' . $site['license_id']. '"';64 echo ' data-license-id="' . esc_attr( $site['license_id'] ) . '"'; 65 65 } ?>> 66 66 <?php if ( $require_license_key ) : ?> 67 67 <td><input type="checkbox" value="true" /></td> 68 68 <?php endif ?> 69 <td class="blog-id"><span><?php echo $site['blog_id']?></span>.</td>69 <td class="blog-id"><span><?php echo esc_html( $site['blog_id'] ) ?></span>.</td> 70 70 <td width="600"><span><?php 71 71 $url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) ); 72 echo $url;72 echo esc_html( $url ); 73 73 ?></span> 74 74 <?php foreach ($site_props as $prop) : ?> 75 <input class="<?php echo $prop?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />75 <input class="<?php echo esc_attr( $prop ) ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" /> 76 76 <?php endforeach ?> 77 77 </td> -
auto-install-free-ssl/trunk/readme.txt
r2929749 r2934344 7 7 Requires at least: 4.1 8 8 Tested up to: 6.2 9 Stable tag: 3. 5.19 Stable tag: 3.6.0 10 10 Requires PHP: 5.6 11 11 Development location: https://freessl.tech … … 27 27 28 28 29 ` 33 0,500+ DOWNLOADS!!`29 ` 335,500+ DOWNLOADS!!` 30 30 31 31
Note: See TracChangeset
for help on using the changeset viewer.