+ 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

@@ -50,12 +50,12 @@ class Pms
function DeleteMsgUser($mid)
{
$sql = "DELETE FROM `".PM_INBOX_TABLE."` WHERE `m_id`='$mid'";
DataBase::sql_query($sql,'GENERAL','Could not delete message in inbox');
DataBase::sql_query($sql,GENERAL,'Could not delete message in inbox');
}
function DeleteMsgAuthor($mid)
{
$sql = "DELETE FROM `".PM_SENTBOX_TABLE."` WHERE `m_id`='$mid'";
DataBase::sql_query($sql,'GENERAL','Could not delete message in sentbox');
DataBase::sql_query($sql,GENERAL,'Could not delete message in sentbox');
}
}
@@ -66,14 +66,14 @@ class NewMessage
$last = DataBase::new_id(PM_INBOX_TABLE);
$time = time();
$sql = "INSERT INTO `".PM_INBOX_TABLE."` VALUES ('$last', '$uid', '$name', '$text', '$time', '$unid','0')";
DataBase::sql_query($sql,'GENERAL','Could not add new message at inbox');
DataBase::sql_query($sql,GENERAL,'Could not add new message at inbox');
}
function AddToSentbox($text, $name, $unid, $uid)
{
$last=DataBase::new_id(PM_SENTBOX_TABLE);
$time = time();
$sql = "INSERT INTO `".PM_SENTBOX_TABLE."` VALUES ('$last', '$uid', '$name', '$text', '$time', '$unid')";
DataBase::sql_query($sql,'GENERAL','Could not add new message at inbox');
DataBase::sql_query($sql,GENERAL,'Could not add new message at inbox');
}
}
?>