From c237b016e60c6073eeee14f08463f20c47169a79 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Feb 2011 16:21:14 +1100 Subject: [PATCH] Better way of loading configuration --- inc/config.php | 1 + inc/functions.php | 38 ++++++++++++++++++++++++++++++++++++++ mod.php | 4 ---- post.php | 4 ---- 4 files changed, 39 insertions(+), 8 deletions(-) diff --git a/inc/config.php b/inc/config.php index c60ecace..5d798581 100644 --- a/inc/config.php +++ b/inc/config.php @@ -173,6 +173,7 @@ $config['file_index'] = 'index.html'; $config['file_page'] = '%d.html'; $config['file_mod'] = 'mod.php'; + $config['file_post'] = 'post.php'; // Multi-board (%s is board abbreviation) $config['board_path'] = '%s/'; diff --git a/inc/functions.php b/inc/functions.php index cc2a02f8..1c9f6b78 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1,4 +1,42 @@ $v) { diff --git a/mod.php b/mod.php index 40244b4a..ff7db7fb 100644 --- a/mod.php +++ b/mod.php @@ -1,10 +1,6 @@