+ Moved ACP link from footer to header
+ Added PMs limits + Replaced ACP frames to original DSF layout > Version 9.6.25 released. git-svn-id: https://svn.pioder.pl/uf-svn/uF@33 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -13,6 +13,22 @@ if ( !defined('IN_uF') )
|
||||
}
|
||||
class Pms
|
||||
{
|
||||
function PMCnt($uid = -1)
|
||||
{
|
||||
$uid = ($uid==-1) ? $_SESSION['uid'] : $uid;
|
||||
//private messages in inbox
|
||||
$sql = "SELECT COUNT(*) AS `cnt` FROM `".PM_INBOX_TABLE."` WHERE `u_id`='".$uid."'";
|
||||
$result = DataBase::sql_query($sql, GENERAL, 'Could not obtain count of pms in inbox');
|
||||
$row = DataBase::fetch($result);
|
||||
|
||||
//private messages in sentbox
|
||||
$sql = "SELECT COUNT(*) AS `cnt` FROM `".PM_SENTBOX_TABLE."` WHERE `u_id`='".$uid."'";
|
||||
$result = DataBase::sql_query($sql, GENERAL, 'Could not obtain count of pms in sentbox');
|
||||
$row2 = DataBase::fetch($result);
|
||||
|
||||
return array($row['cnt'], $row2['cnt']);
|
||||
}
|
||||
|
||||
function UserName($uid)
|
||||
{
|
||||
global $user;
|
||||
|
||||
Reference in New Issue
Block a user