<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".$_GET['key']."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$pagename = $name;
$pageid = "1";
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE receiver_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");
include('templates/community_subheader.php');
include('templates/community_header.php');
$fetch_tags = mysql_query("SELECT tag,id FROM user_tags WHERE user_id = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);
$randomq[] = "Was ist deine Lieblinssendung?";
$randomq[] = "Wer ist dein Lieblingsschauspieler?";
$randomq[] = "Wer ist deine Lieblingsschauspielerin?";
$randomq[] = "Was machst du am Liebsten?";
$randomq[] = "Was ist dein Lieblingslied?";
$randomq[] = "Wie beschreibst du dich?";
$randomq[] = "Was ist deine Lieblingsband?";
$randomq[] = "Was ist dein Lieblingscomic?";
$randomq[] = "Was ist deine Lieblingszeit des Jahres?";
$randomq[] = "Was ist dein Lieblingsessen?";
$randomq[] = "Was für Sport machst du?";
$randomq[] = "Wer war deine erste Liebe?";
$randomq[] = "Was ist dein Lieblingsfilm?";
$randomq[] = "Was ist dein Lieblingstier?";
$randomq[] = "Was ist deine Lieblingsfarbe?";
$randomq[] = "Hast du ein Lieblingsmitarbeiter?";
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);
$tag_question = $randomq[$chosen];
$get_flashclient = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_flashclient' AND value = '1'");
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<link rel="stylesheet" href="/lightweightmepage.css" type="text/css">
<div id="container">
<div id="wide-personal-info">
<div id="habbo-plate">
<a href="Xeppo.de/me">
<img alt="hiphopiplay" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&action=sit,wav,crr=5&head_direction=3&direction=4&gesture=sml" style="margin-left: -6px; margin-top: -20px;">
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">Name:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Motto:</div>
<div class="content"><span title="Click to enter your motto/ status"><?php if(!empty($myrow['motto'])){ echo HoloText($myrow['motto']); } else { echo "Was machst du heute?"; } ?></span>
<p style="display: none"><input type="text" length="30" name="motto" value="<?php echo HoloText($myrow['motto']); ?>"/></p></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Taler:</div>
<div class="content"><?php echo $myrow['credits']; ?> <img src="credits.png"></div>
</div>
<div id="pixels-box" class="info-box">
<div class="label">Pixel:</div>
<div class="content"><?php echo $myrow['activity_points']; ?> <img src="pixels.png"></div>
</div>
<div id="respect-box" class="info-box">
<div class="label">VIP Punkte:</div>
<div class="content"><?php echo $myrow['vip_points']; ?> VIP-Punkte <img src="points.png"></div>
</div>
<div id="respect2-box" class="info-box">
<div class="label">Lobe erhalten:</div>
<div class="content"><?php echo $userinfo['Respect']; ?> Lobe erhalten <img src="respect.png"></div>
</div>
<div id="getmoney2-box" class="info-box">
<div class="label">Letzter Login:</div>
<div class="content"><?php echo date('d.m.Y H:i:s', $myrow['last_online']); echo" Uhr"; ?></div>
</div>
<div id="shop-box" class="info-box">
<div class="label"></div>
<div class="content"><br><center>
<?php
$tmp = mysql_query("SELECT * FROM cms_alerts WHERE userid = '".$my_id."'") or die(mysql_error());
$alerts = mysql_num_rows($tmp);
if($alerts > 0){
$row = mysql_fetch_assoc($tmp);
$id = $row['id'];
$alert = $row['alert'];
if($alerts > 0){ ?>
<li id="feed-item-campaign" class="contributed">
<a href="#" class="remove-feed-item" id="remove-feed-item-<?php echo $id; ?>" title="Löschen">Löschen</a>
<div>
<b>Nachricht vom <?php echo $sitename; ?> Staff</b><br><br>
<?php echo $alert; ?>
</div>
</li>
<?php while($row = mysql_fetch_assoc($tmp)){ ?>
<li id="feed-item-campaign" class="contributed">
<a href="#" class="remove-feed-item" id="remove-feed-item-<?php echo $id; ?>" title="Löschen">Löschen</a>
<b>Nachricht vom <?php echo $sitename; ?> Staff</b>
<?php echo $alert; ?>
</div>
</li>
<?php } } }
$sql = mysql_query("SELECT * FROM messenger_requests WHERE to_id = '".$my_id."'");
$count = mysql_num_rows($sql);
$sql = mysql_query("SELECT * FROM users,messenger_friendships WHERE users.online = '1' AND (messenger_friendships.user_two_id = '".$my_id."') AND messenger_friendships.user_one_id = users.id AND users.id != '".$my_id."' ORDER BY username");
$count = mysql_num_rows($sql);
$i = 0;
if($count > 0){
?>
</li>
<?php }
if($vip > 0 && $date_normal !== $myrow['getmoney_date']){
mysql_query("UPDATE users SET credits = credits + 500, vip_points = vip_points + 25, getmoney_date = '".$date_normal."' WHERE id = '".$my_id."'");
mysql_query("UPDATE user_stats SET DailyRespectPoints = '5', DailyPetRespectPoints = '5' WHERE id = '".$my_id."'");
mysql_query("INSERT INTO cms_transactions (userid,descr,date,amount) VALUES ('".$my_id."','Getmoney','".$date_full."','+800')") or die(mysql_error());
echo"<li id=\"feed-item-dailygift\">[<b>VIP Bonus</b>] - Du hast dich heute eingeloggt und bekommst dafür <b>+800</b> Taler und <b>+25</b> VIP-Punkte. Viel Spaß!</li>";
}elseif($vip < 1 && $date_normal !== $myrow['getmoney_date']){
mysql_query("UPDATE users SET credits = credits + 500, getmoney_date = '".$date_normal."' WHERE id = '".$my_id."'") or die(mysql_error());
mysql_query("UPDATE user_stats SET DailyRespectPoints = '3', DailyPetRespectPoints = '3' WHERE id = '".$my_id."'") or die(mysql_error());
mysql_query("INSERT INTO cms_transactions (userid,descr,date,amount) VALUES ('".$my_id."','Getmoney','".$date_full."','+500')") or die(mysql_error());
echo"<li id=\"feed-item-dailygift\">Du hast dich heute eingeloggt und bekommst dafür <b>500</b> Taler.</li>";
}
$dob = $myrow['birth'];
$bits = explode(".", $dob);
$day = $bits[0];
$month2 = $bits[1];
$year2 = $bits[2];
$date = $date_normal;
if($day == $d && $month2 == $m){ ?>
<li id="feed-birthday">
<div>
Herzlichen Glückwunsch zum Geburstag, <?php echo $name; ?>!<br />Wir wünschen dir alles gute und noch einen schönen Tag.
</div>
</li>
<?php }
$get_em = mysql_query("SELECT id FROM homes_stickers WHERE userid = '".$my_id."' AND subtype = '4'") or die(mysql_error());
$row_em = mysql_num_rows($get_em);
if($row_em > 0){
$row_em = mysql_fetch_assoc($get_em);
$sql = mysql_query("SELECT * FROM homes_guestbook WHERE widget_id = '".$row_em['id']."' AND pickup = '1'");
$count = mysql_num_rows($sql);
if($count > 0){ ?>
<li class="small" id="feed-guestbook">
Du hast <a href="../home/<?php echo $name; ?>"><?php echo $count; ?> neue Mitteilung(en) in deinem Gästebuch.</a></li>
<?php } } ?>
</center></div>
</div>
<div class="enter-hotel-btn-shockwave">
<div class="enter-hotel-btn2">
<?php if(mysql_num_rows($get_flashclient) < 1 && $server['status'] !== "0"){ ?>
<div class="closed enter-btn">
<span>Hotel ist Offline</span>
<b></b>
</div></div>
<?php } else { ?>
<div class="open enter-btn">
<a href="client" target="client" onclick="openOrFocusHabbo(this); return false;"> Ins Hotel <i></i></a>
<b></b>
</div></div>
<?php } ?>
</div>
<p class="last"></p>
</div>
<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Müll mich nicht voll!");
PersonalInfo.init("");
});
</script>
<div id="container">
<div class="clearfix" style="position: relative" id="content">
<div class="column" id="column1">
<?php
// #########################################################################
// Hot Campaigns
// #########################################################################
$hotcampaigns = mysql_query("SELECT * FROM cms_hotcampaigns ORDER BY id DESC LIMIT 10") or die(mysql_error());
if(mysql_num_rows($hotcampaigns) > 0){ ?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns</h2>
<div id="hotcampaigns-habblet-list-container">
<?php while($row = mysql_fetch_assoc($hotcampaigns)){ ?>
<ul id="hotcampaigns-habblet-list">
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $row['url']; ?>">
<img src="<?php echo $row['image_url']; ?>" align="left" alt="" /></a>
<h3><?php echo $row['caption']; ?></h3>
<p><?php echo $row['descr']; ?></p>
<p class="link"><a href="<?php echo $row['url']; ?>">Hier lang »</a></p>
</div>
</li>
</ul>
<?php } ?>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
<?php }
// #########################################################################
// Minimail
// #########################################################################
?>
<div class="habblet-container minimail" id="mail">
<div class="cbb clearfix blue ">
<h2 class="title">MEINE MAILS</h2>
<div id="minimail">
<div class="minimail-contents">
<?php
$bypass = true;
$page = "inbox";
include('./minimail/loadMessage.php');
?>
</div>
<div id="message-compose-wait"></div>
<form style="display: none" id="message-compose">
<div>An:</div>
<div id="message-recipients-container" class="input-text" style="width: 426px; margin-bottom: 1em">
<input type="text" value="" id="message-recipients" />
<div class="autocomplete" id="message-recipients-auto">
<div class="default" style="display: none;">Gib den Namen deines Freundes ein</div>
<ul class="feed" style="display: none;"></ul>
</div>
</div>
<div>Betreff<br/>
<input type="text" style="margin: 5px 0" id="message-subject" class="message-text" maxlength="100" tabindex="2" />
</div>
<div>Nachricht<br/>
<textarea style="margin: 5px 0" rows="5" cols="10" id="message-body" class="message-text" tabindex="3"></textarea>
</div>
<div class="new-buttons clearfix">
<a href="#" class="new-button preview"><b>Vorschau</b><i></i></a>
<a class="new-button send" href="#"><b>Senden</b><i></i></a>
</div>
</form>
</div>
<?php
$sql = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$my_id."' OR user_two_id = '".$my_id."'") or die(mysql_error());
$count = mysql_num_rows($sql);
$sql = mysql_query("SELECT * FROM cms_minimail WHERE receiver_id = '".$my_id."' OR sender_id = '".$my_id."'") or die(mysql_error());
$mescount = mysql_num_rows($sql);
?>
<script type="text/javascript">
L10N.put("minimail.compose", "Erstellen").put("minimail.cancel", "Zurück")
.put("bbcode.colors.red", "Rot").put("bbcode.colors.orange", "Orange")
.put("bbcode.colors.yellow", "Gelb").put("bbcode.colors.green", "Grün")
.put("bbcode.colors.cyan", "Blaugrün").put("bbcode.colors.blue", "Blau")
.put("bbcode.colors.gray", "Grau").put("bbcode.colors.black", "Schwarz")
.put("minimail.empty_body.confirm", "Sei sicher, dass du die Mail mit einem leeren Inhalt senden willst")
.put("bbcode.colors.label", "Farben").put("linktool.find.label", " ")
.put("linktool.scope.habbos", "<?php echo $shortname; ?>s").put("linktool.scope.rooms", "Räume")
.put("linktool.scope.groups", "Gruppen").put("minimail.report.title", "Mail melden an einen Moderator");
L10N.put("date.pretty.just_now", "Grade jetzt");
L10N.put("date.pretty.one_minute_ago", "1 Minute her");
L10N.put("date.pretty.minutes_ago", "{0} Minuten her");
L10N.put("date.pretty.one_hour_ago", "1 Stunde her");
L10N.put("date.pretty.hours_ago", "{0} Stunden her");
L10N.put("date.pretty.yesterday", "Gestern");
L10N.put("date.pretty.days_ago", "{0} Tage her");
L10N.put("date.pretty.one_week_ago", "1 Woche her");
L10N.put("date.pretty.weeks_ago", "{0} Wochen her");
new MiniMail({ pageSize: 10,
total: <?php echo $mescount; ?>,
friendCount: <?php echo $count; ?>,
maxRecipients: 50,
messageMaxLength: 20,
bodyMaxLength: 4096,
secondLevel: <?php if($count = 0){ echo "true"; }else{ echo "false"; } ?>});
</script>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php
// #########################################################################
// eHabbo's Suchen
// #########################################################################
?>
<div class="habblet-container ">
<div class="cbb clearfix default ">
<div class="box-tabs-container clearfix">
<h2><?php echo $shortname; ?>'s</h2>
<ul class="box-tabs">
<li id="tab-0-4-1" class="selected"><a href="#">Suche <?php echo $shortname; ?>s</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-0-4-1-content">
<div class="habblet-content-info">
<a name="habbo-search">Gebe die Anfangsbuchstaben des gesuchten <?php echo $shortname; ?>s ein</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><?php echo $shortname; ?> suchen</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", "Dieses Wort ist zu lang. Maximal 30 Buchstaben.");
L10N.put("habblet.search.error.search_string_too_short", "Dieses Wort ist zu kurz. Mindestens 2 Buchstaben.");
L10N.put("habblet.search.add_friend.title", "Freundesantrag senden");
new HabboSearchHabblet(2, 30);
</script>
</div>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div class="column" id="column2">
<?php
// #########################################################################
// News
// #########################################################################
require_once('./data_classes/server-data.php_data_classes-news.php.php');
?>
<div class="habblet-container ">
<div class="cbb clearfix red ">
<div class="box-tabs-container clearfix">
<h2>Staffempfehlung</h2>
<ul class="box-tabs">
<li id="tab-1-3-1"><a href="#">Räume</a><span class="tab-spacer"></span></li>
<li id="tab-1-3-2" class="selected"><a href="#">Gruppen</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-1-3-1-content" style="display: none">
<div id="staffpicks-rooms-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list">
<?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['id_rec']."' LIMIT 1");
$roomrow = mysql_fetch_assoc($roomsql);
if(IsEven($i)){
$even = "even left";
} else {
$even = "even2";
}
$roomcount = $roomrow['users_now'] / $roomrow['users_max'] * 100;
if($roomcount == 99 $roomcount > 99){
$rl = 5;
} elseif($roomcount > 65){
$rl = 4;
} elseif($roomcount > 32){
$rl = 3;
} elseif($roomcount > 0){
$rl = 2;
} elseif($roomcount < 1){
$rl = 1;
}
$getOwner = mysql_query("SELECT * FROM users WHERE id = '".$roomrow['owner']."'");
$owner = mysql_fetch_assoc($getOwner);
?>
<li class="<?php echo $even; ?> room-occupancy-<?php echo $rl; ?>" roomid="<?php echo $roomrow['id']; ?>">
<div>
<span class="room-name"><a href="../client?forwardId=2&roomId=<?php echo $roomrow['id']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $roomrow['id']; ?>', '<?php echo $roomrow['roomtype']; ?>'); return false;" target="85d327955e5fc804ac33675ef8d05e3c9d3ef7ed"><?php echo $roomrow['caption']; ?></a></span>
<span class="room-owner"><a href="/home/<?php echo $owner['username']; ?>"><?php echo $owner['username']; ?></a></span>
<p><?php echo $roomrow['description']; ?></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
<div id="tab-1-3-2-content" >
<div id="staffpicks-groups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols">
<?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 group_details WHERE id = '".$row['id_rec']."' 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(<?php echo $path; ?>/habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>)">
<?php if($grouprow['roomid'] !== 0) { ?><a href="<?php echo $path; ?>/client?forwardId=2&roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="9cf76b1ff4b99b02656456ee94e0271ab56272ee" class="group-room"></a><?php } ?>
<a class="item" href="./groups/<?php echo $grouprow['id']; ?>"><?php echo HoloText($grouprow['name']); ?><br><?php echo HoloText($grouprow['description']); ?></a>
</li>
<?php } ?>
</ul>
</div>
</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 green ">
<div class="box-tabs-container clearfix">
<h2>Tags</h2>
<ul class="box-tabs">
<li id="tab-3-1"><a href="#"><?php echo $shortname; ?>s mögen...</a><span class="tab-spacer"></span></li>
<li id="tab-3-2" class="selected"><a href="#">Meine Tags</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/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/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 "Tag limit reached. You need you remove one of your tags before adding another."; } elseif($tags_num == 0){ echo " Beantworte die Fragen oder füge deine ausgewählten Tags ein."; } elseif($tags_num < 20){ echo "Du hast nicht alle Tags ausgefüllt"; } ?>
</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=\"".$path."/tag/%s\" class=\"tag\" style=\"font-size:10px\">%s</a>\n
<a class=\"tag-remove-link\"\n
title=\"Remove tag\"\n
href=\"#\"></a></li>\n", $row['tag'], $row['tag']);
}
echo "</ul>";
} ?>
<?php if($tags_num < 20){ ?>
<form method="post" action="tags_ajax?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>Tag einfügen</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: "You\'ve reached the tag limit - delete one of your tags if you want to add a new one.",
invalidTagText: "Ungültiger Tag",
buttonText: "OK"
});
TagHelper.init('21063711');
});
</script>
</div>
</div>
<?php
// #########################################################################
// Logs
// #########################################################################
?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
</div>
<?php require_once('./templates/community_footer.php'); ?>
<p>
<script type="text/javascript" src="http://www.ipcounter.de/count_js.php?u…&color=blue"></script>