global $admin, $user, $cookie, $use_custom_whosonline; cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } // script seul message privée . echo"
"; // Code for Messages $total_messages = mysql_num_rows(mysql_query("SELECT msg_id FROM ".$mpnTables['priv_msgs']." WHERE to_userid = '$cookie[0]'")); $new_messages = mysql_num_rows(mysql_query("SELECT msg_id FROM ".$mpnTables['priv_msgs']." WHERE to_userid = '$cookie[0]' AND read_msg='0'")); if ($username== "Anonymous") { echo "(Vous êtes un utilisateur Anonyme. Enregsiterz vous !.)"; }else{ if($total_messages > 0) { if($new_messages > 0){ echo " bienvenue $username $new_messages ST "; }else{ echo " bienvenue $username "; } }else{ echo " bienvenue $username "; } } echo " |