Plugin Directory

Changeset 3082358


Ignore:
Timestamp:
05/07/2024 08:34:25 AM (22 months ago)
Author:
miunosoft
Message:

Upload 5.4.3b04

Location:
amazon-auto-links/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amazon-auto-links/trunk/amazon-auto-links.php

    r3079730 r3082358  
    66 * Author:            Michael Uno (miunosoft)
    77 * Author URI:        https://michaeluno.jp
    8  * Version:           5.4.3b03
     8 * Version:           5.4.3b04
    99 * Text Domain:       amazon-auto-links
    1010 * Domain Path:       /language
     
    1919 */
    2020class AmazonAutoLinks_Registry_Base {
    21     const VERSION      = '5.4.3b03';    // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
     21    const VERSION      = '5.4.3b04';    // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
    2222    const NAME         = 'Auto Amazon Links';
    2323    const DESCRIPTION  = 'Formerly, Amazon Auto Links. The plugin generates links of Amazon products just coming out today. You just pick categories and they appear even in JavaScript disabled browsers.';
  • amazon-auto-links/trunk/include/core/component/proxy/admin/AmazonAutoLinks_ToolAdminPage_Proxy_Tab_Section.php

    r2701172 r3082358  
    7474                'description'     => array(
    7575                    __( 'Enter proxy addresses one per line. Accepts up to 10000 items at a maximum.', 'amazon-auto-links' ),
    76                     sprintf( __( 'The format: <code>%1$s</code>', 'amazon-auto-links' ), '{scheme}://{username}:{password}@{ip address}:{port number}' ),
     76                    sprintf( __( 'The format: <code>%1$s</code>', 'amazon-auto-links' ), '{scheme}://{user name}:{password}@{ip address or host name}:{port number}' ),
    7777                ),
    7878            ),
  • amazon-auto-links/trunk/include/core/component/proxy/utility/AmazonAutoLinks_Proxy_Utility.php

    r2701172 r3082358  
    2323    static public function getProxyArguments( $sProxy ) {
    2424
    25         $_aProxy          = parse_url( $sProxy );
     25        $_aProxy = parse_url( $sProxy );
    2626        return array(
    2727            'host'     => isset( $_aProxy[ 'scheme' ] )
    28                 ? $_aProxy[ 'scheme' ] . '://' . $_aProxy[ 'host' ]
     28                ? $_aProxy[ 'scheme' ] . '://' . self::getIPFromHostName( $_aProxy[ 'host' ] ) // cURL does not accept domain names
    2929                : $_aProxy[ 'host' ],
    3030            'port'     => $_aProxy[ 'port' ],
     
    3333            'raw'      => $sProxy,
    3434        );
     35
     36    }
     37
     38    /**
     39     * @since  5.4.3
     40     * @return string The looked-up IP address or unmodified host name
     41     */
     42    static public function getIPFromHostName( $sHostNameOrIP ) {
     43
     44        // Return if it's an IP address
     45        // @remark This checks whether it is a valid IPv4 address.
     46        // @todo research a way to check whether IPv6 address
     47        if ( ( boolean ) ip2long( $sHostNameOrIP ) ) {
     48            return $sHostNameOrIP;
     49        }
     50
     51        return gethostbyname( $sHostNameOrIP );
    3552
    3653    }
  • amazon-auto-links/trunk/include/core/main/event/AmazonAutoLinks_Shadow.php

    r2620471 r3082358  
    7777     */   
    7878    static private function ___isBackground() {
    79         $_sKey = 'aal_' . md5( get_class() );
     79        $_sKey = 'aal_' . md5( __CLASS__ );
    8080        return isset( $_COOKIE[ $_sKey ] );
    8181    }
     
    100100    static private function ___handleCronTasks( array $aActionHooks ) {
    101101
    102         $_sTransientName = 'aal_' . md5( get_class() );
     102        $_sTransientName = 'aal_' . md5( __CLASS__ );
    103103        $_aFlags         = AmazonAutoLinks_WPUtility::getTransientWithoutCacheAsArray( $_sTransientName ) + array(
    104104            '_called'    => 0, '_locked'    => 0,
     
    128128         * Performs the plugin-specific scheduled tasks in the background.
    129129         *
    130          * This should only be called when the "aal_{ md5( get_class() ) }" transient is present.
     130         * This should only be called when the "aal_{ md5( __CLASS__ ) }" transient is present.
    131131         *
    132132         * @since 1.0.0
     
    256256
    257257            // Retrieve the plugin scheduled tasks array.
    258             $_sTransientName = 'aal_' . md5( get_class() );
     258            $_sTransientName = 'aal_' . md5( __CLASS__ );
    259259            $_aFlags         = AmazonAutoLinks_WPUtility::getTransientWithoutCacheAsArray( $_sTransientName ) + array(
    260260                '_called' => 0,
Note: See TracChangeset for help on using the changeset viewer.