[UberCMS] New index page. [SLEDMORE]

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Hey guys,

I liked the style of Aarons hotels index, So I thought I'd have it (lol), And so I did, And it's got no use to me anymore, So you guys can have it.

SCRRENSHOT:

1294671030510147440646.png


SNIPPETS:

INDEX.PHP FILE:

PHP:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
| http://www.meth0d.org & http://www.sulake.biz
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

require_once "global.php";	
	
if (LOGGED_IN)
{
	header("Location: " . WWW . "/me");
	exit;
}

$tpl->Init();

$tpl->SetParam('page_title', 'Create your avatar, decorate your room, chat and make new friends.');
$tpl->SetParam('credentials_username', '');

$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('frontpage');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-fp');
$tpl->AddGeneric('head-bottom');

$frontpage = new Template('page-fp');
$frontpage->SetParam('login_result', '');

if (isset($_POST['credentials_username']) && isset($_POST['credentials_password']))
{
	$frontpage->SetParam('credentials_username', $_POST['credentials_username']);

	$credUser = filter($_POST['credentials_username']);
	$credPass = $core->UberHash($_POST['credentials_password']);
	
	$errors = array();
	
	if (strlen($_POST['credentials_username']) < 1)
	{
		$errors[] = "Please enter your username";
	}
	
	if (strlen($_POST['credentials_password']) < 1)
	{
		$errors[] = "Please enter your password";
	}
	
	if (count($errors) == 0)
	{
		if ($users->ValidateUser($credUser, $credPass))
		{
			if (isset($_POST['page']))
			{
				$reqPage = filter($_POST['page']);
				$pos = strrpos($reqPage, WWW);
			
				if ($pos === false || $pos != 0)
				{
					die("<b>Security warning!</b> A malicious request was detected that tried redirecting you to an external site. Please proceed with caution, this may have been an attempt to steal your login details. <a href='" . WWW . "'>Return to site</a>");
				}
				else
				{
					$_SESSION['page-redirect'] = $reqPage;
				}
			}		
					
			$_SESSION['UBER_USER_N'] = $users->GetUserVar($users->Name2id($credUser), 'username');
			$_SESSION['UBER_USER_H'] = $credPass;
			
			if (isset($_POST['_login_remember_me']))
			{
				$_SESSION['set_cookies'] = true;
			}
			
			header("Location: " . WWW . "/security_check");
			exit;
		}
		else
		{
			$errors[] = "Incorrect password";
		}
	}

	if (count($errors) > 0)
	{
		$loginResult = '<div class="action-error flash-message"><div class="rounded"><ul>';

		foreach ($errors as $err)
		{
			$loginResult .= '<li>' . $err . '</li>';
		}
		
		$loginResult .= '</ul></div></div>';
		
		$frontpage->SetParam('login_result', $loginResult);
	}
}

$tpl->AddTemplate($frontpage);

$tpl->Output();

?>

INC/TPL/PAGE-FP.TPL

PHP:
<!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>Astro: Create your avatar, decorate your room, chat and make new friends.</title> 


<style type="text/css">
.didyouknow{
padding-left:5px;
font-size:10px;
}
.spacerdyk{
height: 7px;
}
</style>
 

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'height=400,width=800,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes');
return false;
}
//-->
</SCRIPT>

<!-- Codes by Quackit.com -->
<script type="text/javascript">
// Popup window code
function newPopup(url) {
	popupWindow = window.open(
		url,'popUpWindow','height=535,width=325,left=700,top=300,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}
</script>

<link rel="shortcut icon" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" /> 
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/static/js/landing.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/v2/styles/frontpage.css" type="text/css" />

<!-- Uber style overrides --> 
<style type="text/css"> 
body { background-color: #EFFBFB; }
#fp-container #header h1 a { height: 62px; width: 200px; background-image: url<centre>('http://www.habbcrazy.net/resources/text.php?f=82&t=Astro')</centre>; }
#footer .footer-links { color: #666666; }
#footer .footer-links a { color: #b3b3b3; }
#footer .copyright { color: #727272; }    
a.big-button { top: 100px; }
.login-register-link, .login-register-link a { color: #000 !important; }
#tagline { background-color: #ffffff; color: #585858; font-size: 120%; font-weight: normal; padding: 7px; }
#tagline span { font-weight: bold; }
.tagcloud { margin-top: -3px; background-color: #D8D8D8 !important; }
.tagcloud .tag { margin: 5px; text-decoration: none; color: #424242; }
.tagcloud .tag:hover { border-bottom: 1px dotted; }
</style> 
<!-- Uber style overrides --> 

<meta name="description" content="Habbo is a virtual world where you can meet and make friends. Make friends, join the fun, get noticed!" /> 

<meta name="keywords" content="habbo, habbo hotel, astro hotel, meth0d, nillus, mdk, otaku-studios, astro, uber emulator, *****, retro, keep it real, private server, free, credits, habbo hotel , virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets , room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" /> 
 
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/22/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(http://www.habbo.com/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="51-BUILD45 - 18.05.2010 16:16 - uk" /> 
</head>

<head> 

<script type="text/javascript"> 
var andSoItBegins = (new Date()).getTime();
</script> 
    <link rel="shortcut icon" href="http://images.habbo.com/habboweb/62_b816f54e68901358926b378dbc1adbd7/6/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" /> 
    <link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="http://www.habbo.com/articles/rss.xml" /> 
 
<script src="http://images.habbo.com/habboweb/62_b816f54e68901358926b378dbc1adbd7/6/web-gallery/static/js/libs2.js" type="text/javascript"></script> 
<script src="http://images.habbo.com/habboweb/62_b816f54e68901358926b378dbc1adbd7/6/web-gallery/static/js/landing.js" type="text/javascript"></script> 
<link rel="stylesheet" href="http://habbo.com/styles/local/com.css" type="text/css" /> 
 

<script src="/js/local/com.js" type="text/javascript"></script> 
 
<script type="text/javascript"> 
var ad_keywords = "";
var ad_key_value = "";
</script> 
<script type="text/javascript"> 
document.habboLoggedIn = false;
var habboName = null;
var habboId = null;
var habboReqPath = "";
var habboStaticFilePath = "http://images.habbo.com/habboweb/62_b816f54e68901358926b378dbc1adbd7/6/web-gallery";
var habboImagerUrl = "/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "http://www.habbo.com/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "40bfeb4dfae6c55c3a8e93c381eb8378ab4c89ca"; }
 
 
</script> 
 
<meta property="fb:app_id" content="183096284873" /> 
 
<style type="text/css"> 

body { background-color: #EFFBFB; }

#fp-container #header h1 a { height: 49px; width: 200px; background-image: url<centre>('http://www.habbcrazy.net/resources/text.php?f=82&t=Astro')</centre>; }

#footer .footer-links { color: #666666; }

#footer .footer-links a { color: #b3b3b3; }

#footer .copyright { color: #727272; }    

a.big-button { top: 100px; }

.login-register-link, .login-register-link a { color: #000 !important; }

#tagline { background-color: #E6E6E6; color: #585858; font-size: 120%; font-weight: normal; padding: 7px; }

#tagline span { font-weight: bold; }

.tagcloud { margin-top: -3px; background-color: #D8D8D8 !important; }

.tagcloud .tag { margin: 5px; text-decoration: none; color: #424242; }

.tagcloud .tag:hover { border-bottom: 1px dotted; }



input {
	border: 1px solid #aaa;
	background: #fff;
	padding: 5px;
	font-family: verdana;
	font-size: 10px;
}

input[type=submit] {
	padding-left: 10px;
	padding-right: 10px;
	float: right;
	margin:5px;
}




select {
    border: none;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    background-color: #edede5;
    width: 75px;
}

input.text-field,input.password-field,select {
    font-size: 11px;
    padding: 4px;
    border-style: solid;
    border-color: #C6C6C6 #C6C6C6 #E3E3E3;
    border-width: 1px;
}

input, textarea, select {
    font-size: 11px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

div.loginBox > div.mid > div.registerstep2 {
	margin-left: 40px;
	margin-right: 40px;
	margin-top: 40px;
	background-color: #fff;
	border: 1px solid #000;
	padding: 10px;
	overflow: hidden;
}



body
{
	background-image:url(/images/bg.png);
	margin-top:20px;
	font-family:Verdana, Geneva, sans-serif;
	font-size:10px;
}
#Container
{
	width:700px;
	min-height:430px;
	background:#FFF;
	border:#999 solid 1px;
	margin:auto;
	padding-top:10px;
	padding-bottom:15px;
}
#Image
{
	clear:both;
	padding:0px;
	background:url(/images/promo/hotel_view_sunny.gif);
	width:700px;
	height:430px;
	
}
#Login
{
	background:#FFF;
	width:700px;
}
#Footer
{
	
	text-align:center;
}
#Footer2
{
	padding-top:10px;
	text-align:center;
}
#Tags
{
	background:#666;
	min-height:60px;
	padding:10px;
	width:630px;
	color:#FFF;
	text-align:center;
}
#LoginBox
{
	font-size:11px;
	padding-left:10px;
	padding-right:10px;
	float:right;
	margin-top:30px;
	margin-right:10px;
	width:195px;
	height:205px;
	border:#999 solid 1px;
	background-color:#fff;
}
#LoginBox .Box
{
	width:180px;
	height:20px;
	border:#999 solid 1px;
}
#LoginBox .Button
{
	width:60px;
	height:20px;
	border:#999 solid 1px;
}
#Stats
{
	padding-top:10px;
	padding-right:10px;
	float:right;
}
</style> 


 
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="57-BUILD30 - 24.08.2010 14:54 - com" /> 

</head> 
 
<head> 
    <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> 
</head> 
 
<body>

<div id="Container"> 

<div id="Login">

<div id="habbos-online" style="float:left;">&nbsp;<img src="/images/logo.png" /></div>
<div id="habbos-online" style="float:right;"><span>%hotel_status%</span>&nbsp;</div>



</div>
<center></center>

<div id="Image">

<div id="LoginBox">

<form id="loginformitem" name="loginformitem" action="%www%/account/submit" method="post"> 

<table width="200" border="0" cellpadding="0" cellspacing="0">

<tr>


            <td style="padding-bottom:15px;"><br />
<p style="font-size:11px; font-family:Verdana, Geneva, sans-serif;">New here? 
<strong><a href="/register">REGISTER FOR FREE!</a></strong><br />
</p>
</td>

  <tr>
 

    <td><font size="1"><font size="1">Username:<br /><input tabindex="1" type="text" name="credentials.username" id="un" value="" maxlength="48" size="26"/><br /><br />
</font>
</td>

    </tr>

  <tr>

    <td><font size="1">Password:<br />

      <input tabindex="1" type="password" name="credentials.password" id="pw" maxlength="32" size="26"/> <br /><br />
</font>
</td>

    </tr>

  <tr>
	<input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me" value="true" checked="checked" style="display:none;"/>
    <td><center><input  class="Button" type="submit" name="button" style="font-size:11px; font-family:Verdana, Geneva, sans-serif;" id="button" value="Sign In" /></center></td>

  </tr>

</table>

</form>

</div>
 
</div>

<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]--> 
<div id="footer"> 

<?php

if (defined('FORCE_MAINTENANCE') && FORCE_MAINTENANCE)
{
	echo '<div style="background-color: #FBEFEF; padding: 5px; margin: 5px; border: 1px solid #DF0101;">NOTICE: Habbo is currently in maintenance mode. The site is unavailable to regular users.</div>';
}

?>

<div style="float: center;">
	<p class="footer-links"><a href="#" target="_new">Contact Us</a> | <a href="http://www.donkjam.com" target="_new">Donkjam.com</a>  | <a href="http://www.meth0d.org" target="_new">Meth0d dot org</a> | <a href="http://www.sulake.biz" target="_new">Sulake.biz</a> | <a href="%www%/papers/termsAndConditions" target="_new">Terms of Service</a> | <a href="%www%/papers/privacy" target="_new">Privacy Policy</a></p> 
	<p class="copyright">UberCMS, Copyright &copy; 2009 - 2010 Meth0d dot org & Sulake.biz. All rights reserved to their respective owner(s).</p> 
</div>

<div style="clear: both;"></div>
	
</div>    </div> 
</div></div>
 
<script type="text/javascript"> 
HabboView.run();
</script> 
 
</body> 
</html>

IMAGES(EXTRACT THIS FILE IN YOUR IMAGES FOLDER, SO IT SHOULD BE IMAGES/PROMO:



WAIT MINE DOESZN'T LOOK LIKE THIS!?!?!?

- Thats because you have a different background file, And a different logo file.

CREDITS:
Aaron: 90% - His images his style.
Sledmore: 10% - Ripping it, Fixing it up ;).

- Enjoy.
 

Kieren

The OGz
Aug 4, 2010
2,957
751
Nice find and rip Sledmore I will be deffentely using this, is there any modifications you need todo? so no errors or nothing? or just add it into your htdocs then thats it useable?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Thanks for the release matie
Looks great :]
Does it work with PHPRetro too?

Your welcome buddy, Thanks, And nah, That's why I put UberCMS lol.


Nice find and rip Sledmore I will be deffentely using this, is there any modifications you need todo? so no errors or nothing? or just add it into your htdocs then thats it useable?

Thanks ;), And yeah Just do this ;P. I made it clear (I hope).
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Laters, xDD, Also, Threads been updated. ;P.
 

Users who are viewing this thread

Top