+ Changed generating last post and post count in forum and topic.php

+ Deleted not used template file: post_add_body.tpl
+ Replaced MCP images

git-svn-id: https://svn.pioder.pl/uf-svn/uF@21 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
pioder
2009-05-03 21:00:21 +00:00
parent b1f37b6ea5
commit c2ba3eb804
70 changed files with 371 additions and 395 deletions

View File

@@ -18,7 +18,7 @@ class Forum
global $forum_config;
$forum = Topic::TopicInformation($tid,'f_id');
$all='';
$query = DataBase::sql_query("SELECT `name`, `f_id` FROM `".FORUMS_TABLE."` ORDER BY `f_id`",'GENERAL','Could not obtain forum information');
$query = DataBase::sql_query("SELECT `name`, `f_id` FROM `".FORUMS_TABLE."` ORDER BY `f_id`",GENERAL,'Could not obtain forum information');
while($t = DataBase::fetch($query))
{
@@ -38,7 +38,7 @@ class Forum
function PostsInForum($forum_name)
{
$sql = "SELECT count(*) as `p_id` FROM ".POSTS_TABLE." WHERE f_id='$forum_name'";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain posts information.');
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain posts information.');
$result = DataBase::fetch($query);
return $result['p_id'];
}
@@ -132,7 +132,7 @@ class Forum
function ForumInformation($fid, $inf)
{
$sql = "SELECT `f_id`, `$inf` FROM ".FORUMS_TABLE." WHERE f_id='$fid';";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain forum information.');
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain forum information.');
$result = DataBase::fetch($query);
$result = $result[$inf];
return $result;