summary refs log tree commit diff stats
path: root/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions.php')
-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 }