amazOOP amazOOP
[ class tree: amazOOP ] [ index: amazOOP ] [ all elements ]

Source for file config.inc.php

Documentation is available at config.inc.php

  1. <?php
  2. /**
  3. * This file contains all, program settings for amazOOP.
  4. *
  5. * An average user wouldn't want to touch this file. But I encourage
  6. * you to look at it if you want to understand exactly how amazOOP
  7. * works and/or if you want to contribute to its development.
  8. *
  9. * @author Mauricio Diaz <madd0@users.sourceforge.net>
  10. * @copyright 2004 (c) Mauricio Diaz Orlich
  11. * @license http://www.gnu.org/licenses/gpl.html GNU Public License
  12. * @version 0.3RC2
  13. *
  14. * @package amazOOP
  15. * @subpackage Configuration
  16. */
  17.  
  18. /**
  19. * For security, only {@link aq.php} should be included in your pages
  20. */
  21. defined( '_AMAZOOP' ) or die( 'Direct Access to this location is not allowed.' );
  22.  
  23. /**
  24. * The version of amazOOP you are using
  25. * @global string _AMAZOOP_VERSION
  26. */
  27. define('_AMAZOOP_VERSION', '0.3RC2');
  28.  
  29. /**
  30. * Addresses to different Amazon Web Services servers.
  31. * French and Canadian Web Services aren't running yet.
  32. * @global array $_AMAZOOP_SITES
  33. * @access private
  34. */
  35. $_AMAZOOP_SITES = array( "us" => "http://xml.amazon.com/onca/xml3?f=xml",
  36. "uk" => "http://xml-eu.amazon.com/onca/xml3?f=xml&locale=uk",
  37. "de" => "http://xml-eu.amazon.com/onca/xml3?f=xml&locale=de",
  38. "jp" => "http://xml.amazon.co.jp/onca/xml3?f=xml&locale=jp"
  39. );
  40.  
  41. /**
  42. * Currently supported search types.
  43. * These are simply "nicknames" for the search types officially supported by AWS,
  44. * in order to use shorter arguments.
  45. * You MUST use amazOOPs search types instead of AWS's when you query
  46. * AWS through amazOOP.
  47. *
  48. * @global array $_AMAZOOP_SEARCH_TYPES
  49. *
  50. * @todo Exchange Searches
  51. * @todo Listmania! Searches
  52. * @todo Marketplace Searches
  53. * @todo Power Searches
  54. * @todo Seller Profile Searches
  55. * @todo Text Stream Searches
  56. * @todo Third Party Searches
  57. * @todo Wishlist Searches
  58. *
  59. * @access private
  60. */
  61. $_AMAZOOP_SEARCH_TYPES = array( "Actor" => "ActorSearch",
  62. "Artist" => "ArtistSearch",
  63. "ASIN" => "AsinSearch",
  64. "ISBN" => "AsinSearch",
  65. "Author" => "AuthorSearch",
  66. "Blended" => "BlendedSearch",
  67. "BrowseNode" => "BrowseNodeSearch",
  68. "Director" => "DirectorSearch",
  69. "Keywords" => "KeywordSearch",
  70. "ListMania" => "ListManiaSearch",
  71. "Manufacturer" => "ManufacturerSearch",
  72. "Power" => "PowerSearch",
  73. "Similarity" => "SimilaritySearch",
  74. "UPC" => "UpcSearch",
  75. "Wishlist" => "WishlistSearch"
  76. );
  77.  
  78.  
  79.  
  80. /**
  81. * Sorting options for different product types.
  82. * This isn't very well documented in the SDK so I can't document it,
  83. * or implement it correctly...
  84. *
  85. * @global array $_AMAZOOP_SORTING
  86. *
  87. * @access private
  88. */
  89. $_AMAZOOP_SORTING = array( "books" => array( "FeaturedItems" => "+pmrank",
  90. "Bestselling" => "+salesrank",
  91. "Reviews" => "+reviewrank",
  92. "PriceInc" => "+pricerank",
  93. "PriceDec" => "+inverse-pricerank",
  94. "Date" => "+daterank",
  95. "AlphaInc" => "+titlerank",
  96. "AlphaDec" => "-titlerank"),
  97.  
  98. "software" => array( "FeaturedItems" => "+pmrank",
  99. "Bestselling" => "+salesrank",
  100. "AlphaInc" => "+titlerank",
  101. "PriceDec" => "+price",
  102. "PriceInc" => "-price"),
  103.  
  104. "garden" => array( "FeaturedItems" => "+psrank",
  105. "Bestselling" => "+salesrank",
  106. "AlphaInc" => "+titlerank",
  107. "AlphaDec" => "-titlerank",
  108. "ManufacturerInc" => "+manufactrank",
  109. "ManufacturerDec" => "-manufactrank",
  110. "PriceInc" => "+price",
  111. "PriceDec" => "-price"),
  112.  
  113. "tools" => array( "FeaturedItems" => "+psrank",
  114. "Bestselling" => "+salesrank",
  115. "AlphaInc" => "+titlerank",
  116. "AlphaDec" => "-titlerank",
  117. "ManufacturerInc" => "+manufactrank",
  118. "ManufacturerDec" => "-manufactrank",
  119. "PriceInc" => "+price",
  120. "PriceDec" => "-price"),
  121.  
  122. "photo" => array( "FeaturedItems" => "+pmrank",
  123. "Bestselling" => "+salesrank",
  124. "AlphaInc" => "+titlerank",
  125. "AlphaDec" => "-titlerank"),
  126.  
  127. "pc-hardware" => array( "FeaturedItems" => "+psrank",
  128. "Bestselling" => "+salesrank",
  129. "AlphaInc" => "+titlerank",
  130. "AlphaDec" => "-titlerank"),
  131.  
  132. "videogames" => array( "FeaturedItems" => "+pmrank",
  133. "Bestselling" => "+salesrank",
  134. "AlphaInc" => "+titlerank",
  135. "PriceInc" => "+price",
  136. "PriceDec" => "-price"),
  137.  
  138. "music" => array( "FeaturedItems" => "+psrank",
  139. "Bestselling" => "+salesrank",
  140. "Artist" => "+artistrank",
  141. "Date" => "+orig-rel-date",
  142. "AlphaInc" => "+titlerank"),
  143.  
  144. "office-products" => array( "FeaturedItems" => "+pmrank",
  145. "Bestselling" => "+salesrank",
  146. "AlphaInc" => "+titlerank",
  147. "AlphaDec" => "-titlerank",
  148. "PriceInc" => "+price",
  149. "PriceDec" => "-price",
  150. "Review" => "+reviewrank"),
  151.  
  152. "vhs" => array( "FeaturedItems" => "+psrank",
  153. "Bestselling" => "+salesrank",
  154. "AlphaInc" => "+titlerank"),
  155.  
  156. "electronics" => array( "FeaturedItems" => "+pmrank",
  157. "Bestselling" => "+salesrank",
  158. "AlphaInc" => "+titlerank",
  159. "Review" => "+reviewrank"),
  160.  
  161. "kitchen" => array( "FeaturedItems" => "+pmrank",
  162. "Bestselling" => "+salesrank",
  163. "AlphaInc" => "+titlerank",
  164. "AlphaDec" => "-titlerank",
  165. "ManufacturerInc" => "+manufactrank",
  166. "ManufacturerDec" => "-manufactrank",
  167. "PriceInc" => "+price",
  168. "PriceDec" => "-price"),
  169.  
  170. "toys" => array( "FeaturedItems" => "+pmrank",
  171. "Bestselling" => "+salesrank",
  172. "PriceInc" => "+pricerank",
  173. "PriceDec" => "+inverse-pricerank",
  174. "AlphaInc" => "+titlerank"),
  175.  
  176. "all" => array( "Bestselling" => "+salesrank",
  177. "AlphaInc" => "+titlerank")
  178. );
  179. /**
  180. * An array containing the developer's associate IDs for each of
  181. * Amazon's sites.
  182. * These IDs are only used if you request an ID for a site for which
  183. * you have not setup an ID of your own.
  184. *
  185. * @global array $_AMAZOOP_MADD0S_IDS
  186. *
  187. * @access private
  188. */
  189. $_AMAZOOP_MADD0S_IDS = array( 'us' => 'madd0inc',
  190. 'uk' => 'madd0mall',
  191. 'fr' => 'themadd0mall-21',
  192. 'de' => 'dermadd0mall',
  193. 'jp' => 'themadd0mall-22',
  194. 'ca' => 'themadd0mall-20'
  195. );
  196.  
  197. /**
  198. * Contains an array with the IDs of thrid party sellers
  199. * @access private
  200. */
  201. require_once("stores.inc.php");
  202. /**
  203. * Contains an array with the amazOOP categories
  204. * @access private
  205. */
  206. require_once("categories.inc.php");
  207. /**
  208. * Contains the user's configuration settings
  209. * @access private
  210. */
  211. require_once("userdata.inc.php");
  212. /**
  213. * Contains an array valid AWS modes
  214. * @access private
  215. */
  216. require_once("modes.inc.php");
  217. /**
  218. * Contains an array with settings for RSS feeds
  219. * @access private
  220. */
  221. require_once("rss.inc.php");
  222. ?>
 
Documentation generated on Sat, 21 Aug 2004 17:40:25 +0200 by phpDocumentor 1.3.0RC3
hosted by
SourceForge.net Logo