diff options
author | Andrew Dolgov <[email protected]> | 2011-04-11 16:41:01 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-11 16:41:01 +0400 |
commit | f4f0f80d2118437e5047ba266f92d7acb3c38fb7 (patch) | |
tree | fb15f179dcd68b55613394ad864455f1796de555 /backend.php | |
parent | ad92c6ac62903f3bb37f16048fedff44a2eb540d (diff) |
update HTMLPurifier; enable embedded flash video in articles
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend.php b/backend.php index cf80e0e37..9ed250cf5 100644 --- a/backend.php +++ b/backend.php @@ -210,6 +210,13 @@ array_push($articles, format_article($link, $id, false)); } else if ($mode == "zoom") { array_push($articles, format_article($link, $id, false, true, true)); + } else if ($mode == "raw") { + if ($_REQUEST['html']) header("Content-Type: text/html"); + + $article = format_article($link, $id, false); + print $article['id'] . "\n\n"; + print $article['content']; + return; } else { catchupArticleById($link, $id, 0); } |