diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-02-24 09:41:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-02-24 09:41:40 +0100 |
commit | f91fa734c739671c3094a488def366febc2a208a (patch) | |
tree | 3fd547475f819e62cd5c79a44070a2f79461d556 /examples/shop/config.php | |
parent | 37d8bf6f436e98b760e1c265f400c349cd8ee4b0 (diff) | |
download | merchant-f91fa734c739671c3094a488def366febc2a208a.tar.gz merchant-f91fa734c739671c3094a488def366febc2a208a.tar.bz2 merchant-f91fa734c739671c3094a488def366febc2a208a.zip |
rename to match site names
Diffstat (limited to 'examples/shop/config.php')
-rw-r--r-- | examples/shop/config.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/shop/config.php b/examples/shop/config.php new file mode 100644 index 00000000..1680a9b5 --- /dev/null +++ b/examples/shop/config.php @@ -0,0 +1,19 @@ +<?php + +$host = $_SERVER["HTTP_HOST"]; + +switch ($host) { +case "shop.demo.taler.net": + $SHOP_CURRENCY = "KUDOS"; + break; +case "shop.test.taler.net": + $SHOP_CURRENCY = "PUDOS"; + break; +default: + http_response_code ($status_code); + echo "<p>Configuration error: No currency for domain $host</p>\n"; + die(); + break; +} + +?> |