summaryrefslogtreecommitdiff
path: root/src/frontend_blog/essay_cc-fulfillment.php
blob: 5122d384b06d457000eb128c60faa5c44ddaedf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
  include '../frontend_lib/util.php';
  include './blog_lib.php';

  $article = get($_GET['article']);
  if (null == $article){
    http_response_code(400);
    echo "Bad request (no article specified)";
    return;
  }

  session_start();
  $payments = &pull($_SESSION, "payments", array());
  $payments[$article] = "payed";
  $fulfillment_url = url_rel("essay_fulfillment.php");
  header("Location: $fulfillment_url");
  die();
?>