Changeset 2998087
- Timestamp:
- 11/18/2023 12:14:29 PM (2 years ago)
- Location:
- auto-install-free-ssl
- Files:
-
- 278 added
- 5 edited
-
tags/3.6.8 (added)
-
tags/3.6.8/FreeSSLAuto (added)
-
tags/3.6.8/FreeSSLAuto/src (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/AcmeV2.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/Base64UrlSafeEncoder.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/Client.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/ClientInterface.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/Factory.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Acme/openssl.cnf (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/AdminNotice.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/AutoDataEntry.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/Factory.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/ForceHttpsPage.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/ForceSSL.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/HomeOptions.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Admin/Log.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Controller.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Email.php (added)
-
tags/3.6.8/FreeSSLAuto/src/Logger.php (added)
-
tags/3.6.8/assets (added)
-
tags/3.6.8/assets/css (added)
-
tags/3.6.8/assets/css/aifs-admin.css (added)
-
tags/3.6.8/assets/img (added)
-
tags/3.6.8/assets/img/fire.webp (added)
-
tags/3.6.8/assets/img/icon.jpg (added)
-
tags/3.6.8/assets/img/ssl-error.jpg (added)
-
tags/3.6.8/assets/js (added)
-
tags/3.6.8/assets/js/script.js (added)
-
tags/3.6.8/auto-install-free-ssl.php (added)
-
tags/3.6.8/composer.json (added)
-
tags/3.6.8/composer.lock (added)
-
tags/3.6.8/freemius (added)
-
tags/3.6.8/freemius/LICENSE.txt (added)
-
tags/3.6.8/freemius/assets (added)
-
tags/3.6.8/freemius/assets/css (added)
-
tags/3.6.8/freemius/assets/css/admin (added)
-
tags/3.6.8/freemius/assets/css/admin/account.css (added)
-
tags/3.6.8/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.6.8/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.6.8/freemius/assets/css/admin/checkout.css (added)
-
tags/3.6.8/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.6.8/freemius/assets/css/admin/common.css (added)
-
tags/3.6.8/freemius/assets/css/admin/connect.css (added)
-
tags/3.6.8/freemius/assets/css/admin/debug.css (added)
-
tags/3.6.8/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.6.8/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.6.8/freemius/assets/css/admin/index.php (added)
-
tags/3.6.8/freemius/assets/css/admin/optout.css (added)
-
tags/3.6.8/freemius/assets/css/admin/plugins.css (added)
-
tags/3.6.8/freemius/assets/css/customizer.css (added)
-
tags/3.6.8/freemius/assets/css/index.php (added)
-
tags/3.6.8/freemius/assets/img (added)
-
tags/3.6.8/freemius/assets/img/auto-install-free-ssl.png (added)
-
tags/3.6.8/freemius/assets/img/index.php (added)
-
tags/3.6.8/freemius/assets/img/plugin-icon.png (added)
-
tags/3.6.8/freemius/assets/img/theme-icon.png (added)
-
tags/3.6.8/freemius/assets/index.php (added)
-
tags/3.6.8/freemius/assets/js (added)
-
tags/3.6.8/freemius/assets/js/index.php (added)
-
tags/3.6.8/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.6.8/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.6.8/freemius/assets/js/postmessage.js (added)
-
tags/3.6.8/freemius/config.php (added)
-
tags/3.6.8/freemius/includes (added)
-
tags/3.6.8/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.6.8/freemius/includes/class-freemius.php (added)
-
tags/3.6.8/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.6.8/freemius/includes/class-fs-api.php (added)
-
tags/3.6.8/freemius/includes/class-fs-garbage-collector.php (added)
-
tags/3.6.8/freemius/includes/class-fs-lock.php (added)
-
tags/3.6.8/freemius/includes/class-fs-logger.php (added)
-
tags/3.6.8/freemius/includes/class-fs-options.php (added)
-
tags/3.6.8/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.6.8/freemius/includes/class-fs-security.php (added)
-
tags/3.6.8/freemius/includes/class-fs-storage.php (added)
-
tags/3.6.8/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.6.8/freemius/includes/customizer (added)
-
tags/3.6.8/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.6.8/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.6.8/freemius/includes/customizer/index.php (added)
-
tags/3.6.8/freemius/includes/debug (added)
-
tags/3.6.8/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.6.8/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.6.8/freemius/includes/debug/index.php (added)
-
tags/3.6.8/freemius/includes/entities (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.6.8/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.6.8/freemius/includes/entities/index.php (added)
-
tags/3.6.8/freemius/includes/fs-core-functions.php (added)
-
tags/3.6.8/freemius/includes/fs-essential-functions.php (added)
-
tags/3.6.8/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/3.6.8/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.6.8/freemius/includes/index.php (added)
-
tags/3.6.8/freemius/includes/l10n.php (added)
-
tags/3.6.8/freemius/includes/managers (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.6.8/freemius/includes/managers/index.php (added)
-
tags/3.6.8/freemius/includes/sdk (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.6.8/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.6.8/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.6.8/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.6.8/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.6.8/freemius/includes/sdk/index.php (added)
-
tags/3.6.8/freemius/includes/supplements (added)
-
tags/3.6.8/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.6.8/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.6.8/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.6.8/freemius/includes/supplements/index.php (added)
-
tags/3.6.8/freemius/index.php (added)
-
tags/3.6.8/freemius/languages (added)
-
tags/3.6.8/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.6.8/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.6.8/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.6.8/freemius/languages/freemius-en.mo (added)
-
tags/3.6.8/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.6.8/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.6.8/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.6.8/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.6.8/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.6.8/freemius/languages/freemius-ja.mo (added)
-
tags/3.6.8/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.6.8/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.6.8/freemius/languages/freemius-ta.mo (added)
-
tags/3.6.8/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.6.8/freemius/languages/freemius.pot (added)
-
tags/3.6.8/freemius/languages/index.php (added)
-
tags/3.6.8/freemius/require.php (added)
-
tags/3.6.8/freemius/start.php (added)
-
tags/3.6.8/freemius/templates (added)
-
tags/3.6.8/freemius/templates/account (added)
-
tags/3.6.8/freemius/templates/account.php (added)
-
tags/3.6.8/freemius/templates/account/billing.php (added)
-
tags/3.6.8/freemius/templates/account/index.php (added)
-
tags/3.6.8/freemius/templates/account/partials (added)
-
tags/3.6.8/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.6.8/freemius/templates/account/partials/addon.php (added)
-
tags/3.6.8/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.6.8/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.6.8/freemius/templates/account/partials/index.php (added)
-
tags/3.6.8/freemius/templates/account/partials/site.php (added)
-
tags/3.6.8/freemius/templates/account/payments.php (added)
-
tags/3.6.8/freemius/templates/add-ons.php (added)
-
tags/3.6.8/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.6.8/freemius/templates/admin-notice.php (added)
-
tags/3.6.8/freemius/templates/ajax-loader.php (added)
-
tags/3.6.8/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.6.8/freemius/templates/auto-installation.php (added)
-
tags/3.6.8/freemius/templates/checkout.php (added)
-
tags/3.6.8/freemius/templates/clone-resolution-js.php (added)
-
tags/3.6.8/freemius/templates/connect (added)
-
tags/3.6.8/freemius/templates/connect.php (added)
-
tags/3.6.8/freemius/templates/connect/index.php (added)
-
tags/3.6.8/freemius/templates/connect/permission.php (added)
-
tags/3.6.8/freemius/templates/connect/permissions-group.php (added)
-
tags/3.6.8/freemius/templates/contact.php (added)
-
tags/3.6.8/freemius/templates/debug (added)
-
tags/3.6.8/freemius/templates/debug.php (added)
-
tags/3.6.8/freemius/templates/debug/api-calls.php (added)
-
tags/3.6.8/freemius/templates/debug/index.php (added)
-
tags/3.6.8/freemius/templates/debug/logger.php (added)
-
tags/3.6.8/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.6.8/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.6.8/freemius/templates/email.php (added)
-
tags/3.6.8/freemius/templates/forms (added)
-
tags/3.6.8/freemius/templates/forms/affiliation.php (added)
-
tags/3.6.8/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.6.8/freemius/templates/forms/deactivation (added)
-
tags/3.6.8/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.6.8/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.6.8/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.6.8/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.6.8/freemius/templates/forms/email-address-update.php (added)
-
tags/3.6.8/freemius/templates/forms/index.php (added)
-
tags/3.6.8/freemius/templates/forms/license-activation.php (added)
-
tags/3.6.8/freemius/templates/forms/optout.php (added)
-
tags/3.6.8/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.6.8/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.6.8/freemius/templates/forms/resend-key.php (added)
-
tags/3.6.8/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.6.8/freemius/templates/forms/trial-start.php (added)
-
tags/3.6.8/freemius/templates/forms/user-change.php (added)
-
tags/3.6.8/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.6.8/freemius/templates/index.php (added)
-
tags/3.6.8/freemius/templates/js (added)
-
tags/3.6.8/freemius/templates/js/index.php (added)
-
tags/3.6.8/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.6.8/freemius/templates/js/open-license-activation.php (added)
-
tags/3.6.8/freemius/templates/js/permissions.php (added)
-
tags/3.6.8/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.6.8/freemius/templates/partials (added)
-
tags/3.6.8/freemius/templates/partials/index.php (added)
-
tags/3.6.8/freemius/templates/partials/network-activation.php (added)
-
tags/3.6.8/freemius/templates/plugin-icon.php (added)
-
tags/3.6.8/freemius/templates/plugin-info (added)
-
tags/3.6.8/freemius/templates/plugin-info/description.php (added)
-
tags/3.6.8/freemius/templates/plugin-info/features.php (added)
-
tags/3.6.8/freemius/templates/plugin-info/index.php (added)
-
tags/3.6.8/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.6.8/freemius/templates/powered-by.php (added)
-
tags/3.6.8/freemius/templates/pricing.php (added)
-
tags/3.6.8/freemius/templates/secure-https-header.php (added)
-
tags/3.6.8/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.6.8/freemius/templates/tabs-capture-js.php (added)
-
tags/3.6.8/freemius/templates/tabs.php (added)
-
tags/3.6.8/index.php (added)
-
tags/3.6.8/languages (added)
-
tags/3.6.8/languages/index.php (added)
-
tags/3.6.8/license.txt (added)
-
tags/3.6.8/readme.txt (added)
-
tags/3.6.8/vendor (added)
-
tags/3.6.8/vendor/autoload.php (added)
-
tags/3.6.8/vendor/bin (added)
-
tags/3.6.8/vendor/composer (added)
-
tags/3.6.8/vendor/composer/ClassLoader.php (added)
-
tags/3.6.8/vendor/composer/InstalledVersions.php (added)
-
tags/3.6.8/vendor/composer/LICENSE (added)
-
tags/3.6.8/vendor/composer/autoload_classmap.php (added)
-
tags/3.6.8/vendor/composer/autoload_files.php (added)
-
tags/3.6.8/vendor/composer/autoload_namespaces.php (added)
-
tags/3.6.8/vendor/composer/autoload_psr4.php (added)
-
tags/3.6.8/vendor/composer/autoload_real.php (added)
-
tags/3.6.8/vendor/composer/autoload_static.php (added)
-
tags/3.6.8/vendor/composer/installed.json (added)
-
tags/3.6.8/vendor/composer/installed.php (added)
-
tags/3.6.8/vendor/composer/platform_check.php (added)
-
tags/3.6.8/vendor/indigophp (added)
-
tags/3.6.8/vendor/indigophp/hash-compat (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/CHANGELOG.md (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/LICENSE (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/README.md (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/Vagrantfile (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/composer.json (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/src (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/src/hash_equals.php (added)
-
tags/3.6.8/vendor/indigophp/hash-compat/src/hash_pbkdf2.php (added)
-
tags/3.6.8/vendor/usrflo (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/.gitignore (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP/effectiveTLDs.inc.php (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP/regDomain.class.php (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP/regDomain.inc.php (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.sh (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/README.txt (added)
-
tags/3.6.8/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php (added)
-
trunk/FreeSSLAuto/src/Admin/Factory.php (modified) (1 diff)
-
trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (modified) (6 diffs)
-
trunk/FreeSSLAuto/src/Admin/HomeOptions.php (modified) (3 diffs)
-
trunk/auto-install-free-ssl.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Factory.php
r2989232 r2998087 1418 1418 1419 1419 } 1420 1421 /** 1422 * Get discount offer details 1423 * @param bool $comparison_table 1424 * 1425 * @return array 1426 * @since 3.6.8 1427 */ 1428 public function get_offer_details( $comparison_table = false ) 1429 { 1430 1431 if ( time() > strtotime( "November 23, 2023" ) && time() < strtotime( "November 29, 2023" ) ) { 1432 $offer_name = "<strong>Black Friday + Cyber Monday Sale</strong><br /><br />"; 1433 $offer_end_time = strtotime( "November 29, 2023" ); 1434 $coupon_code = "BFCM"; 1435 $discount_percentage = __( "30%", 'auto-install-free-ssl' ); 1436 } else { 1437 $offer_name = ""; 1438 $offer_end_time = get_option( 'aifs_comparison_table_promo_start_time' ) + AIFS_COUNTDOWN_DURATION; 1439 1440 if ( $comparison_table ) { 1441 $coupon_code = "20AutoInstall"; 1442 } else { 1443 $coupon_code = "AutoInstall20"; 1444 } 1445 1446 $discount_percentage = __( "20%", 'auto-install-free-ssl' ); 1447 } 1448 1449 return array( 1450 'offer_name' => $offer_name, 1451 'offer_end_time' => $offer_end_time, 1452 'coupon_code' => $coupon_code, 1453 'discount_percentage' => $discount_percentage, 1454 ); 1455 } 1420 1456 1421 1457 } -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php
r2989232 r2998087 365 365 366 366 //if($text){ 367 $offer_details = $this->factory->get_offer_details(); 368 367 369 if($this->factory->is_cpanel()){ 368 if(time() > strtotime("August 19, 2023") && time() < strtotime("September 22, 2023")){ 369 $coupon_code = "SUMMER_40"; 370 } 371 else{ 372 $coupon_code = "AutoInstall20"; 373 } 374 370 $coupon_code = $offer_details['coupon_code']; 375 371 $query_string = "hide_coupon=true&checkout=true"; 376 372 $set_up = __( "We'll do the one-time setup for you if you can't do this (worth $49 per website).", 'auto-install-free-ssl' ); … … 382 378 } 383 379 384 $countDownDate = get_option('aifs_comparison_table_promo_start_time') + AIFS_COUNTDOWN_DURATION; 385 386 if($coupon_code && time() < $countDownDate) { 387 $now = new DateTime(); 388 $expiry = new DateTime('@'.$countDownDate); 389 $interval = (int) $now->diff($expiry)->format('%R%a'); 390 391 if(time() > strtotime("August 19, 2023") && time() < strtotime("September 22, 2023")){ 392 $discount_percentage = __("40%", 'auto-install-free-ssl' ); 380 if($coupon_code && time() < $offer_details['offer_end_time']) { 381 /* translators: %1$s: Discount percentage (includes % sign), %2$s: Coupon code for the discount */ 382 $discount_info = sprintf(__( '%1$s discount code: %2$s', 'auto-install-free-ssl' ), $offer_details['discount_percentage'], ('<span style="font-weight: bold; text-transform: uppercase;">' . $coupon_code . '</span>')); 383 384 $difference = $offer_details['offer_end_time'] - time(); 385 // Calculate days, hours, minutes, and seconds 386 $days = floor($difference / (24 * 3600)); 387 $difference %= (24 * 3600); 388 $hours = floor($difference / 3600); 389 $difference %= 3600; 390 $minutes = floor($difference / 60); 391 $seconds = $difference % 60; 392 393 // Format the countdown string 394 if($days > 0){ 395 $countdown = sprintf("%02d:%02d:%02d:%02d", $days, $hours, $minutes, $seconds); 393 396 } 394 else {395 $discount_percentage = __("20%", 'auto-install-free-ssl');397 else { 398 $countdown = sprintf( "%02d:%02d:%02d", $hours, $minutes, $seconds ); 396 399 } 397 400 398 /* translators: %1$s: Discount percentage (includes % sign), %2$s: Coupon code for the discount */ 399 $discount_info = sprintf(__( '%1$s discount code: %2$s', 'auto-install-free-ssl' ), $discount_percentage, ('<span style="font-weight: bold; text-transform: uppercase;">' . $coupon_code . '</span>')); 400 401 if ( $interval > 1 ) { 402 /* translators: %d: A plural number, e.g., 4 */ 403 $discount_info .= " <u>" . sprintf(__( 'expiring in %d days', 'auto-install-free-ssl' ), $interval) . "</u>"; 404 } 405 elseif ( $interval > 0 ){ 406 /* translators: %d: A singular number, i.e., 1 */ 407 $discount_info .= " <u>" . sprintf(__( 'expiring in %d day', 'auto-install-free-ssl' ), $interval) . "</u>"; 408 } 409 else{ 410 $discount_info .= " <u>" . __( 'expiring soon', 'auto-install-free-ssl' ) . "</u>"; 411 } 401 $discount_info .= " (" . __("expires in", 'auto-install-free-ssl') . " " . $countdown . ")"; 402 412 403 } 413 404 else{ 405 $coupon_code = false; 406 $query_string = false; 414 407 $discount_info = ""; 415 408 } … … 598 591 ); 599 592 600 if(get_option('aifs_is_admin_email_invalid')){ 601 add_settings_field( 602 'admin_email', 603 /* translators: %s: HTML code to create a superscript with the text '(required)' */ 604 sprintf(__("Admin email %s(required)%s", 'auto-install-free-ssl'), '<sup>', '</sup>'), 605 array( $this, 'admin_email_callback' ), 606 'aifs_generate_ssl_manually_admin', 607 'aifs_generate_ssl_section_id' 608 ); 609 } 593 add_settings_field( 594 'admin_email', 595 /* translators: %s: HTML code to create a superscript with the text '(required)' */ 596 sprintf(__("Admin email %s(required)%s", 'auto-install-free-ssl'), '<sup>', '</sup>'), 597 array( $this, 'admin_email_callback' ), 598 'aifs_generate_ssl_manually_admin', 599 'aifs_generate_ssl_section_id' 600 ); 610 601 611 602 add_settings_field( … … 648 639 } 649 640 650 if( get_option('aifs_is_admin_email_invalid') &&isset($input['admin_email'])){641 if(isset($input['admin_email'])){ 651 642 $basic_settings = get_option('basic_settings_auto_install_free_ssl'); 652 643 $basic_settings['admin_email'][0] = sanitize_email($input['admin_email']); 653 644 update_option('basic_settings_auto_install_free_ssl', $basic_settings); 654 645 655 update_option('admin_email', sanitize_email($input['admin_email'])); 646 if(get_option('aifs_is_admin_email_invalid')) { 647 update_option( 'admin_email', sanitize_email( $input['admin_email'] ) ); 648 } 649 //refresh this variable, as admin_email has been updated 650 $this->appConfig = aifs_get_app_settings(); 656 651 } 657 652 … … 680 675 /* translators: %s: Name of a button, e.g., Next Step */ 681 676 echo "<p>" . sprintf(__( "Please click the '%s' button to proceed.", 'auto-install-free-ssl' ), $this->save_button_text) . "</p>"; 677 678 echo "<p>" . __( "The SSL certificate authority Let's Encrypt™ needs a valid email ID to register your account. We'll send SSL renewal reminders to this email ID.", 'auto-install-free-ssl' ) . "</p>"; 682 679 683 680 //echo "<br />"; $this->save_button_text … … 723 720 /** 724 721 * admin_email 725 * Improved since 3.6. 6722 * Improved since 3.6.8 726 723 */ 727 724 public function admin_email_callback() 728 725 { 729 //Get current user details 730 /*global $current_user; 731 get_currentuserinfo();*/ 732 $current_user = wp_get_current_user(); 726 if(isset($this->appConfig['admin_email'][0]) && strpos($this->appConfig['admin_email'][0], "secureserver.net") === false){ 727 $admin_email = $this->appConfig['admin_email'][0]; 728 } 729 else if(strpos(get_option('admin_email'), "secureserver.net") === false){ 730 $admin_email = get_option('admin_email'); 731 } 732 else{ 733 $admin_email = ""; 734 } 733 735 734 736 printf( 735 '<input type="email" id="admin_email" name="aifs_generate_ssl_manually[admin_email]" required="required" value="%s" />',736 $current_user->user_email737 '<input type="email" id="admin_email" name="aifs_generate_ssl_manually[admin_email]" required="required" value="%s" style="width: 300px;" />', 738 $admin_email 737 739 ); 738 740 } -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/HomeOptions.php
r2989232 r2998087 177 177 <p><?php 178 178 /* translators: %s: Name of this plugin, i.e., 'Auto-Install Free SSL' */ 179 echo sprintf( __( 'Thank you for choosing \'%s\' - the most powerful plugin to generate Free SSL Certificates in your WordPress dashboard.', 'auto-install-free-ssl' ), AIFS_NAME ) ;179 //echo sprintf(__( 'Thank you for choosing \'%s\' - the most powerful plugin to generate Free SSL Certificates in your WordPress dashboard.', 'auto-install-free-ssl'), AIFS_NAME) 180 180 ?></p> 181 181 182 182 <p><?php 183 183 /* translators: %1$s: Name of this plugin, i.e., 'Auto-Install Free SSL'; %2$s: Name of the SSL certificate authority, e.g., Let's Encrypt */ 184 echo sprintf( __( '\'%1$s\' makes creating Free SSL Certificates easy using the %2$s API. Please get started by creating an SSL Certificate or reading our documentation.', 'auto-install-free-ssl' ), AIFS_NAME, $ca ) ;184 //echo sprintf(__( '\'%1$s\' makes creating Free SSL Certificates easy using the %2$s API. Please get started by creating an SSL Certificate or reading our documentation.', 'auto-install-free-ssl'), AIFS_NAME, $ca) 185 185 ?></p> 186 186 <p style="margin-top: 2%;"><a href="<?php 187 187 echo $free ; 188 188 ?>" class="button button-primary"><?php 189 echo __( "Generate Your First SSL Certificate", 'auto-install-free-ssl' ) ;189 //echo __( "Generate Your First SSL Certificate", 'auto-install-free-ssl') 190 190 ?></a> <a href="https://freessl.tech/wordpress-letsencrypt-free-ssl-certificate-documentation/?utm_source=users_website&utm_medium=dashboard&utm_campaign=aifs_free&utm_content=welcome_section" target="_blank" class="button" style="margin-left: 5%;"><?php 191 echo __( "Read the Documentation", 'auto-install-free-ssl' ) ;191 //echo __( "Read the Documentation", 'auto-install-free-ssl') 192 192 ?></a></p> 193 193 </div> … … 206 206 207 207 <?php 208 /*if($this->factory->is_cpanel() && ((get_option('aifs_premium_plan_selected') >= 1 && time() < strtotime("January 1, 2024")) || (time() > strtotime("November 1, 2022") && time() < strtotime("January 1, 2024")))){209 $coupon_code = "20AutoInstall";210 echo '<div style="background: white; color: black; margin: 2% 0; padding: 1% 1.5%; border-style: solid; border-width: 1px; border-color: green;"><p style="font-size: medium; margin: 0;">';211 echo '<span class="dashicons dashicons-megaphone" style="font-size: xx-large; color: #5F97FB;"></span> ' . sprintf(__('Could a coupon help? Use the %1$s discount%2$s code %3$s during checkout. The coupon is expiring soon!', 'auto-install-free-ssl'), "<span style='color: red;'>20%", "</span>", "<strong>'$coupon_code'</strong>");212 echo '</p></div>';213 }*/214 /*if(!get_option('aifs_default_page_first_access_time')){215 add_option('aifs_default_page_first_access_time', time());216 }217 218 $first_access_time = get_option('aifs_default_page_first_access_time');*/219 208 //if(($first_access_time && (time() > $first_access_time + 5 * 60)) || (isset($_GET['comparison']) && $_GET['comparison'] == "yes")){ 220 209 if ( !get_option( 'aifs_comparison_table_promo_start_time' ) ) { 221 210 add_option( 'aifs_comparison_table_promo_start_time', time() ); 222 211 } 223 $ start_time = get_option( 'aifs_comparison_table_promo_start_time');224 225 if ( $this->factory->is_cpanel() && time() < $ start_time + AIFS_COUNTDOWN_DURATION && (get_option( 'aifs_premium_plan_selected' ) >= 1 && time() < strtotime( "January 1, 2024" ) || time() > strtotime( "November 1, 2022" ) && time() < strtotime( "January 1, 2024" )) ) {212 $offer_details = $this->factory->get_offer_details( true ); 213 214 if ( $this->factory->is_cpanel() && time() < $offer_details['offer_end_time'] && (get_option( 'aifs_premium_plan_selected' ) >= 1 && time() < strtotime( "January 1, 2025" ) || time() > strtotime( "November 1, 2022" ) && time() < strtotime( "January 1, 2025" )) ) { 226 215 echo '<div id="aifs-promo" class="aifs-promo"><p style="font-size: medium; margin: 0;">' ; 227 216 echo '<span class="dashicons dashicons-arrow-down-alt" style="font-size: xx-large; color: #5F97FB;"></span> ' ; 228 229 if ( time() > strtotime( "August 19, 2023" ) && time() < strtotime( "September 22, 2023" ) ) { 230 $coupon_code = "SUMMER_40"; 231 $percentage = __( "40%", 'auto-install-free-ssl' ); 232 echo "<strong>End-of-Summer Sale:</strong> " ; 233 } else { 234 $coupon_code = "20AutoInstall"; 235 $percentage = __( "20%", 'auto-install-free-ssl' ); 236 } 237 217 $coupon_code = $offer_details['coupon_code']; 238 218 /* translators: %1$s: HTML code to make the color red of the text '%2$s discount!'. Please keep its order the same. %2$s: Discount percentage (includes % sign) */ 239 echo sprintf( __( 'Select any Pro plan asap to grab a %1$s %2$s discount!', 'auto-install-free-ssl' ), "<span style='color: red;'>", $percentage) . "</span>" ;219 echo $offer_details['offer_name'] . " " . sprintf( __( 'Select any Pro plan asap to grab a %1$s %2$s discount!', 'auto-install-free-ssl' ), "<span style='color: red;'>", $offer_details['discount_percentage'] ) . "</span>" ; 240 220 echo '<img src="' . AIFS_URL . 'assets/img/fire.webp" style="margin-left: 2%; width 20px; height: 20px;"><span class="expires-in">' . __( "expires in", 'auto-install-free-ssl' ) . ' <span id="countdown" style=""></span></span>' ; 241 221 echo '</p></div>' ; … … 867 847 //wp_register_script('aifs_countdown', ''); 868 848 //wp_enqueue_script('aifs_countdown', false, [], false, true); 849 $offer_details = $this->factory->get_offer_details( true ); 869 850 return '// Set the date to countdown to (in this example, it is 1 hour from now) 870 var countDownDate = ' . (get_option( 'aifs_comparison_table_promo_start_time' ) + AIFS_COUNTDOWN_DURATION). ' * 1000;851 var countDownDate = ' . $offer_details['offer_end_time'] . ' * 1000; 871 852 872 853 // Update the countdown every second -
auto-install-free-ssl/trunk/auto-install-free-ssl.php
r2989232 r2998087 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. 79 * Version: 3.6.8 10 10 * Requires at least: 4.1 11 11 * Requires PHP: 5.6 -
auto-install-free-ssl/trunk/readme.txt
r2989232 r2998087 1 === Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL ===1 === WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL === 2 2 Contributors: speedify, freessl, freemius 3 3 Donate link: https://www.paypal.me/site4author 4 4 License: GPLv3 5 5 License URI: http://www.gnu.org/licenses/gpl-3.0.html 6 Tags: free ssl,free ssl certificate,ssl certificate,https ,forcessl6 Tags: free ssl,free ssl certificate,ssl certificate,https redirect, ssl 7 7 Requires at least: 4.1 8 8 Tested up to: 6.4 9 Stable tag: 3.6. 79 Stable tag: 3.6.8 10 10 Requires PHP: 5.6 11 11 Development location: https://freessl.tech … … 27 27 28 28 29 ` 3 78,000+ DOWNLOADS!!`29 ` 383,000+ DOWNLOADS!!` 30 30 31 31
Note: See TracChangeset
for help on using the changeset viewer.