Permalink
Browse files

Fixed 'viewing' private messages.

  • Loading branch information...
phpcodex committed Jun 29, 2017
1 parent f7540d1 commit fea420a59b13d29f25f524677f8d00118ac60ad0
Showing with 4 additions and 3 deletions.
  1. +4 −3 viewpm.php
View
@@ -71,8 +71,9 @@
}
if (!isset($pmRec) || $pmRec == "" || !is_array($pmRec)) $pmRec = $PrivMsg->get("CuBox", $_GET["id"]);
$user = $tdb->get("users", $pmRec[0][$users_id]);
if ($_GET["section"] == "inbox") {
if(in_array($_COOKIE['id_env'], getUsersPMBlockedList($pmRec[0][$users_id]))) $reply_disabled = " DISABLED";
if(in_array($_COOKIE['id_env'], PrivateMessaging::getUsersPMBlockedList($pmRec[0][$users_id]))) $reply_disabled = " DISABLED";
else $reply_disabled = '';
if($user[0]['level'] > 1) $block_disabled = " DISABLED";
else $block_disabled = "";
@@ -105,7 +106,7 @@
echo "
<tr>
<th style='width:15%;'><div class='post_name'><a href='profile.php?action=get&id=".$user[0]["id"]."'>".$user[0]["user_name"]."</a></div></th>
<th style='width:85%;'><div style='float:left;'><img src='".SKIN_DIR."/icons/post_icons/".$pmRec[0]["icon"]."' alt='' title='' /></div><div style='line-height:15px;margin-right:4px;'>&nbsp;&nbsp;PM Sent: ".gmdate("M d, Y g:i:s a", user_date($pmRec[0]["date"]))."</div></th>
<th style='width:85%;'><div style='float:left;'><img src='".SKIN_DIR."/icons/post_icons/".$pmRec[0]["icon"]."' alt='' title='' /></div><div style='line-height:15px;margin-right:4px;'>&nbsp;&nbsp;PM Sent: ".gmdate("M d, Y g:i:s a", DateCustom::user_date($pmRec[0]["date"]))."</div></th>
</tr>
<tr>
<td class='area_1' valign='top'>";
@@ -117,7 +118,7 @@
<strong>Posts:</strong> ".$user[0]["posts"]."
<br />
<strong>Registered:</strong><br />
".gmdate("Y-m-d", user_date($user[0]["date_added"]))."
".gmdate("Y-m-d", DateCustom::user_date($user[0]["date_added"]))."
</div>
<br />
<div class='post_info_extra'>";

0 comments on commit fea420a

Please sign in to comment.