summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rwxr-xr-xpages/blog.php4
-rw-r--r--pages/viewPost.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/pages/blog.php b/pages/blog.php index 59af93d..1024ebb 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -67,7 +67,7 @@ if (isset($_GET['post']))
67 } 67 }
68 68
69 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], 69 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'],
70 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 70 'YEARID' => (((date('Y',strtotime($getpost3['pubDate']))-2007) % 4) + 1),
71 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 71 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
72 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 72 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
73 'DAY' => date('d',strtotime($getpost3['pubDate'])), 73 'DAY' => date('d',strtotime($getpost3['pubDate'])),
@@ -166,7 +166,7 @@ if (isset($_GET['post']))
166 } 166 }
167 167
168 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'], 168 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'],
169 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 169 'YEARID' => (((date('Y',strtotime($getpost3['pubDate']))-2007) % 4) + 1),
170 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 170 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
171 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 171 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
172 'DAY' => date('d',strtotime($getpost3['pubDate'])), 172 'DAY' => date('d',strtotime($getpost3['pubDate'])),
diff --git a/pages/viewPost.php b/pages/viewPost.php index 5885bc9..0d84df7 100644 --- a/pages/viewPost.php +++ b/pages/viewPost.php
@@ -36,7 +36,7 @@ if (!isAdmin())
36 if ($getpost3['id'] == $_GET['id']) 36 if ($getpost3['id'] == $_GET['id'])
37 { 37 {
38 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], 38 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'],
39 'YEARID' => ((date('Y')-2006) % 4), 39 'YEARID' => (((date('Y')-2007) % 4) + 1),
40 'DATE' => date('F jS Y \a\\t g:i:s a'), 40 'DATE' => date('F jS Y \a\\t g:i:s a'),
41 'MONTH' => date('M'), 41 'MONTH' => date('M'),
42 'DAY' => date('d'), 42 'DAY' => date('d'),