summaryrefslogtreecommitdiff
path: root/src/frontend_blog/essay_cc-fulfillment.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend_blog/essay_cc-fulfillment.php')
-rw-r--r--src/frontend_blog/essay_cc-fulfillment.php14
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();
?>