/*
DirectTopics 2
http://www.directtopics.nl
http://forum.directtopics.nl
*/
include 'includes/include.inc.php';
if ($ingelogd == "0"){
redirect('index.php',0);
}
?>
echo $forumnaam; ?> - Inbox
top();
?>
Index / Inbox |
|
Titel |
Door |
Datum / Tijd |
If (mysql_num_rows(mysql_query("SELECT id FROM dt_pm WHERE voor = '".$memberid."'")) == "0"){
$vol = "0%";
?>
Je hebt geen priveberichten in je inbox staan. |
} else {
$header_select = mysql_query("SELECT * FROM dt_pm WHERE voor = '".$memberid."' ORDER BY id DESC LIMIT 0, 25");
$num_pm = mysql_num_rows($header_select);
while ($pm = mysql_fetch_array($header_select)){;
$id_select = mysql_query("SELECT id, nickname FROM dt_leden WHERE id = '".$pm[door]."'");
$starter = mysql_fetch_array($id_select);
$door = htmlspecialchars(stripslashes($starter['nickname']));
$vol = $num_pm / 25 * 100;
$vol = $vol."%";
$titel = $pm['titel'];
if(strlen ($titel) > 45)
{
$titel = substr ("$titel", 0, 45);
}
$titel = htmlspecialchars(stripslashes($titel));
$gezien = $pm['gezien'];
if ($gezien == "0"){
$plaatje = "images/on.gif";
} else {
$plaatje = "images/off.gif";
}
?>
echo ''; ?> |
- echo $titel; ?> |
echo ''.$door.''; ?> |
echo $pm['datum'] . ' / ' . $pm['tijd']; ?> |
} } ?>
|
Index / Inbox |
|
footer(); ?>