Jonty is partially right, you should look into a template system. It's the modern way to do habbo CMS' now a days.
Jonty is partially right, you should look into a template system. It's the modern way to do habbo CMS' now a days.
I was being polite. Your CMS is disgusting. Your coding is horrible. You need to wise up. You are not the best PHP developer in this section. (and neither am I, it's not what i'm getting at).
Just because you can do a simple 3 table design doesn't mean you are god, Dan, stop acting like it.
Good luck, nonetheless.
Jonteh
Polite
Having or showing respectful and considerate behavior.
Calling my work ugly ain't very polite, is it?
I never said I was the best PHP developer here? I'm still learning, hence the revisions. Why shouldn't I act like it? It's called being enthusiastic about my work.
Thank you for your "polite" comment.
I'll be updating the files from my localhost to talan.x10.bz/revision2 soon.
Design - Login
It's been updated. ^^
Fixed session handling with (about). ^^
Design - Register
If you hadn't noticed, but register won't allow you to use MOD-. ^^
Let me help you with some errors - on your profile where your name is suppose to be on the navigator is says 'talan' and not your username. and u cant edit your motto.
Not really, Habbo doesn't disallow names apart from MOD- or the symbols (which were added).
Thank you.
Fixed the first error (it was a typo, LOL) and the motto, well I ain't got round to that.
---
Showing news articles, probably a better way to do this, but what the hell. I'll add the time stamp/author later, this ain't been added to talan.x10.bz/revision2/ yet.
PHP Code:<?php
define('SECURITY', true);
require_once("habboweb/templates/configeration.php");
if(!userLoggedIn()) { header("Location: index.php"); die; }
?>
<!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" lang="en">
<!-- Designed and coded by Predict on forum.ragezone.com -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Design</title>
<link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
</head>
<body>
<div id="header-container">
<div id="header">
<div id="logo">
<a href="me.php"></a>
</div>
<div id="whitebox">
0 members online
<a href="logout.php">Logout</a>
</div>
<div id="enter-hotel">
<a href="me.php">Enter Habbo Hotel</a>
</div>
<ul id="navigation">
<li>
<a href="me.php"><?php echo $loggedIn->username; ?></a>
</li>
<li>
<b>Community</b>
</li>
</ul>
</div>
</div>
<div id="content-container">
<div id="content">
<div id="subnavigation-container">
<div id="subnavigation">
<ul>
<li class="selected last">
Articles
</li>
</ul>
</div>
</div>
<div id="content-content">
<div id="content-left" class="left">
<div class="content-bubble">
<?php
if(!isset($_GET['id']) || !is_numeric($_GET['id']))
{
$result = NewsListArticleOPTION1();
}
else
{
$result = NewsListArticleOPTION2();
}
$row = $db->sql_fetchrow($result);
?>
<div class="content-bubble-header orange"><?php echo $row['Title']; ?></div>
<?php echo $row['Message']; ?>
</div>
</div>
<div id="content-right" class="right">
<div class="content-bubble">
<div class="content-bubble-header orange">Latest news</div>
<ul>
<?php
$result = NewsListLong();
while($row = $db->sql_fetchrow($result))
{
?>
<li class="even">
<a href="community.php?id=<?php echo $row['ID']; ?>"><?php echo $row['Title']; ?> »</a>
</li>
<?php
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Design - Login
Been updated ^
Added community .php
Reworked on habboweb/styles/style .css
Reworked on profile .php
Reworked on me .php
Design - Login
Updated some of the functions, added some new ones.
Removed the old files revision2 and 1.
Database is the same from Revision2.
http://www.talan.x10.bz/getadmin.php - Get rank 3 and try the secure location for admins. ^^
Ok so erm.. It deletes your account?
Owut.
I just tested it and it seems to be working fine. O.oPHP Code:<?php
define('SECURITY', true);
require_once("habboweb/templates/config.php");
if(!getValidation()) { header("Location: index.php"); die; }
if(count($errors) == 0)
{
if(!$userLoggedIn->SelectRank(3))
{
$errors[] = "You're already admin, dumbass";
}
else
{
$db->sql_query("UPDATE users SET Rank = '3' WHERE Username = '".$db->sql_escape($userLoggedIn->username)."' LIMIT 1");
}
}
if(count($errors) > 0)
{
?>
<ul><?php getError($errors); ?></ul>
<?php
}
else
{
?>
Well done noob, you got admin. Visit housekeeping by clicking <a href="housekeeping">here</a>
<?php
}
?>
http://www.talan.x10.bz/staff.php
Something basic, not going overboard, yet.
Host Expired.
LOL, are you trolling with me?...
Host is working fine...
Design - Login