summary refs log tree commit diff stats
path: root/includes
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-11-28 13:47:25 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-11-28 13:47:25 -0500
commite7e54aa96806d55204812f9e6ca5fa06e2943fa2 (patch)
tree83ab29513e2cbe0146edc02d964f913bd77d915b /includes
parentfff164998dfbcb300d27df78ea6f7a5b2aa541cb (diff)
downloadfourisland-e7e54aa96806d55204812f9e6ca5fa06e2943fa2.tar.gz
fourisland-e7e54aa96806d55204812f9e6ca5fa06e2943fa2.tar.bz2
fourisland-e7e54aa96806d55204812f9e6ca5fa06e2943fa2.zip
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.
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/functions.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/functions.php b/includes/functions.php index dc5a549..efb3c13 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -399,15 +399,20 @@ function getRewriteURL()
399 } else { 399 } else {
400 if ($_GET['area'] == 'blog') 400 if ($_GET['area'] == 'blog')
401 { 401 {
402 if (isset($_GET['post']))
403 {
404 return '/blog/' . $_GET['post'] . '/';
405 } else {
406 return '/';
407 }
408 } else if ($_GET['area'] == 'archive')
409 {
402 if (isset($_GET['author'])) 410 if (isset($_GET['author']))
403 { 411 {
404 return '/blog/author/' . $_GET['author'] . '.php'; 412 return '/blog/author/' . $_GET['author'] . '.php';
405 } else if (isset($_GET['tag'])) 413 } else if (isset($_GET['tag']))
406 { 414 {
407 return '/blog/tag/' . $_GET['tag'] . '.php'; 415 return '/blog/tag/' . $_GET['tag'] . '.php';
408 } else if (isset($_GET['post']))
409 {
410 return '/blog/' . $_GET['post'] . '/';
411 } else { 416 } else {
412 return '/blog/'; 417 return '/blog/';
413 } 418 }