aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/fulfillment.php
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-01-24 18:22:56 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-01-24 18:22:56 +0100
commit1f56da974badbf2b0bb23c891ddf0935e126fe18 (patch)
treedcff3f206921aa6c05e24bf83f1f2cc83fe44e24 /src/frontend/fulfillment.php
parent7e2f81ed3130584a711b107bcdf52fcae297b1b8 (diff)
downloadmerchant-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.php22
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;