From e7e54aa96806d55204812f9e6ca5fa06e2943fa2 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 28 Nov 2009 13:47:25 -0500 Subject: Organized blog module Previously, welcome.php was always loaded if no module was specified. Because of this, the index page blog section was there, while the rest of the blog code (plus archive code) was in blog.php. Now, the all of the blog is in blog.php and all of the archive is in archive.php. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 83cdd99..79fce10 100755 --- a/index.php +++ b/index.php @@ -34,7 +34,7 @@ if (strpos($_SERVER['REQUEST_URI'],'index.php')) ob_start(); -$pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; +$pageName = basename($_GET['area']); if (file_exists('pages/' . $pageName . '.php')) { -- cgit 1.4.1