+ 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:
@@ -4,7 +4,7 @@
|
||||
//private messsages cache - v1.0 Alpha 2
|
||||
//
|
||||
$sql = "SELECT `u_id`,`nick`,`rank` FROM `".USERS_TABLE."`";
|
||||
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain forums information');
|
||||
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain forums information');
|
||||
$user['count']= DataBase::num_rows($query);
|
||||
|
||||
while($result = DataBase::fetch($query))
|
||||
@@ -52,7 +52,7 @@ switch($_GET['submode'])
|
||||
}
|
||||
}
|
||||
|
||||
$query = DataBase::sql_query($sql,'CRITICAL','Could not obtain messages information');
|
||||
$query = DataBase::sql_query($sql,CRITICAL,'Could not obtain messages information');
|
||||
$count = DataBase::num_rows($query);
|
||||
|
||||
if ($count==0)
|
||||
|
||||
@@ -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&submode=sentbox" class="navigator">'.$lng['sentbox'].'</a>' : '<a href="pms.php?mode=folder&submode=inbox" class="navigator">'.$lng['inbox'].'</a>';
|
||||
|
||||
@@ -8,7 +8,7 @@ if ((isset($_POST['textedit'])) and (isset($_POST['nmsg'])) and (isset($_POST['u
|
||||
{
|
||||
$nick = strip_tags($_POST['username']);
|
||||
$sql = "SELECT * FROM `".USERS_TABLE."` WHERE `nick`='$nick'";
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql, 'CRITICAL','Could not obtain user information.'));
|
||||
$result = DataBase::fetch(DataBase::sql_query($sql, CRITICAL,'Could not obtain user information.'));
|
||||
if ($result['u_id']!='')
|
||||
{
|
||||
$_POST['textedit'] = Secure::TagsReplace($_POST['textedit']);
|
||||
|
||||
Reference in New Issue
Block a user