diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-02-27 16:06:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-02-27 16:06:24 +0100 |
commit | 9bc6e42b63e352cfec2afcd2ff66939f6628fd7e (patch) | |
tree | 169fa7a35a26d19a8bc9828341b1e03aa2dd8ec9 /examples/shop/config.php | |
parent | da09a394b3eab66d2a0a649df836b0ab98b056ad (diff) | |
parent | 1b46587b4d36bec34d502bb0470dd303e4b49dd5 (diff) | |
download | merchant-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.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; +} + +?> |