annotate web.php @ 2:eec825432669 default tip

parameterise db path
author Charlie Root
date Sun, 27 Jan 2019 14:51:23 -0500
parents d70fd5290b07
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
1 <?php
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
2 // Constants required for Amazon API requests
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
3
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
4 $Aassociates_id=
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
5 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
6 'uk' => 'bookwhack-21',
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
7 'us' => 'your02b-20',
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
8 'ca' => 'book009-20',
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
9 'de' => 'book04c-21',
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
10 'fr' => 'book07f-21',
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
11 );
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
12
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
13 $Aserver=
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
14 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
15 'ca' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
16 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
17 'ext' => 'ca' , //Canadian normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
18 'nor' => 'http://www.amazon.ca' , //Canadian normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
19 'xml' => 'http://xml.amazon.com' , //Canadian xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
20 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
21 'de' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
22 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
23 'ext' => 'de' , //German normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
24 'nor' => 'http://www.amazon.de' , //German normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
25 'xml' => 'http://xml-eu.amazon.com', //German xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
26 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
27 'fr' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
28 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
29 'ext' => 'fr' , //French normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
30 'nor' => 'http://www.amazon.fr' , //French normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
31 'xml' => 'http://xml-eu.amazon.com', //French xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
32 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
33 'jp' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
34 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
35 'ext' => 'jp' , //Japanese normal server, not co.jp!
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
36 'nor' => 'http://www.amazon.co.jp' , //Japanese normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
37 'xml' => 'http://xml.amazon.com' , //Japanese xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
38 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
39 'uk' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
40 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
41 'ext' => 'co.uk' , //UK normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
42 'nor' => 'http://www.amazon.co.uk' , //UK normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
43 'xml' => 'http://xml-eu.amazon.com', //UK xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
44 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
45 'us' =>
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
46 array(
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
47 'ext' => 'com' , //USA normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
48 'nor' => 'http://www.amazon.com' , //USA normal server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
49 'xml' => 'http://xml.amazon.com' , //USA xml server
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
50 ),
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
51 );
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
52 $public_key ="AKIAIHTNWC7L6LOUY4LQ";
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
53 $private_key="zWQlIzndJDtXNfxEXH7K7YR7hzv3u77lOcqfqPde";
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
54
d70fd5290b07 shared constants
Charlie Root
parents:
diff changeset
55 ?>