Modified:
trunk/upload/plugins/parasy/now.inc.php
trunk/upload/templates/babel/topic.htm
Log:
Bug Bug Bug
Modified: trunk/upload/plugins/parasy/now.inc.php
==============================================================================
--- trunk/upload/plugins/parasy/now.inc.php (original)
+++ trunk/upload/plugins/parasy/now.inc.php Sat May 10 23:44:38 2008
@@ -21,7 +21,7 @@
}
$navtitle = "��ҵĴ�ʱ�˿� - ";
$title = "��ҵĴ�ʱ�˿�...";
- $rsshead = '<link rel="alternate" type="application/rss+xml" title="Nowhere Everyone RSS" href="http://saicn.com/bbs/feed/now" />';
+ $rsshead = '<link rel="alternate" type="application/rss+xml" title="Nowhere Everyone RSS" href="http://'.$_SERVER[HTTP_HOST].$bbsdir.'/feed/now" />';
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}plugin_now");
$nowcount = $db->result($query, 0);
$threadmaxpages = 999;
@@ -569,6 +569,7 @@
imagettftext($image[1], 8, 0, 305, 29, 0, $font, $now_icon);
}
//imagepng($image[1]);
- imagepng($image[1],'./images/nowimg/'.$user_nick.'.png');
+ ImagePNG($image[1],'./images/nowimg/'.$user_nick.'.png');
+ ImageDestroy($image[1]);
}
?>
Modified: trunk/upload/templates/babel/topic.htm
==============================================================================
--- trunk/upload/templates/babel/topic.htm (original)
+++ trunk/upload/templates/babel/topic.htm Sat May 10 23:44:38 2008
@@ -16,11 +16,11 @@
<!--{else}-->
<!--{eval $thread[replies] = $thread[replies].' ƪ�ظ�';}-->
<!--{/if}-->
-<!--{eval $hits = $hits + $thread['views'];}-->
+<!--{eval $topic_hits = $topic_hits + $thread['views'];}-->
<!--{eval $replies = $replies + $thread['replies'];}-->
<li style="padding-bottom: 10px;"> <img src="$bbsdir/$thread[avatar]" alt="$thread[author]" align="absmiddle" class="portrait" /> <a href="$bbsdir/uid/$thread[authorid]" class="t">$thread[author]</a> �� <a href="$bbsdir/go/$thread[board_name]">$thread[name]</a> ������: <a href="viewthread.php?tid=$thread[tid]" style="color: $name_color" class="var">$thread[subject]</a> <span class="tip_i">... $thread[dateline] ��$thread[replies] ��$thread[views] ��</span></li>
<!--{/loop}-->
</ul>
<hr class="board" />
-<span class="tip">�� 100 ƪ����� $replies ƪ�ظ���������� $hits �� ...</span>
+<span class="tip">�� 100 ƪ����� $replies ƪ�ظ���������� $topic_hits �� ...</span>
{template footer}