summaryrefslogtreecommitdiff
path: root/examples/shop/config.php
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-02-27 16:06:24 +0100
committerChristian Grothoff <christian@grothoff.org>2016-02-27 16:06:24 +0100
commit9bc6e42b63e352cfec2afcd2ff66939f6628fd7e (patch)
tree169fa7a35a26d19a8bc9828341b1e03aa2dd8ec9 /examples/shop/config.php
parentda09a394b3eab66d2a0a649df836b0ab98b056ad (diff)
parent1b46587b4d36bec34d502bb0470dd303e4b49dd5 (diff)
downloadmerchant-9bc6e42b63e352cfec2afcd2ff66939f6628fd7e.tar.gz
merchant-9bc6e42b63e352cfec2afcd2ff66939f6628fd7e.tar.bz2
merchant-9bc6e42b63e352cfec2afcd2ff66939f6628fd7e.zip
Merge branch 'master' of ssh://taler.net/var/git/merchant
Diffstat (limited to 'examples/shop/config.php')
-rw-r--r--examples/shop/config.php19
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;
+}
+
+?>