Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHPRETRO ADDON] New Me.php w/ Stats

Status
Not open for further replies.
Skilled Illusionist
Joined
Oct 7, 2009
Messages
369
Reaction score
46
Hello,

I said I would release A me.php page with stats at the bottom so here it is:

Just - [PHPRETRO ADDON] New Me.php w/ Stats - RaGEZONE Forums


Code:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

require_once('./includes/core.php');
require_once('./includes/session.php');
$data = new me_sql;
$lang->addLocale("home.me");

$page['id'] = "me";
$page['name'] = $lang->loc['pagename.me'];
$page['bodyid'] = "home";
$page['cat'] = "home";
require_once('./templates/community_header.php');
?>

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

						<div id="new-personal-info" style="background-image:url(<?php echo PATH; ?>/web-gallery/v2/images/personal_info/hotel_views/<?php echo $settings->find("site_hotel_image"); ?>)" />
	<div class="enter-hotel-btn">
<?php if(HotelStatus() == "online"){ ?>
		<div class="open enter-btn">
				<a href="<?php echo PATH; ?>/client" target="client" onclick="openOrFocusHabbo(this); return false;"><?php echo $lang->loc['enter.short']; ?><i></i></a>
			<b></b>
		</div>
<?php } else { ?>
<div class="closed enter-btn">
	<span><?php echo $lang->loc['closed.short']; ?></span>
	<b></b>
</div>
<?php } ?>
	</div>

	<div id="habbo-plate">
		<a href="<?php echo PATH; ?>/profile">
			<img alt="<?php echo $user->name; ?>" src="<?php echo $user->avatarURL("self","b,3,3,sml,1,0"); ?>" width="64" height="110" />
		</a>
	</div>

	<div id="habbo-info">
		<div id="motto-container" class="clearfix">
			<strong><?php echo $user->name; ?>:</strong>
			<div>
				<?php if($user->user("mission") != ""){ echo $input->unicodeToImage($input->HoloText($user->user("mission"))); } else { echo $lang->loc['change.motto']; } ?>

			</div>
		</div>
		<div id="motto-links" style="display: none"><a href="#" id="motto-cancel"><?php echo $lang->loc['cancel']; ?></a></div>
	</div>

	<ul id="link-bar" class="clearfix">
		<li class="change-looks"><a href="<?php echo PATH; ?>/profile"><?php echo $lang->loc['change.looks']; ?> »</a></li>
		<li class="credits">
			<a href="<?php echo PATH; ?>/credits"><?php echo $user->user("credits"); ?></a> <?php echo $lang->loc['credits']; ?>
		</li>
                    <li>
                    <?php $mysql_query = mysql_query("SELECT * FROM users WHERE name = '$user->name'"); $fetch_array = mysql_fetch_array($mysql_query); ?>
			    Health: <?php echo $fetch_array['health']; ?>/100
		    </li>
	</ul>

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

<?php
if($serverdb->result($data->select1($user->id), 0) == "1" && $serverdb->result($core->select9($user->id), 0) == 0) {
$removed = $db->result($db->query("SELECT COUNT(*) FROM ".PREFIX."alerts WHERE userid = '".$user->id."' AND alert = 'clubalert' AND type = '-1'"));
if($removed < 1){ ?>
<li id="feed-item-hc-reminder">
    <a href="#" class="remove-feed-item" id="remove-hc-reminder" title="<?php echo $lang->loc['remove.hc.notice']; ?>"><?php echo $lang->loc['remove.hc.notice']; ?></a>

	<div>
			<?php echo $lang->loc['hc.subscribe.question']; ?>
	</div>
	<div id="hc-reminder-buttons" class="clearfix">
		<a href="#" class="new-button" id="hc-reminder-1" title="31 <?php echo $lang->loc['days']; ?>, 20 <?php echo $lang->loc['credits']; ?>"><b>1 <?php echo $lang->loc['months']; ?></b><i></i></a>
		<a href="#" class="new-button" id="hc-reminder-2" title="93 <?php echo $lang->loc['days']; ?>, 50 <?php echo $lang->loc['credits']; ?>"><b>3 <?php echo $lang->loc['months']; ?></b><i></i></a>
		<a href="#" class="new-button" id="hc-reminder-3" title="186 <?php echo $lang->loc['days']; ?>, 80 <?php echo $lang->loc['credits']; ?>"><b>6 <?php echo $lang->loc['months']; ?></b><i></i></a>
	</div>

</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo addslashes($lang->loc['habbo.club']); ?>");
</script>
<?php
}
}

if($user->user("rank") > 4){
    $sql = $db->query("SELECT COUNT(*) FROM ".PREFIX."help WHERE picked_up = '0'");
    if($db->result($sql) > 0){
            echo "            <li class=\"small\" id=\"feed-group-discussion\">
                <strong>".$lang->loc['staff.messages']."</strong><br />".$lang->loc['there.are']." <strong><a href=\"".PATH."/housekeeping/help\" target=\"_self\">".$db->result($sql)."</a></strong> ".$lang->loc['help.quries']."
            </li>";
    }
}

$sql = $db->query("SELECT * FROM ".PREFIX."alerts WHERE userid = '".$user->id."' AND type > -1 ORDER BY id DESC");
    if($db->num_rows($sql) > 0){
		while($row = $db->fetch_assoc($sql)) {
	        if($row['type'] == 2){
				$heading = $lang->loc['notification'];
	        }else{
				$heading = $lang->loc['message'];
			}
?>
			<li id="feed-item-campaign" class="contributed">
			    <a href="#" class="remove-feed-item" title="<?php echo $lang->loc['remove.notification']; ?>"><?php echo $lang->loc['remove.notification']; ?></a>
			    <div>
			            <b><?php echo $heading; ?></b><br />
			            <?php echo nl2br($input->HoloText($row['alert'],true)); ?>
			    </div>
			</li>

<?php
        }
    }
$dob = $user->user("birth");
$bits = explode("-", $dob);
$day = $bits[0];
$month2 = $bits[1];
$year2 = $bits[2];
$date = HoloDate();
if($day == $date['today'] && $month2 == $date['month']){
?>
			<li id="feed-birthday">
			    <div>
			            <?php echo $lang->loc['happy.birthday'].", ".$user->name."!"; ?>
			    </div>
			</li>
<?php
}
if($serverdb->num_rows($data->select3($user->id)) != 0){ ?>
			<li id="feed-notification">
				<?php echo $lang->loc['you.have']; ?> <a href="<?php echo PATH; ?>/client" onclick="HabboClient.openOrFocus(this); return false;"><?php echo $serverdb->num_rows($data->select3($user->id)); ?> <?php echo $lang->loc['friend.requests']; ?></a> <?php echo $lang->loc['waiting']; ?>
			</li>
<?php }
$cutoff = (time() - 1801);
$sql = $data->select4($cutoff, $user->id);
$count = $serverdb->num_rows($sql);
$i = 0;
if($db->num_rows($sql) > 0){
?>
			<li id="feed-friends">
				<?php echo $lang->loc['you.have']; ?> <strong><?php echo $count; ?></strong> <?php echo $lang->loc['friends.online']; ?>
				<span>
			<?php while($row = $db->fetch_row($sql)){
					$i++;
					echo $row[0];
					if($i < $count){ echo ", "; }
					echo "\n";
				} ?>
				</span>
			</li>
<?php } 

$sql = $data->select14($user->id);
$i = 0;
$groups = "";
while($row = $db->fetch_row($sql)){
	$row2 = $db->fetch_assoc($db->query("SELECT MAX(".PREFIX."forum_posts.time) AS lastpost_time FROM ".PREFIX."forum_threads,".PREFIX."forum_posts WHERE groupid = '".$row[0]."' LIMIT 1"));
	if($row2['lastpost_time'] > $user->user("lastvisit")){
		$i++;
		$groups = $groups."\n<a href=\"".groupURL($row[0])."/discussions\">".$row[1]."</a>, ";
	}
}
if($i > 0 && $groups != ""){
$groups = substr($groups,0,-2);
?>
            <li class="small" id="feed-group-discussion">
            	<strong><?php echo $i; ?></strong> <?php echo $lang->loc['groups.new.messages']; ?>:
            	<span><?php echo $groups; ?>
            	</span>
            </li>
<?php } ?>

            <li class="small" id="feed-lastlogin">
                <?php echo $lang->loc['last.online']; ?>:
                <?php echo date('M j, Y g:i:s A', $user->user("lastvisit")); ?>
            </li>


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

<script type="text/javascript">
    HabboView.add(function() {
        L10N.put("personal_info.motto_editor.spamming", "<?php echo addslashes($lang->loc['no.spam']); ?>");
        PersonalInfo.init("");
    });
</script>


                </div>
                <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
				
<?php $lang->addLocale("widget.campaigns"); ?>
				<div class="habblet-container ">		
						<div class="cbb clearfix blue ">

	
							<h2 class="title"><?php echo $lang->loc['hot.campaigns']; ?>
							</h2>
						<div id="hotcampaigns-habblet-list-container">
    <ul id="hotcampaigns-habblet-list">
<?php
$i = 0; $sql = $db->query("SELECT * FROM ".PREFIX."campaigns WHERE visible = '1' ORDER BY id DESC");
while($row = $db->fetch_assoc($sql)){
if($input->IsEven($i)){ $even = "even"; }else{ $even = "odd"; }
?>

        <li class="<?php echo $even; ?>">
            <div class="hotcampaign-container">
                <a href="<?php echo str_replace("%path%",PATH,$row['url']); ?>"><img src="<?php echo str_replace("%path%",PATH,$row['image']); ?>" align="left" alt="" /></a>
                <h3><?php echo $input->HoloText($row['name'],true); ?></h3>
                <p><?php echo $input->HoloText($row['desc'],true); ?></p>

                <p class="link"><a href="<?php echo str_replace("%path%",PATH,$row['url']); ?>"><?php echo $lang->loc['go.there']; ?> »</a></p>
            </div>
        </li>

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

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

<?php $sql = $db->query("SELECT * FROM ".PREFIX."news ORDER BY id DESC LIMIT 5");
$i = 0;
while($row = $db->fetch_assoc($sql)){
	$row['summary'] = nl2br($input->HoloText($row['summary'], true));
	$row['title'] = $input->HoloText($row['title'], true);
	$row['title_safe'] = $input->stringToURL($input->HoloText($row['title'],true),true,true);
	$row['date'] = date('M j, Y', $row['time']);
	$news[$i] = $row;
	$i++;
}
?>
						<div id="newspromo">
        <div id="topstories">
	        <div class="topstory" style="background-image: url(<?php echo $news[0]['header_image']; ?>)">
	            <h4><?php echo $lang->loc['latest.news']; ?></a></h4>
	            <h3><a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $news[0]['title']; ?></a></h3>
	            <p class="summary">
	            <?php echo $news[0]['summary']; ?>
	            </p>
	            <p>
	                <a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $lang->loc['read.more']; ?></a>
	            </p>
	        </div>
            <div id="topstories-nav" style="display: none"><a href="#" class="prev"><?php echo $lang->loc['news.previous']; ?></a><span>1</span> / 3<a href="#" class="next"><?php echo $lang->loc['news.next']; ?></a></div>
        </div>
        <ul class="widelist">
            <li class="even">
                <a href="<?php echo PATH."/articles/".$news[1]['id']."-".$news[1]['title_safe']; ?>"><?php echo $news[1]['title']; ?></a><div class="newsitem-date"><?php echo $news[1]['date']; ?></div>
            </li>
            <li class="odd">
                <a href="<?php echo PATH."/articles/".$news[2]['id']."-".$news[2]['title_safe']; ?>"><?php echo $news[2]['title']; ?></a><div class="newsitem-date"><?php echo $news[2]['date']; ?></div>
            </li>
            <li class="last"><a href="<?php echo PATH; ?>/articles"><?php echo $lang->loc['news.more']; ?></a></li>
        </ul>
</div>
<script type="text/javascript">
	document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
					</div>

				</div>
<div class="habblet-container ">        
                        <div class="cbb clearfix blue "> 
    
                            <h2 class="title">Where is everyone?</h2> 
<div class="box-content">
<table>
     <tr>
        <td width="160px">
          <strong>Room</strong>
        </td>
        <td width="60px">
          <strong>Visitors</strong>
        </td>
        <td width="60px">
          <strong>Room ID</strong>
        </td>
     </tr>
<?php
$getTopRooms = mysql_query("SELECT * FROM rooms ORDER BY visitors_now DESC LIMIT 7");
while($topRooms = mysql_fetch_array($getTopRooms)) {
echo '<tr>
        <td>
          '.$topRooms['name'].'
        </td>
        <td>
          '.$topRooms['visitors_now'].'
        </td>
        <td>
          '.$topRooms['id'].'
        </td>
     </tr>';
}
?>
</table>
</div>
</div> 
                        
                    </div> 
                </div> 

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

</div>

<div id="container">
	<div id="content" style="position: relative" class="clearfix">
    <div id="column1" class="column">

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

							<h2 class="title">Character Stats
							</h2>

						<script src="<?php echo PATH; ?>/web-gallery/static/js/credits.js" type="text/javascript"></script>
<p class="credits-countries-select">
<?php
$user_query = mysql_query("SELECT * FROM users WHERE name = '".$user->name."'");
$user = mysql_fetch_array($user_query);
?>
<center>
<img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=<?php echo $user['figure']; ?>&size=b&direction=2&head_direction=3&gesture=sml&size=s" align="left" />
<table border="0" width="330px">
<tr>
<td width='25%' valign='top'><strong>Kills</strong>
</td>
<td width='25%' valign='top'><strong>Deaths</strong>
</td>
<td width='25%' valign='top'><strong>Arrests</strong>
</td>
<td width='25%' valign='top'><strong>Hits</strong>
</td>
</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['kills']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['deaths']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['arrests']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['hits']; ?><br /><br />
</td>
</tr>
<tr>
<td width='25%' valign='top'><strong>Strength</strong>
</td>
<td width='25%' valign='top'><strong>Health</strong>
</td>
</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['str']; ?>
</td>
<td width='25%' valign='top'><?php echo $user['health']; ?>/100
</td>
</tr>
</table>
</center>
<script type="text/javascript">
L10N.put("credits.navi.read_more", "Read more");
L10N.put("credits.navi.close_fulltext", "Close instructions");
PaymentMethodHabblet.init();
</script>


					</div>

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


</div>

</div>
</div>

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

</div>
<script type="text/javascript">
HabboView.run();
</script>
<?php require_once('./templates/community_footer.php'); ?>

Don't forget the community header:
Code:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

if (!defined("IN_HOLOCMS")) { header("Location: ".PATH."/"); exit; }
$version = version();
$lang->addLocale("community.header");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; 

charset=utf-8" />
	<title><?php echo SHORTNAME; ?>: <?php echo $page['name']; ?> 

</title>

<script type="text/javascript">
  var uservoiceOptions = {
    key: 'habbocity',
    host: 'habbocity.uservoice.com', 
    forum: '48405',
    alignment: 'left',
    background_color:'#f00', 
    text_color: 'white',
    hover_color: '#06c',
    lang: 'en',
    showTab: true
  };
  function _loadUserVoice() {
    var s = document.createElement('script');
    s.src = ("https:" == document.location.protocol ? "https://" : "http://") + "uservoice.com/javascripts/widgets/tab.js";
    document.getElementsByTagName('head')[0].appendChild(s);
  }
  _loadSuper = window.onload;
  window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
</script>


<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
    <link rel="shortcut icon" href="<?php echo PATH; 

?>/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
    <link rel="alternate" type="application/rss+xml" title="<?php echo 

SHORTNAME; ?>: <?php echo $lang->loc['rss']; ?>" href="<?php echo PATH; 

?>/articles/rss.xml" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/libs2.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/visual.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/libs.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/common.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/fullcontent.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/styles/local/com.css" type="text/css" />

<script src="<?php echo PATH; ?>/web-gallery/js/local/com.js" 

type="text/javascript"></script>

<script type="text/javascript">
document.habboLoggedIn = <?php if($user->id == 0){ echo "false"; }else{ 

echo "true"; } ?>;
var habboName = <?php if($user->id != 0){ ?>"<?php echo $user->name; 

?>"<?php }else{ echo "null"; } ?>;
var ad_keywords = "";
var habboReqPath = "<?php echo PATH; ?>";
var habboStaticFilePath = "<?php echo PATH; ?>/web-gallery";
var habboImagerUrl = "<?php echo PATH; ?>/habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = 

"client"; }

</script>

<?php
switch($page['id']){
	case "welcome":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/welcome.css" type="text/css" />
<?php
		break;
	case "me":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/personal.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/habboclub.js" 

type="text/javascript"></script>

								<link 

rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/minimail.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/styles/myhabbo/control.textarea.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/minimail.js" 

type="text/javascript"></script>
<?php
		break;
	case "profile":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/settings.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/settings.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/friendmanagement.css" type="text/css" />
<?php
		break;
	case "community":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/rooms.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/rooms.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/moredata.js" 

type="text/javascript"></script>
<?php
		break;
	case "tryout":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/settings.js" 

type="text/javascript"></script>
<?php
		break;
	case "collectables":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/credits.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/collectibles.css" type="text/css" />
<?php
		break;
	case "home":
?>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/myhabbo.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/skins.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/dialogs.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/control.textarea.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/myhabbo.css" type="text/css" />
	<link href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/assets.css" type="text/css"

rel="stylesheet" />

<script src="<?php echo PATH; ?>/web-gallery/static/js/homeview.js"

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/lightwindow.css" type="text/css" />

<script src="<?php echo PATH; ?>/web-gallery/static/js/homeauth.js"

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/group.css" type="text/css" />
<style type="text/css">

    #playground, #playground-outer {
	    width: <?php if($user->IsHCMember($userrow[0])){ echo

"922"; }else{ echo "752"; } ?>px;
	    height: 1360px;
    }

</style>

<?php if($page['edit'] == true){ ?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/homeedit.js"

type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
document.observe("dom:loaded", function() { initView(<?php echo

$userrow[0]; ?>, <?php echo $userrow[0]; ?>); });
function isElementLimitReached() {
	if (getElementCount() >= 200) {
		showHabboHomeMessageBox("<?php echo

addslashes($lang->loc['error']); ?>", "<?php echo

addslashes($lang->loc['savehome.limit.error']); ?>", "<?php echo

addslashes($lang->loc['close']); ?>");
		return true;
	}
	return false;
}

<?php if($page['type'] == "home"){ ?>
function cancelEditing(expired) {
	location.replace("<?php echo PATH; ?>/myhabbo/cancel/<?php echo

$userrow[0]; ?>" + (expired ? "?expired=true" : ""));
}

function getSaveEditingActionName(){
	return '/myhabbo/save';
}
<?php }else{ ?>
function cancelEditing(expired) {
	location.replace("<?php echo PATH;

?>/groups/actions/cancelEditingSession" + (expired ? "?expired=true" :

""));
}

function getSaveEditingActionName(){
	return '/groups/actions/saveEditingSession';
}
<?php } ?>

function showEditErrorDialog() {
	var closeEditErrorDialog = function(e) { if (e) {

Event.stop(e); } Element.remove($("myhabbo-error")); Overlay.hide(); }
	var dialog = Dialog.createDialog("myhabbo-error", "", false,

false, false, closeEditErrorDialog);
	Dialog.setDialogBody(dialog, '<p><?php echo

addslashes($lang->loc['error.dialog']); ?></p><p><a href="#"

class="new-button" id="myhabbo-error-close"><b><?php echo

addslashes($lang->loc['close']); ?></b><i></i></a></p><div

class="clear"></div>');
	Event.observe($("myhabbo-error-close"), "click",

closeEditErrorDialog);
	Dialog.moveDialogToCenter(dialog);
	Dialog.makeDialogDraggable(dialog);
}

<?php if($page['type'] == "groups"){ ?>
	document.observe("dom:loaded", function() {
		Dialog.showInfoDialog("session-start-info-dialog",
		"<?php echo

addslashes($lang->loc['editing.session.timeout']); ?> <?php echo

millisecondsToMinutes($timeout['expire']); ?> <?php echo

addslashes($lang->loc['minutes']); ?>.",
		"<?php echo addslashes($lang->loc['ok']); ?>",

function(e) {Event.stop(e);

Element.hide($("session-start-info-dialog"));Overlay.hide();Utils.setAl

lEmbededObjectsVisibility('hidden');});
		var timeToTwoMinuteWarning= <?php echo

$timeout['twominutes']; ?>;
		if(timeToTwoMinuteWarning > 0){
			setTimeout(function(){


Dialog.showInfoDialog("session-ends-warning-dialog",
					"<?php echo

addslashes($lang->loc['editing.session.timeout']); ?> 2 <?php echo

addslashes($lang->loc['minutes']); ?>.",
					"<?php echo

addslashes($lang->loc['ok']); ?>", function(e) {Event.stop(e);

Element.hide($("session-ends-warning-dialog"));Overlay.hide();Utils.set

AllEmbededObjectsVisibility('hidden');});
			}, timeToTwoMinuteWarning);
		}
	});
<?php } ?>

function showSaveOverlay() {
	var invalidPos = getElementsInInvalidPositions();
	if (invalidPos.length > 0) {
	    $A(invalidPos).each(function(el) { Element.scrollTo(el);

Effect.Pulsate(el); });
	    showHabboHomeMessageBox("<?php echo

addslashes($lang->loc['cant.do.that']); ?>", "<?php echo

addslashes($lang->loc['cant.do.that.desc']); ?>", "<?php echo

addslashes($lang->loc['close']); ?>");
		return false;
	} else {
		Overlay.show(null,'<?php echo

addslashes($lang->loc['saving']); ?>');
		return true;
	}
}
</script>
<?php }else{ ?>
<script type="text/javascript">
document.observe("dom:loaded", function() { initView(<?php

if($page['type'] == "home"){ echo $userrow[0]; }else{ echo

$grouprow[0]; } ?>, <?php if($user->id == "0"){ echo "null"; }else{

echo $user->id; } ?>); });
</script>
<?php } ?>
<?php
		break;
}
?>

<?php if($page['discussion'] == true){ ?><link href="<?php echo PATH;

?>/web-gallery/styles/discussions.css" type="text/css"

rel="stylesheet"/><?php } ?>

<meta name="description" content="<?php echo

$settings->find("site_description"); ?>" />
<meta name="keywords" content="<?php echo

$settings->find("site_keywords"); ?>" />

<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/pngfix.js"

type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); }

catch(e) {}
</script>

<style type="text/css">
body { behavior: url(<?php echo PATH; ?>/web-gallery/js/csshover.htc);

}
</style>
<![endif]-->
<meta name="build" content="PHPRetro <?php echo $version['version']."

".$version['status']; ?>" />
</head>
<body id="<?php echo $page['bodyid']; ?>" class="<?php if($user->name

== "Guest"){ echo "anonymous"; } ?> ">
<div id="overlay"></div>
<div id="header-container">
	<div id="header" class="clearfix">
		<h1><a href="<?php echo PATH; ?>/"></a></h1>
       <div id="subnavi">
<?php if($user->id != "0"){ ?>
			<div id="subnavi-user">
				<ul>
					<li id="myfriends"><a

href="#"><span><?php echo $lang->loc['my.friends']; ?></span></a><span

class="r"></span></li>
					<li id="mygroups"><a

href="#"><span><?php echo $lang->loc['my.groups']; ?></span></a><span

class="r"></span></li>
					<li id="myrooms"><a

href="#"><span><?php echo $lang->loc['my.rooms']; ?></span></a><span

class="r"></span></li>
				</ul>
			</div>
            <div id="subnavi-search">
                <div id="subnavi-search-upper">

                <ul id="subnavi-search-links">
                    <li><a href="<?php echo PATH; ?>/help"

target="habbohelp" onclick="openOrFocusHelp(this); return false"><?php

echo $lang->loc['help']; ?></a></li>
					<li><a href="<?php echo PATH;

?>/account/logout" class="userlink" id="signout"><?php echo

$lang->loc['sign.out']; ?></a></li>
				</ul>
                </div>
            </div>
            <div id="to-hotel">
<?php if(HotelStatus() == "online"){ ?>
					    <a href="<?php echo PATH;

?>/client" class="new-button green-button" target="client"

onclick="HabboClient.openOrFocus(this); return false;"><b><?php echo

$lang->loc['enter']; ?></b><i></i></a>
<?php }else{ ?>
						<div

id="hotel-closed-medium"><?php echo $lang->loc['closed']; ?></div>
<?php } ?>
			</div>
<?php }else{ ?>
            <div id="subnavi-user">
                <div class="clearfix"> </div>
                <p>
				        <a href="<?php echo PATH;

?>/client" id="enter-hotel-open-medium-link" target="client"

onclick="HabboClient.openOrFocus(this); return false;"><?php echo

$lang->loc['enter']; ?></a>
                </p>
            </div>
            <div id="subnavi-login">
                <form action="<?php echo PATH; ?>/account/submit"

method="post" id="login-form">
            		<input type="hidden" name="page" value="<?php

echo $_SERVER["REQUEST_URI"]; ?>" />
                    <ul>
                        <li>
                            <label for="login-username"

class="login-text"><b><?php echo $lang->loc['username']; ?></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><?php echo $lang->loc['login']; ?></b><i></i></a>
                            <input type="submit"

id="login-submit-button" value="<?php echo $lang->loc['login']; ?>"

class="submit"/>
                        </li>
                        <li>
                            <label for="login-password"

class="login-text"><b><?php echo $lang->loc['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"><?php echo $lang->loc['remember']; ?></label>
                        </li>
                    </ul>
                </form>
                <div id="subnavi-login-help" class="clearfix">
                    <ul>
                        <li class="register"><a href="<?php echo PATH;

?>/account/password/forgot" id="forgot-password"><span><?php echo

$lang->loc['forgot']; ?></span></a></li>
                    	<li><a href="<?php echo PATH;

?>/register"><span><?php echo $lang->loc['register'];

?></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">
					<?php echo

$lang->loc['remember.popup']; ?>
	</div>
	<div class="bottom-bubble-b"><div></div></div>
</div>

            </div>
<?php } ?>
        </div>
<?php if($user->id != 0){ ?>
		<script type="text/javascript">
		L10N.put("purchase.group.title", "<?php echo

$lang->loc['purchase.group.title']; ?>");
		document.observe("dom:loaded", function() {
            $("signout").observe("click", function() {
                HabboClient.close();
            });
        });
        </script>
<?php }else{ ?>
		<script type="text/javascript">
			LoginFormUI.init();
			RememberMeUI.init("right");
		</script>
<?php } ?>
<ul id="navi">
		<?php if($user->name != "Guest"){ ?>
        <li<?php if($page['cat'] == "home"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "home"){ echo

"<strong>".$user->name." </strong>"; }else{ echo "<a

href=\"".PATH."/me\">".$user->name."</a>"; } ?>
			<span></span>
		</li>
		<?php }else{ ?>
		<li id="tab-register-now"><a href="<?php echo PATH;

?>/register"><?php echo $lang->loc['register.tab'];

?></a><span></span></li>
		<?php } ?>
		<li<?php if($page['cat'] == "community"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "community"){ echo 

"<strong>".$lang->loc['community']." </strong>"; }else{ echo "<a

href=\"".PATH."/community\">".$lang->loc['community']."</a>"; } ?>
			<span></span>
		</li>
		<li<?php if($page['cat'] == "credits"){ echo " 

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "credits"){ echo 

"<strong>Market</strong>"; }else{ echo "<a 

href=\"".PATH."/properties\">Market</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "games"){ echo " 

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "games"){ echo 

"<strong>Games</strong>"; }else{ echo "<a 

href=\"".PATH."/games_deathmatch\">Games</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "bussiness"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "bussiness"){ echo 

"<strong>Business</strong>"; }else{ echo "<a

href=\"".PATH."/jobs\">Business</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "bussinesss"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "bussinesss"){ echo 

"<strong>Business</strong>"; }else{ echo "<a

href=\"".PATH."/forums\">Forums</a>"; } ?>
			<span></span>
		</li>

		<?php if((int) $user->user("rank") > 4){ ?>
		<li id="tab-register-now"><a href="<?php echo PATH;

?>/housekeeping/"><?php echo $lang->loc['housekeeping'];

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

        <div id="habbos-online"><div class="rounded"><span><?php echo

GetOnlineCount()." ".$lang->loc['members.online'];

?></span></div></div>
	</div>
</div>

<div id="content-container">

<?php
switch($page['cat']){
	case "home":
?>
	<?php if($user->name != "Guest"){ ?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "me"){ echo "selected"; } ?>">
				<?php if($page['id'] == "me"){ echo $lang->loc['home']; }else{ echo "<a href=\"".PATH."/me\">".$lang->loc['home']."</a>"; } ?>
			</li>

    		<li class="<?php if($page['id'] == "profile"){ echo

"selected"; } ?> last">
				<?php if($page['id'] == "profile"){

echo $lang->loc['settings']; }else{ echo "<a

href=\"".PATH."/profile\">".$lang->loc['settings']."</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
	<?php } ?>
<?php
		break;
	case "community":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] ==

"community"){ echo "selected"; } ?>">
				<?php if($page['id'] == "community"){ 

echo $lang->loc['community']; }else{ echo "<a 

href=\"".PATH."/community\">".$lang->loc['community']."</a>"; } ?>
			</li>
    		<li class="<?php if($page['id'] == "news"){ echo 

"selected"; } ?>">
				<?php if($page['id'] == "news"){ echo 

$lang->loc['news']; }else{ echo "<a

href=\"".PATH."/articles\">".$lang->loc['news']."</a>"; } ?>
    		</li>
    		    		<li class="<?php if($page['id'] == "topstats"){ echo

"selected"; } ?>">
				<?php if($page['id'] == "topstats"){ echo

'Top Stats'; }else{ echo "<a

href=\"".PATH."/topstats\">Top Stats</a>"; } ?>
    		</li>

				<li class="<?php if($page['id'] == "vip_members"){ echo

"selected"; } ?>">
				<?php if($page['id'] == "vip_members"){ echo

'VIP Members'; }else{ echo "<a

href=\"".PATH."/vip_members\">VIP Members</a>"; } ?>
    		</li>

    		<li class="<?php if($page['id'] == "staff"){ echo

"selected"; } ?> last">
				<?php if($page['id'] == "staff"){ echo 

"Staff"; }else{ echo "<a href=\"".PATH."/staff\">Staff</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
	case "credits":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "credits"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "credits"){ 

echo 'Properties'; }else{ echo "<a 

href=\"".PATH."/properties\">Properties</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
	case "games":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "games_deathmatch"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "games_deathmatch"){ 

echo 'Deathmatch'; }else{ echo "<a 

href=\"".PATH."/games_deathmatch\">Deathmatch</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
	case "bussiness":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "jobs"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "jobs"){ echo 

'Job Market'; }else{ echo "<a href=\"".PATH."/jobs\">Job Market</a>"; } 

?>
    		</li>
                    	<li class="<?php if($page['id'] == "jobs_create"){

echo "selected"; } ?> last">
				<?php if($page['id'] == "jobs_create"){ echo

'My Business'; }else{ echo "<a href=\"".PATH."/jobs_create\">My Business</a>"; }

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

This Is For PHPRolePlay By RastaLulz. This Will Not Work On Normal PHPRetro. No Extra Sql Required.

Have Fun!
 
Last edited:
I'm back!
Joined
Nov 29, 2008
Messages
526
Reaction score
95
Very nice release mate!

Clean & Easy coding!

+ Great Idea.

10/10
 
I'm back!
Joined
Nov 29, 2008
Messages
526
Reaction score
95
Ahh thanx for the quick reply, I said i'd code this and I did :)

Gotta love someone who keeps his word,

You should create this for normal PHPRetro but for the stats make them hotel stats such as: users registered, amount of visits, amount of rooms, furniture etc.

(Just an idea) :)
 
Skilled Illusionist
Joined
Oct 7, 2009
Messages
369
Reaction score
46
Gotta love someone who keeps his word,

You should create this for normal PHPRetro but for the stats make them hotel stats such as: users registered, amount of visits, amount of rooms, furniture etc.

(Just an idea) :)

Isn't that already in the housekeeping? A simple copy and paste would put it on the homepage XD
 
Skilled Illusionist
Joined
Oct 7, 2009
Messages
369
Reaction score
46
So many 10/10s, Thanks. I forgot to add, The community_header may not have the Forums button in it because I dislike it.

+ Anybody know where the annoying feedback code is?
 
Joined
Apr 28, 2010
Messages
2,794
Reaction score
1,177
Its in the MIddle of the Community Header Here Is Is..
PHP:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

if (!defined("IN_HOLOCMS")) { header("Location: ".PATH."/"); exit; }
$version = version();
$lang->addLocale("community.header");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; 

charset=utf-8" />
	<title><?php echo SHORTNAME; ?>: <?php echo $page['name']; ?> 

</title>

--------------<script type="text/javascript">
  var uservoiceOptions = {
    key: 'habbocity',
    host: 'habbocity.uservoice.com', 
    forum: '48405',
    alignment: 'left',
    background_color:'#f00', 
    text_color: 'white',
    hover_color: '#06c',
    lang: 'en',
    showTab: false----------------
  };
  function _loadUserVoice() {
    var s = document.createElement('script');
    s.src = ("https:" == document.location.protocol ? "https://" : "http://") + "uservoice.com/javascripts/widgets/tab.js";
    document.getElementsByTagName('head')[0].appendChild(s);
  }
  _loadSuper = window.onload;
  window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
</script>


<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
    <link rel="shortcut icon" href="<?php echo PATH; 

?>/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" />
    <link rel="alternate" type="application/rss+xml" title="<?php echo 

SHORTNAME; ?>: <?php echo $lang->loc['rss']; ?>" href="<?php echo PATH; 

?>/articles/rss.xml" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/libs2.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/visual.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/libs.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/common.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/fullcontent.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/styles/local/com.css" type="text/css" />

<script src="<?php echo PATH; ?>/web-gallery/js/local/com.js" 

type="text/javascript"></script>

<script type="text/javascript">
document.habboLoggedIn = <?php if($user->id == 0){ echo "false"; }else{ 

echo "true"; } ?>;
var habboName = <?php if($user->id != 0){ ?>"<?php echo $user->name; 

?>"<?php }else{ echo "null"; } ?>;
var ad_keywords = "";
var habboReqPath = "<?php echo PATH; ?>";
var habboStaticFilePath = "<?php echo PATH; ?>/web-gallery";
var habboImagerUrl = "<?php echo PATH; ?>/habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = 

"client"; }

</script>

<?php
switch($page['id']){
	case "welcome":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/welcome.css" type="text/css" />
<?php
		break;
	case "me":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/personal.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/habboclub.js" 

type="text/javascript"></script>

								<link 

rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/minimail.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/styles/myhabbo/control.textarea.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/minimail.js" 

type="text/javascript"></script>
<?php
		break;
	case "profile":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/settings.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/settings.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/friendmanagement.css" type="text/css" />
<?php
		break;
	case "community":
?>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/rooms.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/rooms.js" 

type="text/javascript"></script>
<script src="<?php echo PATH; ?>/web-gallery/static/js/moredata.js" 

type="text/javascript"></script>
<?php
		break;
	case "tryout":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/settings.js" 

type="text/javascript"></script>
<?php
		break;
	case "collectables":
?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/credits.js" 

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH; 

?>/web-gallery/v2/styles/collectibles.css" type="text/css" />
<?php
		break;
	case "home":
?>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/myhabbo.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/skins.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/dialogs.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/control.textarea.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/myhabbo.css" type="text/css" />
	<link href="<?php echo PATH;

?>/web-gallery/styles/myhabbo/assets.css" type="text/css"

rel="stylesheet" />

<script src="<?php echo PATH; ?>/web-gallery/static/js/homeview.js"

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/lightwindow.css" type="text/css" />

<script src="<?php echo PATH; ?>/web-gallery/static/js/homeauth.js"

type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/group.css" type="text/css" />
<style type="text/css">

    #playground, #playground-outer {
	    width: <?php if($user->IsHCMember($userrow[0])){ echo

"922"; }else{ echo "752"; } ?>px;
	    height: 1360px;
    }

</style>

<?php if($page['edit'] == true){ ?>
<script src="<?php echo PATH; ?>/web-gallery/static/js/homeedit.js"

type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
document.observe("dom:loaded", function() { initView(<?php echo

$userrow[0]; ?>, <?php echo $userrow[0]; ?>); });
function isElementLimitReached() {
	if (getElementCount() >= 200) {
		showHabboHomeMessageBox("<?php echo

addslashes($lang->loc['error']); ?>", "<?php echo

addslashes($lang->loc['savehome.limit.error']); ?>", "<?php echo

addslashes($lang->loc['close']); ?>");
		return true;
	}
	return false;
}

<?php if($page['type'] == "home"){ ?>
function cancelEditing(expired) {
	location.replace("<?php echo PATH; ?>/myhabbo/cancel/<?php echo

$userrow[0]; ?>" + (expired ? "?expired=true" : ""));
}

function getSaveEditingActionName(){
	return '/myhabbo/save';
}
<?php }else{ ?>
function cancelEditing(expired) {
	location.replace("<?php echo PATH;

?>/groups/actions/cancelEditingSession" + (expired ? "?expired=true" :

""));
}

function getSaveEditingActionName(){
	return '/groups/actions/saveEditingSession';
}
<?php } ?>

function showEditErrorDialog() {
	var closeEditErrorDialog = function(e) { if (e) {

Event.stop(e); } Element.remove($("myhabbo-error")); Overlay.hide(); }
	var dialog = Dialog.createDialog("myhabbo-error", "", false,

false, false, closeEditErrorDialog);
	Dialog.setDialogBody(dialog, '<p><?php echo

addslashes($lang->loc['error.dialog']); ?></p><p><a href="#"

class="new-button" id="myhabbo-error-close"><b><?php echo

addslashes($lang->loc['close']); ?></b><i></i></a></p><div

class="clear"></div>');
	Event.observe($("myhabbo-error-close"), "click",

closeEditErrorDialog);
	Dialog.moveDialogToCenter(dialog);
	Dialog.makeDialogDraggable(dialog);
}

<?php if($page['type'] == "groups"){ ?>
	document.observe("dom:loaded", function() {
		Dialog.showInfoDialog("session-start-info-dialog",
		"<?php echo

addslashes($lang->loc['editing.session.timeout']); ?> <?php echo

millisecondsToMinutes($timeout['expire']); ?> <?php echo

addslashes($lang->loc['minutes']); ?>.",
		"<?php echo addslashes($lang->loc['ok']); ?>",

function(e) {Event.stop(e);

Element.hide($("session-start-info-dialog"));Overlay.hide();Utils.setAl

lEmbededObjectsVisibility('hidden');});
		var timeToTwoMinuteWarning= <?php echo

$timeout['twominutes']; ?>;
		if(timeToTwoMinuteWarning > 0){
			setTimeout(function(){


Dialog.showInfoDialog("session-ends-warning-dialog",
					"<?php echo

addslashes($lang->loc['editing.session.timeout']); ?> 2 <?php echo

addslashes($lang->loc['minutes']); ?>.",
					"<?php echo

addslashes($lang->loc['ok']); ?>", function(e) {Event.stop(e);

Element.hide($("session-ends-warning-dialog"));Overlay.hide();Utils.set

AllEmbededObjectsVisibility('hidden');});
			}, timeToTwoMinuteWarning);
		}
	});
<?php } ?>

function showSaveOverlay() {
	var invalidPos = getElementsInInvalidPositions();
	if (invalidPos.length > 0) {
	    $A(invalidPos).each(function(el) { Element.scrollTo(el);

Effect.Pulsate(el); });
	    showHabboHomeMessageBox("<?php echo

addslashes($lang->loc['cant.do.that']); ?>", "<?php echo

addslashes($lang->loc['cant.do.that.desc']); ?>", "<?php echo

addslashes($lang->loc['close']); ?>");
		return false;
	} else {
		Overlay.show(null,'<?php echo

addslashes($lang->loc['saving']); ?>');
		return true;
	}
}
</script>
<?php }else{ ?>
<script type="text/javascript">
document.observe("dom:loaded", function() { initView(<?php

if($page['type'] == "home"){ echo $userrow[0]; }else{ echo

$grouprow[0]; } ?>, <?php if($user->id == "0"){ echo "null"; }else{

echo $user->id; } ?>); });
</script>
<?php } ?>
<?php
		break;
}
?>

<?php if($page['discussion'] == true){ ?><link href="<?php echo PATH;

?>/web-gallery/styles/discussions.css" type="text/css"

rel="stylesheet"/><?php } ?>

<meta name="description" content="<?php echo

$settings->find("site_description"); ?>" />
<meta name="keywords" content="<?php echo

$settings->find("site_keywords"); ?>" />

<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo PATH;

?>/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="<?php echo PATH; ?>/web-gallery/static/js/pngfix.js"

type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); }

catch(e) {}
</script>

<style type="text/css">
body { behavior: url(<?php echo PATH; ?>/web-gallery/js/csshover.htc);

}
</style>
<![endif]-->
<meta name="build" content="PHPRetro <?php echo $version['version']."

".$version['status']; ?>" />
</head>
<body id="<?php echo $page['bodyid']; ?>" class="<?php if($user->name

== "Guest"){ echo "anonymous"; } ?> ">
<div id="overlay"></div>
<div id="header-container">
	<div id="header" class="clearfix">
		<h1><a href="<?php echo PATH; ?>/"></a></h1>
       <div id="subnavi">
<?php if($user->id != "0"){ ?>
			<div id="subnavi-user">
				<ul>
					<li id="myfriends"><a

href="#"><span><?php echo $lang->loc['my.friends']; ?></span></a><span

class="r"></span></li>
					<li id="mygroups"><a

href="#"><span><?php echo $lang->loc['my.groups']; ?></span></a><span

class="r"></span></li>
					<li id="myrooms"><a

href="#"><span><?php echo $lang->loc['my.rooms']; ?></span></a><span

class="r"></span></li>
				</ul>
			</div>
            <div id="subnavi-search">
                <div id="subnavi-search-upper">

                <ul id="subnavi-search-links">
                    <li><a href="<?php echo PATH; ?>/help"

target="habbohelp" onclick="openOrFocusHelp(this); return false"><?php

echo $lang->loc['help']; ?></a></li>
					<li><a href="<?php echo PATH;

?>/account/logout" class="userlink" id="signout"><?php echo

$lang->loc['sign.out']; ?></a></li>
				</ul>
                </div>
            </div>
            <div id="to-hotel">
<?php if(HotelStatus() == "online"){ ?>
					    <a href="<?php echo PATH;

?>/client" class="new-button green-button" target="client"

onclick="HabboClient.openOrFocus(this); return false;"><b><?php echo

$lang->loc['enter']; ?></b><i></i></a>
<?php }else{ ?>
						<div

id="hotel-closed-medium"><?php echo $lang->loc['closed']; ?></div>
<?php } ?>
			</div>
<?php }else{ ?>
            <div id="subnavi-user">
                <div class="clearfix"> </div>
                <p>
				        <a href="<?php echo PATH;

?>/client" id="enter-hotel-open-medium-link" target="client"

onclick="HabboClient.openOrFocus(this); return false;"><?php echo

$lang->loc['enter']; ?></a>
                </p>
            </div>
            <div id="subnavi-login">
                <form action="<?php echo PATH; ?>/account/submit"

method="post" id="login-form">
            		<input type="hidden" name="page" value="<?php

echo $_SERVER["REQUEST_URI"]; ?>" />
                    <ul>
                        <li>
                            <label for="login-username"

class="login-text"><b><?php echo $lang->loc['username']; ?></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><?php echo $lang->loc['login']; ?></b><i></i></a>
                            <input type="submit"

id="login-submit-button" value="<?php echo $lang->loc['login']; ?>"

class="submit"/>
                        </li>
                        <li>
                            <label for="login-password"

class="login-text"><b><?php echo $lang->loc['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"><?php echo $lang->loc['remember']; ?></label>
                        </li>
                    </ul>
                </form>
                <div id="subnavi-login-help" class="clearfix">
                    <ul>
                        <li class="register"><a href="<?php echo PATH;

?>/account/password/forgot" id="forgot-password"><span><?php echo

$lang->loc['forgot']; ?></span></a></li>
                    	<li><a href="<?php echo PATH;

?>/register"><span><?php echo $lang->loc['register'];

?></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">
					<?php echo

$lang->loc['remember.popup']; ?>
	</div>
	<div class="bottom-bubble-b"><div></div></div>
</div>

            </div>
<?php } ?>
        </div>
<?php if($user->id != 0){ ?>
		<script type="text/javascript">
		L10N.put("purchase.group.title", "<?php echo

$lang->loc['purchase.group.title']; ?>");
		document.observe("dom:loaded", function() {
            $("signout").observe("click", function() {
                HabboClient.close();
            });
        });
        </script>
<?php }else{ ?>
		<script type="text/javascript">
			LoginFormUI.init();
			RememberMeUI.init("right");
		</script>
<?php } ?>
<ul id="navi">
		<?php if($user->name != "Guest"){ ?>
        <li<?php if($page['cat'] == "home"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "home"){ echo

"<strong>".$user->name." </strong>"; }else{ echo "<a

href=\"".PATH."/me\">".$user->name."</a>"; } ?>
			<span></span>
		</li>
		<?php }else{ ?>
		<li id="tab-register-now"><a href="<?php echo PATH;

?>/register"><?php echo $lang->loc['register.tab'];

?></a><span></span></li>
		<?php } ?>
		<li<?php if($page['cat'] == "community"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "community"){ echo 

"<strong>".$lang->loc['community']." </strong>"; }else{ echo "<a

href=\"".PATH."/community\">".$lang->loc['community']."</a>"; } ?>
			<span></span>
		</li>
		<li<?php if($page['cat'] == "credits"){ echo " 

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "credits"){ echo 

"<strong>Market</strong>"; }else{ echo "<a 

href=\"".PATH."/properties\">Market</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "games"){ echo " 

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "games"){ echo 

"<strong>Games</strong>"; }else{ echo "<a 

href=\"".PATH."/games_deathmatch\">Games</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "bussiness"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "bussiness"){ echo 

"<strong>Business</strong>"; }else{ echo "<a

href=\"".PATH."/jobs\">Business</a>"; } ?>
			<span></span>
		</li>

		<li<?php if($page['cat'] == "bussinesss"){ echo "

class=\"selected\""; } ?>>
			<?php if($page['cat'] == "bussinesss"){ echo 

"<strong>Business</strong>"; }else{ echo "<a

href=\"".PATH."/forum\">Forums</a>"; } ?>
			<span></span>
		</li>

		<?php if((int) $user->user("rank") > 4){ ?>
		<li id="tab-register-now"><a href="<?php echo PATH;

?>/housekeeping/"><?php echo $lang->loc['housekeeping'];

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

        <div id="habbos-online"><div class="rounded"><span><?php echo

GetOnlineCount()." ".$lang->loc['members.online'];

?></span></div></div>
	</div>
</div>

<div id="content-container">

<?php
switch($page['cat']){
	case "home":
?>
	<?php if($user->name != "Guest"){ ?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "me"){ echo "selected"; } ?>">
				<?php if($page['id'] == "me"){ echo $lang->loc['home']; }else{ echo "<a href=\"".PATH."/me\">".$lang->loc['home']."</a>"; } ?>
			</li>

			<li class="<?php if($page['id'] == "stats"){ echo "selected"; } ?>">
				<?php if($page['id'] == "stats"){ echo "My Stats"; }else{ echo "<a href=\"".PATH."/stats\">My Stats</a>"; } ?>
			</li>

			<li class="<?php if($page['id'] == "vip"){ echo "selected"; } ?>">
				<?php if($page['id'] == "vip"){ echo "VIP Membership"; }else{ echo "<b><a style=\"color:red;\" href=\"".PATH."/vip\">VIP Membership</a></b>"; } ?>
			</li>
                        
                        <li class="<?php if($page['id'] == "home"){ echo "selected"; } ?>">
				<?php if($page['id'] == "home"){ echo "My Profile"; }else{ echo "<a href=\"".PATH."/home/".$user->name."\">My Profile</a>"; } ?>
    		        </li>
    		<li class="<?php if($page['id'] == "profile"){ echo

"selected"; } ?> last">
				<?php if($page['id'] == "profile"){

echo $lang->loc['settings']; }else{ echo "<a

href=\"".PATH."/profile\">".$lang->loc['settings']."</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
	<?php } ?>
<?php
		break;
	case "community":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] ==

"community"){ echo "selected"; } ?>">
				<?php if($page['id'] == "community"){ 

echo $lang->loc['community']; }else{ echo "<a 

href=\"".PATH."/community\">".$lang->loc['community']."</a>"; } ?>
			</li>
    		<li class="<?php if($page['id'] == "news"){ echo 

"selected"; } ?>">
				<?php if($page['id'] == "news"){ echo 

$lang->loc['news']; }else{ echo "<a

href=\"".PATH."/articles\">".$lang->loc['news']."</a>"; } ?>
    		</li>
    		    		<li class="<?php if($page['id'] == "topstats"){ echo

"selected"; } ?>">
				<?php if($page['id'] == "topstats"){ echo

'Top Stats'; }else{ echo "<a

href=\"".PATH."/topstats\">Top Stats</a>"; } ?>
    		</li>

				<li class="<?php if($page['id'] == "vip_members"){ echo

"selected"; } ?>">
				<?php if($page['id'] == "vip_members"){ echo

'VIP Members'; }else{ echo "<a

href=\"".PATH."/vip_members\">VIP Members</a>"; } ?>
    		</li>

    		<li class="<?php if($page['id'] == "staff"){ echo

"selected"; } ?> last">
				<?php if($page['id'] == "staff"){ echo 

"Staff"; }else{ echo "<a href=\"".PATH."/staff\">Staff</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
	case "credits":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "credits"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "credits"){ 

echo 'Properties'; }else{ echo "<a 

href=\"".PATH."/properties\">Properties</a>"; } ?>
    		</li>
		<?php if($page['id'] == "store"){ echo 

"store"; }else{ echo "<a href=\"".PATH."/store\">Store</a>"; } ?>
     		</li>
		</ul>
    </div>
</div>
<?php
              break;
	case "games":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "games_deathmatch"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "games_deathmatch"){ 

echo 'Deathmatch'; }else{ echo "<a 

href=\"".PATH."/games_deathmatch\">Deathmatch</a>"; } ?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
	case "bussiness":
?>
<div id="navi2-container" class="pngbg">
    <div id="navi2" class="pngbg clearfix">
		<ul>
			<li class="<?php if($page['id'] == "jobs"){ 

echo "selected"; } ?> last">
				<?php if($page['id'] == "jobs"){ echo 

'Job Market'; }else{ echo "<a href=\"".PATH."/jobs\">Job Market</a>"; } 

?>
    		</li>
                    	<li class="<?php if($page['id'] == "jobs_create"){

echo "selected"; } ?> last">
				<?php if($page['id'] == "jobs_create"){ echo

'My Business'; }else{ echo "<a href=\"".PATH."/jobs_create\">My Business</a>"; }

?>
    		</li>
		</ul>
    </div>
</div>
<?php
		break;
}
?>
 
Last edited:
Initiate Mage
Joined
Oct 17, 2010
Messages
90
Reaction score
7
mickey have some common sense please... its for a rp hotel.
 
Status
Not open for further replies.
Back
Top