From 68056e6d92285e184518bc8c7130bb49767623f3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 Sep 2011 21:09:56 -0400 Subject: Move config into one config.php file, add an index file, spit out complete HTML files, use CSS --- make-post.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'make-post.php') diff --git a/make-post.php b/make-post.php index 200f853..2feff1c 100644 --- a/make-post.php +++ b/make-post.php @@ -1,8 +1,9 @@ '; echo ''; echo ''; echo ''; - exit(); + include('footer.php'); } $filename = $dir.'/'.rawurlencode($_POST['filename']); @@ -51,6 +52,7 @@ foreach ($lines as $line) { } if (!isset($_POST['q'])) { + include('header.php'); echo '
'; echo ''; echo ''; @@ -93,7 +95,9 @@ if (!isset($_POST['q'])) { } echo ''; echo '
'; + include('footer.php'); } else { + header('Content-type: text/plain; charset=utf-8'); $quotes = array(); foreach ($_POST['q'] as $reporter => $quote_id) { $quote = $reporters[$reporter][$quote_id]; -- cgit v1.2.3-54-g00ecf