blob: 5026c2a9589291c71a9ade2b55ed3d55bf5617d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
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)
{
http_response_code(400);
echo "Bad request (no article specified)";
return;
}
$article_doc = get_article($article);
echo $article_doc->saveHTML();
?>
|