0 )
echo "
". Get_Text("pub_messages_new1").
" ". mysql_num_rows( $erg ). " ".
Get_Text("pub_messages_new2"). "
";
}
If( !isset($_GET["action"]) )
$_GET["action"] = "start";
switch( $_GET["action"])
{
case "start":
echo Get_Text("Hello"). $_SESSION['Nick']. ",
\n";
echo Get_Text("pub_messages_text1"). "
\n";
//#####################
//show exist Messages
//#####################
$SQL = "SELECT * FROM `Messages` WHERE `SUID`=". $_SESSION["UID"]. " OR `RUID`=". $_SESSION["UID"];
$erg = mysql_query($SQL, $con);
echo "
". Get_Text("pub_messages_Datum"). " | \n"; echo "\t". Get_Text("pub_messages_Von"). " | \n"; echo "\t". Get_Text("pub_messages_An"). " | \n"; echo "\t". Get_Text("pub_messages_Text"). " | \n"; echo "\t\n"; echo " | ". mysql_result( $erg, $i, "Datum" ). " | \n"; echo "\t". UID2Nick( mysql_result( $erg, $i, "SUID" )). " | \n"; echo "\t". UID2Nick( mysql_result( $erg, $i, "RUID" )). " | \n"; echo "\t". mysql_result( $erg, $i, "Text" ). " | \n"; echo "\t";
if( mysql_result( $erg, $i, "RUID")==$_SESSION["UID"])
{
echo "". Get_Text("pub_messages_DelMsg"). "";
if( mysql_result( $erg, $i, "isRead")=="N")
echo " ". Get_Text("pub_messages_MarkRead"). ""; } echo " | \n";
echo "\n";
}
//#####################
//send Messeges
//#####################
echo "";
echo "