Because it uses the same code layout - heres a REALLY quick and dodgy hack to display
Private Messages
PHP Code:
<?PHP require('./global.php');?>
<html>
<head>
<title>Display pvt messages</title>
<meta name="description" content="">
<meta name="keywords" content="">
<style>
<!--
h1 { font-family: Verdana; font-size: 14pt; color: #666666 }
h2 { font-family: Verdana; font-size: 12pt; color: #666666 }
body { font-family: Verdana; font-size: 8pt; color: #666666 }
p { font-family: Verdana; font-size: 8pt; color: #666666 }
-->
</style>
</head>
<body>
<?PHP
/* REALLY dodgy script that shows pvt messages.
I haven't spent any time refining this so play with it if you will.
Again simply save to your forums directory.
You might like to change it so it adds author id's but I was simply more curious
as to what was being discussed not necessarily by who.
Brought to you by [url]http://www.phphacks.com[/url] ;)
*/
echo "<h1>Private Messages</h1>";
$result = mysql_query("SELECT DISTINCT message, title FROM privatemessage ORDER BY title");
echo "<b>Number of Pvt Messages: </b>".mysql_num_rows($result)."<br><br>\r\n";
while($row = mysql_fetch_assoc($result))
{
echo "<b>".$row["title"]."</b><br>".$row["message"]."<br><br>\r\n";
}
?>
</body>
</html>