Пример #1
0
function formattext ($text, $smilies, $smiliespath, $myBoardCodeTags, $html) {
	if($html == 'txt0' OR $html == 'com0' ) {
	$text = htmlspecialchars($text);
	$text = str_replace('&lt;br&gt;','<br>',$text);
	$text = str_replace('&lt;br /&gt;','<br />',$text);
	}

	$text = Filter_myBoardCodeTags($text, $myBoardCodeTags);
	if ($smilies == 'yes') $text = smilies($smiliespath,$text);
	return $text;
}
Пример #2
0
while($msg = mysql_fetch_assoc($qmessages))
{

    if($msg['commType'] == 0){
        // $tmpQuery = "UPDATE communication set listed=1 where commID={$msg['commID']}";
        // mysql_query($tmpQuery) or die("Can't update Message: $tmpQuery");

    echo "<table style='width:100%; border:0; background-color:FFFFFF'><tr><td><br><b>".proof_strip($msg['title'])."</b><br><br>".proof_strip($msg['text'])."</td></tr></table>";
    }


    echo "<table style='width:100%'>";

        if ($msg['fromID']<>Null)
        {
            echo "<tr><td style='background-color:E5F2FF' colspan='2'><b>From: ".$msg['firstName']." ".$msg['lastName']."</b>"."&nbsp;&nbsp;Date: ".$msg['postDate']."&nbsp;&nbsp;&nbsp;<a href='stats_user.php?cod=".$msg['fromID']."'>".$msg['firstName']." Home Page</a></td></tr><tr><td colspan='2'style='text-align:left'>"."<b> ".$MSG_LANG["title"]." ".proof_strip($msg['title'])."</b></td></tr><tr><td style='text-align:left; width:620'><h5>".Filter_myBoardCodeTags(proof_strip($msg['text']), $myBoardCodeTags)."</h5></td><td style='width:130'><a href=\"javascript:ReplyToMessage(".$msg['commID'].",".$msg['fromID'].",'".proof_strip($msg['title'])."')\">Reply</a>&nbsp;|&nbsp;<a href=\"?ack={$msg['commID']}\">Delete</a></td></tr><br>";
            $tmpQuery = "UPDATE communication set listed=1 where commID={$msg['commID']}";
            mysql_query($tmpQuery) or die("Can't update Message: $tmpQuery");
        }
    echo "</table>";

}

If($_SESSION['isAdmin']=="1"){
?>
<br>
<hr width='100%' size='6' align='left' color='800000'><br><center>
<span style='color:1F5070; text-size:11'><b><? echo "".$MSG_LANG["commadmin"].""; ?></b></span></center>

<form name="frmNewsMessage" method="post" action="messages.php">
<table style="width:100%; border:0; background-color:FFFFFF">