summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-11-28 13:57:16 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-11-28 13:57:16 -0500
commit41ac5bc9d034338acf12ab21ef95b5189223b4de (patch)
tree642cd0bb19d70a0bf8d2ef1f94dc48c221ff2931
parente7e54aa96806d55204812f9e6ca5fa06e2943fa2 (diff)
downloadfourisland-41ac5bc9d034338acf12ab21ef95b5189223b4de.tar.gz
fourisland-41ac5bc9d034338acf12ab21ef95b5189223b4de.tar.bz2
fourisland-41ac5bc9d034338acf12ab21ef95b5189223b4de.zip
Fixed home blog links
-rwxr-xr-xpages/blog.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pages/blog.php b/pages/blog.php index d4e95c1..59af93d 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -30,13 +30,14 @@ $hatNav = array( array( 'title' => 'Archive',
30 'icon' => '16-file-archive')); 30 'icon' => '16-file-archive'));
31 31
32$template = new FITemplate('post'); 32$template = new FITemplate('post');
33$template->adds_block('INTERNAL',array('exi'=>1));
34$template->add('IFXAMP', $xhtml ? '&amp;' : '&'); 33$template->add('IFXAMP', $xhtml ? '&amp;' : '&');
35$template->add('IFXLT', $xhtml ? '&lt;' : '<'); 34$template->add('IFXLT', $xhtml ? '&lt;' : '<');
36$template->add('IFXGT', $xhtml ? '&gt;' : '>'); 35$template->add('IFXGT', $xhtml ? '&gt;' : '>');
37 36
38if (isset($_GET['post'])) 37if (isset($_GET['post']))
39{ 38{
39 $template->adds_block('INTERNAL',array('exi'=>1));
40
40 $getpost = "SELECT * FROM updates WHERE slug = \"" . urldecode($_GET['post']) . "\""; 41 $getpost = "SELECT * FROM updates WHERE slug = \"" . urldecode($_GET['post']) . "\"";
41 $getpost2 = mysql_query($getpost); 42 $getpost2 = mysql_query($getpost);
42 $getpost3 = mysql_fetch_array($getpost2); 43 $getpost3 = mysql_fetch_array($getpost2);
@@ -126,6 +127,8 @@ if (isset($_GET['post']))
126 generateError('404'); 127 generateError('404');
127 } 128 }
128} else { 129} else {
130 $template->adds_block('EXTERNAL',array('exi'=>1));
131
129 $curID = 0; 132 $curID = 0;
130 133
131 $gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; 134 $gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";