summaryrefslogtreecommitdiff
path: root/examples/shop/config.php
diff options
context:
space:
mode:
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;
+}
+
+?>