[DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
What is this
Hi Everyone , i'm Marcos and i from Brazil. I'm a old member from the Ragezone since Debbo Era and Habbo Hotel from 2005. I'm a player from the best era of Habbo Hotel .In 2010 i started the development of RetroCMS , a CMS from v12 Habbo Version , in 2010 we dont have any server avaliable for test , so i used the Hablog v15 [Crazy] i know... Today visiting the development section i saw that our badass Moderator Quackster started a new server project "Kepler" , so i solved try get my old project back to life , considering that I am a student of cumputer science today... Basicly the RetroCMS is a v12 Habbo Website compatible with Kepler Emulator [v13 - v21] ,
What i use for the development
- PHP with PDO
- MariaDB
Issues
- The Kepler Database have so many differences , so i have to change a lot of features for now
- Old Libraries used on my project are deprecated now , i have to migrate my SQL structure for PDO
Features:
- Login/Logout [100%]
- News [ 70%]
- Groups [20%]
- Habbo Homes [20%]
- Buy Club and Furni on Website [80%]
- Promos [100%]
- Housekeeping [ 20%]
- SSO Login [ Waiting for Quackster feedback about that ]
- Online users counter [0%]
- Edit Profile [ 50% with the Old Flash , i will give a option between the old and new flash ]
- Registration [15%]
- Reedem Credit Codes [100%]
- Forum [0%]
I dont know if i can finish Habbo Homes and Groups and Foruns , but i'll make the basic works like edit create group and edit badges...
I want to give support for two versions [ V16 and V21 ] i have the DCRs from 2009 on my old Hard-drive :D ,including the Old Avatar Image working for v16 converting to the Web 2.0 avatarimage is something like that:
8010119509240212700129506 -> hr-829-00.hd-195-09.ch-240-110.lg-270-01.sh-295-06.ha-1011-72.fa-1201-96
https://www.habbo.com.br/habbo-imagi...ure=sml&size=m
Code:
<?php
$figura2=Converta('8010119509240212700129506');
function Converta($figureID){
$start = 0;
$parts = array();
$increase_start = array(0, 5, 10, 15, 20);
for($i = 0; $i < 14; $i++) {
$length = (in_array($start, $increase_start)) ? 3 : 2;
if ( $i < 10 ){
$parts[$i] = substr($figureID, $start, $length);
$start = $start + $length;
if( $i == 3){
echo "$parts[$i]";
$parts[$i] = ConvertHead($parts[$i]);
}
//Chest
if( $i == 5){
//echo "$parts[$i]";
$parts[$i] = ConvertChest($parts[$i]);
}
}else{
$parts[$i] = '0';
}
}
//Casos Especiais
switch ($parts[0]) {
//Coelho com Nariz de Bolha
case 590:
$parts[0]= '000';
$parts[1]='00';
$parts[10] = '1008';
$parts[11] = '00';
$parts[12] = '1202';
$parts[13] ='71';
break;
//Chapeu de Rena
case 580:
echo 'llala';
$parts[0]= '000';
$parts[1]='00';
$parts[10] = '1007';
$parts[11] = '00';
$parts[12] = '1202';
$parts[13] ='96';
break;
//Gorro
case 585:
$parts[0]= '000';
$parts[1]='00';
$parts[10] = '1006';
$parts[11] = '00';
break;
//Sambista
case 801:
$parts[0]= '829';
$parts[1]='00';
$parts[10] = '1011';
$parts[11] = '72';
$parts[12] = '1201';
$parts[13] = '96';
break;
//Cowboy
case 802:
$parts[0]= '802';
$parts[1]= ConvertHair($parts[1]);
$parts[10] = '1013';
$parts[11] = ConvertHair($parts[1]);
break;
//CowGirl
case 802:
$parts[0]= '802';
$parts[1]='ConvertHair($parts[1])';
$parts[10] = '1013';
$parts[11] = ConvertHair($parts[1]);
break;
//Reggie
case 120:
$parts[0]= '829';
$parts[1]='00';
$parts[10] = '1001';
$parts[11] = '72';
$parts[12] = '1201';
$parts[13] = '96';
break;
//Construtor:
case 178:
$parts[0]= '00';
$parts[1]='00';
$parts[10] = '1009';
$parts[11] = '1321';
break;
//Nenhum dos Casos Especiais
default:
$parts[10] = '00';
$parts[11] = '00';
$parts[12] = '00';
$parts[13] ='00';
}
$figureID = 'hr-'.$parts[0].'-'.$parts[1].'.hd-'.$parts[2].'-'.$parts[3].'.ch-'.$parts[4].'-'.$parts[5].'.lg-'.$parts[6].'-'.$parts[7].'.sh-'.$parts[8].'-'.$parts[9].'.ha-'.$parts[10].'-'.$parts[11].'.fa-'.$parts[12].'-'.$parts[13];
return $figureID;
}
function ConvertChest($Color){
if ( $Color == '02' || $Color == '04' || $Color == '02' || $Color == '43' || $Color == '19' || $Color==21 || $Color == 14){
$Color = '110';
}
if ( $Color == '06'){
$Color = '82';
}
return $Color;
}
function ConvertHead($Color){
if ( $Color == '13'){ $Color = '1'; }
if ( $Color == '02'){ $Color = '28'; }
if ( $Color == '03'){ $Color = '10'; }
if ( $Color == '18'){ $Color = '05'; }
if ( $Color == '25'){ $Color = '1373'; }
return $Color;
}
function ConvertHair($Color){
if ( $Color == '01'){ $Color = '72'; }
return $Color;
}
?>
<img src="http://habbo.com.br/habbo-imaging/avatarimage?figure=<?php echo "$figura2"; ?>&size=b&action=stand,&direction=4&head_direction=4&gesture=sml&size=m" alt="Smiley face">
http://forum.ragezone.com/attachment...4&d=1512958940
Pictures:
https://imgur.com/6WaFqOc.png
https://imgur.com/awbaHQm.png
https://imgur.com/s19WH5A.png
https://imgur.com/awbaHQm.png
UPDATE 03/03/2018:
- I started the public release in a Alpha Preview Branch , that as the skeletion of the CMS , please help-me to improve before i start to implement(Move) the cool features on CMS :D
GITHUB DEVELOPMENT BRANCH
https://github.com/Negociation/RetroCMS/tree/Alpha
DEMO HOTEL FOR KEPLER + RETROCMS:
Kumma Hotel ~ Inicio
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Looks absolutely great; it makes me very thrilled to see yet another old-school oriented project!
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Nice release, but, I recommend you to modernize your code, that style of code is like from 2010 lol
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
lElectrico
Nice release, but, I recommend you to modernize your code, that style of code is like from 2010 lol
I just testing the system when i coded that... I'll make using Objects of PDO and Maybe Storage Procedures/Functions on Database :D
For now i working on treatments of exceptions with black box testing... When i finished i wanna work in httpacess file to make friendly URLs like the version of 2007:
<SERVER>/account/login
<SERVER>/home/<USERNAME>
<SERVER>/groups/<ID>/id
<SERVER>/client
...
The next step after that will works on Site Settings [CHANGE VERSION of SERVER between v18 or less ]a fully register page...
If you dont understand me sorry ... its my english...
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
lElectrico
Nice anyways :P
And i have a good surprise for everyone , i'll recreate 95% of users settings page , i have the old prints from 2007 on my imageshack , so cross fingers :D
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
m.tiago
I just testing the system when i coded that... I'll make using Objects of PDO and Maybe Storage Procedures/Functions on Database :D
For now i working on treatments of exceptions with black box testing... When i finished i wanna work in httpacess file to make friendly URLs like the version of 2007:
<SERVER>/account/login
<SERVER>/home/<USERNAME>
<SERVER>/groups/<ID>/id
<SERVER>/client
...
The next step after that will works on Site Settings [CHANGE VERSION of SERVER between v18 or less ]a fully register page...
If you dont understand me sorry ... its my english...
Chances are using something like Laravel or Cake, (any PHP framework really) will speed up your development and help from having to have a bloated httpaccess file
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
LeChris
Chances are using something like Laravel or Cake, (any PHP framework really) will speed up your development and help from having to have a bloated httpaccess file
Tanks for the advice , i will learn about that... , because i remeber how bored is coded .httpacess , i do that in 2010 with my custom HoloCMS...
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Seems very nice!
I like the old-school Habbo style
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
UPDATES:
- Index Page Data [100%]:
+ Now i can get all data for the Tab Menu if a Logged or Not
https://i.imgur.com/4jhrkxT.png
- Habbo Homes [25%]:
+ The default sample of Habbo Home as Maded getting the basic Data: Motto , Username , Badge
https://i.imgur.com/pCIpNNG.png
+ Whats comes Next ?
- I plann to get all Rooms from a user to Habbo Home
- Fix the Habbo Imager
- Try to Get the Httpacess working
- Try to put all elements from Habbo Home into Database and push back with a query...
- Enable Private your Habbo Home
- Check if user as Banned...
Probably i'll post a Alpha preview until next friday... with all programmed features and the Register working...
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Is it MVC? Is there multi-language support? And is the figure image 100% accurate?
Other than that, it looks amazing! I really LOVE this style, one of my favourites!
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
If I use the same users table as Kepler in a project will your CMS be compatible as well?
Sent from my SM-G530T using Tapatalk
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
treebeard
If I use the same users table as Kepler in a project will your CMS be compatible as well?
Sent from my SM-G530T using Tapatalk
Of course :) , but u need to import extra tables for news... Site config ...
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
m.tiago
Of course :) , but u need to import extra tables for news... Site config ...
But Kepler does not need that (?)
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
lElectrico
But Kepler does not need that (?)
No, his CMS needs that.
Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]
Quote:
Originally Posted by
lElectrico
But Kepler does not need that (?)
No , i use all Kepler database structure , but i needed to make extra tables for the rest of website. I talking with Quackster about that because i have some tables Like Tags where the server can use on future...
- - - Updated - - -
Quote:
Originally Posted by
Navine
Is it MVC? Is there multi-language support? And is the figure image 100% accurate?
Other than that, it looks amazing! I really LOVE this style, one of my favourites!
I not using any arquiteture yet , because 'm just testing pieces of code... For now i have a Index.php and a Functions.php where i just call and they send me a response. But i have plans to move everthing to MVP (its easy...).
About the Multi-Language yes , i'll make English and Portuguese... In users table will have a column called User_Language [ en , pt ( maybe spanish ) ].
I just need to find a way to get the texts (i dont wanna make a php locale file (too bad... , maybe get from database (Website_Locales ???)...) . ) its complicated ... for now i want to work in the rest , i'm using scrum for development... and my Sprint burndown (well... its a mess...);