<?php
/*---------------------------------------------------+
| HabboCMS - Habbo Content Management System
+----------------------------------------------------+
| Copyright © 2007 - Meth0d
| <meth0d@retroscripting.com>
+----------------------------------------------------+
| This product comes without any warrenty in any
| kind, shape, way or format.
+---------------------------------------------------*/
$bodyid = "home";
$page_name = "Looks";
$tab = "1";
$page_jscript = "<script src='http://images.habbohotel.co.uk/habboweb/$link_build/32/web-gallery/static/js/settings.js' type='text/javascript'></script>";
$page_stylesheet = "<link rel='stylesheet' href='http://images.habbohotel.co.uk/habboweb/$link_build/32/web-gallery/v2/styles/settings.css' type='text/css' />";
require_once ('verify_login.php');
require_once ('../variables.php');
include 'subheader.php';
include 'header.php';
if($_GET['gender']){
$updated = "1";
mysql_query("UPDATE users SET app='".trim($_GET['figure'])."', sex='".trim($_GET['gender'])."' WHERE name='".$_SESSION['myusername']."'");
mysql_query("UPDATE users SET commands_queue = 'updLOOK' WHERE name='".$_SESSION['myusername']."'");
} else {
$updated = "0";
}
echo "<link rel='stylesheet' href='http://images.habbohotel.co.uk/habboweb/$link_build/32/web-gallery/v2/styles/settings.css' type='text/css' />
<div id='container'>
<div id='content'>
<div>
<div class='content'>
<div class='habblet-container' style='float:left; width:210px;'>
<div class='cbb settings'>
<h2 class='title'>Impostazioni Account</h2>
<div class='box-content'>
<div id='settingsNavigation'>
<ul>
<li class='selected'>Looks
</li>
<li ><a href='account2.php'>Missione</a>
</li>
<li ><a href='account3.php'>Email</a>
</li>
<li ><a href='account4.php'>Password</a>
</li>
</ul>
</div>
</div></div></div>
<div class='habblet-container ' style='float:left; width: 560px;'>
<div class='cbb clearfix settings'>
<h2 class='title'>Impostazioni Account</h2>
<div class='box-content'>";
if ($updated == 1) {
echo "<center>Il tuo look e' stato Modificato<br><br><img src='http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$_GET['figure']."&size=b&direction=3&head_direction=3&gesture=sml&action=wav' border='0' alt='Your new look!'><br><br><a href='account.php'>Non ti Piace?</a></center>";
} else {
?>
<div id="flashcontent" align="center">
<script type="text/javascript" language="JavaScript">
var swfobj = new SWFObject("HabboRegistration.swf", "habboreg", "406", "327", "7");
swfobj.addParam("base", "");
swfobj.addVariable("post_url", "account.php?");
swfobj.addVariable("__app_key", "a5q0jBzgmZN5ZC036s");
swfobj.addVariable("figuredata_url", "figure.xml");
swfobj.addVariable("localization_url", "words.xml");
swfobj.addVariable("post_figure", "figure");
swfobj.addVariable("post_gender", "gender");
swfobj.addVariable("figure", "<?php echo $row1['app']; ?>");
swfobj.addVariable("gender", "<?php echo $row1['sex']; ?>");
swfobj.write("flashcontent");
</script>
</div>
<?php
}
echo "</div>
</div>
</div>
</div></div>
</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>";
include ('footer.php');
?>