PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/polo-family.com/wp-content/plugins/aawzone-ebay/wzone/ebay/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/polo-family.com/wp-content/plugins/aawzone-ebay/wzone/ebay/ebay_utils.php

<?php

/*
Wider 		Square 		Taller
1.5w:1h 	1w:1h 		1w:2.25h

array (key, value) : 0 = width, 1 = height
*/

if ( !class_exists('aaWZoneEbayUtils') ) {
class aaWZoneEbayUtils
{
	public function __construct() {
	}


	/**
	 * Global ID => Site ID, Site Name
	 */
	public function get_locations() {
		$ret = array(
			// global ID 			=> array(site ID, site name, site root)
			'EBAY-AT' 				 => array('16', 'eBay Austria', 'ebay.at'),
			'EBAY-AU' 				 => array('15', 'eBay Australia', 'ebay.com.au'),
			'EBAY-CH' 				 => array('193', 'eBay Switzerland', 'ebay.ch'),
			'EBAY-DE' 				 => array('77', 'eBay Germany', 'ebay.de'),
			'EBAY-ENCA' 			 => array('2', 'eBay Canada (English)', 'ebay.ca'), //CA
			'EBAY-ES' 				 => array('186', 'eBay Spain', 'ebay.es'),
			'EBAY-FR' 				 => array('71', 'eBay France', 'ebay.fr'),
			'EBAY-FRBE' 			 => array('23', 'eBay Belgium (French)', 'befr.ebay.be'), //BEFR
			'EBAY-FRCA' 			 => array('210', 'eBay Canada (French)', 'cafr.ebay.ca'), //CAFR
			'EBAY-GB' 				 => array('3', 'eBay UK', 'ebay.co.uk'), //UK
			'EBAY-HK' 				 => array('201', 'eBay Hong Kong', 'ebay.com.hk'),
			'EBAY-IE' 				 => array('205', 'eBay Ireland', 'ebay.ie'),
			//'EBAY-IN' 				 => array('203', 'eBay India', ''),
			'EBAY-IT' 				 => array('101', 'eBay Italy', 'ebay.it'),
			//'EBAY-MOTOR' 			 => array('100', 'eBay Motors', ''),
			'EBAY-MY' 				 => array('207', 'eBay Malaysia', 'ebay.com.my'),
			'EBAY-NL' 				 => array('146', 'eBay Netherlands', 'ebay.nl'),
			'EBAY-NLBE' 			 => array('123', 'eBay Belgium (Dutch)', 'benl.ebay.be'), //BENL
			'EBAY-PH' 				 => array('211', 'eBay Philippines', 'ebay.ph'),
			'EBAY-PL' 				 => array('212', 'eBay Poland', 'ebay.pl'),
			'EBAY-SG' 				 => array('216', 'eBay Singapore', 'ebay.com.sg'),
			'EBAY-US' 				 => array('0', 'eBay United States', 'ebay.com'),
			
			'EBAY-CN' 				 => array('223', 'eBay China', 'ebay.cn'),
			'EBAY-RU' 				 => array('215', 'eBay Russia', 'cgi.ebay.ru'),
			'EBAY-SE' 				 => array('218', 'eBay Sweden', 'cgi.ebay.se'),
			'EBAY-TW' 				 => array('196', 'eBay Taiwan', 'ebay.com.tw'),
		);
		return $ret;
	}

	// filterby = globalid | siteid
	public function get_countries( $return_key='globalid' ) {
		$loc = $this->get_locations();
			
		$ret = array();
		foreach ( $loc as $key => $val) {
			$_key = $return_key == 'globalid' ? $key : $val[0];
			$ret["$_key"] = $val[1];
		}
		return $ret;
	}

	// filter_by: globalid | siteid | siteroot ; return_fields = all | globalid | siteid | sitename | siteroot
	public function get_location( $filter_value, $filter_by='globalid', $return_field='all' ) {
		$loc = $this->get_locations();
			
		if ( empty($filter_value) ) return false;
		if ( empty($return_field)
			|| !in_array($return_field, array('all', 'globalid', 'siteid', 'sitename')) ) {
			$return_field = 'all';
		 }

		// by global ID
		$row = array();
		if ( 'globalid' == $filter_by ) {
			$row = isset($loc["$filter_value"]) ? $loc["$filter_value"] : array();
			if ( !empty($row) ) {
				$row = array($filter_value, $row[0], $row[1], $row[2]);
			}
		}
		// by site ID | site root
		else {
			foreach ( $loc as $key => $val) {
				if ( 'siteid' == $filter_by ) {
					if ( $filter_value == $val[0] ) {
						$row = array($key, $filter_value, $val[1], $val[2]);
						break;
					}
				}
				else if ( 'siteroot' == $filter_by ) {
					if ( $filter_value == $val[2] ) {
						$row = array($key, $val[0], $val[1], $filter_value);
						break;
					}
				}
			}
		}
			
		if ( in_array($return_field, array('globalid', 'siteid', 'sitename', 'siteroot')) ) {
			$index2field = array('globalid' => 0, 'siteid' => 1, 'sitename' => 2, 'siteroot' => 3);
			$index = isset($index2field["$return_field"]) ? $index2field["$return_field"] : -1;

			if ( $index == -1 ) return false;
			return !empty($row) && isset($row["$index"]) ? $row["$index"] : false;
		}
		// all
		return !empty($row) ? $row : false;
	}
		
	public function get_vectorid( $globalid ) {
		if ( empty($globalid) ) return false;

		$list = array(
			'AT' => '229473',
			'AU' => '229515',
			'FRBE' => '229522',
			'ENCA' => '229529',
			'CH' => '229536',
			'DE' => '229487',
			'ES' => '229501',
			'FR' => '229480',
			'IE' => '229543',
			'IN' => '229550',
			'IT' => '229494',
			'NL' => '229557',
			'GB' => '229508',
			'US' => '229466',
		);
			
		$globalid = str_replace('EBAY-', '', $globalid);
		return isset($list["$globalid"]) ? $list["$globalid"] : false;
	}
		
	public function get_rotationid( $globalid ) {
		if ( empty($globalid) ) return false;

		$list = array(
			'AT' => '5221-53469-19255-0',
			'AU' => '705-53470-19255-0',
			'FRBE' => '1553-53471-19255-0',
			'ENCA' => '706-53473-19255-0',
			'CH' => '5222-53480-19255-0',
			'DE' => '707-53477-19255-0',
			'ES' => '1185-53479-19255-0',
			'FR' => '709-53476-19255-0',
			'IE' => '5282-53468-19255-0',
			'IN' => '4686-53472-19255-0',
			'IT' => '724-53478-19255-0',
			'NL' => '1346-53482-19255-0',
			'GB' => '710-53481-19255-0',
			'US' => '711-53200-19255-0'
		);
			
		$globalid = str_replace('EBAY-', '', $globalid);
		return isset($list["$globalid"]) ? $list["$globalid"] : false;
	}

	/**
	 * pms: array(
	 * 		prod_id		: (string) ebay product id
	 * 		prod_link	: (string) ebay product page url
	 * 		globalid	: (string) main affiliate id location key (ex: EBAY-US)
	 * 		affid		: (string) affiliate id value (ex: 01234)
	 * )
	 */
	public function get_product_link( $pms=array() ) {
		extract($pms);
		
		$mpre			= rawurlencode( $prod_link );
		$campid 		= $affid;
		$lgeo 			= 0;
		$ff3 			= 2; // it's an item link 
		$vectorid 		= $this->get_vectorid( $globalid );
		$rotationid 	= $this->get_rotationid( $globalid );
		$toolid			= 10044;

		//-------------------
		// ex : http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=2&toolid=10044&campid=123&customid=&lgeo=1&vectorid=123&item=123

		//&vectorid=' . ( $vectorid ) . '
		//return 'http://rover.ebay.com/rover/1/' . ( $rotationid ) . '/1?ff3=' . ( $ff3) . '&toolid=' . ( $toolid) . '&campid=' . ( $campid) . '&customid=APIcallSKF&lgeo=' . ( $lgeo) . '&item=' . $prod_id;

		//-------------------
		// ex dec 2015: http://rover.ebay.com/rover/1/711-53200-19255-0/1?campid=1234567890&customid=&toolid=10001&mpre=http%3A%2F%2Fwww.ebay.co.uk%2Fitm%2FHEAVY-DUTY-WATER-RESISTANT-CAR-BOOT-LINER-LIP-PROTECTOR-DIRT-PET-DOG-COVER-MAT-%2F351040656363

		return 'http://rover.ebay.com/rover/1/' . ( $rotationid ) . '/1?ff3=' . ( $ff3) . '&toolid=' . ( $toolid) . '&campid=' . ( $campid) . '&customid=APIcallSKF&lgeo=' . ( $lgeo) . '&mpre=' . $mpre;
	}


	public function get_image_sizes( $what='all' ) {

		$ebay_image_sizes = array( 'wider' => array(), 'square' => array(), 'taller' => array() );

		$ebay_image_sizes['wider'] = array(
			 0 => array( 96, 64 ),
			 1 => array( 400, 266 ),
			 2 => array( 200, 133 ),
			 3 => array( 800, 533 ),
			 4 => array( 640, 480 ),
			 5 => array( 100, 75 ),
			 6 => array( 70, 47 ),
			 7 => array( 150, 100 ),
			 8 => array( 400, 266 ),
			 9 => array( 200, 150 ),
			 10 => array( 1600, 1066 ),
			 11 => array( 310, 90 ),
			 12 => array( 500, 333 ),
			 13 => array( 63, 42 ),
			 14 => array( 64, 43 ),
			 15 => array( 188, 125 ),
			 16 => array( 400, 300 ),
			 17 => array( 80, 53 ),
			 18 => array( 200, 133 ),
			 19 => array( 400, 266 ),
			 20 => array( 800, 533 ),
			 21 => array( 500, 333 ),
			 22 => array( 60, 40 ),
			 23 => array( 80, 53 ),
			 24 => array( 298, 198 ),
			 25 => array( 500, 333 ),
			 26 => array( 140, 93 ),
			 27 => array( 640, 426 ),
			 28 => array( 90, 60 ),
			 29 => array( 450, 300 ),
			 30 => array( 173, 115 ),
			 31 => array( 300, 200 ),
			 32 => array( 1600, 1066 ),
			 33 => array( 48, 32 ),
			 34 => array( 50, 33 ),
			 35 => array( 300, 200 ),
			 36 => array( 60, 40 ),
			 37 => array( 175, 116 ),
			 38 => array( 115, 76 ),
			 39 => array( 32, 32 ),
			 40 => array( 80, 53 ),
			 41 => array( 467, 311 ),
			 42 => array( 105, 70 ),
			 43 => array( 221, 147 ),
			 44 => array( 51, 34 ),
			 45 => array( 1200, 800 ),
			 46 => array( 300, 200 ),
			 47 => array( 435, 290 ),
			 48 => array( 80, 80 ),
			 49 => array( 200, 133 ),
			 50 => array( 100, 67 ),
			 51 => array( 90, 60 ),
			 52 => array( 132, 88 ),
			 53 => array( 150, 100 ),
			 54 => array( 122, 81 ),
			 55 => array( 286, 190 ),
			 56 => array( 100, 67 ),
			 57 => array( 1600, 1066 ),
			 58 => array( 640, 426 ),
			 59 => array( 960, 640 ),
			 60 => array( 80, 80 ),
			 61 => array( 1600, 1066 ),
			 62 => array( 225, 150 ),
			 63 => array( 80, 80 ),
			 64 => array( 80, 80 ),
			 65 => array( 180, 120 ),
			 66 => array( 53, 35 ),
			 67 => array( 135, 90 ),
			 68 => array( 53, 35 ),
			 69 => array( 90, 60 ),
			 70 => array( 53, 35 ),
			 71 => array( 55, 37 ),
			 72 => array( 500, 333 ),
			 73 => array( 65, 43 ),
			 74 => array( 135, 90 ),
			 75 => array( 430, 286 ),
			 76 => array( 400, 266 ),
			 77 => array( 72, 54 ),
			 78 => array( 75, 56 ),
			 79 => array( 320, 240 ),
			 80 => array( 600, 450 ),
			 81 => array( 96, 72 ),
			 82 => array( 147, 98 ),
			 83 => array( 358, 238 ),
			 84 => array( 498, 332 ),
			 85 => array( 726, 484 ),
			 86 => array( 1024, 682 ),
			 87 => array( 70, 47 ),
			 88 => array( 175, 116 ),
			 89 => array( 600, 400 ),
			 90 => array( 220, 146 ),
			 91 => array( 276, 184 ),
			 92 => array( 560, 373 ),
			 93 => array( 360, 240 ),
			 94 => array( 280, 186 ),
			 95 => array( 180, 120 ),
			 96 => array( 113, 75 ),
			 97 => array( 90, 90 ),
			 98 => array( 180, 170 ),
			 99 => array( 200, 150 ),
			 100 => array( 650, 412 ),
			 101 => array( 107, 88 ),
			 102 => array( 247, 187 ),
			 103 => array( 180, 120 ),
			 104 => array( 323, 215 ),
			 105 => array( 510, 340 ),
			 106 => array( 160, 160 ),
			 107 => array( 1000, 666 ),
			 108 => array( 135, 90 ),
			 109 => array( 135, 90 ),
			 110 => array( 462, 308 ),
			 111 => array( 225, 150 ),
			 112 => array( 225, 150 ),
			 113 => array( 450, 300 ),
			 114 => array( 67, 45 ),
			 115 => array( 216, 144 ),
			 116 => array( 250, 166 ),
			 117 => array( 190, 126 ),
			 118 => array( 275, 183 ),
			 119 => array( 110, 73 ),
			 120 => array( 170, 113 ),
			 121 => array( 135, 90 ),
			 122 => array( 225, 150 ),
			 123 => array( 64, 43 ),
			 124 => array( 80, 53 ),
			 125 => array( 96, 64 ),
			 126 => array( 140, 93 ),
			 127 => array( 150, 100 ),
			 128 => array( 180, 120 ),
			 129 => array( 300, 200 ),
			 130 => array( 200, 133 ),
			 131 => array( 400, 267 ),
			 132 => array( 500, 333 ),
			 133 => array( 1600, 1066 ),
			 134 => array( 440, 293 ),
			 135 => array( 275, 183 ),
			 136 => array( 120, 80 ),
			 137 => array( 96, 64 ),
			 138 => array( 63, 42 ),
			 139 => array( 380, 253 ),
		);

		$ebay_image_sizes['square'] = array(
			 0 => array( 96, 96 ),
			 1 => array( 400, 400 ),
			 2 => array( 200, 200 ),
			 3 => array( 800, 800 ),
			 4 => array( 640, 480 ),
			 5 => array( 100, 75 ),
			 6 => array( 70, 70 ),
			 7 => array( 150, 150 ),
			 8 => array( 300, 300 ),
			 9 => array( 200, 150 ),
			 10 => array( 1280, 1280 ),
			 11 => array( 310, 90 ),
			 12 => array( 500, 500 ),
			 13 => array( 42, 42 ),
			 14 => array( 64, 64 ),
			 15 => array( 125, 125 ),
			 16 => array( 400, 300 ),
			 17 => array( 80, 80 ),
			 18 => array( 200, 200 ),
			 19 => array( 400, 400 ),
			 20 => array( 600, 600 ),
			 21 => array( 500, 500 ),
			 22 => array( 60, 60 ),
			 23 => array( 80, 80 ),
			 24 => array( 298, 298 ),
			 25 => array( 500, 500 ),
			 26 => array( 140, 140 ),
			 27 => array( 480, 480 ),
			 28 => array( 60, 60 ),
			 29 => array( 300, 300 ),
			 30 => array( 115, 115 ),
			 31 => array( 225, 225 ),
			 32 => array( 1280, 1280 ),
			 33 => array( 48, 48 ),
			 34 => array( 50, 50 ),
			 35 => array( 300, 300 ),
			 36 => array( 40, 40 ),
			 37 => array( 175, 175 ),
			 38 => array( 115, 115 ),
			 39 => array( 32, 32 ),
			 40 => array( 60, 60 ),
			 41 => array( 467, 467 ),
			 42 => array( 70, 70 ),
			 43 => array( 221, 221 ),
			 44 => array( 34, 34 ),
			 45 => array( 1200, 1200 ),
			 46 => array( 300, 300 ),
			 47 => array( 290, 290 ),
			 48 => array( 80, 80 ),
			 49 => array( 170, 170 ),
			 50 => array( 85, 85 ),
			 51 => array( 90, 90 ),
			 52 => array( 123, 123 ),
			 53 => array( 100, 100 ),
			 54 => array( 122, 122 ),
			 55 => array( 214, 214 ),
			 56 => array( 100, 100 ),
			 57 => array( 1280, 1280 ),
			 58 => array( 640, 640 ),
			 59 => array( 960, 960 ),
			 60 => array( 80, 80 ),
			 61 => array( 1280, 1280 ),
			 62 => array( 225, 225 ),
			 63 => array( 80, 80 ),
			 64 => array( 80, 80 ),
			 65 => array( 120, 120 ),
			 66 => array( 35, 35 ),
			 67 => array( 90, 90 ),
			 68 => array( 35, 35 ),
			 69 => array( 60, 60 ),
			 70 => array( 35, 35 ),
			 71 => array( 55, 55 ),
			 72 => array( 375, 375 ),
			 73 => array( 65, 65 ),
			 74 => array( 115, 115 ),
			 75 => array( 325, 325 ),
			 76 => array( 320, 320 ),
			 77 => array( 72, 54 ),
			 78 => array( 75, 56 ),
			 79 => array( 320, 240 ),
			 80 => array( 600, 450 ),
			 81 => array( 96, 72 ),
			 82 => array( 147, 147 ),
			 83 => array( 358, 358 ),
			 84 => array( 498, 498 ),
			 85 => array( 726, 726 ),
			 86 => array( 1024, 1024 ),
			 87 => array( 53, 53 ),
			 88 => array( 130, 130 ),
			 89 => array( 500, 500 ),
			 90 => array( 220, 220 ),
			 91 => array( 276, 276 ),
			 92 => array( 420, 420 ),
			 93 => array( 360, 360 ),
			 94 => array( 210, 210 ),
			 95 => array( 180, 180 ),
			 96 => array( 75, 75 ),
			 97 => array( 90, 90 ),
			 98 => array( 180, 170 ),
			 99 => array( 200, 150 ),
			 100 => array( 650, 412 ),
			 101 => array( 107, 88 ),
			 102 => array( 247, 187 ),
			 103 => array( 180, 180 ),
			 104 => array( 215, 215 ),
			 105 => array( 340, 340 ),
			 106 => array( 160, 160 ),
			 107 => array( 1000, 1000 ),
			 108 => array( 90, 90 ),
			 109 => array( 90, 90 ),
			 110 => array( 360, 360 ),
			 111 => array( 155, 155 ),
			 112 => array( 195, 195 ),
			 113 => array( 450, 450 ),
			 114 => array( 67, 67 ),
			 115 => array( 216, 216 ),
			 116 => array( 250, 250 ),
			 117 => array( 190, 190 ),
			 118 => array( 275, 275 ),
			 119 => array( 110, 110 ),
			 120 => array( 170, 170 ),
			 121 => array( 135, 135 ),
			 122 => array( 225, 225 ),
			 123 => array( 64, 64 ),
			 124 => array( 80, 80 ),
			 125 => array( 96, 96 ),
			 126 => array( 140, 140 ),
			 127 => array( 150, 150 ),
			 128 => array( 180, 180 ),
			 129 => array( 300, 300 ),
			 130 => array( 200, 200 ),
			 131 => array( 400, 400 ),
			 132 => array( 500, 500 ),
			 133 => array( 1280, 1280 ),
			 134 => array( 420, 420 ),
			 135 => array( 275, 275 ),
			 136 => array( 80, 80 ),
			 137 => array( 64, 64 ),
			 138 => array( 42, 42 ),
			 139 => array( 380, 380 ),
		);

		$ebay_image_sizes['taller'] = array(
			 0 => array( 42, 96 ),
			 1 => array( 177, 400 ),
			 2 => array( 89, 200 ),
			 3 => array( 355, 800 ),
			 4 => array( 640, 480 ),
			 5 => array( 100, 75 ),
			 6 => array( 31, 70 ),
			 7 => array( 66, 150 ),
			 8 => array( 133, 300 ),
			 9 => array( 200, 150 ),
			 10 => array( 709, 1600 ),
			 11 => array( 310, 90 ),
			 12 => array( 222, 500 ),
			 13 => array( 19, 42 ),
			 14 => array( 28, 64 ),
			 15 => array( 55, 125 ),
			 16 => array( 400, 300 ),
			 17 => array( 35, 80 ),
			 18 => array( 89, 200 ),
			 19 => array( 177, 400 ),
			 20 => array( 266, 600 ),
			 21 => array( 222, 500 ),
			 22 => array( 27, 60 ),
			 23 => array( 35, 80 ),
			 24 => array( 132, 298 ),
			 25 => array( 222, 500 ),
			 26 => array( 62, 140 ),
			 27 => array( 213, 480 ),
			 28 => array( 27, 60 ),
			 29 => array( 133, 300 ),
			 30 => array( 51, 115 ),
			 31 => array( 100, 225 ),
			 32 => array( 709, 1600 ),
			 33 => array( 21, 48 ),
			 34 => array( 22, 50 ),
			 35 => array( 133, 300 ),
			 36 => array( 18, 40 ),
			 37 => array( 77, 175 ),
			 38 => array( 51, 115 ),
			 39 => array( 32, 32 ),
			 40 => array( 27, 60 ),
			 41 => array( 207, 467 ),
			 42 => array( 31, 70 ),
			 43 => array( 146, 330 ),
			 44 => array( 15, 34 ),
			 45 => array( 532, 1200 ),
			 46 => array( 133, 300 ),
			 47 => array( 129, 290 ),
			 48 => array( 80, 80 ),
			 49 => array( 75, 170 ),
			 50 => array( 38, 85 ),
			 51 => array( 40, 90 ),
			 52 => array( 54, 123 ),
			 53 => array( 44, 100 ),
			 54 => array( 54, 122 ),
			 55 => array( 95, 214 ),
			 56 => array( 44, 100 ),
			 57 => array( 709, 1600 ),
			 58 => array( 284, 640 ),
			 59 => array( 425, 960 ),
			 60 => array( 80, 80 ),
			 61 => array( 709, 1600 ),
			 62 => array( 100, 225 ),
			 63 => array( 80, 80 ),
			 64 => array( 80, 80 ),
			 65 => array( 53, 120 ),
			 66 => array( 15, 35 ),
			 67 => array( 40, 90 ),
			 68 => array( 15, 35 ),
			 69 => array( 27, 60 ),
			 70 => array( 15, 35 ),
			 71 => array( 24, 55 ),
			 72 => array( 166, 375 ),
			 73 => array( 29, 65 ),
			 74 => array( 51, 115 ),
			 75 => array( 144, 325 ),
			 76 => array( 142, 320 ),
			 77 => array( 72, 54 ),
			 78 => array( 75, 56 ),
			 79 => array( 320, 240 ),
			 80 => array( 600, 450 ),
			 81 => array( 96, 72 ),
			 82 => array( 65, 147 ),
			 83 => array( 158, 358 ),
			 84 => array( 221, 498 ),
			 85 => array( 322, 726 ),
			 86 => array( 454, 1024 ),
			 87 => array( 23, 53 ),
			 88 => array( 58, 130 ),
			 89 => array( 222, 500 ),
			 90 => array( 97, 220 ),
			 91 => array( 122, 276 ),
			 92 => array( 186, 420 ),
			 93 => array( 213, 480 ),
			 94 => array( 93, 210 ),
			 95 => array( 106, 240 ),
			 96 => array( 33, 75 ),
			 97 => array( 90, 90 ),
			 98 => array( 180, 170 ),
			 99 => array( 200, 150 ),
			 100 => array( 650, 412 ),
			 101 => array( 107, 88 ),
			 102 => array( 247, 187 ),
			 103 => array( 80, 180 ),
			 104 => array( 95, 215 ),
			 105 => array( 151, 340 ),
			 106 => array( 160, 160 ),
			 107 => array( 443, 1000 ),
			 108 => array( 40, 90 ),
			 109 => array( 40, 90 ),
			 110 => array( 160, 360 ),
			 111 => array( 69, 155 ),
			 112 => array( 86, 195 ),
			 113 => array( 199, 450 ),
			 114 => array( 30, 67 ),
			 115 => array( 96, 216 ),
			 116 => array( 111, 250 ),
			 117 => array( 84, 190 ),
			 118 => array( 122, 275 ),
			 119 => array( 49, 110 ),
			 120 => array( 75, 170 ),
			 121 => array( 60, 135 ),
			 122 => array( 225, 508 ),
			 123 => array( 64, 144 ),
			 124 => array( 80, 181 ),
			 125 => array( 96, 217 ),
			 126 => array( 140, 316 ),
			 127 => array( 150, 339 ),
			 128 => array( 180, 406 ),
			 129 => array( 300, 677 ),
			 130 => array( 200, 451 ),
			 131 => array( 400, 903 ),
			 132 => array( 500, 1128 ),
			 133 => array( 709, 1600 ),
			 134 => array( 186, 420 ),
			 135 => array( 166, 375 ),
			 136 => array( 35, 80 ),
			 137 => array( 28, 64 ),
			 138 => array( 19, 42 ),
			 139 => array( 168, 380 ),
		);

		$ret = $ebay_image_sizes;
		if ( 'all' !== $what ) {
			$ret = isset($ebay_image_sizes["$what"]) ? $ebay_image_sizes["$what"] : array();
			//return $ret;
		}
		return $ret;
	}
}
} // end class exists!