diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-02-18 18:25:11 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-02-18 18:25:11 +0100 |
commit | 274723e3f9d02aaf5355724cdd05c75fb3f0738c (patch) | |
tree | 3bae7e5522e3ffe711fbe9b030f01409202dca14 /src/frontend_blog/essay_cc-fulfillment.php | |
parent | f1e49844fd16dc55247ad716a21b961b2e4ddfc3 (diff) | |
download | merchant-274723e3f9d02aaf5355724cdd05c75fb3f0738c.tar.gz merchant-274723e3f9d02aaf5355724cdd05c75fb3f0738c.tar.bz2 merchant-274723e3f9d02aaf5355724cdd05c75fb3f0738c.zip |
Unifying blog's _offer and _fulfillment sources
Diffstat (limited to 'src/frontend_blog/essay_cc-fulfillment.php')
-rw-r--r-- | src/frontend_blog/essay_cc-fulfillment.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/frontend_blog/essay_cc-fulfillment.php b/src/frontend_blog/essay_cc-fulfillment.php index 5026c2a9..ff154806 100644 --- a/src/frontend_blog/essay_cc-fulfillment.php +++ b/src/frontend_blog/essay_cc-fulfillment.php @@ -3,12 +3,6 @@ include '../frontend_lib/util.php'; include './blog_lib.php'; -session_start(); -if (!$_SESSION['cc_payment']) -{ - echo "No session active"; - die(); -} $article = get($_GET['article']); if (null == $article) { @@ -16,7 +10,11 @@ if (null == $article) echo "Bad request (no article specified)"; return; } -$article_doc = get_article($article); -echo $article_doc->saveHTML(); +session_start(); +$payments = &pull($_SESSION, "payments", array()); +$payments[$article] = "payed"; +$fulfillment_url = url_rel("essay_fulfillment.php"); +header("Location: $fulfillment_url"); +die(); ?> |