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 /archives.php | |
parent | d1d90fe7532e615912e4bce9c623a9d74e215cd5 (diff) |
Removed inflexible top.php
Diffstat (limited to 'archives.php')
-rw-r--r-- | archives.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/archives.php b/archives.php index 3f29067..4a41f18 100644 --- a/archives.php +++ b/archives.php @@ -1,6 +1,24 @@ <?php - require("top.php"); + 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> + +<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 $ls = explode("\n", `ls -1t {$blogPosts}/`); foreach($ls as $file) { if (preg_match('/^\./', $file)) continue; |