<?php
/*===================================================+ 
|| # HoloCMS - Website and Content Management System
|+===================================================+ 
|| # Copyright © 2012 DnT [Tutti i diritti riservati]
|| # http://dnt.webnet32.com/
|+===================================================+ 
|| # DnT HoloCMS v2.1 - Created By Donatello (DnT)
|| # http://code.google.com/p/dnt-project/downloads/list
|+===================================================*/ 

include('core.php');
include('includes/session.php');


$pagename = "Impostazioni Account";
$pageid = "profile";
$pageid = "2";
	
include('templates/community/subheader.php');
include('templates/community/header.php');
	
if(!session_is_registered(username))
	{
		Redirect("".$url."/index.php");
	}
	
 $do = FilterText($_GET['do']);
 $tab = FilterText($_GET['tab']);
	if($tab == "general") {
		
				$textamigo = FilterText($_POST['textamigo']);
				$online = FilterText($_POST['online']);
				$join = FilterText($_POST['join']);
					if($join != "" && $online != "" && $textamigo != "") {
					
				if(is_numeric($textamigo) && is_numeric($online) && is_numeric($join)) {
				mysql_query("UPDATE users SET block_newfriends = '".$textamigo."', hide_online = '".$online."', hide_inroom = '".$join."' WHERE username = '".$myrow['username']."'");
				
					$message = "<div id=\"purse-redeem-result\"> 
        <div class=\"redeem-error\"> 
            <div class=\"rounded rounded-green\"> 
               Modification r&eacute;ussi avec succ&eacute;s<br>
			  
            </div> 
        </div> 
</div>"; } else {
$message = "<div id=\"purse-redeem-result\"> 
        <div class=\"redeem-error\"> 
            <div class=\"rounded rounded-red\"> 
                Une erreur c'est produit lors de la modification.
            </div> 
        </div> 
</div>"; }
					} else {
					
							$message = "<div id=\"purse-redeem-result\"> 
        <div class=\"redeem-error\"> 
            <div class=\"rounded rounded-red\"> 
                Merci de remplir les champs vide.
            </div> 
        </div> 
</div>";
						
				}
			}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> 
<meta http-equiv="content-type" content="text/html; charset=ISO 5589-1" /> 
<title><?PHP echo $sitename; ?>: <?PHP echo $pagename; ?></title> 
 
<script type="text/javascript"> 
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "<?PHP echo $myrow['username']; ?>";
var habboReqPath = "<?PHP echo $url; ?>";
var habboStaticFilePath = "<?PHP echo $imagepath; ?>";
var habboImagerUrl = "http://www.habbo.it/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?PHP echo $url; ?>/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "uberClientWnd"; }
</script> 



<link rel="shortcut icon" href="<?PHP echo $imagepath; ?>favicon.ico" type="image/vnd.microsoft.icon" /> 
<script src="<?PHP echo $imagepath; ?>static/js/libs2.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/visual.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/libs.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/common.js" type="text/javascript"></script>

<script src="<?PHP echo $imagepath; ?>static/js/fullcontent.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/personal.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/habboclub.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/minimail.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/myhabbo/control.textarea.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/minimail.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/settings.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/settings.css" type="text/css" /> 
 

<meta name="description" content="<?PHP echo $description; ?>" /> 
<meta name="keywords" content="<?PHP echo $keyword; ?>" />  
<!--[if IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie6.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(http://www.habbo.it/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="<?PHP echo $build; ?> >> <?PHP echo $version; ?>" /> 
</head>


	 
<body id="home" class=" "> 
<div id="overlay"></div> 
<!-- MENU -->
<!-- FIN MENU -->

<div id="container"> 
	<div id="content" style="position: relative" class="clearfix"> 
    <div> 
 
<div class="content"> 
<div class="habblet-container" style="float:left; width:210px;"> 
<div class="cbb settings"> 
 
<h2 class="title">Le mie Preferenze</h2> 
<div class="box-content"> 
            <div id="settingsNavigation"> 
            <ul> 
	<li>
<li class="selected">Modifiche Generali
	</li>
	<li>
<a href="<?PHP echo $url; ?>/friend.php">Gestione Amici</a>
	</li>
<a href="<?PHP echo $url; ?>/account.php">Cambia email/Password</a>
	</li>				
				
 
                   
            </ul> 
            </div> 
</div></div> 
    
</div> 
<?PHP if($do == "") { ?>
    <div class="habblet-container " style="float:left; width: 560px;"> 
        <div class="cbb clearfix settings"> 
 
            <h2 class="title">Modifiche Generali</h2> 
            <div class="box-content"> 
            
 <?PHP if(isset($message)) { echo $message; } ?>
 
<form action="?tab=general" method="post" id="profileForm"> 
 
<h3>Richieste di Amicizia</h3> 
<p> 
<label><input type="radio" name="textamigo" value="0" <?PHP if($myrow['block_newfriends'] == "0") { ?> checked="checked" <?PHP } ?> />Accettare</label> 
<label><input type="radio" name="textamigo" value="1" <?PHP if($myrow['block_newfriends'] == "1") { ?> checked="checked" <?PHP } ?> />Rifiutare</label> 
</p> 
 
<h3>Stato: online/offline</h3> 
<p> 
Chi puo' vedere se sei Connesso?<br /> 
<label><input type="radio" name="online" value="1" <?PHP if($myrow['hide_online'] == "1") { ?> checked="checked" <?PHP } ?> />Nessuno</label> 
<label><input type="radio" name="online" value="0" <?PHP if($myrow['hide_online'] == "0") { ?> checked="checked" <?PHP } ?>  />Tutti</label> 
</p> 
 
 
<h3>Chi ti puo' seguire</h3> 
<p> 
Scegli chi ti puo' seguire nelle Stanze<br /> 
<label><input type="radio" name="join" value="1" <?PHP if($myrow['hide_inroom'] == "1") { ?> checked="checked" <?PHP } ?>  />Nessuno</label> 
<label><input type="radio" name="join" value="0" <?PHP if($myrow['hide_inroom'] == "0") { ?> checked="checked" <?PHP } ?> />I miei Amici</label> 
</p> 
 
 
<div class="settings-buttons"> 
<a href="#" class="new-button" style="display: none" id="profileForm-submit"><b>Salva</b><i></i></a> 
<noscript><input type="submit" value="Enregistrer" name="save" class="submit" /></noscript> 
</div> 
 
</form> 
 
<script type="text/javascript"> 
$("profileForm-submit").observe("click", function(e) { e.stop(); $("profileForm").submit(); });
$("profileForm-submit").show();
</script> 
 
</div> 
</div> 
</div> 
<?PHP } elseif($do == "1") { ?>

 <div class="habblet-container " style="float:left; width: 560px;"> 
        <div class="cbb clearfix settings"> 
 
            <h2 class="title">Mot de Passe</h2> 
            <div class="box-content"> 
            
 
 
<form action="?tab=password" method="post" id="profileForm"> 
<?PHP if(isset($message)) { echo $message; } ?>

<h3>Changement de Mot de Passe</h3> 

 

<p> 

Ton mot de passe sera changer tout de suite après.

</p> 

 

<p> 

<label>Mot de Passe actuel:<br>

<input type="password" name="mdp_ac" size="32" maxlength="32" value="" id="avatarmotto" /></label> 

</p>

<p> 

<label>Nouveau Mot de Passe:<br>

<input type="password" name="mdp_new" size="32" maxlength="32" value="" id="avatarmotto" /></label> 

</p> 

<p> 

<label>Confirmer votre Mot de Passe:<br>

<input type="password" name="remdp_new" size="32" maxlength="32" value="" id="avatarmotto" /></label> 

</p> 

 
 
<div class="settings-buttons"> 
<a href="#" class="new-button" style="display: none" id="profileForm-submit"><b>Enregistrer</b><i></i></a> 
<noscript><input type="submit" value="Enregistrer" name="save" class="submit" /></noscript> 
</div> 
 
</form> 
 
<script type="text/javascript"> 
$("profileForm-submit").observe("click", function(e) { e.stop(); $("profileForm").submit(); });
$("profileForm-submit").show();
</script> 
 
</div> 
</div> 
</div> 
<?PHP } ?>
</div> 
</div> 
    </div> 

	<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]--> 
<!-- FOOTER -->
<?PHP include("./templates/community/footer.php"); ?>
<!-- FIN FOOTER -->


<div style="clear: both;"></div>


</div></div></div></div>

 
<script type="text/javascript"> 
HabboView.run();

</script>


</body> 
</html> 



