[LOGIN] index

Predict

Active Member
Jun 27, 2011
126
63
Posted in wrong section, thread moved to appropriate section (-Lepos).
I recall seeing this on Wabbo? I thought it looked nice so I stripped the whole source code, re-written the source from strach and thought why not release it for others to use? It's a login for you guys to use on your CMS, rather cute I think. xoxo




 

Kaz

BooYah
Staff member
Nov 16, 2010
3,064
1,025
90% of the habbo community are ripping/scrounging fuckers, stop bitching and accept the fact somebody has gone out of their way to give other users a new index so every hotel is not the same as every other hotel.

Who cares if its ripped? Does the creator have permission from Sulake to use the images? No they dont

Its 1 page, its not exactly a full cms that has 10+ pages is it?

Thread will be cleaned and infractions given

And i would of thought Habbo did give permission to people to use their images otherwise there'd be no functional Official Habbo fansites running and they certainly wouldn't be official
Is this layout for a fansite? no its for a retro which is illegal.
 

Nebula

Member
Mar 4, 2013
162
1
Looks good, I might use this, and Kaz is right, the images don't belong to anyone, so everyone can calm down
 

oh Louis

Member
Oct 24, 2011
58
20
I recall seeing this on Wabbo? I thought it looked nice so I stripped the whole source code, re-written the source from strach and thought why not release it for others to use? It's a login for you guys to use on your CMS, rather cute I think. xoxo





You don't have to credit it out to Wabbo, you can just credit it out to me :p
 

Predict

Active Member
Jun 27, 2011
126
63
You don't have to credit it out to Wabbo, you can just credit it out to me :p

Sounds good.

I got really into the theme and I thought to myself, why not make a CMS out of this? Heck I'll even throw in mysqli (OOP), a template system and a snazzy design by Louis, of course a few tweaks here and there by myself. Oh and best of all the source is completely coded by me.

What do I have so far? UHM, not much, but I have been putting in time and effort into making this similar to how Habbo is templated, but keeping that Wabbo theme. So far I've already got the basics running, how to fetch pages, mysqli connector, template system and so forth.

index.php

PHP:
<?php
define('DH_PAGES', true);
 
error_reporting(0);
 
require_once ('resources/php/config/config.php');
require_once ('resources/php/classes/class.mysqli.php');
require_once ('resources/php/classes/class.template.php');
 
$db = new db_mysqli('localhost', $config['user'], $config['pass'], $config['tble']);
$tmp = new template1();
 
session_start();
 
if (isset($_SESSION['username']) && isset($_SESSION['password']))
{
    if ($user->ValidateUser($_SESSION['username'], $_SESSION['password']))
    {
        if ($user->ValidateBan($user->NameToId($_SESSION['username'])))
        {
            unset($_SESSION['username']);
            unset($_SESSION['password']);
            exit;
        }
        else
        {
            define('DH_LOGGED', true);
        }
    }
}
else
{
    define('DH_LOGGED', false);
}
 
$page = NULL;
 
if (isset($_POST['p']))
{
    $page = strtolower($db->real_escape_string(htmlspecialchars($_POST['p'])));
}
 
if ($page == NULL && isset($_GET['p']))
{
    $page = strtolower($db->real_escape_string($_GET['p']));
}
 
 
if ($page == NULL)
{
    $initial = NULL;
 
    if (DH_LOGGED)
    {
        $initial = 'me';
    }
    else
    {
        $initial = 'login';
    }
 
    header('Location: '.$config['path'].'?p='.$initial);
    exit;
}
 
switch($page)
{
    case 'logout':
        unset($_SESSION['username']);
        unset($_SESSION['password']);
        header('Location: '.$config['path'].'?p=login');
        exit;
    break;
 
    case 'login';
    case 'me';
        if (DH_LOGGED)
        {
            require_once ('resources/php/templates/me.php');
        }
        else
        {
            require_once ('resources/php/templates/login.php');
        }
    break;
 
    default:
        if (file_exists('resources/php/templates/'.$page.'.php'))
        {
            require_once ('resources/php/templates/'.$page.'.php');
        }
        else
        {
            require_once ('resources/php/templates/error.php');
        }
    break;
}
?>

Ignore the user class, I still haven't had chance to play around with it yet.


k0lfmg.jpg


Template for the image shown above.

HTML:
<!DOCTYPE html>
<html>
    <head>
        <title>%NME%: </title>
        <link rel="shortcut icon" href="resources/img/favicon.ico" type="image/vnd.microsoft.icon" />
        <link rel="stylesheet" href="resources/css/style.css" tyle="text/css">
     
        <meta name="description" content="%NME% is a Habbo Hotel retro that is FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more..."/>
        <meta name="keywords" content="%NME% 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"/>
    </head>
    <body>
        <div id="container-header">
            <div class="container">
                <a href="%WWW%?p=login" target="_self" id="logo"></a>
                <div id="count">0 online<i></i></div>
                <a href="#" id="enter">Enter %NME%<i></i></a>
                <ul id="navi-container">
                    <li class="navi selected">Username</li>
                    <li class="navi"><a href="#" target="_self">Community</a></li>
                    <li class="navi"><a href="#" target="_self">Shop</a></li>
                </ul>
            </div>
            <div class="container clear">
                <ul id="subnavi-container">
                    <li class="subnavi"><b>Homepage</b></li>
                    <li class="subnavi last"><a href="#" target="_self">Test</a></li>
                </ul>
            </div>
        </div>
    </body>
</html>

I'll make a development thread when I find more source to contribute.
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207


You said he's not ripping the entire CMS? I beg to differ.
 

Users who are viewing this thread

Top