<?php
/*=====================================================================+
|| # HaddoCMS based HoloCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================+
|| # HaddoCMS v2.0 by Raikas77
|| #
www.sciax2.it/forum/development/haddocms-v2-build-2100-a-535753.html
|+=====================================================================*/
include('core.php');
include('includes/session.php');
include('includes/news_headlines.php');
if($_SESSION['registernew'] == true){
require_once 'reg-beta.php';
exit;
}
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$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/community/subheader.php');
include('templates/community/header.php');
?>
<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<?PHP
$rand =rand(0,100);
if($rand < 85){
//PUBLI EDU
?>
<?PHP
} else {
//PUBLI HECTOR
?>
<?PHP
}
?>
<style>
.credits_small {
background-color: #98721A;
background-image: url("web-gallery/v2/images/credit.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #D19E25;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 25%;
float: left;
}
.pixels_small {
background-color: #537384;
background-image: url("web-gallery/v2/images/pixel.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #719DBA;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
.mon_small {
background-color: #50C878;
background-image: url("web-gallery/v2/images/monete.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #090;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
</style>
<div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&head_direction=3&gesture=sml&action=&size=l" width="64" height="110"/>
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">Nome Utente:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Missione:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Ultimo Accesso:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="/client.php" class="new-button green-button" target="client" onclick="HabboClient.openOrFocus(this); return false;">Entra in <?php echo $shortname ?><i></i></a>
<b></b>
</div>
</div>
</div>
<?php
require_once('./nuovanews.php');
?>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">I miei personaggi | <a href="/identity/add_avatar.php">Aggiungi altri</a></h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$myrowq = mysql_query("SELECT * FROM users WHERE mail = '".$myrow['mail']."' ORDER BY lastvisit DESC LIMIT 100");
$result = mysql_query("SELECT id,username,last_online,look,password FROM users WHERE mail = '".$myrow['mail']."' ORDER BY id DESC");
while($myrow = mysql_fetch_array($myrowq))
{
$i++;
if(IsEven($i)) {
$oddeven = "even";
} else {
$oddeven = "odd";
}
echo "
<li class=".$oddeven.">
<div class=\"hotcampaign-container\">
<img src=\"http://www.habbo.it/habbo-imaging/avatarimage?figure=".$myrow['look']."&size=s\" figure=\"".$myrow['look']."\" alt=\"".$myrow['username']."\" class=\"avatar\" /><font size=\"2\"><span style=\"font-weight: bold;\">".$myrow['username']."</span></font><br> Ultimo accesso: ".$myrow['lastvisit']."<br>
<CENTER>
<a href=\"habblet/check_avatar.php?name=".$myrow['username']."\"><b>Gioca</b></a><br></CENTER>
</div>
</li>";
}
?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<footer>
</footer>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
include('templates/community/footer.php');
?>