Changeset 3082358
- Timestamp:
- 05/07/2024 08:34:25 AM (22 months ago)
- Location:
- amazon-auto-links/trunk
- Files:
-
- 4 edited
-
amazon-auto-links.php (modified) (2 diffs)
-
include/core/component/proxy/admin/AmazonAutoLinks_ToolAdminPage_Proxy_Tab_Section.php (modified) (1 diff)
-
include/core/component/proxy/utility/AmazonAutoLinks_Proxy_Utility.php (modified) (2 diffs)
-
include/core/main/event/AmazonAutoLinks_Shadow.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amazon-auto-links/trunk/amazon-auto-links.php
r3079730 r3082358 6 6 * Author: Michael Uno (miunosoft) 7 7 * Author URI: https://michaeluno.jp 8 * Version: 5.4.3b0 38 * Version: 5.4.3b04 9 9 * Text Domain: amazon-auto-links 10 10 * Domain Path: /language … … 19 19 */ 20 20 class AmazonAutoLinks_Registry_Base { 21 const VERSION = '5.4.3b0 3'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!!21 const VERSION = '5.4.3b04'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!! 22 22 const NAME = 'Auto Amazon Links'; 23 23 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 74 74 'description' => array( 75 75 __( '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}://{user name}:{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}' ), 77 77 ), 78 78 ), -
amazon-auto-links/trunk/include/core/component/proxy/utility/AmazonAutoLinks_Proxy_Utility.php
r2701172 r3082358 23 23 static public function getProxyArguments( $sProxy ) { 24 24 25 $_aProxy = parse_url( $sProxy );25 $_aProxy = parse_url( $sProxy ); 26 26 return array( 27 27 'host' => isset( $_aProxy[ 'scheme' ] ) 28 ? $_aProxy[ 'scheme' ] . '://' . $_aProxy[ 'host' ]28 ? $_aProxy[ 'scheme' ] . '://' . self::getIPFromHostName( $_aProxy[ 'host' ] ) // cURL does not accept domain names 29 29 : $_aProxy[ 'host' ], 30 30 'port' => $_aProxy[ 'port' ], … … 33 33 'raw' => $sProxy, 34 34 ); 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 ); 35 52 36 53 } -
amazon-auto-links/trunk/include/core/main/event/AmazonAutoLinks_Shadow.php
r2620471 r3082358 77 77 */ 78 78 static private function ___isBackground() { 79 $_sKey = 'aal_' . md5( get_class());79 $_sKey = 'aal_' . md5( __CLASS__ ); 80 80 return isset( $_COOKIE[ $_sKey ] ); 81 81 } … … 100 100 static private function ___handleCronTasks( array $aActionHooks ) { 101 101 102 $_sTransientName = 'aal_' . md5( get_class());102 $_sTransientName = 'aal_' . md5( __CLASS__ ); 103 103 $_aFlags = AmazonAutoLinks_WPUtility::getTransientWithoutCacheAsArray( $_sTransientName ) + array( 104 104 '_called' => 0, '_locked' => 0, … … 128 128 * Performs the plugin-specific scheduled tasks in the background. 129 129 * 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. 131 131 * 132 132 * @since 1.0.0 … … 256 256 257 257 // Retrieve the plugin scheduled tasks array. 258 $_sTransientName = 'aal_' . md5( get_class());258 $_sTransientName = 'aal_' . md5( __CLASS__ ); 259 259 $_aFlags = AmazonAutoLinks_WPUtility::getTransientWithoutCacheAsArray( $_sTransientName ) + array( 260 260 '_called' => 0,
Note: See TracChangeset
for help on using the changeset viewer.