diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2013-01-13 21:42:20 +0000 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2013-01-13 21:42:20 +0000 |
commit | 784d39145f3c395c0cf6f742b8414f1c215736ec (patch) | |
tree | 2c0b71675052a99ff7d358a2f30d361f3aa8da4c /viewpost.php | |
parent | d1d90fe7532e615912e4bce9c623a9d74e215cd5 (diff) |
Removed inflexible top.php
Diffstat (limited to 'viewpost.php')
-rw-r--r-- | viewpost.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/viewpost.php b/viewpost.php index 0804551..617923a 100644 --- a/viewpost.php +++ b/viewpost.php @@ -3,9 +3,27 @@ header("location: $blogRoot"); exit(0); } + require("settings.php"); +?> + +<!DOCTYPE html> +<html> + +<head> + <title><?php echo $blogTitle; ?></title> + <link rel="stylesheet" type="text/css" href="<?php echo $blogRoot; ?>styles.css" /> +</head> - require("top.php"); +<body> +<div id="title"> +<h1><?php echo $blogHead; ?></h1> +<a class="toplink" href="<?php echo $blogRoot; ?>">Home</a> +<a class="toplink" href="<?php echo $blogRoot; ?>archives.php">Archives</a> +<a class="toplink" href="<?php echo $blogRoot; ?>post.php">Post</a> +</div> + +<?php $file = $_GET['post']; echo "<div>\n"; echo "<a class=\"title\" href=\"{$blogRoot}post/" . urlencode($file) . "\">$file <span id=\"perma\">[Permalink]</span></a> "; |