summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rwxr-xr-xpages/blog.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/pages/blog.php b/pages/blog.php index c3f656b..ab198a0 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -105,6 +105,27 @@ if (isset($_GET['post']))
105 { 105 {
106 $template->display(); 106 $template->display();
107 } 107 }
108
109 $getpings = "SELECT * FROM pingbacks WHERE post_id = " . $getpost3['id'];
110 $getpings2 = mysql_query($getpings);
111 $i=0;
112 while ($getpings3[$i] = mysql_fetch_array($getpings2))
113 {
114 if ($i==0)
115 {
116 $template = new FITemplate('pingbacks');
117 }
118
119 $template->adds_block('PINGBACK', array( 'TITLE' => $getpings3[$i]['title'],
120 'URL' => $getpings3[$i]['url'],
121 'DATE' => date('F d<\S\U\P>S</\S\U\P> Y', strtotime($getpings3[$i]['pubDate']))));
122 $i++;
123 }
124
125 if ($i > 0)
126 {
127 $template->display();
128 }
108 } else { 129 } else {
109 generateError('404'); 130 generateError('404');
110 } 131 }