CMS - Come Levare La Neve Nella Me.php

Smike89

Utente bannato
Autore del topic
9 Giugno 2013
206
0
Miglior risposta
0
Assistenza Tecnica Habbo Retroserver
Titolo
Come Levare La Neve Nella Me.php
Tipologia del tuo problema/richiesta
CMS
CMS/Server/DB/Client Utilizzato
Ho Lobbo CMs
Qual è il tuo errore?
COme si Leva La NEv Nella Me.php ?? Che Stringa é
Screenshot
<?php

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





$pagename = $name;
$pageid = "1";

// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");

include('templates/subheader.php');
include('templates/header.php');

// Query tags
$fetch_tags = mysql_query("SELECT id,tag FROM cms_tags WHERE ownerid = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);

// Create the random tag questions array
$randomq[] = "Quale personaggio famoso vorresti incontrare?";
$randomq[] = "Chi &egrave il tuo eroe dei fumetti preferito?";
$randomq[] = "Chi &egrave il tuo artista preferito?";
$randomq[] = "Gatti, cani o qualcosa di pi&ugrave esotico?";
$randomq[] = "Che cosa vorresti ricevere per Natale?";
$randomq[] = "Quali giornali leggi?";
$randomq[] = "Che cosa cerchi in un Amico?";
$randomq[] = "Per quale squadra tifi?";
$randomq[] = "Qual &egrave il tuo numero porta fortuna?";
$randomq[] = "Quale auto vorresti avere da grande?";
$randomq[] = "Su quale pianeta vorresti vivere?";
$randomq[] = "Qual &egrave il tuo cartone animato preferito?";
$randomq[] = "Chi &egrave il tuo regista preferito?";
$randomq[] = "Vorresti vincere il premio Nobel per aver...";
$randomq[] = "Chi &egrave il tuo eroe dei fumetti preferito?";
$randomq[] = "Quale gusto di gelato preferisci?";
// Select a random question from the array above
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);

// Appoint the variable
$tag_question = $randomq[$chosen];

?>






<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">

<div id="new-personal-info" style="background-image:url(./web-gallery/v2/images/personal_info/hotel_views/htlview_us_xmas.png)" />
<div id="enter-hotel">
<?php if($online == "online"){ ?>
<div class="open">
<?php
if(HoloText(getContent('client-widescreen'), true) == "1"){
$wide_enabled = true;
} else {
$wide_enabled = false;
}
?>
<a href="client.php<?php if($wide_enabled == false){ echo "?wide=false"; } ?>" target="client" onclick="openOrFocusHabbo(this); return false;">Entra in <?php echo $sitename; ?>!<i></i></a>
<b></b>
</div>
<?php } else { ?>
<div class="closed">
<span>L'hotel &egrave chiuso!</span>
<b></b>
</div>
<?php } ?>
</div>

<div id="habbo-plate">
<a href="account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&gesture=sml&head_direction=3&action=slt&size=l" width="64" height="110"/>
</a>
</div>

<div id="habbo-info">
<div id="motto-container" class="clearfix">
<strong><?php echo $name; ?>:</strong>
<div>
<span title="Che motto scegli?"><?php if(!empty($myrow['motto'])){ echo FilterText($myrow['motto']); } else { echo "Che motto scegli?"; } ?></span>
<p style="display: none"><input type="text" length="30" name="motto" value="<?php echo FilterText($myrow['motto']); ?>"/></p>
</div>
</div>
<div id="motto-links" style="display: none"><a href="#" id="motto-cancel">Annulla</a></div>
</div>

<ul id="link-bar" class="clearfix">
<li class="credits">
<?php echo $myrow['credits']; ?> Crediti
</li>
<li class="club">
<a href="club.php"><?php if( !IsHCMember($my_id) ){ echo "Iscriviti al " . $shortname . " Club &raquo;</a>"; } else { echo HCDaysLeft($my_id) . " </a>Giorni " . $shortname . " club!"; }?>
<li class="activitypoints">
<?php echo $myrow['activity_points']; ?> Pixel
</li>
<li class="vippoints">
<?php echo $myrow['vip_points']; ?> <?php echo $moneta; ?>
</li>

</ul>

<div id="habbo-feed">
<ul id="feed-items">

<?php
$sqluser = mysql_query("SELECT hc_before FROM users WHERE id='".$my_id."' LIMIT 1");
$user = mysql_query($sqluser);

$sql = mysql_query("SELECT * FROM users_club WHERE userid='".$my_id."' LIMIT 1");
if($user['hc_before'] > 0 && mysql_num_rows($sql) == 0) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi le modifiche</a>
<div>
<?php if(mysql_num_rows($sql) == 0) { ?> La tua iscrizione al <?php echo $shortname; ?> Club &egrave scaduta. Vuoi rinnovare la tua Iscrizione al Club?<?php } ?>
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>

<?php
}

if(IsHCMember($my_id)){
if($user['hc_before'] > 0) {
if(HCDaysLeft($my_id) < 6) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi Notifica</a>
<div>
La tua iscrizione al <?php echo $shortname; ?> Club scade tra <?php echo HCDaysLeft($my_id); ?> giorni. Vuoi prolungare la tua Iscrizione al <?php echo $shortname; ?> Club?
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>
<?php
}
}
}

if($user_rank > 7){
$alerts = mysql_evaluate("SELECT COUNT(*) FROM cms_help WHERE picked_up = '0'");
if($alerts > 0){
echo " <li class=\"small\" id=\"feed-group-discussion\">
<strong>Messaggio per lo staff!</strong><br />Ci sono "; if($alert == 1){ echo ""; } else { echo ""; } echo " <strong><a href='./housekeeping/index.php?p=helper' target='_self'>" . $alerts . "</a></strong> Messaggio di aiuto!"; if($alerts > 1){ echo ""; } else { echo ""; } echo ".
</li>";
}
}


//<?php
// }

//$sql = mysql_query("SELECT * FROM cms_noobgifts WHERE userid='".$my_id."' LIMIT 1");
//if(mysql_num_rows($sql) > 0) {
//$row = mysql_fetch_assoc($sql); ?><br>
<li id="feed-friends" class="contributed">
Utenti Registrati :

<span>

<font color=white><?php echo mysql_evaluate("SELECT COUNT(*) FROM users") ?></font><br>

</span><br></center>
</li>



<?php
$getAlert = mysql_query("select * from cms_alert");
while($alert = mysql_fetch_assoc($getAlert)) {
?>
<li id="feed-item-campaign" class="contributed">
<a href="#" class="remove-feed-item" id="remove-feed-item-322" title="Rimuovi Notifiche"> Rimuovi Notifiche </a>
<div class="hotcampaign-container">
<p><b><?php echo $alert['title']; ?></b></p>
<p><?php echo $alert['desc']; ?></p>
</div>

<?php } ?>

</li>



<?php
// }

$dob = $myrow['birth'];
$bits = explode("-", $dob);
$day = $bits[0];
$month2 = $bits[1];
$year2 = $bits[2];

if($day == $today && $month2 == $month && HoloText(getContent('birthday-notifications'), true) == "1"){

$age = $year - $year2;

// If we have haxxorz that bypassed the age check (only javascript validates it), they may be like, what,
// one year old, so instead of showing 'happy 1th birthday', we properly show 'happy 1st birthday' etc.
if($age == 1 || $age == 21){
$age = $age . "st";
} elseif($age == 2 || $age == 22){
$age = $age . "nd";
} elseif($age == 3 || $age = 33){
$age = $age . "rd";
} else {
$age = $age . "th";
}
?>

<li id="feed-birthday">
<div>
Buon Compleanno, <?php echo $name; ?>!
</div>
</li>
<?php } ?>
<?php
$sql = mysql_query("SELECT * FROM messenger_requests WHERE from_id = '".$my_id."'");
$count = mysql_num_rows($sql);
if($count != 0){ ?>
<li id="feed-notification">
Hai <a href="./client.php" onclick="HabboClient.openOrFocus(this); return false;"><?php echo $count; ?> richiesta/e di amicizia</a> in sospeso
</li>
<?php } ?>
<?php /*
$onlineCutOff = (time() - 601);
$onlineUsers = mysql_evaluate("SELECT COUNT(*) FROM users WHERE online > " . $onlineCutOff);
$get_users = mysql_query("SELECT id,name,email,ipaddress_last,hbirth,online FROM users WHERE online > " . $onlineCutOff . " ORDER BY online DESC LIMIT " . $onlineUsers) or die(mysql_error());

while($row = mysql_fetch_assoc($get_users)){

if(empty($row['ipaddress_last'])){ $row['ipaddress_last'] = "No IP Found"; }
printf(" <tr>
<td class='tablerow1' align='center'>%s</td>
<td class='tablerow2'><strong>%s</strong><div class='desctext'>%s [<a href='http://who.is/whois-ip/ip-address/%s/' target='_blank'>WHOIS</a>]</div></td>
<td class='tablerow2' align='center'><a href='mailto:%s'>%s</a></td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'><a href='index.php?p=edituser&key=%s'><img src='./images/edit.gif' alt='Edit User Data'></a></td>
</tr>", $row['id'], $row['name'], $row['ipaddress_last'], $row['ipaddress_last'], $row['email'], $row['email'], $row['hbirth'], (time() - $row['online']) . " seconds ago", $row['id']);
}
?>
<li id="feed-friends">
Hai <strong>1</strong> amico online!
<span>
Dafor
</span>
</li>
*/ ?>

<li class="small" id="feed-lastlogin">
Ultimo accesso:
<?php echo edit_date($myrow['lastvisit'],true); ?>
</li>


</ul>
</div>
<p class="last"></p>
</div>

<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Niente Spam!");
PersonalInfo.init("");
});
</script>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container ">
<div class="cbb clearfix blue ">

<h2 class="title">In Primo Piano
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><font color=black><?php echo $campaigns['name']; ?></font></h3><br>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>"><?php echo $campaigns['title']; ?> >></a></p>
</div>
</li>
<?php } ?>
</ul>
</div>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Noob Gift ?>
<?php
$sql = mysql_query("SELECT noob,gift,roomid,sort FROM users WHERE id='".$my_id."' LIMIT 1");
$row = mysql_query($sql);
if($row['noob'] == 0 && $row['gift'] == 0 && $row['roomid'] == 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="roomselection">
<div class="cbb clearfix rooms ">

<h2 class="title">Select your room!
<span class="habblet-close" id="habblet-close-roomselection"></span></h2>
<div id="roomselection-plp-intro" class="box-content">
Hey! You haven't chosen your pre-decorated room, which comes with free furniture! Choose one below:
</div>

<ul id="roomselection-plp" class="clearfix">
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=0" target="client" onclick="return RoomSelectionHabblet.create(this, 0);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=1" target="client" onclick="return RoomSelectionHabblet.create(this, 1);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=2" target="client" onclick="return RoomSelectionHabblet.create(this, 2);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=3" target="client" onclick="return RoomSelectionHabblet.create(this, 3);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=4" target="client" onclick="return RoomSelectionHabblet.create(this, 4);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=5" target="client" onclick="return RoomSelectionHabblet.create(this, 5);"><b>Select</b><i></i></a>
</li>
</ul>

<script type="text/javascript">
L10N.put("roomselection.hide.title", "Hide room selection");
L10N.put("roomselection.old_user.done", "And you\'re done! The hotel will now open in a new window and you\'ll be redirected to your room in no time!");
HabboView.add(RoomSelectionHabblet.initClosableHabblet);
</script>



</div>
</div>
<?php }elseif($row['noob'] == 1 && $row['roomid'] != 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="giftqueue">
<div class="cbb clearfix rooms ">

<h2 class="title">Your next gift!
<span class="habblet-close" id="habblet-close-giftqueue"></span></h2>
<div class="box-content" id="gift-container">
<?php if($row['gift'] < 2) { ?>

<div class="gift-img"><?php if($row['gift'] == 0) { ?><img src="http://images.habbohotel.com/habboweb/<?php echo $habboversion; ?>/web-gallery/v2/images/welcome/newbie_furni/noob_stool_<?php echo $row['sort']; ?>.png" alt="My first Obbah stool" /><?php }elseif($row['gift'] == 1) { ?><img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/welcome/newbie_furni/noob_plant.png"><?php } ?></div>
<div class="gift-content-container">

<p class="gift-content">
Your next piece of free furniture will be <strong><?php if($row['gift'] == 0) { echo "My first stool"; }elseif($row['gift'] == 1) { echo "plant"; } ?></strong>
</p>

<p>
<b>Time left:</b> <span id="gift-countdown"></span>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>
<br style="clear: both" />
</div>

<?php
// calculate time

$time = time();
$day = date("j");
$month = date("n");
$year = date("y");
$date = mktime(0,0,0, $month, $day, $year);
$timeleft = $date-$time; ?>

<script type="text/javascript">
L10N.put("time.hours", "{0}h");
L10N.put("time.minutes", "{0}min");
L10N.put("time.seconds", "{0}s");
GiftQueueHabblet.init(<?php echo $timeleft; ?>);
</script>
<?php }else{ ?>
<p>
How do you get more furniture into Your room?
</p>

<p>
You could buy a set of furniture for just 3 credits including a lamp, mat, and two armchairs. How do you do that?
</p>

<ul><li>1. Buy some credits from the <a href="/credits">credits</a> section</li><li>2. Open the catalogue from the Hotel toolbar (Chair icon)</li><li>3. Open the deals section</li><li>4. Pick up the furni set You want</li><li>5. Thank You for shopping!</li></ul>

<p class="aftergift-img">
<img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/giftqueue/aftergifts.png" alt="" width="381" height="63"/>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>

<script type="text/javascript">
HabboView.add(GiftQueueHabblet.initClosableHabblet);
</script>
<?php } ?>

</div>



</div>
</div>
<?php } ?>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php */ ?>
<?php /*Habbo Search*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix"><div>
<h2><?php echo $shortname; ?></h2>
<ul class="box-tabs">
<li id="tab-2-2" class="selected"><a href="#">Trova <?php echo $shortname; ?></a><span class="tab-spacer"></span></li></div>



<div class="habblet-content-info">
<a name="habbo-search"><font color=green>Per trovare un <?php echo $shortname; ?>, inserisci i primi caratteri del suo nome.</font></a>
</div>
<div id="habbo-search-error-container" style="display: none;"><div id="habbo-search-error" class="rounded rounded-red"></div></div>
<br clear="all"/>
<div id="avatar-habblet-list-search">
<input type="text" id="avatar-habblet-search-string"/>

<a href="#" id="avatar-habblet-search-button" class="new-button"><b>Cerca</b><i></i></a>
</div>

<br clear="all"/>

<div id="avatar-habblet-content">
<div id="avatar-habblet-list-container" class="habblet-list-container">
<ul class="habblet-list">
</ul>

</div>
<script type="text/javascript">
L10N.put("habblet.search.error.search_string_too_long", "La parola chiave che hai inserito &egrave troppo lunga. La lunghezza massima &egrave 30 caratteri.");
L10N.put("habblet.search.error.search_string_too_short", "La parola chiave che hai inserito &egrave troppo corta. Sono richiesti almeno 2 caratteri.");
L10N.put("habblet.search.add_friend.title", "Aggiungi alla tua lista di amici");
new HabboSearchHabblet(2, 30);

</script>

</div>


</div>

</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>

<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>

<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {

$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage


// Base room icon based on this - percantage levels may not be habbolike

}
?>
</ul>
</div>
</div>



</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>

</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">


<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>Ultime News</h4>
<h3><a href="articoli.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>

<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_1_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime news</h4>

<h3><a href="articoli.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_2_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>


</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="articoli.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_2_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>

</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Indietro</a><span>1</span> / 3<a href="#" class="next">Avanti &raquo;</a></div>
</div>
<ul class="widelist">
<li class="even">

<a href="articoli.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="articoli.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="articoli.php">Altre news &raquo;</a></li>
</ul>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>



<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Scelti dallo Staff</h2>
<ul class="box-tabs">
<li id="tab-rooms"><a href="#">Stanze</a><span class="tab-spacer"></span></li>

<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);

if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&amp;roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><?php echo HoloText($grouprow['name']); ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>



<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>








<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">







<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'room' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$roomsql = mysql_query("SELECT * FROM rooms WHERE id = '".$row['rec_id']."' LIMIT 1");
$roomrow = mysql_fetch_assoc($roomsql);

if(IsEven($i)){
$even = "left";
} else {
$even = "even right";
}


?>
<li class="<?php echo $even; ?>">




<div class="hotcampaign-container">
<img src="./habbo-imaging/rooms/space.png"><br><img src="./habbo-imaging/rooms/space2.png" align="left"><img src="./habbo-imaging/rooms/stanza.png" align="left"><img src="./habbo-imaging/rooms/space.png"><br>&nbsp;<b><?php echo HoloText($roomrow['caption']); ?></b><br>&nbsp;Di: <a href="user_profile.php?name=<?php echo HoloText($roomrow['owner']); ?>"><?php echo HoloText($roomrow['owner']); ?></a><br>&nbsp;




</li>
<?php } ?>
</ul>
</div>
</div></div>


<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<div class="box-tabs-container clearfix">
<h2>Tags</h2>
<ul class="box-tabs">
<li id="tab-3-1"><a href="#">I <?php echo $shortname; ?> amano...</a><span class="tab-spacer"></span></li>
<li id="tab-3-2" class="selected"><a href="#">Le mie Tag</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-3-1-content" style="display: none">
<div class="progressbar"><img src="./web-gallery/images/progress_bubbles.gif" alt="" width="29" height="6" /></div>
<a href="tagcloud.php?sp=plain" class="tab-ajax"></a>
</div>
<div id="tab-3-2-content" >
<div id="my-tag-info" class="habblet-content-info">
<?php if($tags_num > 19){ echo "Hai raggiunto il limite di Tag - eliminane una per aggiungerne una nuova."; } elseif($tags_num == 0){ echo "Non hai tags. Rispondi alla domanda o inserisci un tag a tua scelta."; } elseif($tags_num < 20){ echo "Aggiungi altri Tag - c'&egrave ancora posto!"; } ?>
</div>
<div class="box-content">
<div class="habblet" id="my-tags-list">

<?php if($tags_num > 0){
echo "<ul class=\"tag-list make-clickable\"> ";
while($row = mysql_fetch_assoc($fetch_tags)){
printf("<li><a href=\"tags.php?tag=%s\" class=\"tag\" style=\"font-size:10px\">%s</a>\n
<a class=\"tag-remove-link\"\n
title=\"Rimuovi Tag\"\n
href=\"#\"></a></li>\n", $row['tag'], $row['tag']);
}
echo "</ul>";
} ?>

<?php if($tags_num < 20){ ?>
<form method="post" action="tags_ajax.php?key=add" onsubmit="TagHelper.addFormTagToMe();return false;" >
<div class="add-tag-form clearfix">
<a class="new-button" href="#" id="add-tag-button" onclick="TagHelper.addFormTagToMe();return false;"><b>Aggiungi tag</b><i></i></a>
<input type="text" id="add-tag-input" maxlength="20" style="float: right"/>
<em class="tag-question"><?php echo $tag_question; ?></em>
</div>
<div style="clear: both"></div>
</form>
<?php } ?>
</div>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() {
TagHelper.setTexts({
tagLimitText: "Hai Raggiunto il limite massimo di Tag!",
invalidTagText: "Tag non valida!",
buttonText: "OK"
});
TagHelper.init('21063711');
});
</script>
</div>

</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* DISABLED AS HABBO NO LONGER HAS THESE!!! --- Users Online ?>
<div class="cbb clearfix white">
<div class="box-content">

<p>
<ul id="feed-items">

<li id="feed-friends">
<img src="./web-gallery/album1/users_online.PNG" border="0" alt="Server Status" align="left">
<?php if($enable_status_image == "0" || $enable_status_image == "1" & $online == "online"){ ?>
<b><?php echo $online_count; ?></b> users online right now
<?php } else { ?>
<?php echo $sitename; ?> is <b>offline</b>
<?php } ?>
</li>
<br />
</ul>
</p>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Random Rooms ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix">
<h2>Random Rooms</h2>
<ul class="box-tabs">
</ul>
</div>
<div id="tab-0-2-content" >

<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">
<ul class="habblet-list">

<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms WHERE owner IS NOT NULL ORDER BY RAND() LIMIT 5") or die(mysql_error());

while ($row = mysql_fetch_assoc($getem)) {
if($row['owner'] !== ""){ // Public Rooms (and possibly bugged rooms) have no owner, thus do not display them
$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage
if($row['incnt_max'] == 0){ $row['incnt_max'] = 1; }
$data[$i] = ($row['incnt_now'] / $row['incnt_max']) * 100;

// Base room icon based on this - percantage levels may not be habbolike
if($data[$i] == 99 || $data[$i] > 99){
$room_fill = 5;
} elseif($data[$i] > 65){
$room_fill = 4;
} elseif($data[$i] > 32){
$room_fill = 3;
} elseif($data[$i] > 0){
$room_fill = 2;
} elseif($data[$i] < 1){
$room_fill = 1;
}

printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Enter</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Owner: <a href=\"user_profile.php?name=%s\">%s</a></span>
</span>
</li>", $even, $room_fill, $row['id'], HoloText($row['name']), FilterText($row['descr']), $row['owner'], $row['owner']);
}
}
?>

</ul>
<div class="clearfix"></div>
</div>
<script type="text/javascript">
L10N.put("show.more", "Show more rooms");
L10N.put("show.less", "Show fewer rooms");
var roomListHabblet_h105 = new RoomListHabblet("rooms-habblet-list-container-h105", "room-toggle-more-data-h105", "room-more-data-h105");
</script>
</div>

</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
*/ ?>
</div>

<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php

include('templates/footer.php');

?>
Ulteriori informazioni
-
 
E' solo nella me.php o in tutte le pagine?, Comunque inserisci i Tag [php ] [/ php] senza spazi la prossima volta.
 
Cix Solo Nella Home e Nella Index.php Ma non so come levarli mi aiut ç_ç
<?php

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





$pagename = $name;
$pageid = "1";

// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");

include('templates/subheader.php');
include('templates/header.php');

// Query tags
$fetch_tags = mysql_query("SELECT id,tag FROM cms_tags WHERE ownerid = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);

// Create the random tag questions array
$randomq[] = "Quale personaggio famoso vorresti incontrare?";
$randomq[] = "Chi &egrave il tuo eroe dei fumetti preferito?";
$randomq[] = "Chi &egrave il tuo artista preferito?";
$randomq[] = "Gatti, cani o qualcosa di pi&ugrave esotico?";
$randomq[] = "Che cosa vorresti ricevere per Natale?";
$randomq[] = "Quali giornali leggi?";
$randomq[] = "Che cosa cerchi in un Amico?";
$randomq[] = "Per quale squadra tifi?";
$randomq[] = "Qual &egrave il tuo numero porta fortuna?";
$randomq[] = "Quale auto vorresti avere da grande?";
$randomq[] = "Su quale pianeta vorresti vivere?";
$randomq[] = "Qual &egrave il tuo cartone animato preferito?";
$randomq[] = "Chi &egrave il tuo regista preferito?";
$randomq[] = "Vorresti vincere il premio Nobel per aver...";
$randomq[] = "Chi &egrave il tuo eroe dei fumetti preferito?";
$randomq[] = "Quale gusto di gelato preferisci?";
// Select a random question from the array above
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);

// Appoint the variable
$tag_question = $randomq[$chosen];

?>






<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">

<div id="new-personal-info" style="background-image:url(./web-gallery/v2/images/personal_info/hotel_views/htlview_us_xmas.png)" />
<div id="enter-hotel">
<?php if($online == "online"){ ?>
<div class="open">
<?php
if(HoloText(getContent('client-widescreen'), true) == "1"){
$wide_enabled = true;
} else {
$wide_enabled = false;
}
?>
<a href="client.php<?php if($wide_enabled == false){ echo "?wide=false"; } ?>" target="client" onclick="openOrFocusHabbo(this); return false;">Entra in <?php echo $sitename; ?>!<i></i></a>
<b></b>
</div>
<?php } else { ?>
<div class="closed">
<span>L'hotel &egrave chiuso!</span>
<b></b>
</div>
<?php } ?>
</div>

<div id="habbo-plate">
<a href="account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&gesture=sml&head_direction=3&action=slt&size=l" width="64" height="110"/>
</a>
</div>

<div id="habbo-info">
<div id="motto-container" class="clearfix">
<strong><?php echo $name; ?>:</strong>
<div>
<span title="Che motto scegli?"><?php if(!empty($myrow['motto'])){ echo FilterText($myrow['motto']); } else { echo "Che motto scegli?"; } ?></span>
<p style="display: none"><input type="text" length="30" name="motto" value="<?php echo FilterText($myrow['motto']); ?>"/></p>
</div>
</div>
<div id="motto-links" style="display: none"><a href="#" id="motto-cancel">Annulla</a></div>
</div>

<ul id="link-bar" class="clearfix">
<li class="credits">
<?php echo $myrow['credits']; ?> Crediti
</li>
<li class="club">
<a href="club.php"><?php if( !IsHCMember($my_id) ){ echo "Iscriviti al " . $shortname . " Club &raquo;</a>"; } else { echo HCDaysLeft($my_id) . " </a>Giorni " . $shortname . " club!"; }?>
<li class="activitypoints">
<?php echo $myrow['activity_points']; ?> Pixel
</li>
<li class="vippoints">
<?php echo $myrow['vip_points']; ?> <?php echo $moneta; ?>
</li>

</ul>

<div id="habbo-feed">
<ul id="feed-items">

<?php
$sqluser = mysql_query("SELECT hc_before FROM users WHERE id='".$my_id."' LIMIT 1");
$user = mysql_query($sqluser);

$sql = mysql_query("SELECT * FROM users_club WHERE userid='".$my_id."' LIMIT 1");
if($user['hc_before'] > 0 && mysql_num_rows($sql) == 0) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi le modifiche</a>
<div>
<?php if(mysql_num_rows($sql) == 0) { ?> La tua iscrizione al <?php echo $shortname; ?> Club &egrave scaduta. Vuoi rinnovare la tua Iscrizione al Club?<?php } ?>
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>

<?php
}

if(IsHCMember($my_id)){
if($user['hc_before'] > 0) {
if(HCDaysLeft($my_id) < 6) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi Notifica</a>
<div>
La tua iscrizione al <?php echo $shortname; ?> Club scade tra <?php echo HCDaysLeft($my_id); ?> giorni. Vuoi prolungare la tua Iscrizione al <?php echo $shortname; ?> Club?
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>
<?php
}
}
}

if($user_rank > 7){
$alerts = mysql_evaluate("SELECT COUNT(*) FROM cms_help WHERE picked_up = '0'");
if($alerts > 0){
echo " <li class=\"small\" id=\"feed-group-discussion\">
<strong>Messaggio per lo staff!</strong><br />Ci sono "; if($alert == 1){ echo ""; } else { echo ""; } echo " <strong><a href='./housekeeping/index.php?p=helper' target='_self'>" . $alerts . "</a></strong> Messaggio di aiuto!"; if($alerts > 1){ echo ""; } else { echo ""; } echo ".
</li>";
}
}


//<?php
// }

//$sql = mysql_query("SELECT * FROM cms_noobgifts WHERE userid='".$my_id."' LIMIT 1");
//if(mysql_num_rows($sql) > 0) {
//$row = mysql_fetch_assoc($sql); ?><br>
<li id="feed-friends" class="contributed">
Utenti Registrati :

<span>

<font color=white><?php echo mysql_evaluate("SELECT COUNT(*) FROM users") ?></font><br>

</span><br></center>
</li>



<?php
$getAlert = mysql_query("select * from cms_alert");
while($alert = mysql_fetch_assoc($getAlert)) {
?>
<li id="feed-item-campaign" class="contributed">
<a href="#" class="remove-feed-item" id="remove-feed-item-322" title="Rimuovi Notifiche"> Rimuovi Notifiche </a>
<div class="hotcampaign-container">
<p><b><?php echo $alert['title']; ?></b></p>
<p><?php echo $alert['desc']; ?></p>
</div>

<?php } ?>

</li>



<?php
// }

$dob = $myrow['birth'];
$bits = explode("-", $dob);
$day = $bits[0];
$month2 = $bits[1];
$year2 = $bits[2];

if($day == $today && $month2 == $month && HoloText(getContent('birthday-notifications'), true) == "1"){

$age = $year - $year2;

// If we have haxxorz that bypassed the age check (only javascript validates it), they may be like, what,
// one year old, so instead of showing 'happy 1th birthday', we properly show 'happy 1st birthday' etc.
if($age == 1 || $age == 21){
$age = $age . "st";
} elseif($age == 2 || $age == 22){
$age = $age . "nd";
} elseif($age == 3 || $age = 33){
$age = $age . "rd";
} else {
$age = $age . "th";
}
?>

<li id="feed-birthday">
<div>
Buon Compleanno, <?php echo $name; ?>!
</div>
</li>
<?php } ?>
<?php
$sql = mysql_query("SELECT * FROM messenger_requests WHERE from_id = '".$my_id."'");
$count = mysql_num_rows($sql);
if($count != 0){ ?>
<li id="feed-notification">
Hai <a href="./client.php" onclick="HabboClient.openOrFocus(this); return false;"><?php echo $count; ?> richiesta/e di amicizia</a> in sospeso
</li>
<?php } ?>
<?php /*
$onlineCutOff = (time() - 601);
$onlineUsers = mysql_evaluate("SELECT COUNT(*) FROM users WHERE online > " . $onlineCutOff);
$get_users = mysql_query("SELECT id,name,email,ipaddress_last,hbirth,online FROM users WHERE online > " . $onlineCutOff . " ORDER BY online DESC LIMIT " . $onlineUsers) or die(mysql_error());

while($row = mysql_fetch_assoc($get_users)){

if(empty($row['ipaddress_last'])){ $row['ipaddress_last'] = "No IP Found"; }
printf(" <tr>
<td class='tablerow1' align='center'>%s</td>
<td class='tablerow2'><strong>%s</strong><div class='desctext'>%s [<a href='http://who.is/whois-ip/ip-address/%s/' target='_blank'>WHOIS</a>]</div></td>
<td class='tablerow2' align='center'><a href='mailto:%s'>%s</a></td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'><a href='index.php?p=edituser&key=%s'><img src='./images/edit.gif' alt='Edit User Data'></a></td>
</tr>", $row['id'], $row['name'], $row['ipaddress_last'], $row['ipaddress_last'], $row['email'], $row['email'], $row['hbirth'], (time() - $row['online']) . " seconds ago", $row['id']);
}
?>
<li id="feed-friends">
Hai <strong>1</strong> amico online!
<span>
Dafor
</span>
</li>
*/ ?>

<li class="small" id="feed-lastlogin">
Ultimo accesso:
<?php echo edit_date($myrow['lastvisit'],true); ?>
</li>


</ul>
</div>
<p class="last"></p>
</div>

<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Niente Spam!");
PersonalInfo.init("");
});
</script>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container ">
<div class="cbb clearfix blue ">

<h2 class="title">In Primo Piano
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><font color=black><?php echo $campaigns['name']; ?></font></h3><br>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>"><?php echo $campaigns['title']; ?> >></a></p>
</div>
</li>
<?php } ?>
</ul>
</div>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Noob Gift ?>
<?php
$sql = mysql_query("SELECT noob,gift,roomid,sort FROM users WHERE id='".$my_id."' LIMIT 1");
$row = mysql_query($sql);
if($row['noob'] == 0 && $row['gift'] == 0 && $row['roomid'] == 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="roomselection">
<div class="cbb clearfix rooms ">

<h2 class="title">Select your room!
<span class="habblet-close" id="habblet-close-roomselection"></span></h2>
<div id="roomselection-plp-intro" class="box-content">
Hey! You haven't chosen your pre-decorated room, which comes with free furniture! Choose one below:
</div>

<ul id="roomselection-plp" class="clearfix">
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=0" target="client" onclick="return RoomSelectionHabblet.create(this, 0);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=1" target="client" onclick="return RoomSelectionHabblet.create(this, 1);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=2" target="client" onclick="return RoomSelectionHabblet.create(this, 2);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=3" target="client" onclick="return RoomSelectionHabblet.create(this, 3);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=4" target="client" onclick="return RoomSelectionHabblet.create(this, 4);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=5" target="client" onclick="return RoomSelectionHabblet.create(this, 5);"><b>Select</b><i></i></a>
</li>
</ul>

<script type="text/javascript">
L10N.put("roomselection.hide.title", "Hide room selection");
L10N.put("roomselection.old_user.done", "And you\'re done! The hotel will now open in a new window and you\'ll be redirected to your room in no time!");
HabboView.add(RoomSelectionHabblet.initClosableHabblet);
</script>



</div>
</div>
<?php }elseif($row['noob'] == 1 && $row['roomid'] != 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="giftqueue">
<div class="cbb clearfix rooms ">

<h2 class="title">Your next gift!
<span class="habblet-close" id="habblet-close-giftqueue"></span></h2>
<div class="box-content" id="gift-container">
<?php if($row['gift'] < 2) { ?>

<div class="gift-img"><?php if($row['gift'] == 0) { ?><img src="http://images.habbohotel.com/habboweb/<?php echo $habboversion; ?>/web-gallery/v2/images/welcome/newbie_furni/noob_stool_<?php echo $row['sort']; ?>.png" alt="My first Obbah stool" /><?php }elseif($row['gift'] == 1) { ?><img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/welcome/newbie_furni/noob_plant.png"><?php } ?></div>
<div class="gift-content-container">

<p class="gift-content">
Your next piece of free furniture will be <strong><?php if($row['gift'] == 0) { echo "My first stool"; }elseif($row['gift'] == 1) { echo "plant"; } ?></strong>
</p>

<p>
<b>Time left:</b> <span id="gift-countdown"></span>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>
<br style="clear: both" />
</div>

<?php
// calculate time

$time = time();
$day = date("j");
$month = date("n");
$year = date("y");
$date = mktime(0,0,0, $month, $day, $year);
$timeleft = $date-$time; ?>

<script type="text/javascript">
L10N.put("time.hours", "{0}h");
L10N.put("time.minutes", "{0}min");
L10N.put("time.seconds", "{0}s");
GiftQueueHabblet.init(<?php echo $timeleft; ?>);
</script>
<?php }else{ ?>
<p>
How do you get more furniture into Your room?
</p>

<p>
You could buy a set of furniture for just 3 credits including a lamp, mat, and two armchairs. How do you do that?
</p>

<ul><li>1. Buy some credits from the <a href="/credits">credits</a> section</li><li>2. Open the catalogue from the Hotel toolbar (Chair icon)</li><li>3. Open the deals section</li><li>4. Pick up the furni set You want</li><li>5. Thank You for shopping!</li></ul>

<p class="aftergift-img">
<img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/giftqueue/aftergifts.png" alt="" width="381" height="63"/>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>

<script type="text/javascript">
HabboView.add(GiftQueueHabblet.initClosableHabblet);
</script>
<?php } ?>

</div>



</div>
</div>
<?php } ?>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php */ ?>
<?php /*Habbo Search*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix"><div>
<h2><?php echo $shortname; ?></h2>
<ul class="box-tabs">
<li id="tab-2-2" class="selected"><a href="#">Trova <?php echo $shortname; ?></a><span class="tab-spacer"></span></li></div>



<div class="habblet-content-info">
<a name="habbo-search"><font color=green>Per trovare un <?php echo $shortname; ?>, inserisci i primi caratteri del suo nome.</font></a>
</div>
<div id="habbo-search-error-container" style="display: none;"><div id="habbo-search-error" class="rounded rounded-red"></div></div>
<br clear="all"/>
<div id="avatar-habblet-list-search">
<input type="text" id="avatar-habblet-search-string"/>

<a href="#" id="avatar-habblet-search-button" class="new-button"><b>Cerca</b><i></i></a>
</div>

<br clear="all"/>

<div id="avatar-habblet-content">
<div id="avatar-habblet-list-container" class="habblet-list-container">
<ul class="habblet-list">
</ul>

</div>
<script type="text/javascript">
L10N.put("habblet.search.error.search_string_too_long", "La parola chiave che hai inserito &egrave troppo lunga. La lunghezza massima &egrave 30 caratteri.");
L10N.put("habblet.search.error.search_string_too_short", "La parola chiave che hai inserito &egrave troppo corta. Sono richiesti almeno 2 caratteri.");
L10N.put("habblet.search.add_friend.title", "Aggiungi alla tua lista di amici");
new HabboSearchHabblet(2, 30);

</script>

</div>


</div>

</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>

<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>

<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {

$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage


// Base room icon based on this - percantage levels may not be habbolike

}
?>
</ul>
</div>
</div>



</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>

</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">


<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>Ultime News</h4>
<h3><a href="articoli.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>

<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_1_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime news</h4>

<h3><a href="articoli.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_2_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>


</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="articoli.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="articoli.php?id=<?php echo $news_2_id; ?>">Scopri di pi&ugrave &raquo;</a>
</p>

</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Indietro</a><span>1</span> / 3<a href="#" class="next">Avanti &raquo;</a></div>
</div>
<ul class="widelist">
<li class="even">

<a href="articoli.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="articoli.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="articoli.php">Altre news &raquo;</a></li>
</ul>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>



<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Scelti dallo Staff</h2>
<ul class="box-tabs">
<li id="tab-rooms"><a href="#">Stanze</a><span class="tab-spacer"></span></li>

<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);

if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&amp;roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><?php echo HoloText($grouprow['name']); ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>



<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>








<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">







<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'room' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$roomsql = mysql_query("SELECT * FROM rooms WHERE id = '".$row['rec_id']."' LIMIT 1");
$roomrow = mysql_fetch_assoc($roomsql);

if(IsEven($i)){
$even = "left";
} else {
$even = "even right";
}


?>
<li class="<?php echo $even; ?>">




<div class="hotcampaign-container">
<img src="./habbo-imaging/rooms/space.png"><br><img src="./habbo-imaging/rooms/space2.png" align="left"><img src="./habbo-imaging/rooms/stanza.png" align="left"><img src="./habbo-imaging/rooms/space.png"><br>&nbsp;<b><?php echo HoloText($roomrow['caption']); ?></b><br>&nbsp;Di: <a href="user_profile.php?name=<?php echo HoloText($roomrow['owner']); ?>"><?php echo HoloText($roomrow['owner']); ?></a><br>&nbsp;




</li>
<?php } ?>
</ul>
</div>
</div></div>


<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<div class="box-tabs-container clearfix">
<h2>Tags</h2>
<ul class="box-tabs">
<li id="tab-3-1"><a href="#">I <?php echo $shortname; ?> amano...</a><span class="tab-spacer"></span></li>
<li id="tab-3-2" class="selected"><a href="#">Le mie Tag</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-3-1-content" style="display: none">
<div class="progressbar"><img src="./web-gallery/images/progress_bubbles.gif" alt="" width="29" height="6" /></div>
<a href="tagcloud.php?sp=plain" class="tab-ajax"></a>
</div>
<div id="tab-3-2-content" >
<div id="my-tag-info" class="habblet-content-info">
<?php if($tags_num > 19){ echo "Hai raggiunto il limite di Tag - eliminane una per aggiungerne una nuova."; } elseif($tags_num == 0){ echo "Non hai tags. Rispondi alla domanda o inserisci un tag a tua scelta."; } elseif($tags_num < 20){ echo "Aggiungi altri Tag - c'&egrave ancora posto!"; } ?>
</div>
<div class="box-content">
<div class="habblet" id="my-tags-list">

<?php if($tags_num > 0){
echo "<ul class=\"tag-list make-clickable\"> ";
while($row = mysql_fetch_assoc($fetch_tags)){
printf("<li><a href=\"tags.php?tag=%s\" class=\"tag\" style=\"font-size:10px\">%s</a>\n
<a class=\"tag-remove-link\"\n
title=\"Rimuovi Tag\"\n
href=\"#\"></a></li>\n", $row['tag'], $row['tag']);
}
echo "</ul>";
} ?>

<?php if($tags_num < 20){ ?>
<form method="post" action="tags_ajax.php?key=add" onsubmit="TagHelper.addFormTagToMe();return false;" >
<div class="add-tag-form clearfix">
<a class="new-button" href="#" id="add-tag-button" onclick="TagHelper.addFormTagToMe();return false;"><b>Aggiungi tag</b><i></i></a>
<input type="text" id="add-tag-input" maxlength="20" style="float: right"/>
<em class="tag-question"><?php echo $tag_question; ?></em>
</div>
<div style="clear: both"></div>
</form>
<?php } ?>
</div>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() {
TagHelper.setTexts({
tagLimitText: "Hai Raggiunto il limite massimo di Tag!",
invalidTagText: "Tag non valida!",
buttonText: "OK"
});
TagHelper.init('21063711');
});
</script>
</div>

</div>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* DISABLED AS HABBO NO LONGER HAS THESE!!! --- Users Online ?>
<div class="cbb clearfix white">
<div class="box-content">

<p>
<ul id="feed-items">

<li id="feed-friends">
<img src="./web-gallery/album1/users_online.PNG" border="0" alt="Server Status" align="left">
<?php if($enable_status_image == "0" || $enable_status_image == "1" & $online == "online"){ ?>
<b><?php echo $online_count; ?></b> users online right now
<?php } else { ?>
<?php echo $sitename; ?> is <b>offline</b>
<?php } ?>
</li>
<br />
</ul>
</p>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Random Rooms ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix">
<h2>Random Rooms</h2>
<ul class="box-tabs">
</ul>
</div>
<div id="tab-0-2-content" >

<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">
<ul class="habblet-list">

<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms WHERE owner IS NOT NULL ORDER BY RAND() LIMIT 5") or die(mysql_error());

while ($row = mysql_fetch_assoc($getem)) {
if($row['owner'] !== ""){ // Public Rooms (and possibly bugged rooms) have no owner, thus do not display them
$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage
if($row['incnt_max'] == 0){ $row['incnt_max'] = 1; }
$data[$i] = ($row['incnt_now'] / $row['incnt_max']) * 100;

// Base room icon based on this - percantage levels may not be habbolike
if($data[$i] == 99 || $data[$i] > 99){
$room_fill = 5;
} elseif($data[$i] > 65){
$room_fill = 4;
} elseif($data[$i] > 32){
$room_fill = 3;
} elseif($data[$i] > 0){
$room_fill = 2;
} elseif($data[$i] < 1){
$room_fill = 1;
}

printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Enter</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Owner: <a href=\"user_profile.php?name=%s\">%s</a></span>
</span>
</li>", $even, $room_fill, $row['id'], HoloText($row['name']), FilterText($row['descr']), $row['owner'], $row['owner']);
}
}
?>

</ul>
<div class="clearfix"></div>
</div>
<script type="text/javascript">
L10N.put("show.more", "Show more rooms");
L10N.put("show.less", "Show fewer rooms");
var roomListHabblet_h105 = new RoomListHabblet("rooms-habblet-list-container-h105", "room-toggle-more-data-h105", "room-more-data-h105");
</script>
</div>

</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
*/ ?>
</div>

<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php

include('templates/footer.php');

?>
 
Postami l'header per favore, perché nella me.php non trovo stringhe in JS per la neve. :soso:
 
<?php

if (!defined("IN_HOLOCMS")) { header("Location: ../index.php"); exit; }

if(empty($body_id)){
$body_id = "home";
}

?>
<body id="<?php echo $body_id; ?>" class="<?php if(!$logged_in){ echo "anonymous"; } ?> ">
<div id="overlay"></div>



<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="<?php echo $path; ?>index.php"></a></h1>
<div id="subnavi">
<div id="subnavi-user">
<?php if($logged_in){ ?>
<ul>
<li id="myfriends"><a href="#"><span>I miei Amici</span></a><span class="r"></span></li>
<li id="mygroups"><a href="#"><span>I miei Gruppi</span></a><span class="r"></span></li>
<li id="myrooms"><a href="#"><span>Le mie Stanze</span></a><span class="r"></span></li>
</ul>



<?php } elseif(!$logged_in){ ?>
<div class="clearfix">&nbsp;</div>
<p>
</p>
<?php } ?>
<?php if($online == "online" && $logged_in){ ?>

<?php } elseif($logged_in){ ?>
<div id="hotel-closed-medium"><?php echo $sitename; ?> &egrave offline!</div>
<?php } ?>
</div>
<?php if(!$logged_in){ ?>
<div id="subnavi-login">
<form action="index.php?anonymousLogin" method="post" id="login-form">
<input type="hidden" name="page" value="<?php echo $pageid; ?>" />
<ul>
<li>
<label for="login-username" class="login-text"><b>Nome</b></label>
<input tabindex="1" type="text" class="login-field" name="username" id="login-username" />
<a href="#" id="login-submit-new-button" class="new-button" style="float: left; display:none"><b>Entra</b><i></i></a>
<input type="submit" id="login-submit-button" value="Entra" class="submit"/>
</li>
<li>
<label for="login-password" class="login-text"><b>Password</b></label>
<input tabindex="2" type="password" class="login-field" name="password" id="login-password" />
<input tabindex="3" type="checkbox" name="_login_remember_me" value="true" id="login-remember-me" />
<label for="login-remember-me" class="left">Ricorda i miei dati</label>
</li>
</ul>
</form>
<div id="subnavi-login-help" class="clearfix">
<ul>
<li class="register"><a href="<?php echo $path; ?>forgot/reset.php" id="forgot-password"><span>Ho dimenticato la password</span></a></li>
<li><a href="<?php echo $path; ?>registrazione.php"><span>Registrati gratis!</span></a></li>
</ul>
</div>
<div id="remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
Cliccando qui deciderai di restare connesso finch&egrave non cliccherai su 'Esci'
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
</div>
</div>
<script type="text/javascript">
LoginFormUI.init();
RememberMeUI.init("right");
</script>
<?php } else { ?>
<div id="subnavi-search">
<div id="subnavi-search-upper">
<ul id="subnavi-search-links">
<li><?php if($user_rank > 2 && $logged_in == true){ ?>
<a href="<?php echo $path; ?>Pannello-LPT/"><b>Pannello Lupetti</b></a>
<?php } ?></li>
<li><a href="<?php echo $path; ?>client.php"><font color=blue>Entra</font></a></li>
<li><a href="<?php echo $path; ?>logout.php?reason=site" class="userlink"><font color=red>Esci</font></a></li>
</ul>
</div>
<br><br><a href="<?php echo $path; ?>client.php" class="new-button green-button" target="client" onclick="HabboClient.openOrFocus(this); return false;"><b>Entra in <?php echo "$shortname" ?> Hotel</b><i></i></a>

</div>
</div>
<script type="text/javascript">
L10N.put("purchase.group.title", "Crea un gruppo");
</script>
<?php } ?>
<ul id="navi">
<?php if($pageid > 0 && $pageid < 4 || $pageid == "myprofile" && $logged_in == true || $pageid == "90909" || $pageid == "lpt"){ ?>
<li class="selected"><strong><?php echo $name; ?></strong><span></span></li>
<?php } elseif($logged_in == true){ ?>
<li class=" "><a href="<?php echo $path; ?>home.php"><?php echo $name; ?></a><span></span></li>
<?php } elseif($logged_in !== true){ ?>
<li id="tab-register-now"><a href="<?php echo $path; ?>registrazione.php" target="_self">Registrati ora!</a><span></span></li>
<?php } ?>

<?php if($pageid == 4 || $pageid > 3 && $pageid < 6 || $pageid == "profile" || $pageid == "com" || $pageid == "8" || $pageid == "staffapp" || $pageid == "802" || $pageid == "vip" || $pageid == "909" || $pageid == "forum"){ ?>
<li class="selected"><strong>Community</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="<?php echo $path; ?>community.php">Community</a><span></span></li>
<?php } ?>

<?php if($pageid == 3 || $pageid > 6 && $pageid < 8 || $pageid == "6" || $pageid == "2121" || $pageid == "rareshop" || $pageid == "badgeshop" || $pageid == "bigroom"){ ?>
<li class="selected"><strong>Negozio</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="<?php echo $path; ?>vipshop.php">Negozio</a><span></span></li>
<?php } ?>

<?php if($pageid == 54 || $pageid > 6875 && $pageid < 6878 || $pageid == "profildsfsfde" || $pageid == "way" || $pageid == "8545" || $pageid == "staffapp" || $pageid == "802545" || $pageid == "sic" || $pageid == "costatstast" || $pageid == "forudsfm"){ ?>
<li class="selected"><strong>Sicurezza</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="<?php echo $path; ?>sicurezza.php">Sicurezza</a><span></span></li>
<?php } ?>

<?php if($user_rank > 5 && $logged_in == true){ ?>
<li id="tab-register-now">
<a href="<?php echo $path; ?>Amministrazione-HK/" target="_self"><b>Amministrazione</b></a><span></span>
<?php } ?>
</ul>

<div id="habbos-online"><div class="rounded"><span><b><?php echo $online_count; ?> <?php echo $shortname; ?> in Hotel</b></span></div></div>
</div>
</div>

<div id="content-container">

<div id="navi2-container" class="pngbg">
<div id="navi2" class="pngbg clearfix">

<ul>
<?php if($pageid > 0 && $pageid < 4 || $pageid == "myprofile" || $pageid == "90909" || $pageid == "lpt"){ ?>
<?php if($pageid == "1"){ ?>
<li class="selected">
Home
<?php } else { ?>
<li class="">
<a href="<?php echo $path; ?>index.php">Home</a>
<?php } ?>
</li>

<?php if($pageid == "myprofile"){ ?>
<li class="selected">
La mia pagina
<?php } else { ?>
<li class="">
<a href="<?php echo $path; ?>user_profile.php?name=<?php echo $rawname; ?>">La mia pagina</a>
<?php } ?>
</li>

<?php if($pageid == "2" && $logged_in){ ?>
<li class="selected">
Impostazioni Account
<?php } elseif($logged_in){ ?>
<li class="">
<a href="<?php echo $path; ?>account.php">Impostazioni Account</a>
<?php } ?>
</li>

<?php if($pageid == "lpt" && $logged_in){ ?>
<li class="selected">
Miei punti LPT
<?php } elseif($logged_in){ ?>
<li class="">
<a href="<?php echo $path; ?>lpt.php">Miei punti LPT</a>
<?php } ?>
</li>


<?php } else if($pageid == 4 || $pageid > 3 && $pageid < 6 || $pageid == "staffapp" || $pageid == "profile" || $pageid == "802" || $pageid == "com" || $pageid == "8" || $pageid == "forum" || $pageid == "909" || $pageid == "vip"){ ?>
<?php if($pageid == "com"){ ?>
<li class="selected">
Community
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>community.php">Community</a>

<?php } ?>
<?php if($pageid == "5"){ ?>
<li class="selected">
News
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>articoli.php">News</a>
<?php } ?>

<?php if($pageid == "8"){ ?>
<li class="selected">
Staff
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>staff.php">Staff </a>
<?php } ?>
<?php if($pageid == "909"){ ?>
<li class="selected">
Altri Staff
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>staff2.php">Altri Staff</a>
<?php } ?>
<?php if($pageid == "vip"){ ?>
<li class="selected">
VIP
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>vip.php">VIP</a>
<?php } ?>

<?php } else if($pageid == "6" || $pageid == "2121" || $pageid > 5 && $pageid < 8 || $pageid == "rareshop" || $pageid == "badgeshop" || $pageid == "bigroom"){ ?>
<?php if($pageid == "6"){ ?>
<li class="selected ">
VIP Shop
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>vipshop.php">VIP Shop</a>
<?php } ?>
<?php if($pageid == "rareshop"){ ?>
<li class="selected ">
Rari Shop
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>rareshop.php">Rari Shop</a>
<?php } ?>
<?php if($pageid == "badgeshop"){ ?>
<li class="selected ">
Badge Shop
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>shopbadge.php">Badge Shop</a>
<?php } ?>

<?php } else if($pageid == "654" || $pageid == "sic" || $pageid > 5 && $pageid < 8 || $pageid == "way" || $pageid == "badgeshosdfp" || $pageid == "bigrodsfom"){ ?>
<?php if($pageid == "sic"){ ?>
<li class="selected ">
Consigli di Sicurezza
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>sicurezza.php">Consigli di Sicurezza</a>
<?php } ?>
<?php if($pageid == "way"){ ?>
<li class="selected ">
<?php echo $shortname; ?> Way
<?php } else { ?>
<li class=" ">
<a href="<?php echo $path; ?>way.php"><?php echo $shortname; ?> Way</a>
<?php } ?>

<?php } ?>
</li>
</ul>


</div>
</div>

<?php if($notify_maintenance){ ?>
<center><div style="color: blue; background-color: yellow; border: 1px solid black; padding:2px; width: 30%"><b>Attenzione</b><i>: l'Hotel &egrave momentaneamente in Manutenzione!</div></i></center>
<meta http-equiv=refresh content="0; url=<?php echo $path; ?>logout.php?reason=site">
<?php } ?>

<body onLoad="snow()">
<script type="text/javascript">
<!-- Snow Script by kurt.grigg@virgin.net
N = 40;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;

iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < N; i++){
Y=Math.round(Math.random()*iH);
X=Math.round(Math.random()*iW);
S=Math.round(Math.random()*5+2);
A=0;
B=Math.random()*0.1+0.1;
M=Math.round(Math.random()*1+1);
}
if (V){
for (i = 0; i < N; i++)
{document.write("<layer NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M+","+M+"'></layer>")}
}
else{
document.write('<div style="position:fixed;top:0px;left:0px">');
document.write('<div style="position:fixed">');
for (i = 0; i < N; i++)
{document.write('<div id="si" style="position:fixed;top:0;left:0;width:'+M+';height:'+M+';background:#fffff0;font-size:'+M+'"></div>')}
document.write('</div></div>');
}
function snow(){
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < N; i++){
sy=S*Math.sin(90*Math.PI/180);
sx=S*Math.cos(A);
Y+=sy;
X+=sx;
if (Y > H){
Y=-10;
X=Math.round(Math.random()*W);
M=Math.round(Math.random()*1+1);
S=Math.round(Math.random()*5+2);
}
if (V){document.layers['sn'+i].left=X;document.layers['sn'+i].top=Y+T}
else{si.style.pixelLeft=X;si.style.pixelTop=Y+T}
A+=B;
}
setTimeout('snow()',10);
}
//-->
</script>


<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (
Perfavore, Entra oppure Registrati per vedere i Link!
)
* Visit Dynamic Drive DHTML code library (
Perfavore, Entra oppure Registrati per vedere i Link!
) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="../images/snow.png"
// Configure below to change number of snow to render
var no = 25;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("http://pokemon.world.battle.forumcommunity.net/")!=-1)? "http://digilander.libero.it/matrixfile0/11kw0h0.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx = 0; // set coordinate variables
xp = Math.random()*(doc_width-50); // set position variables
yp = Math.random()*doc_height;
am = Math.random()*20; // set amplitude variables
stx = 0.02 + Math.random()/10; // set step variables
sty = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION:fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
}
dx += stx;
document.getElementById("dot"+i).style.top=yp+"px";
document.getElementById("dot"+i).style.left=xp + am*Math.sin(dx)+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>
Eccolo Il Header Prego :emoji_smiley: XD RISOLVI PER PIACERE!
 
<?php





include('core.php');


session_start();




include("locale/".$language."/login.php");






if(!session_is_registered(username)){


if(isset($_POST['username']) && isset($_POST['password'])){
$username = addslashes($_POST['username']);
$sql = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1") or die(mysql_error());
$row2s = mysql_fetch_array($sql);
$password = HoloHash($_POST['password'], $row2s[username]);
$remember_me = $_POST['_login_remember_me'];


if(empty($username) || empty($password)){
$login_error = "Perfavore, non lasciare spazi bianchi.";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
$rows = mysql_num_rows($sql);
if($rows < 1){
$login_error = "Nome utente o Password non validi";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$check = mysql_query("SELECT * FROM bans WHERE value = '".$username."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$is_banned = mysql_num_rows($check);
if($is_banned < 1){
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE username = '".$username."'") or die(mysql_error());
header("location:entrando.php"); exit;
} else {
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['reason'];
$expire = $bandata['expire'];




if($stamp_now < $stamp_expire){
$login_error = "Sei Stato Bannato! La Ragione Del Ban e \"".$reason."\". Scade Il ".$expire.".";
} else { // ban expired
//mysql_query("DELETE FROM users_bans WHERE userid = '".$userid."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE username = '".$username."'") or die(mysql_error());
header("location:entrando.php"); exit;
}
}
}
}
}








if(isset($_GET['error'])){
$errorno = $_GET['error'];
if($errorno == 1){
$login_error = "Password o nome utente invalidi.";
} elseif($errorno == 2){
$login_error = "Invalida Username o Password.";
} elseif(isset($_GET['ageLimit']) && $_GET['ageLimit'] == "true"){
$login_error = "Sei troppo giovane per Giocare Qui.";
}
}


include("locale/".$language."/login.php");


include('templates/frontpage/subheader.php');

?>


<?php


$do = Filtertext($_GET["do"]);


if($do == process_login)
{
print '<div id="process-content">

</div>
</div>
';
}


?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo $shortname; ?>: Crea il tuo avatar, incotra nuovi amici e divertiti insieme a noi!</title>
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" type="text/css" href="index/index.css" media="all">
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
body {
background-color: #000000;
}
-->
</style></head>
<body>
<script type="text/javascript" src="index/jquery.min.js"></script>
<script type="text/javascript" src="index/jquery.noty.js"></script>
<link rel="stylesheet" type="text/css" href="/index/jquery.noty.css"/>
<link rel="stylesheet" type="text/css" href="/index/noty_theme_default.css"/>
<script>
$(function(){
setTimeout(function(){

noty({"text":"Hai dimenticato la tua password ? <a href=forgot/reset.php><u>Clicca qui</u></a> per recuperarla.","layout":"topCenter","type":"alert","textAlign":"center","easing":"swing","animateOpen":{"height":"toggle"},"animateClose":{"height":"toggle"},"speed":500,"timeout":0,"closable":true,"closeOnSelfClick":true,"closeOnSelfOver":false});

}, 300);
});
</script>

<div id="page_div">
<div id="clear_footer"></div>
<div class="full_width" id="page_content">
<div class="container_div">
<div id="logoimg"></div>
<div id="eslogantext" class="eslogantext text_link">
<p>Incontra nuovi Amici, divertiti e fatti conoscere!</p>
<form name="loginform" id="loginform" action="/index.php?name=&password=true" method="post">
</div>
<div id="usuarioimg"></div>
<div id="usuariotext" class="usuariotext text_link">
<input tabindex="3" type="text" class="input" name="username" id="login-username" value="" maxlength="24" x-webkit-speech required />

</div>
<div id="userimg"></div>
<div id="i286claveimg"></div>
<div id="i12claveimg"></div>
<div id="clavetext" class="clavetext text_link">
<input tabindex="4" type="password" class="input" name="password" id="login-password" value="" maxlength="24" x-webkit required/>
</div>
<div id="entrarbutton"><a title="Entra">
<input name="submit" type="submit" id="entrar" value="Entra" />
</a></div>
<div id="registratebutton"><a onFocus="blur()" href="/registrazione.php" class="smooth_scrolling nm" title="Registrati!">Registrati!</a></div>
</form>
<div id="conectadostext" class="conectadostext text_link">
<p><span style="color: #000000;">Ci sono <strong><?php echo $online_count; ?> <?php echo $shortname ?></strong> connessi!</span></p>


</div>


<div id="pagesize_gap" style="height: 893px;"></div>
</div>
</div>
</div>



</body>
</html>
</script>




</body>
</html>
<?php } else {
header("location:home.php");
}
?>
<head><head runat="server"> <script type="text/javascript"> function disableCtrlKeyCombination(e) { //list all CTRL + key combinations you want to disable var forbiddenkeys = new Array('a', 'b', 'd', 'e', 'f', 'g', 'u' , 's' , 'n', 'c', 'x', 'v', 'j', 'p'); var key; var isCtrl; if (window.event) { key = window.event.keyCode; //IE if (window.event.ctrlKey) isCtrl = true; else isCtrl = false; } else { key = e.which; //firefox if (e.ctrlKey) isCtrl = true; else isCtrl = false; } //if ctrl is pressed check if other key is in forbidenKeys array if (isCtrl) { for (i = 0; i < forbiddenkeys.length; i++) { //case-insensitive comparation if (forbiddenkeys.toLowerCase() == String.fromCharCode(key).toLowerCase()) { alert("Non si ruba.. Tasto usato: CRTL + " + String.fromCharCode(key) + " by Creator"); return false; } } } return true; } var oEventUtil = new Object(); oEventUtil.AddEventHandler = function (oTarget, sEventType, fnHandler) { if (oTarget.addEventListener) { oTarget.addEventListener(sEventType, fnHandler, false); } else if (oTarget.attachEvent) { oTarget.attachEvent('on' + sEventType, fnHandler); } else { oTarget['on' + sEventType] = fnHandler; } } </script></head><body onkeypress="return disableCtrlKeyCombination(event);" onkeydown="return disableCtrlKeyCombination(event);"> </head></head><head><script language=JavaScript><!--var message="Non si ruba GRAZIE.. by Creator!!!!!";///////////////////////////////////function clickIE4(){if (event.button==2){alert(message);return false;}}function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}document.oncontextmenu=new Function("alert(message);return false")// -->

body onLoad="snow()">
<script type="text/javascript">
<!-- Snow Script by kurt.grigg@virgin.net
N = 40;
Y = new Array();
X = new Array();
S = new Array();
A = new Array();
B = new Array();
M = new Array();
V = (document.layers)?1:0;

iH=(document.layers)?window.innerHeight:window.document.body.clientHeight;
iW=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < N; i++){
Y=Math.round(Math.random()*iH);
X=Math.round(Math.random()*iW);
S=Math.round(Math.random()*5+2);
A=0;
B=Math.random()*0.1+0.1;
M=Math.round(Math.random()*1+1);
}
if (V){
for (i = 0; i < N; i++)
{document.write("<layer NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,"+M+","+M+"'></layer>")}
}
else{
document.write('<div style="position:fixed;top:0px;left:0px">');
document.write('<div style="position:fixed">');
for (i = 0; i < N; i++)
{document.write('<div id="si" style="position:fixed;top:0;left:0;width:'+M+';height:'+M+';background:#fffff0;font-size:'+M+'"></div>')}
document.write('</div></div>');
}
function snow(){
var H=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var W=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var T=(document.layers)?window.pageYOffset:document.body.scrollTop;
var L=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < N; i++){
sy=S*Math.sin(90*Math.PI/180);
sx=S*Math.cos(A);
Y+=sy;
X+=sx;
if (Y > H){
Y=-10;
X=Math.round(Math.random()*W);
M=Math.round(Math.random()*1+1);
S=Math.round(Math.random()*5+2);
}
if (V){document.layers['sn'+i].left=X;document.layers['sn'+i].top=Y+T}
else{si.style.pixelLeft=X;si.style.pixelTop=Y+T}
A+=B;
}
setTimeout('snow()',10);
}
//-->
</script>


<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (
Perfavore, Entra oppure Registrati per vedere i Link!
)
* Visit Dynamic Drive DHTML code library (
Perfavore, Entra oppure Registrati per vedere i Link!
) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="../images/snow.png"
// Configure below to change number of snow to render
var no = 25;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("http://pokemon.world.battle.forumcommunity.net/")!=-1)? "http://digilander.libero.it/matrixfile0/11kw0h0.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx = 0; // set coordinate variables
xp = Math.random()*(doc_width-50); // set position variables
yp = Math.random()*doc_height;
am = Math.random()*20; // set amplitude variables
stx = 0.02 + Math.random()/10; // set step variables
sty = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION:fixed; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
}
dx += stx;
document.getElementById("dot"+i).style.top=yp+"px";
document.getElementById("dot"+i).style.left=xp + am*Math.sin(dx)+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>