<?php
//=================================================================\\
// constants.php v1.1 \\
//----------------------------------------------------------------------------------------------------------------------\\
// This file is part of Accessories Me PHP Affiliate Script. \\
//----------------------------------------------------------------------------------------------------------------------\\
// File purpose: Contains values unlikely to change throughout the execution of main scripts \\
//-----------------------------------------------------------------------------------------------------------------------\\
// COPYRIGHT: (C) 2004, 2005 Len Johnson \\
// Website: http://www.accessories.me.uk \\
// Email: hide@address.com \\
// Mail: GB WEBS, 4 Leominster Walk, West Midlands, B45 9SW, UK \\
// Support: http://www.accessories.me.uk/forum-2.htm \\
//------------------------------------------------------------------------------------------------------------------------\\
// DONATIONS: If you have found this script useful you can make a donation to support \\
// it's continued development at http://www.accessories.me.uk/about12.htm \\
//------------------------------------------------------------------------------------------------------------------------\\
// COPYING/LICENSE: Accessories Me PHP Affiliate Script is free software; \\
// you can redistribute it and/or modify it under the terms of the GNU General Public License \\
// as published by the Free Software Foundation; either version 2 \\
// of the License, or (at your option) any later version. See LICENSE.TXT \\
//------------------------------------------------------------------------------------------------------------------------\\
// Accessories Me PHP Affiliate Script is distributed in the hope that it will be useful, \\
// but WITHOUT ANY WARRANTY; \\
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \\
// See the GNU General Public License for more details. \\
//-------------------------------------------------------------------------------------------------------------------------\\
// You should have received a copy of the GNU General Public License along with this program; \\
// if not, write to: \\
// Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. \\
// http://www.opensource.org/licenses/gpl-license.html \\
//-------------------------------------------------------------------------------------------------------------------------\\
// CHANGELOG \\
// 03-02-05 Added searchindex and browsenode online references \\
//====================================================================\\
define('CACHE', 'cache');
// Enter the full path to your cache directory
// e.g /home/YOUR_SITENAME/public_html/STORE/cache/
// Ensure it ends with a trailing slash
$cachedir = 'cache/';
define('ASSOCIATEID', 'XXXXXXXXXXXXXX'); // Put your associate id here
// Put path to Amazon locale here. Default is US
define('ECS4_AMAZON_URL', 'http://webservices.amazon.com/onca/xml?Service=AWSECommerceService');
// Other options
// UK: http://webservices.amazon.co.uk/onca/xml?Service=AWSECommerceService
// FR: http://webservices.amazon.fr/onca/xml?Service=AWSECommerceService
// DE: http://webservices.amazon.de/onca/xml?Service=AWSECommerceService
// JP: http://webservices.amazon.co.jp/onca/xml?Service=AWSECommerceService
// CA: http://webservices.amazon.ca/onca/xml?Service=AWSECommerceService
// Enter default SearchIndex for homepage list available at: http://www.accessories.me.uk/about17.htm
define('DEFAULT_SEARCHINDEX', 'PCHardware');
// Enter default BrowseNode for homepage. Lookup tool available at: http://www.search-more-of-the-web.org/amazon-nodes.php
define('DEFAULT_BROWSENODE', '13660271');
// More cache settings
$cachetime = 86400; // Seconds to cache files for
$cacheext = 'cache'; // Extension to give cached files (usually cache, htm, txt)
$cachepage = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Requested page
$cachefile = $cachedir . md5($page) . '.' . $cacheext; // Cache file to either load or create
// Site Title
$sTitle = "iPod Store";
$sNoimage = "picts/no-img-avail.png"; // Url for your image not available
$sLogoImage = "picts/logo.png"; // Url for your website logo
$arItems = array();
$itemCount = 0;
// give an error if software is run with the dummy ASSOCIATEID
if(ASSOCIATEID=='XXXXXXXXXXXXXX')
die ('You need to sign up for an Amazon.com ASSOCIATEID. Visit <a href =
"http://associates1.amazon.com/exec/panama/associates/apply/">Amazon</a>
to get one. Then find and replace XXXXXXXXXXXXXX in constants.php');
?>