I believe to pull this off it needs to transition like the client too. Login/Load like the client loads.. After you login you have the habbo panel on the left which is the navigator and so on..
I believe to pull this off it needs to transition like the client too. Login/Load like the client loads.. After you login you have the habbo panel on the left which is the navigator and so on..
I could code it in OOP it'd only help me learn more. Also it will have client features like Makarov described. This is just the start.
Posted via Mobile Device
Not coding in OOP makes more work to do. Just saying..![]()
Well it looks great so far but the login and the register look a bit empty? Maybe also add the news?
Ok, So I've started to resume this now. Had a busy weekend. Anyhow,
Registration is now complete.
Expanded Config:
SnippetPHP Code:// Registation Settings
$rfigure = 'hr-115-42.hd-190-1.ch-215-62.lg-285-91.sh-290-62'; // Starting Look
$rmotto = 'New Here!'; // Starting Motto
PHP Code:<?php
if(isset($_POST['password']))
{
$username = mysql_real_escape_string($_POST['username']);
$password = md5($_POST['password']);
$email = mysql_real_escape_string($_POST['email']);
$ip = $_SERVER['REMOTE_ADDR'];
if(!$Core->IsValidName($username))
{
echo "You are using invalid characters. <br>";
}
elseif($Core->IsNameTaken($username))
{
echo include "/errors/inuse.php";
}
elseif(strlen($username) < 3)
{
echo include "/errors/small.php";
}
elseif(strlen($password) < 6)
{
echo include "/errors/smallp.php";
}
if(mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$username'")) == 0)
{
mysql_query("INSERT INTO users (username, password, mail, look, credits, ip_last, ip_reg) VALUES ('$username', '$password', '$email', '$rfigure', '3000', '$ip', '$ip')");
$_SESSION['username'] = $username;
Header("Location: me.php");
}
}
?>
Why are you checking twice if the username is taken???
Also, Learn how to make a error page and not with the include shit
php: trigger_error
Look at that ;)
Look's really familiar to another CMS...
The fact that you have different error PAGES for different errors over simplifies everything you're trying to do. The code could be cleaned up and if Jos doesn't beat me to it, I will.
Use: $config['site']['sname'] = 'Cronic Hotel';
Instead of: $sname = 'Cronic Hotel';
Yea, Why? LOL
Whats the point off echo an include
Code:elseif(strlen($username) < 3) { echo include "/errors/small.php"; }