+ 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

@@ -2,7 +2,7 @@
//smiles cache
$sql = "SELECT * FROM ".SMILES_TABLE."";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain emoticons information.');
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain emoticons information.');
$i = 1;
while($result = DataBase::fetch($query))
{
@@ -33,7 +33,7 @@ switch($_GET['submode'])
break;
}
}
$query = DataBase::sql_query($sql,'CRITICAL','Could not obtain messages information');
$query = DataBase::sql_query($sql,CRITICAL,'Could not obtain messages information');
$result = DataBase::fetch($query);
//if message exist....
if ($result['m_id']=='')
@@ -63,12 +63,12 @@ switch($_GET['submode'])
}
if ($_GET['submode']=='user')
{
DataBase::sql_query("UPDATE ".PM_INBOX_TABLE." SET `read`='1' WHERE `m_id`='$mid'", 'GENERAL', 'Could not update message.');
DataBase::sql_query("UPDATE ".PM_INBOX_TABLE." SET `read`='1' WHERE `m_id`='$mid'", GENERAL, 'Could not update message.');
}
$sql = "SELECT * FROM ".USERS_TABLE." WHERE `u_id`='".$result['u_n_id']."'";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain user information');
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain user information');
$user = DataBase::fetch($query);
$folder = ($_GET['submode']=='author') ? '<a href="pms.php?mode=folder&amp;submode=sentbox" class="navigator">'.$lng['sentbox'].'</a>' : '<a href="pms.php?mode=folder&amp;submode=inbox" class="navigator">'.$lng['inbox'].'</a>';