Plugin Directory

Changeset 2962618


Ignore:
Timestamp:
09/04/2023 03:36:28 PM (2 years ago)
Author:
speedify
Message:

Releasing version 3.6.4

Location:
auto-install-free-ssl
Files:
279 added
7 edited

Legend:

Unmodified
Added
Removed
  • auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/GenerateSSLmanually.php

    r2959466 r2962618  
    358358        //if($text){
    359359            if($this->factory->is_cpanel()){
    360                 $coupon_code = "AutoInstall20";
     360                if(time() > strtotime("August 19, 2023") && time() < strtotime("September 22, 2023")){
     361                    $coupon_code = "SUMMER_40";
     362                }
     363                else{
     364                    $coupon_code = "AutoInstall20";
     365                }
     366
    361367                $query_string = "hide_coupon=true&checkout=true";
    362368                $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' );
     
    375381                $interval = (int) $now->diff($expiry)->format('%R%a');
    376382
    377                 $discount_percentage = __("20%", 'auto-install-free-ssl' );
     383                if(time() > strtotime("August 19, 2023") && time() < strtotime("September 22, 2023")){
     384                    $discount_percentage = __("40%", 'auto-install-free-ssl' );
     385                }
     386                else{
     387                    $discount_percentage = __("20%", 'auto-install-free-ssl' );
     388                }
    378389
    379390                /* translators: %1$s: Discount percentage (includes % sign), %2$s: Coupon code for the discount */
  • auto-install-free-ssl/trunk/FreeSSLAuto/src/Admin/HomeOptions.php

    r2959466 r2962618  
    228228           
    229229            if ( time() > strtotime( "August 19, 2023" ) && time() < strtotime( "September 22, 2023" ) ) {
    230                 $coupon_code = false;
    231                 echo  '30% discount: SUMMER_30, 40% discount coupon (lifetime only): SUMMER_40' ;
     230                $coupon_code = "SUMMER_40";
     231                $percentage = __( "40%", 'auto-install-free-ssl' );
     232                echo  "<strong>End-of-Summer Sale:</strong> " ;
    232233            } else {
    233234                $coupon_code = "20AutoInstall";
    234235                $percentage = __( "20%", 'auto-install-free-ssl' );
    235                 /* 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) */
    236                 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>" ;
    237             }
    238            
     236            }
     237           
     238            /* 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>" ;
    239240            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>' ;
    240241            echo  '</p></div>' ;
  • auto-install-free-ssl/trunk/FreeSSLAuto/src/Controller.php

    r2959466 r2962618  
    8585                if ( $socket ) {
    8686                    //Domain is online
     87                    //if ( (bool) get_option('aifs_verify_ip_for_mail_dot_domain_alias_only') === false || (strpos( $domain, 'mail.' ) !== false && strpos( $domain, 'mail.' ) === 0) ) {
    8788                   
    88                     if ( (bool) get_option( 'aifs_verify_ip_for_mail_dot_domain_alias_only' ) === false || strpos( $domain, 'mail.' ) !== false && strpos( $domain, 'mail.' ) === 0 ) {
     89                    if ( $ip_of_this_server !== false && ((bool) get_option( 'aifs_verify_ip_for_mail_dot_domain_alias_only' ) === false || strpos( $domain, 'mail.' ) !== false && strpos( $domain, 'mail.' ) === 0) ) {
    8990                        $dns = dns_get_record( $domain, DNS_A );
    9091                       
  • auto-install-free-ssl/trunk/auto-install-free-ssl.php

    r2959466 r2962618  
    77 * Plugin URI:  https://freessl.tech
    88 * 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.3
     9 * Version:     3.6.4
    1010 * Requires at least: 4.1
    1111 * Requires PHP:      5.6
     
    531531/**
    532532 * Get IPv4 of this server
     533 * improved since 3.6.4
    533534 * @return mixed|string
    534535 * @since 3.6.0
     
    538539   
    539540    if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
    540         return $_SERVER['SERVER_ADDR'];
     541        $serverIP = $_SERVER['SERVER_ADDR'];
    541542    } else {
    542         return gethostbyname( gethostname() );
     543        // Get the website address (domain name)
     544        $websiteAddress = aifs_get_domain( false );
     545        // Try getting IP using gethostbyname
     546        $ip = gethostbyname( $websiteAddress );
     547        // Check if gethostbyname returned a valid IP
     548       
     549        if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 ) ) {
     550            $serverIP = $ip;
     551        } else {
     552            // Fallback to dns_get_record if gethostbyname didn't return a valid IP
     553            $records = dns_get_record( $websiteAddress, DNS_A );
     554            $serverIP = ( isset( $records[0]['ip'] ) ? $records[0]['ip'] : '' );
     555        }
     556   
     557    }
     558   
     559   
     560    if ( $serverIP && filter_var( $serverIP, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 ) ) {
     561        return $serverIP;
     562    } else {
     563        return false;
    543564    }
    544565
  • auto-install-free-ssl/trunk/freemius/includes/class-freemius.php

    r2959466 r2962618  
    56455645            }
    56465646
    5647             if ( $this->is_registered() ) {
    5648                 if ( ! $this->is_addon() ) {
    5649                     add_action(
    5650                         is_admin() ? 'admin_init' : 'init',
    5651                         array( &$this, '_plugin_code_type_changed' )
    5652                     );
    5653                 }
    5654 
    5655                 if ( $this->is_premium() ) {
    5656                     // Purge cached payments after switching to the premium version.
    5657                     // @todo This logic doesn't handle purging the cache for serviceware module upgrade.
    5658                     $this->get_api_user_scope()->purge_cache( "/plugins/{$this->_module_id}/payments.json?include_addons=true" );
    5659                 }
     5647            if ( ! $this->is_addon() ) {
     5648                add_action(
     5649                    is_admin() ? 'admin_init' : 'init',
     5650                    array( &$this, '_plugin_code_type_changed' )
     5651                );
     5652            }
     5653
     5654            if ( $this->is_registered() && $this->is_premium() ) {
     5655                // Purge cached payments after switching to the premium version.
     5656                // @todo This logic doesn't handle purging the cache for serviceware module upgrade.
     5657                $this->get_api_user_scope()->purge_cache( "/plugins/{$this->_module_id}/payments.json?include_addons=true" );
    56605658            }
    56615659        }
     
    57215719            }
    57225720
    5723             // Schedule code type changes event.
    5724             $this->schedule_install_sync();
     5721            if ( $this->is_registered() ) {
     5722                // Schedule code type changes event.
     5723                $this->schedule_install_sync();
     5724            }
    57255725
    57265726            /**
  • auto-install-free-ssl/trunk/freemius/start.php

    r2959466 r2962618  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.5.11';
     18    $this_sdk_version = '2.5.12';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • auto-install-free-ssl/trunk/readme.txt

    r2959466 r2962618  
    77Requires at least: 4.1
    88Tested up to: 6.3
    9 Stable tag: 3.6.3
     9Stable tag: 3.6.4
    1010Requires PHP: 5.6
    1111Development location: https://freessl.tech
     
    2727
    2828
    29 `    354,500+ DOWNLOADS!!`
     29`    360,000+ DOWNLOADS!!`
    3030
    3131
Note: See TracChangeset for help on using the changeset viewer.