Changeset 2929749
- Timestamp:
- 06/22/2023 02:51:37 PM (3 years ago)
- Location:
- auto-install-free-ssl
- Files:
-
- 276 added
- 13 edited
-
tags/3.5.1 (added)
-
tags/3.5.1/FreeSSLAuto (added)
-
tags/3.5.1/FreeSSLAuto/src (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/AcmeV2.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/Base64UrlSafeEncoder.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/Client.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/ClientInterface.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/Factory.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Acme/openssl.cnf (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/AdminNotice.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/AutoDataEntry.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/Factory.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/ForceHttpsPage.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/ForceSSL.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/GenerateSSLmanually.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/HomeOptions.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Admin/Log.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Controller.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Email.php (added)
-
tags/3.5.1/FreeSSLAuto/src/Logger.php (added)
-
tags/3.5.1/assets (added)
-
tags/3.5.1/assets/css (added)
-
tags/3.5.1/assets/css/aifs-admin.css (added)
-
tags/3.5.1/assets/img (added)
-
tags/3.5.1/assets/img/fire.webp (added)
-
tags/3.5.1/assets/img/icon.jpg (added)
-
tags/3.5.1/assets/img/ssl-error.jpg (added)
-
tags/3.5.1/assets/js (added)
-
tags/3.5.1/assets/js/script.js (added)
-
tags/3.5.1/auto-install-free-ssl.php (added)
-
tags/3.5.1/composer.json (added)
-
tags/3.5.1/composer.lock (added)
-
tags/3.5.1/freemius (added)
-
tags/3.5.1/freemius/LICENSE.txt (added)
-
tags/3.5.1/freemius/assets (added)
-
tags/3.5.1/freemius/assets/css (added)
-
tags/3.5.1/freemius/assets/css/admin (added)
-
tags/3.5.1/freemius/assets/css/admin/account.css (added)
-
tags/3.5.1/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.5.1/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.5.1/freemius/assets/css/admin/checkout.css (added)
-
tags/3.5.1/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.5.1/freemius/assets/css/admin/common.css (added)
-
tags/3.5.1/freemius/assets/css/admin/connect.css (added)
-
tags/3.5.1/freemius/assets/css/admin/debug.css (added)
-
tags/3.5.1/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.5.1/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.5.1/freemius/assets/css/admin/index.php (added)
-
tags/3.5.1/freemius/assets/css/admin/optout.css (added)
-
tags/3.5.1/freemius/assets/css/admin/plugins.css (added)
-
tags/3.5.1/freemius/assets/css/customizer.css (added)
-
tags/3.5.1/freemius/assets/css/index.php (added)
-
tags/3.5.1/freemius/assets/img (added)
-
tags/3.5.1/freemius/assets/img/auto-install-free-ssl.png (added)
-
tags/3.5.1/freemius/assets/img/index.php (added)
-
tags/3.5.1/freemius/assets/img/plugin-icon.png (added)
-
tags/3.5.1/freemius/assets/img/theme-icon.png (added)
-
tags/3.5.1/freemius/assets/index.php (added)
-
tags/3.5.1/freemius/assets/js (added)
-
tags/3.5.1/freemius/assets/js/index.php (added)
-
tags/3.5.1/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.5.1/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.5.1/freemius/assets/js/postmessage.js (added)
-
tags/3.5.1/freemius/config.php (added)
-
tags/3.5.1/freemius/includes (added)
-
tags/3.5.1/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.5.1/freemius/includes/class-freemius.php (added)
-
tags/3.5.1/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.5.1/freemius/includes/class-fs-api.php (added)
-
tags/3.5.1/freemius/includes/class-fs-lock.php (added)
-
tags/3.5.1/freemius/includes/class-fs-logger.php (added)
-
tags/3.5.1/freemius/includes/class-fs-options.php (added)
-
tags/3.5.1/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.5.1/freemius/includes/class-fs-security.php (added)
-
tags/3.5.1/freemius/includes/class-fs-storage.php (added)
-
tags/3.5.1/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.5.1/freemius/includes/customizer (added)
-
tags/3.5.1/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.5.1/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.5.1/freemius/includes/customizer/index.php (added)
-
tags/3.5.1/freemius/includes/debug (added)
-
tags/3.5.1/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.5.1/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.5.1/freemius/includes/debug/index.php (added)
-
tags/3.5.1/freemius/includes/entities (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.5.1/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.5.1/freemius/includes/entities/index.php (added)
-
tags/3.5.1/freemius/includes/fs-core-functions.php (added)
-
tags/3.5.1/freemius/includes/fs-essential-functions.php (added)
-
tags/3.5.1/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.5.1/freemius/includes/index.php (added)
-
tags/3.5.1/freemius/includes/l10n.php (added)
-
tags/3.5.1/freemius/includes/managers (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.5.1/freemius/includes/managers/index.php (added)
-
tags/3.5.1/freemius/includes/sdk (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.5.1/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.5.1/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.5.1/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.5.1/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.5.1/freemius/includes/sdk/index.php (added)
-
tags/3.5.1/freemius/includes/supplements (added)
-
tags/3.5.1/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.5.1/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.5.1/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.5.1/freemius/includes/supplements/index.php (added)
-
tags/3.5.1/freemius/index.php (added)
-
tags/3.5.1/freemius/languages (added)
-
tags/3.5.1/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.5.1/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.5.1/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.5.1/freemius/languages/freemius-en.mo (added)
-
tags/3.5.1/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.5.1/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.5.1/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.5.1/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.5.1/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.5.1/freemius/languages/freemius-ja.mo (added)
-
tags/3.5.1/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.5.1/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.5.1/freemius/languages/freemius-ta.mo (added)
-
tags/3.5.1/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.5.1/freemius/languages/freemius.pot (added)
-
tags/3.5.1/freemius/languages/index.php (added)
-
tags/3.5.1/freemius/require.php (added)
-
tags/3.5.1/freemius/start.php (added)
-
tags/3.5.1/freemius/templates (added)
-
tags/3.5.1/freemius/templates/account (added)
-
tags/3.5.1/freemius/templates/account.php (added)
-
tags/3.5.1/freemius/templates/account/billing.php (added)
-
tags/3.5.1/freemius/templates/account/index.php (added)
-
tags/3.5.1/freemius/templates/account/partials (added)
-
tags/3.5.1/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.5.1/freemius/templates/account/partials/addon.php (added)
-
tags/3.5.1/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.5.1/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.5.1/freemius/templates/account/partials/index.php (added)
-
tags/3.5.1/freemius/templates/account/partials/site.php (added)
-
tags/3.5.1/freemius/templates/account/payments.php (added)
-
tags/3.5.1/freemius/templates/add-ons.php (added)
-
tags/3.5.1/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.5.1/freemius/templates/admin-notice.php (added)
-
tags/3.5.1/freemius/templates/ajax-loader.php (added)
-
tags/3.5.1/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.5.1/freemius/templates/auto-installation.php (added)
-
tags/3.5.1/freemius/templates/checkout.php (added)
-
tags/3.5.1/freemius/templates/clone-resolution-js.php (added)
-
tags/3.5.1/freemius/templates/connect (added)
-
tags/3.5.1/freemius/templates/connect.php (added)
-
tags/3.5.1/freemius/templates/connect/index.php (added)
-
tags/3.5.1/freemius/templates/connect/permission.php (added)
-
tags/3.5.1/freemius/templates/connect/permissions-group.php (added)
-
tags/3.5.1/freemius/templates/contact.php (added)
-
tags/3.5.1/freemius/templates/debug (added)
-
tags/3.5.1/freemius/templates/debug.php (added)
-
tags/3.5.1/freemius/templates/debug/api-calls.php (added)
-
tags/3.5.1/freemius/templates/debug/index.php (added)
-
tags/3.5.1/freemius/templates/debug/logger.php (added)
-
tags/3.5.1/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.5.1/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.5.1/freemius/templates/email.php (added)
-
tags/3.5.1/freemius/templates/forms (added)
-
tags/3.5.1/freemius/templates/forms/affiliation.php (added)
-
tags/3.5.1/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.5.1/freemius/templates/forms/deactivation (added)
-
tags/3.5.1/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.5.1/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.5.1/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.5.1/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.5.1/freemius/templates/forms/email-address-update.php (added)
-
tags/3.5.1/freemius/templates/forms/index.php (added)
-
tags/3.5.1/freemius/templates/forms/license-activation.php (added)
-
tags/3.5.1/freemius/templates/forms/optout.php (added)
-
tags/3.5.1/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.5.1/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.5.1/freemius/templates/forms/resend-key.php (added)
-
tags/3.5.1/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.5.1/freemius/templates/forms/trial-start.php (added)
-
tags/3.5.1/freemius/templates/forms/user-change.php (added)
-
tags/3.5.1/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.5.1/freemius/templates/index.php (added)
-
tags/3.5.1/freemius/templates/js (added)
-
tags/3.5.1/freemius/templates/js/index.php (added)
-
tags/3.5.1/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.5.1/freemius/templates/js/open-license-activation.php (added)
-
tags/3.5.1/freemius/templates/js/permissions.php (added)
-
tags/3.5.1/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.5.1/freemius/templates/partials (added)
-
tags/3.5.1/freemius/templates/partials/index.php (added)
-
tags/3.5.1/freemius/templates/partials/network-activation.php (added)
-
tags/3.5.1/freemius/templates/plugin-icon.php (added)
-
tags/3.5.1/freemius/templates/plugin-info (added)
-
tags/3.5.1/freemius/templates/plugin-info/description.php (added)
-
tags/3.5.1/freemius/templates/plugin-info/features.php (added)
-
tags/3.5.1/freemius/templates/plugin-info/index.php (added)
-
tags/3.5.1/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.5.1/freemius/templates/powered-by.php (added)
-
tags/3.5.1/freemius/templates/pricing.php (added)
-
tags/3.5.1/freemius/templates/secure-https-header.php (added)
-
tags/3.5.1/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.5.1/freemius/templates/tabs-capture-js.php (added)
-
tags/3.5.1/freemius/templates/tabs.php (added)
-
tags/3.5.1/index.php (added)
-
tags/3.5.1/languages (added)
-
tags/3.5.1/languages/index.php (added)
-
tags/3.5.1/license.txt (added)
-
tags/3.5.1/readme.txt (added)
-
tags/3.5.1/vendor (added)
-
tags/3.5.1/vendor/autoload.php (added)
-
tags/3.5.1/vendor/bin (added)
-
tags/3.5.1/vendor/composer (added)
-
tags/3.5.1/vendor/composer/ClassLoader.php (added)
-
tags/3.5.1/vendor/composer/InstalledVersions.php (added)
-
tags/3.5.1/vendor/composer/LICENSE (added)
-
tags/3.5.1/vendor/composer/autoload_classmap.php (added)
-
tags/3.5.1/vendor/composer/autoload_files.php (added)
-
tags/3.5.1/vendor/composer/autoload_namespaces.php (added)
-
tags/3.5.1/vendor/composer/autoload_psr4.php (added)
-
tags/3.5.1/vendor/composer/autoload_real.php (added)
-
tags/3.5.1/vendor/composer/autoload_static.php (added)
-
tags/3.5.1/vendor/composer/installed.json (added)
-
tags/3.5.1/vendor/composer/installed.php (added)
-
tags/3.5.1/vendor/composer/platform_check.php (added)
-
tags/3.5.1/vendor/indigophp (added)
-
tags/3.5.1/vendor/indigophp/hash-compat (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/CHANGELOG.md (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/LICENSE (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/README.md (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/Vagrantfile (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/composer.json (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/src (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/src/hash_equals.php (added)
-
tags/3.5.1/vendor/indigophp/hash-compat/src/hash_pbkdf2.php (added)
-
tags/3.5.1/vendor/usrflo (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/.gitignore (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP/effectiveTLDs.inc.php (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP/regDomain.class.php (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP/regDomain.inc.php (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.sh (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/README.txt (added)
-
tags/3.5.1/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php (added)
-
trunk/FreeSSLAuto/src/Admin/Factory.php (modified) (7 diffs)
-
trunk/FreeSSLAuto/src/Admin/Log.php (modified) (7 diffs)
-
trunk/assets/css/aifs-admin.css (modified) (1 diff)
-
trunk/auto-install-free-ssl.php (modified) (4 diffs)
-
trunk/freemius/includes/class-freemius.php (modified) (1 diff)
-
trunk/freemius/start.php (modified) (1 diff)
-
trunk/freemius/templates/account.php (modified) (1 diff)
-
trunk/freemius/templates/forms/affiliation.php (modified) (2 diffs)
-
trunk/freemius/templates/gdpr-optin-js.php (modified) (2 diffs)
-
trunk/freemius/templates/plugin-info/description.php (modified) (1 diff)
-
trunk/freemius/templates/plugin-info/screenshots.php (modified) (1 diff)
-
trunk/freemius/templates/tabs-capture-js.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Factory.php
r2921218 r2929749 315 315 /** 316 316 * Returns the cPanel host 317 * 317 * Improved since 3.5.1 318 * 319 * @param $hostname 320 * 321 * @return false|string 322 */ 323 public function getcPanelHost( $hostname ) 324 { 325 $cpanel_settings = get_option( 'cpanel_settings_auto_install_free_ssl' ); 326 if ( isset( $cpanel_settings['cpanel_host'] ) ) { 327 return $cpanel_settings['cpanel_host']; 328 } 329 $cpanel_host = false; 330 331 if ( !aifs_is_os_windows() ) { 332 $hostname = str_replace( [ 333 'https://', 334 'http://', 335 'https://www.', 336 'http://www.' 337 ], '', $hostname ); 338 $possible_hosts = [ 339 "http://" . gethostbyname( 'localhost' ) . ':2083', 340 "http://" . gethostbyname( 'localhost' ) . '/cpanel', 341 "https://" . $hostname . ':2083', 342 "http://" . $hostname . '/cpanel', 343 "http://" . $hostname . ':2083', 344 "https://" . $hostname . '/cpanel' 345 ]; 346 foreach ( $possible_hosts as $curl_url ) { 347 $handle = curl_init(); 348 curl_setopt( $handle, CURLOPT_URL, $curl_url ); 349 curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false ); 350 curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false ); 351 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); 352 curl_setopt( $handle, CURLOPT_HEADER, true ); 353 curl_setopt( $handle, CURLOPT_TIMEOUT, 5 ); 354 // @since 3.2.3 355 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 356 $response = curl_exec( $handle ); 357 $effective_url = curl_getinfo( $handle, CURLINFO_EFFECTIVE_URL ); 358 $redirect_url = curl_getinfo( $handle, CURLINFO_REDIRECT_URL ); 359 $http_status_code = curl_getinfo( $handle, CURLINFO_HTTP_CODE ); 360 $error = curl_errno( $handle ); 361 curl_close( $handle ); 362 $checkURL = $this->checkcPanelInUrl( $effective_url ); 363 364 if ( ($http_status_code === 301 || $http_status_code === 200) && ($checkURL['endsWith2083Port'] || $checkURL['endsWithCpanel']) && strpos( $response, 'cPanel' ) !== false ) { 365 $hostname = $checkURL['string']; 366 367 if ( $checkURL['endsWith2083Port'] ) { 368 //if(strpos($response, 'login') !== false) 369 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 370 $hostname = substr( $hostname, 0, -5 ); 371 } else { 372 373 if ( $checkURL['endsWithCpanel'] ) { 374 //if(strpos($response, ':2083') !== false || strpos($response, ':2082') !== false) 375 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 376 $hostname = substr( $hostname, 0, -7 ); 377 } 378 379 } 380 381 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 382 //If www. found at the beginning, remove it 383 $hostname = substr( $hostname, 4 ); 384 } 385 $cpanel_host = $hostname; 386 break; 387 // Exit the loop if cPanel host is found 388 } 389 390 } 391 //following if block ensures detection even if all the above methods fail 392 if ( $cpanel_host === false ) { 393 394 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 403 } 404 } 405 406 407 if ( $cpanel_settings && is_array( $cpanel_settings ) ) { 408 $cpanel_settings['cpanel_host'] = $cpanel_host; 409 update_option( 'cpanel_settings_auto_install_free_ssl', $cpanel_settings ); 410 } else { 411 update_option( 'cpanel_settings_auto_install_free_ssl', [ 412 'cpanel_host' => $cpanel_host, 413 ] ); 414 } 415 416 return $cpanel_host; 417 } 418 419 /** 420 * Check if '/cpanel' or ':2083' exists in the given URL 421 * @param $string 422 * @since 3.5.1 423 * @return array 424 */ 425 public function checkcPanelInUrl( $string ) 426 { 427 // Remove '/' if it exists at the end of the string 428 if ( substr( $string, -1 ) === '/' ) { 429 $string = rtrim( $string, '/' ); 430 } 431 // Check if '/cpanel' or ':2083' exists at the end of the string 432 $endsWithCpanel = substr( $string, -7 ) === '/cpanel'; 433 $endsWithPort = substr( $string, -5 ) === ':2083'; 434 return [ 435 'endsWithCpanel' => $endsWithCpanel, 436 'endsWith2083Port' => $endsWithPort, 437 'string' => $string, 438 ]; 439 } 440 441 /** 442 * Returns the cPanel host 443 * Improved since 3.5.1 318 444 * @param $hostname 319 445 * @param $is_reset_host 320 446 * @param $strict_check 321 447 * 322 * @return array|false|string|string[]323 */ 324 public function getcPanelHost ( $hostname, $is_reset_host = false, $strict_check = false )448 * @return false|string 449 */ 450 public function getcPanelHost_v1( $hostname, $is_reset_host = false, $strict_check = false ) 325 451 { 326 452 $cpanel_settings = ( get_option( 'cpanel_settings_auto_install_free_ssl' ) ? get_option( 'cpanel_settings_auto_install_free_ssl' ) : add_option( 'cpanel_settings_auto_install_free_ssl' ) ); … … 328 454 return $cpanel_settings['cpanel_host']; 329 455 } 456 //@todo use gethostbyname('localhost') too 330 457 $cpanel_host = false; 331 /*if(aifs_is_os_windows()){332 return false;333 }*/334 458 335 459 if ( !aifs_is_os_windows() ) { … … 352 476 $error = curl_errno( $handle ); 353 477 curl_close( $handle ); 354 /*if ( $http_status_code === 3 ) {355 return false;356 }*/357 478 358 479 if ( $http_status_code !== 3 ) { … … 369 490 $link = substr( $link, 4 ); 370 491 } 371 return $this->getcPanelHost( $link , true);492 return $this->getcPanelHost( $link ); 372 493 } 373 494 … … 379 500 380 501 if ( $http_status_code === 0 ) { 381 return $this->getcPanelHost( $hostname, true, true ); 382 } 383 384 if ( $http_status_code === 301 && strpos( $effective_url, 'https://' ) === 0 && strpos( $effective_url, ':2083' ) !== false ) { 385 $last_slash_pos = strpos( $effective_url, '/', -1 ); 386 if ( $last_slash_pos !== false ) { 387 $hostname = substr( $effective_url, 0, $last_slash_pos ); 388 } 389 $hostname = str_replace( 'https://', '', $hostname ); 390 $hostname = str_replace( ':2083', '', $hostname ); 502 return $this->getcPanelHost( $hostname ); 503 } 504 $checkURL = $this->checkcPanelInUrl( $effective_url ); 505 //Improved since 3.5.1 506 507 if ( ($http_status_code === 301 || $http_status_code === 200) && ($checkURL['endsWith2083Port'] || $checkURL['endsWithCpanel']) && strpos( $response, 'cPanel' ) !== false ) { 508 $hostname = $checkURL['string']; 509 510 if ( $checkURL['endsWith2083Port'] ) { 511 //if(strpos($response, 'login') !== false) 512 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 513 $hostname = substr( $hostname, 0, -5 ); 514 } else { 515 516 if ( $checkURL['endsWithCpanel'] ) { 517 //if(strpos($response, ':2083') !== false || strpos($response, ':2082') !== false) 518 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 519 $hostname = substr( $hostname, 0, -7 ); 520 } 521 522 } 523 391 524 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 392 525 //If www. found at the beginning, remove it 393 526 $hostname = substr( $hostname, 4 ); 394 527 } 395 //return $hostname;396 528 $cpanel_host = $hostname; 397 529 } else { 398 530 399 if ( $http_status_code === 200) {400 $hostname = str_replace( 'http://', '', $hostname );401 $hostname = str_replace( 'https://', '', $hostname );531 if ( !$this->is_parent_dir_restricted_by_open_basedir() && is_dir( '/usr/local/cpanel' ) || $this->port_exists( 2083 ) || $this->port_exists( 2082 ) ) { 532 //Improved since 3.5.1 533 $hostname = str_replace( [ 'https://', 'http://' ], '', $hostname ); 402 534 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 403 535 //If www. found at the beginning, remove it 404 536 $hostname = substr( $hostname, 4 ); 405 537 } 406 //return $hostname;407 538 $cpanel_host = $hostname; 408 } else {409 410 if ( !$this->is_parent_dir_restricted_by_open_basedir() && is_dir( '/usr/local/cpanel' ) ) {411 $hostname = str_replace( 'http://', '', $hostname );412 $hostname = str_replace( 'https://', '', $hostname );413 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) {414 //If www. found at the beginning, remove it415 $hostname = substr( $hostname, 4 );416 }417 //return $hostname;418 $cpanel_host = $hostname;419 }420 421 539 } 422 540 … … 433 551 434 552 /** 435 * Returns the cPanel host 436 * 437 * @param $hostname 438 * @param $is_reset_host 439 * @param $strict_check 440 * 441 * @return array|false|string|string[] 442 */ 443 public function getcPanelHost_v0( $hostname, $is_reset_host = false, $strict_check = false ) 444 { 553 * Detects whether the control panel is cPanel 554 * Improved since 3.5.1 555 * @return bool 556 */ 557 public function is_cpanel() 558 { 559 445 560 if ( aifs_is_os_windows() ) { 446 561 return false; 447 } 448 //$hostname = str_replace('http://www.', 'http://', $hostname); 449 //$hostname = str_replace('https://www.', 'https://', $hostname); 450 $hostname = str_replace( [ 'https://', 'https://www.', 'http://www.' ], 'http://', $hostname ); 451 $handle = curl_init(); 452 curl_setopt( $handle, CURLOPT_URL, $hostname . (( $strict_check ? '/cpanel' : ':2083' )) ); 453 //curl_setopt($handle, CURLOPT_POST, true); 454 //curl_setopt($handle, CURLOPT_HTTPHEADER, array('Connection' => 'close')); 455 //curl_setopt($handle, CURLOPT_HEADER, true); 456 curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false ); 457 curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false ); 458 curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); 459 curl_setopt( $handle, CURLOPT_HEADER, true ); 460 curl_setopt( $handle, CURLOPT_TIMEOUT, 5 ); 461 // @since 3.2.3 462 if ( $strict_check ) { 463 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 464 } 465 //curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false); 466 //curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, 0); 467 $response = curl_exec( $handle ); 468 $effective_url = curl_getinfo( $handle, CURLINFO_EFFECTIVE_URL ); 469 $redirect_url = curl_getinfo( $handle, CURLINFO_REDIRECT_URL ); 470 $http_status_code = curl_getinfo( $handle, CURLINFO_HTTP_CODE ); 471 $error = curl_errno( $handle ); 472 curl_close( $handle ); 473 /*echo "Status code: ".$http_status_code."<br /><br />"; 474 //echo "Response: ".$response."<br /><br />"; 475 echo "Error: ".$error."<br /><br />"; 476 echo "Effective URL: ".$effective_url."<br /><br />"; 477 echo "Redirect URL: ".$redirect_url."<br /><br />";*/ 478 //return; 479 if ( $http_status_code === 3 ) { 480 return false; 481 } 482 483 if ( $is_reset_host === false && $http_status_code === 301 ) { 484 if ( isset( $redirect_url ) ) { 485 $response = $redirect_url; 486 } 487 $start = strpos( $response, 'https://' ); 488 $end = strpos( $response, ':2083' ); 489 $link = substr( $response, $start, $end - $start ); 490 if ( strpos( $link, 'www.' ) !== false && strpos( $link, 'www.' ) === 0 ) { 491 //If www. found at the beginning, remove it 492 $link = substr( $link, 4 ); 493 } 494 return $this->getcPanelHost( $link, true ); 495 } 496 497 498 if ( in_array( $http_status_code, [ 400 ] ) ) { 499 $link = str_replace( 'http://', 'https://', $hostname ); 500 return $this->getcPanelHost( $link ); 501 } 502 503 if ( $http_status_code === 0 ) { 504 return $this->getcPanelHost( $hostname, true, true ); 505 } 506 507 if ( $http_status_code === 301 && strpos( $effective_url, 'https://' ) === 0 && strpos( $effective_url, ':2083' ) !== false ) { 508 $last_slash_pos = strpos( $effective_url, '/', -1 ); 509 if ( $last_slash_pos !== false ) { 510 $hostname = substr( $effective_url, 0, $last_slash_pos ); 511 } 512 $hostname = str_replace( 'https://', '', $hostname ); 513 $hostname = str_replace( ':2083', '', $hostname ); 514 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 515 //If www. found at the beginning, remove it 516 $hostname = substr( $hostname, 4 ); 517 } 518 return $hostname; 519 } 520 521 522 if ( $http_status_code === 200 ) { 523 $hostname = str_replace( 'http://', '', $hostname ); 524 $hostname = str_replace( 'https://', '', $hostname ); 525 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 526 //If www. found at the beginning, remove it 527 $hostname = substr( $hostname, 4 ); 528 } 529 return $hostname; 530 } 531 532 //following if block ensures detection even if all the above methods fail 533 534 if ( !$this->is_parent_dir_restricted_by_open_basedir() && is_dir( '/usr/local/cpanel' ) ) { 535 $hostname = str_replace( 'http://', '', $hostname ); 536 $hostname = str_replace( 'https://', '', $hostname ); 537 if ( strpos( $hostname, 'www.' ) !== false && strpos( $hostname, 'www.' ) === 0 ) { 538 //If www. found at the beginning, remove it 539 $hostname = substr( $hostname, 4 ); 540 } 541 return $hostname; 542 } 543 544 return false; 545 //i.e., NOT cPanel 546 } 547 548 /** 549 * Detects whether the control panel is cPanel 550 * 551 * @return bool 552 */ 553 public function is_cpanel() 554 { 555 556 if ( aifs_is_os_windows() ) { 557 return false; 558 } else { 559 560 if ( !$this->is_parent_dir_restricted_by_open_basedir() && (is_dir( '/usr/local/cpanel' ) || $this->getcPanelHost( get_site_url() ) !== false) ) { 562 } else { 563 564 if ( !$this->is_parent_dir_restricted_by_open_basedir() && is_dir( '/usr/local/cpanel' ) ) { 561 565 return true; 562 566 } else { 563 return false; 567 568 if ( $this->port_exists( 2083 ) ) { 569 return true; 570 } else { 571 572 if ( $this->port_exists( 2082 ) ) { 573 return true; 574 } else { 575 576 if ( $this->getcPanelHost( aifs_get_domain() ) !== false ) { 577 return true; 578 } else { 579 return false; 580 } 581 582 } 583 584 } 585 564 586 } 565 587 … … 733 755 { 734 756 //return substr(ABSPATH, 0, strlen(ABSPATH)-1); //remove / from the end of ABSPATH 757 if ( !function_exists( 'get_home_path' ) ) { 758 require_once ABSPATH . 'wp-admin/includes/file.php'; 759 } 735 760 $home_path = get_home_path(); 736 761 $last_character = substr( $home_path, strlen( $home_path ) - 1 ); -
auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/Log.php
r2905766 r2929749 37 37 38 38 public $factory; 39 40 /** 39 public $page_url; 40 41 /** 41 42 * Start up 42 43 */ … … 50 51 51 52 add_action('admin_menu', array($this, 'log_page_menu')); 53 54 $site_url = parse_url( get_site_url() ); 55 $this->page_url = $site_url['scheme'] . "://" . $site_url['host'] . $_SERVER['REQUEST_URI']; 52 56 } 53 57 … … 99 103 100 104 <?php 101 $view_log_url = wp_nonce_url( get_site_url().$_SERVER['REQUEST_URI'], 'aifs_view_log', 'aifsviewlog' )."&date=";105 $view_log_url = wp_nonce_url( $this->page_url, 'aifs_view_log', 'aifsviewlog' )."&date="; 102 106 103 107 foreach ($files as $file): … … 158 162 <?php 159 163 if(!get_option('aifs_delete_plugin_data_on_deactivation')){ 160 $link_to_delete_data = wp_nonce_url( get_site_url().$_SERVER['REQUEST_URI'], 'aifs_delete_data_on_deactivate', 'aifsdeleteplugindata' );164 $link_to_delete_data = wp_nonce_url( $this->page_url, 'aifs_delete_data_on_deactivate', 'aifsdeleteplugindata' ); 161 165 $title = __( "DELETE plugin data on deactivation", 'auto-install-free-ssl' ); 162 166 $confirm = __( "Would you like to DELETE plugin data on deactivation?", 'auto-install-free-ssl' ); … … 165 169 } 166 170 else { 167 $link_to_keep_data = wp_nonce_url( get_site_url() . $_SERVER['REQUEST_URI'], 'aifs_keep_data_intact_on_deactivate', 'aifskeepplugindataintact' );171 $link_to_keep_data = wp_nonce_url( $this->page_url, 'aifs_keep_data_intact_on_deactivate', 'aifskeepplugindataintact' ); 168 172 $title = __( "You could keep plugin data INTACT on deactivation", 'auto-install-free-ssl' ); 169 173 /* translators: %1$s: Name of this plugin, i.e., 'Auto-Install Free SSL'; %2$s: Opening HTML 'a' tag; %3$s: Closing 'a' tag (Opening and closing 'a' tags create a hyperlink with the enclosed text.) */ … … 192 196 } 193 197 update_option( 'aifs_delete_plugin_data_on_deactivation', 1); 194 wp_redirect($this->factory->aifs_remove_parameters_from_url( get_site_url().$_SERVER['REQUEST_URI'], ['aifsdeleteplugindata']));198 wp_redirect($this->factory->aifs_remove_parameters_from_url($this->page_url, ['aifsdeleteplugindata'])); 195 199 196 200 //Display success message … … 202 206 } 203 207 update_option( 'aifs_delete_plugin_data_on_deactivation', 0); 204 wp_redirect($this->factory->aifs_remove_parameters_from_url( get_site_url().$_SERVER['REQUEST_URI'], ['aifskeepplugindataintact']));208 wp_redirect($this->factory->aifs_remove_parameters_from_url($this->page_url, ['aifskeepplugindataintact'])); 205 209 206 210 //Display success message -
auto-install-free-ssl/trunk/assets/css/aifs-admin.css
r2921218 r2929749 331 331 /* Header */ 332 332 .aifs-header{ 333 width: 103.7%; 333 334 background-position: 6%; 334 335 background-repeat: no-repeat; -
auto-install-free-ssl/trunk/auto-install-free-ssl.php
r2921218 r2929749 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. 09 * Version: 3.5.1 10 10 * Requires at least: 4.1 11 11 * Requires PHP: 5.6 … … 265 265 /* 266 266 * Delete plugin data on deactivation 267 * Removed 'aifs_user_since_free_only_version' since 3.5.1 267 268 * @since 3.2.7 268 269 */ … … 279 280 'aifs_generate_ssl_manually', 280 281 'aifs_return_array_step1_manually', 281 'aifs_user_since_free_only_version',282 282 'aifs_free_plan_selected', 283 283 'aifs_domains_to_revoke_cert', … … 456 456 //add_action( 'activated_plugin', 'aifs_activation_redirect' ); 457 457 /** 458 * Merge all the options in a single array 458 * Merge all the options in a single array. 459 * Improved since 3.5.1 459 460 * */ 460 461 function aifs_get_app_settings() 461 462 { 462 $ app_settings = array();463 464 if ( get_option( 'basic_settings_auto_install_free_ssl') ) {465 $app_settings = get_option( 'basic_settings_auto_install_free_ssl' );463 $basic_settings = get_option( 'basic_settings_auto_install_free_ssl' ); 464 465 if ( $basic_settings && is_array( $basic_settings ) ) { 466 $app_settings = $basic_settings; 466 467 } else { 467 468 return false; 468 469 } 469 470 470 if ( get_option( 'cpanel_settings_auto_install_free_ssl' ) ) { 471 $app_settings = array_merge( $app_settings, get_option( 'cpanel_settings_auto_install_free_ssl' ) ); 472 } 473 if ( get_option( 'exclude_domains_auto_install_free_ssl' ) ) { 474 $app_settings = array_merge( $app_settings, get_option( 'exclude_domains_auto_install_free_ssl' ) ); 475 } 476 if ( get_option( 'dns_provider_auto_install_free_ssl' ) ) { 477 $app_settings = array_merge( $app_settings, get_option( 'dns_provider_auto_install_free_ssl' ) ); 478 } 479 if ( get_option( 'all_domains_auto_install_free_ssl' ) ) { 480 $app_settings = array_merge( $app_settings, get_option( 'all_domains_auto_install_free_ssl' ) ); 471 $cpanel_settings = get_option( 'cpanel_settings_auto_install_free_ssl' ); 472 if ( $cpanel_settings && is_array( $cpanel_settings ) ) { 473 $app_settings = array_merge( $app_settings, $cpanel_settings ); 474 } 475 $exclude_domains = get_option( 'exclude_domains_auto_install_free_ssl' ); 476 if ( $exclude_domains && is_array( $exclude_domains ) ) { 477 $app_settings = array_merge( $app_settings, $exclude_domains ); 478 } 479 $dns_provider = get_option( 'dns_provider_auto_install_free_ssl' ); 480 if ( $dns_provider && is_array( $dns_provider ) ) { 481 $app_settings = array_merge( $app_settings, $dns_provider ); 482 } 483 $all_domains = get_option( 'all_domains_auto_install_free_ssl' ); 484 if ( $all_domains && is_array( $all_domains ) ) { 485 $app_settings = array_merge( $app_settings, $all_domains ); 481 486 } 482 487 /*if ( get_option( 'domains_to_revoke_cert_auto_install_free_ssl' ) ) { 483 488 $app_settings = array_merge( $app_settings, get_option( 'domains_to_revoke_cert_auto_install_free_ssl' ) ); 484 489 }*/ 485 if ( get_option( 'aifs_domains_to_revoke_cert' ) ) { 486 $app_settings = array_merge( $app_settings, get_option( 'aifs_domains_to_revoke_cert' ) ); 490 $domains_revoke_cert = get_option( 'aifs_domains_to_revoke_cert' ); 491 if ( $domains_revoke_cert && is_array( $domains_revoke_cert ) ) { 492 $app_settings = array_merge( $app_settings, $domains_revoke_cert ); 487 493 } 488 494 return $app_settings; -
auto-install-free-ssl/trunk/freemius/includes/class-freemius.php
r2914082 r2929749 25886 25886 $thank_you, 25887 25887 $already_opted_in, 25888 sprintf( $this->get_text_inline( 'Due to the new %sEU General Data Protection Regulation (GDPR)%s compliance requirements it is required that you provide your explicit consent, again, confirming that you are onboard :-)', 'due-to-gdpr-compliance-requirements' ), '<a href="https://e ugdpr.org/" target="_blank" rel="noopener noreferrer">', '</a>' ) .25888 sprintf( $this->get_text_inline( 'Due to the new %sEU General Data Protection Regulation (GDPR)%s compliance requirements it is required that you provide your explicit consent, again, confirming that you are onboard :-)', 'due-to-gdpr-compliance-requirements' ), '<a href="https://ec.europa.eu/info/law/law-topic/data-protection_en/" target="_blank" rel="noopener noreferrer">', '</a>' ) . 25889 25889 '<br><br>' . 25890 25890 '<b>' . $this->get_text_inline( "Please let us know if you'd like us to contact you for security & feature updates, educational content, and occasional offers:", 'contact-for-updates' ) . '</b>' . -
auto-install-free-ssl/trunk/freemius/start.php
r2914082 r2929749 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.5. 8';18 $this_sdk_version = '2.5.9'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- -
auto-install-free-ssl/trunk/freemius/templates/account.php
r2821062 r2929749 106 106 107 107 $has_tabs = $fs->_add_tabs_before_content(); 108 109 if ( $has_tabs ) {110 $query_params['tabs'] = 'true';111 }112 108 113 109 // Aliases. -
auto-install-free-ssl/trunk/freemius/templates/forms/affiliation.php
r2821062 r2929749 88 88 $module_id = $fs->get_id(); 89 89 $affiliate_program_terms_url = "https://freemius.com/plugin/{$module_id}/{$slug}/legal/affiliate-program/"; 90 91 $has_tabs = $fs->_add_tabs_before_content(); 90 92 ?> 91 93 <div id="fs_affiliation_content_wrapper" class="wrap"> … … 501 503 </div> 502 504 <?php 505 if ( $has_tabs ) { 506 $fs->_add_tabs_after_content(); 507 } 508 503 509 $params = array( 504 510 'page' => 'affiliation', -
auto-install-free-ssl/trunk/freemius/templates/gdpr-optin-js.php
r2821062 r2929749 30 30 cursor = $this.css( 'cursor' ), 31 31 $products = $gdprOptinNotice.find( 'span[data-plugin-id]' ), 32 pluginIDs = []; 32 pluginIDs = [], 33 ajaxUrl = <?php echo Freemius::ajax_url() ?>; 33 34 34 35 if ( $products.length > 0 ) { … … 39 40 40 41 $.ajax({ 41 url : <?php echo Freemius::ajax_url() ?> + '?'+ $.param({42 url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({ 42 43 action : '<?php echo $fs->get_ajax_action( 'gdpr_optin_action' ) ?>', 43 44 security : '<?php echo $fs->get_ajax_security( 'gdpr_optin_action' ) ?>', -
auto-install-free-ssl/trunk/freemius/templates/plugin-info/description.php
r2835481 r2929749 57 57 <?php $i = 0; 58 58 foreach ( $screenshots as $s => $url ) : ?> 59 <?php60 // Relative URLs are replaced with WordPress.org base URL61 // therefore we need to set absolute URLs.62 $url = 'http' . ( WP_FS__IS_HTTPS ? 's' : '' ) . ':' . $url;63 ?>64 59 <li class="<?php echo ( 0 === $i % 2 ) ? 'odd' : 'even' ?>"> 65 60 <style> -
auto-install-free-ssl/trunk/freemius/templates/plugin-info/screenshots.php
r2750244 r2929749 23 23 <?php $i = 0; 24 24 foreach ( $screenshots as $s => $url ) : ?> 25 <?php26 // Relative URLs are replaced with WordPress.org base URL27 // therefore we need to set absolute URLs.28 $url = 'http' . ( WP_FS__IS_HTTPS ? 's' : '' ) . ':' . $url;29 ?>30 25 <li> 31 26 <a href="<?php echo $url ?>" title="<?php echo esc_attr( sprintf( fs_text_inline( 'Click to view full-size screenshot %d', 'view-full-size-x', $plugin->slug ), $i ) ) ?>"><img src="<?php echo $url ?>"></a> -
auto-install-free-ssl/trunk/freemius/templates/tabs-capture-js.php
r2821062 r2929749 43 43 aboveTabsHtml = settingHtml.substr(0, tabsPosition); 44 44 45 var tabsHtml = $('.wrap .nav-tab-wrapper').clone().wrap('<div>').parent().html(); 45 var tabsHtml = $('.wrap .nav-tab-wrapper').clone().wrap('<div>').parent().html(), 46 ajaxUrl = <?php echo Freemius::ajax_url() ?>; 46 47 47 48 $.ajax({ 48 url : <?php echo Freemius::ajax_url() ?> + '?'+ $.param({49 url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({ 49 50 action : '<?php echo $fs->get_ajax_action( 'store_tabs' ) ?>', 50 51 security : '<?php echo $fs->get_ajax_security( 'store_tabs' ) ?>', -
auto-install-free-ssl/trunk/readme.txt
r2921218 r2929749 7 7 Requires at least: 4.1 8 8 Tested up to: 6.2 9 Stable tag: 3.5. 09 Stable tag: 3.5.1 10 10 Requires PHP: 5.6 11 11 Development location: https://freessl.tech … … 27 27 28 28 29 ` 3 25,000+ DOWNLOADS!!`29 ` 330,500+ DOWNLOADS!!` 30 30 31 31
Note: See TracChangeset
for help on using the changeset viewer.