<?php
#######################################################|#
#|                    HabboMCMS - TheRox
#|                    Powered by HoloCMS 
#|            Copyright 2011-2012 ALL RIGHTS RESERVED
#######################################################|#

require_once('../global.php');
require_once('../INC/class.session.php');

$ownerid = Filter($_POST['ownerId']);
$message = HabboCMSTEXT($_POST["message"],false,true); 

$row = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE id = '".$my_id."' LIMIT 1"));
?>

<ul class="guestbook-entries">
	<li id="guestbook-entry--1" class="guestbook-entry">
		<div class="guestbook-author">
			<img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=<?php echo $row['look']; ?>&direction=2&head_direction=2&gesture=sml&size=s" alt="<?php echo $row['username'] ?>" title="<?php echo $row['username'] ?>"/>
		</div>
		<div class="guestbook-message">
			<div class="online">
				<a href="user_profile.php?id=<?php echo $my_id; ?>"><?php echo $row['username'] ?></a>
			</div>
			<p><?php echo nl2br(bbcode_format(HabboCMSTEXT($message,$html))); ?></p>
		</div>
		<div class="guestbook-cleaner">&nbsp;</div>
		<div class="guestbook-entry-footer metadata"></div>
	</li>
</ul>

<div class="guestbook-toolbar clearfix">
<a href="#" class="new-button" id="guestbook-form-continue"><b>Modifier</b><i></i></a>
<a href="#" class="new-button" id="guestbook-form-post"><b>Ajouter</b><i></i></a>	
</div>