$fonttag$boardname - Private messages";
    print "$header$smallfont$top$tblstart
	$tccell1>Couldn't get the private message. Either this message wasn't sent to you, or you are not logged in.
	 ".redirect('private.php','return to the private message box',0);
  }else{
    $top="";
    if($msg[userto]==$loguserid) mysql_query("UPDATE pmsgs SET msgread=1 WHERE id=$id");
    loadtlayout();
    $post=$user;
    $post[uid]=$user[id];
    $post[date]=$msg[date];
    $post[headid]=$msg[headid];
    $post[signid]=$msg[signid];
    $post[text]=$msg[text];
    $post[tagval]=$msg[tagval];
    if($loguser[viewsig]==2){
	$post[headtext]=$user[postheader];
	$post[signtext]=$user[signature];
    }else{
	$post[headtext]=$msg[headtext];
	$post[signtext]=$msg[signtext];
    }
    $quote="Reply";
    $edit=" | Delete";
    if($isadmin) $ip=($edit?' | ':'')."IP: $msg[ip]";
    print $header.$top.$tblstart.threadpost($post,1);
  }
  print "$tblend$top$footer";
  printtimedif($startingtime);
?> |