diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-01-24 18:22:56 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-01-24 18:22:56 +0100 |
commit | 1f56da974badbf2b0bb23c891ddf0935e126fe18 (patch) | |
tree | dcff3f206921aa6c05e24bf83f1f2cc83fe44e24 /src/frontend/fulfillment.php | |
parent | 7e2f81ed3130584a711b107bcdf52fcae297b1b8 (diff) | |
download | merchant-1f56da974badbf2b0bb23c891ddf0935e126fe18.tar.gz merchant-1f56da974badbf2b0bb23c891ddf0935e126fe18.tar.bz2 merchant-1f56da974badbf2b0bb23c891ddf0935e126fe18.zip |
properly concatenate
Diffstat (limited to 'src/frontend/fulfillment.php')
-rw-r--r-- | src/frontend/fulfillment.php | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/frontend/fulfillment.php b/src/frontend/fulfillment.php index 32f3c0cd..6d49971b 100644 --- a/src/frontend/fulfillment.php +++ b/src/frontend/fulfillment.php @@ -40,9 +40,6 @@ */ -$cli_debug = false; -$backend_test = true; - function generate_msg ($link){ $msg = "<p>Thanks for donating to " . $_SESSION['receiver'] . ".</p>"; if (false != $link) @@ -50,22 +47,17 @@ function generate_msg ($link){ return $msg; } -if ($_GET['cli_debug'] == 'yes') - $cli_debug = true; +session_start(); -if ($_GET['backend_test'] == 'no') +if (!isset ($_SESSION['payment_ok'])) { - $cli_debug = true; - $backend_test = false; + echo "<p>Please come here after a successful payment!</p>"; } - -session_start(); - -if (! isset ($_SESSION['payment_ok'])) - echo "<p>Please land here after a successful payment!</p>"; -else{ +else +{ $news = false; - switch ($_SESSION['receiver']){ + switch ($_SESSION['receiver']) + { case "Taler": $news = "https://taler.net/news"; break; |