Information:
I havent been active in the Habbo community for a long time, im back and have start a project called 'HabboCMS'. This project is going to show how much i have learnt from this community. I hope for this project to be big, its going to contain simply everything that Habbo Hotel has. Its going to be a really Newbie friendly cms, install help, friendly ASE etc. Theres is alot todo left and you can expect a release within 30 september 2012 sometime.
Support for all emulators:
The CMS is going to support all emulators, Phenoix, Uber, Butterfly (You name it)
How this is possible: All queries are saved in a file ({servername}.php) and the system will get the diffrent queries out of this file and filter the {tags} (example: {id})
Support for all languages:
There will be support for all languages, more information comming soon.
(Note: i wanna wait on releasing the translation file beacuse i want to finnish all the features. If you want to translate to a language feel free to comment or pm me. I will appreciate that very much, and you will be credited)
Notes:
In this CMS I'll focus on getting most like Habbo as possible and ofcourse security, thats my main goal, make a exploit free CMS.
Suggestions:
Spoiler:
Habbo ID with Add avatar(s) (3 Supporterts, vBulletin & Blasterman & n0minal)
I'm updating the thread as the development goes on.
And If you can translate to your language when the translation files comes out that would be awesome
Currently got this languages:
English (Someone with main language can go over the grammer)
Changelog:
Added translators (4.aug.2012 1900)
Added development updates (5.aug.2012 1300)
Added suggestions (7.aug.2012. 1800)
Offical development site created at http://habbocms.net(8.aug.2012 0100)
Update color system on how the development is going (20.aug.2012 2200)
CBA to add
Would be helpful to also include Portuguese with it =D Thanks, otherwise it looks great and can't wait to see things like Facebook login. All those payment options are great.
Good luck!
28-07-12
Kellynn
Re: HabboCMS [PHP, MySQL] [All Emus]
aw this will be very nice, keep up the good work :)
28-07-12
Livar
Re: HabboCMS [PHP, MySQL] [All Emus]
So you're back brohan!
Welcome back and good luck Ole.
31-07-12
madsmartapple
Re: HabboCMS [PHP, MySQL] [All Emus]
This would be amazing, Good luck..I definately support this! One moment while I change my signature pic ;)
31-07-12
Naphier
Re: HabboCMS [PHP, MySQL] [All Emus]
Good luck with this, will be looking forward to its completion.
04-08-12
Nilenz
Re: HabboCMS [PHP, MySQL] [All Emus]
This is amazing, Good luck hopefully that he Good Finisht
04-08-12
Quackster
Re: HabboCMS [PHP, MySQL] [All Emus]
Any updates?
04-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Quackster
Any updates?
Working on Facebook features atm.
But im on vacation with some friends and fam so the development is going a little slowly atm.
Thanks to Hejula and phoxyhabbo for offering translation help.
Appreciate all the support guys :)
05-08-12
Twan
Re: HabboCMS [PHP, MySQL] [All Emus]
Maybe make a badge shop or something x)
05-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Plugins will be avaiable, but the release will only contain the features Habbo has.
Custom scripts can easily be installed from the ASE
05-08-12
mmaxwell
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by oleaa
Plugins will be available, but the release will only contain the features Habbo has.
Custom scripts can easily be installed from the ASE
finally someone who is making a habbo cms without all the crap badge shops not needed not wanted furni shops no just a habbo cms good work cant wait for release
05-08-12
Shredinator
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by mmaxwell
finally someone who is making a habbo cms without all the crap badge shops not needed not wanted furni shops no just a habbo cms good work cant wait for release
There's already alot of those, but okay
06-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Language system created and working.
CMS currently takes 1 secound to load up, now working on getting it down to 0.3-0.5 secounds
06-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Im going to think about that feature "add avatar(s)"
But if im going to code it people will need to login with their email etc.
Basiclly it will be Habbo ID.
Status:
Development stopped for 3-4 Days
My laptop went to hell, the power button cable cracked
I have ordered new from ebay but i will take some time ship to Norway -_-
06-08-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Looking forward to this would really love to see the add avatar page coming.
06-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Seems like people want the Habbo ID add avatar(s) feature.
Also added a suggestion spot in the thread, feel free to suggest what you want.
Development resumed and the development site is not edited to something serious.
If you miss the old page its called lolz.html
19-08-12
FlyHotel
Re: HabboCMS [PHP, MySQL] [All Emus]
I wanna help you with translate it to Dutch. If you want the Dutch Language i will do it for you.
Maybe we can use the HH Server emu from Jenna Doe on this cms that will be great.
19-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by FlyHotel
I wanna help you with translate it to Dutch. If you want the Dutch Language i will do it for you.
Maybe we can use the HH Server emu from Jenna Doe on this cms that will be great.
Allready got a dutch translator but thanks for offering your help.
And if Jenna Doe want write a cms-query file for his server he can do so :p
20-08-12
FlyHotel
Re: HabboCMS [PHP, MySQL] [All Emus]
Aww.. Damn :( if Jenna Doe want to do that that will be great because she made a beautiful Emu. But i can translate it to german if you want that language.
20-08-12
Gangnam
Re: HabboCMS [PHP, MySQL] [All Emus]
I can't wait to see the genuine article in practise. When are you launching a demo Ole? ;3
20-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Habmi: Frontpage is the offical test hotel all trough the hotel has a old build, gonna upload the last build public tonight
20-08-12
FlyHotel
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Habmi: Frontpage is the offical test hotel all trough the hotel has a old build, gonna upload the last build public tonight
Very nice! Do you want to translate it to German? I can help you with German language
20-08-12
Raz0rDot
Re: HabboCMS [PHP, MySQL] [All Emus]
Good luck bro! Great seeing you back in the community. :)
22-08-12
eMagic
Re: HabboCMS [PHP, MySQL] [All Emus]
Hey,
I speak fluent Spanish and have an 100% Cambridge iGCSE A* pass.
I would love to be able to help you by translating your project and hope that it goes well in the future ;)
Also, I have lived in Spain for 5 years, just moved to France :)
Regards,
eMagic
22-08-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by eMagic
Hey,
I speak fluent Spanish and have an 100% Cambridge iGCSE A* pass.
I would love to be able to help you by translating your project and hope that it goes well in the future ;)
Also, I have lived in Spain for 5 years, just moved to France :)
Regards,
eMagic
Thanks, you are added to my list :)
28-08-12
DarkWing
Re: HabboCMS [PHP, MySQL] [All Emus]
Looks nice. Hope you finish this development.
28-08-12
Crizzyl
Re: HabboCMS [PHP, MySQL] [All Emus]
This Cms will be great with the HH server of Jenna Joe.
Ot: Can wait for the release
29-08-12
madsmartapple
Re: HabboCMS [PHP, MySQL] [All Emus]
This is amazing...I want the download link so bad.. :L
02-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Guys, I will let you choose.
Should i do Habbo ID link HH has?
Login with email choose diffrent avatars etc.
Or should i just leave it with username/password login?
02-09-12
Papercup
Re: HabboCMS [PHP, MySQL] [All Emus]
On the applications page, there is a typo. It's field.
02-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Clarke
On the applications page, there is a typo. It's field.
I can maybe translate it 2 swedish if you want.... :)
02-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Clarke
/facepalm Did you even check?
Yes i did check the source but not the acctual website x)
Quote:
Originally Posted by thecodz
I can maybe translate it 2 swedish if you want.... :)
Thanks man, appreciate it :)
02-09-12
Gangnam
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Clarke
/facepalm Did you even check?
Go make a Norwegian site and ensure content is grammatically correct ;-)
04-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
I can just say with all the developements of HabboCMS This sure is the best one good luck buddy.
04-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Alot of changes have been made, but dont wanna waste time editing the thread while i can develop.
HabboASE have been moved to a seperate project and will work as a seperate script to example put it on allseeyingeye.website.com.
Will not release with HabboCMS, it will come later.
Habbo ID is started, you now have to login with your email (automatlicly selects your default account)
Maintenance page added etc.
04-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Alot of changes have been made, but dont wanna waste time editing the thread while i can develop.
HabboASE have been moved to a seperate project and will work as a seperate script to example put it on allseeyingeye.website.com.
Will not release with HabboCMS, it will come later.
Habbo ID is started, you now have to login with your email (automatlicly selects your default account)
Maintenance page added etc.
Good luck is this based off anything or is just what you've coded yourself good luck bro!
04-09-12
Raz0rDot
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Elimination
Good luck is this based off anything or is just what you've coded yourself good luck bro!
Knowing Ole he did it from scratch. Last time I can recall him doing something that's not from scratch was Habztar hotels(2+ years ago) CMS which was a UberCMS Edit.
04-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by RedSeaD1
Knowing Ole he did it from scratch. Last time I can recall him doing something that's not from scratch was Habztar hotels(2+ years ago) CMS which was a UberCMS Edit.
Alright then let's hope that he will finish this developement and hopefully release it or not that's not a probem for me.
04-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Elimination
Alright then let's hope that he will finish this developement and hopefully release it or not that's not a probem for me.
IT will be finnished AND released here on Ragezone.
04-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
IT will be finnished AND released here on Ragezone.
Can't wait :(
04-09-12
Shoelace
Re: HabboCMS [PHP, MySQL] [All Emus]
Wow i really like your CMS, love the way its going look like habbo. Good luck
05-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Shoelace
Wow i really like your CMS, love the way its going look like habbo. Good luck
Yeah agree it really does can't wait too.
05-09-12
V for Vendetta
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by vBulletin
Yeah agree it really does can't wait too.
Guess nobody can really wait let's see how far it will come in the past days i'm pretty sure that it's going to make a long road of good things added.
08-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Added jangosmtp support for mails
(Register email, newsletter etc.)
Added facebook connect
Removed Google ads
Started Plugin system
Done with Credits page (PayPal API Done, gives automatic X VIP Points that the user donated(x = $). Will create VIP shop as a plugin.)
Cant edit the thread, idk why
09-09-12
Maestrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Added jangosmtp support for mails
(Register email, newsletter etc.)
Added facebook connect
Removed Google ads
Started Plugin system
Done with Credits page (PayPal API Done, gives automatic X VIP Points that the user donated(x = $). Will create VIP shop as a plugin.)
Cant edit the thread, idk why
Awesome, targetpay delivers nice other paymentmethodes like paysafecard/sms/ call maybe a suggestion.
09-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Maestrom
Awesome, targetpay delivers nice other paymentmethodes like paysafecard/sms/ call maybe a suggestion.
Oh, i found one bug:-)
I had created an account, but i tried to make an account with the same name, this is what happens:
Fixed, Messed up when i move the strings to the translation file. If you guys find typos or other errors let me know.
Thanks for reporting
10-09-12
Naphier
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Fixed, Messed up when i move the strings to the translation file. If you guys find typos or other errors let me know.
Thanks for reporting
Try to make an account and it says 'That username allready exsits.' When it should say 'That username already exists.'. :):
And it says 'Just to make sure you dident have any typos.' but it should say 'Just to make sure you didn't have any typos.'. :):
Another error, I registered with the name 'LukeRZ' and the name just goes to 'lukerz' Without any capitals.
10-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Luke
Try to make an account and it says 'That username allready exsits.' When it should say 'That username already exists.'. :):
And it says 'Just to make sure you dident have any typos.' but it should say 'Just to make sure you didn't have any typos.'. :):
Another error, I registered with the name 'LukeRZ' and the name just goes to 'lukerz' Without any capitals.
Everything expect the last one is fixed, Its meant to be like that atm.
____
Started the email system.
Sends email and create auths but havent created the reset pw and confirm email page yet.
Facebook API's is acting weird and is slow, removed it until i have read they manual and checked some examples first.
Added support for own SMTP server
Added plugin 'thehabbos.org vote'
Added plugin 'HabboCron'
Added plugin 'AutoBackup' (backsup mysql server ever X hour(s) saves in local file and alternativly uploads to a FTP server)
11-09-12
DarkWing
Re: HabboCMS [PHP, MySQL] [All Emus]
This is looking nice so far, In my opinion I don't think you should add 'thebabbos.org api' because not everybody will want that on their CMS. Unless you make it so you can disable/enable the api.
11-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by DarkWing
This is looking nice so far, In my opinion I don't think you should add 'thebabbos.org api' because not everybody will want that on their CMS. Unless you make it so you can disable/enable the api.
Thats what a plugin system is for ;)
You can manage/add own plugins from ASE :p
11-09-12
DarkWing
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Thats what a plugin system is for ;)
You can manage/add own plugins from ASE :p
Oh well in that case, This dev sounds great. Good luck with it.
19-09-12
Releastix
Re: HabboCMS [PHP, MySQL] [All Emus]
I can translate it into german :) sry for my bad english im german
19-09-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Releastix
I can translate it into german :) sry for my bad english im german
If your english is bad it would not be a good idea to translate if you cant understand it:p
21-09-12
xdstyler
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
If your english is bad it would not be a good idea to translate if you cant understand it:p
Google Translator?
29-09-12
Raz0rDot
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by xdstyler
Google Translator?
Google translate isn't accurate enough. It may ruin the sentences just as much as someone who doesn't understand the english language fully. Most developers are aware of that and prefer to not use it for that purpose.
21-10-12
Sheldos
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by RedSeaD1
Google translate isn't accurate enough. It may ruin the sentences just as much as someone who doesn't understand the english language fully. Most developers are aware of that and prefer to not use it for that purpose.
Couldn't agree more, i could offer french and arabic translations, good luck ole it looks very amazing.
03-11-12
SatoshiUshi
Re: HabboCMS [PHP, MySQL] [All Emus]
Could I have a download link of how it is now... I've seen some sites with this!
04-11-12
PRIZM
Re: HabboCMS [PHP, MySQL] [All Emus]
Updates?
05-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
The motivation varies, a release was planned a month ago but the CMS is around 50% finnished.
I dont want to release something unfinnished but there will be a release sometime..
And CBA to update the thread everytime I update or make a new feature
05-11-12
Dzemanoosh
Re: HabboCMS [PHP, MySQL] [All Emus]
Awesome. :thumbup:
When will the CMS be released? :D:
06-11-12
Raz0rDot
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by SatoshiUshi
Could I have a download link of how it is now... I've seen some sites with this!
I suppose those hotels found the version which some faggot managed to leak. I doubt Ole would let anyone get hold of the CMS if not for educational reasons, and even then he'd most likely only give it to a selected few whom he trust.
Just wait for the final release. It'll be worth it, trust me.
08-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Newest updates:
Done with the core for Translation system (for now)
Plugins configuration file is now SimpleXML
Added template system
Added template skin configuration file
Added HabboID (Login with email)
HabboID supports multipile avatars
Added PayGol API Script
Removed Jampo Mail
Rewrited most of the commands (for better performance)
Added bans & IP Bans
Cool facts:
Language system is using in average 0.005 secounds to complete
Template system is using in average 0.01 secounds to complete
New features:
Logs all purchases in .txt files
Stores all error messages that a user gets
HabboID now supports user identity (user can create a custom login username) (optinal ofcourse)
Staff page (plugin)
Top stats (plugin)
HabboASE new features:
Advanced User lookup, Clones, includes Rooms, room chatlogs, cfhs, badges, Inventory (What user has in hand) and Login logs (with IP)
Bans and manage bans (appeals etc.)
Edit user
Edit rooms
Edit badges
Hotel alert
Staff alert
Fake login (login as)
Starting with Homes and Groups (homes) when im done with the template system
/* Internal Information (version etc) */ define('VB', '1.0.0'); define('S', 'core/'); //Location where all system files are define('P', 'plugins/'); //Where plugins are located (X . S . P) define('B', 'storage/'); //Where cache, config and temp files are located (X . S . B) define('C', 'system/'); //Where config files are located (X . S . B . C) define('L', 'languages/'); //Where lanuages files are located (X . S . B . L) define('E', 'servers/'); //Where server files are located (X . S . B . E) define('H', 'purchases/'); //Where completed purchases logs are stored. (X . S . B . E) define('F', 'errors/'); //Where CMS Error logs are stored (X . S . B . F) define('K', 'skins/'); //Where all skins (tempalte) files are located (X . S . K) if(!defined('X')) define('X', ''); //If global.php is called from a higher folder then X will be defined, if not call it ''
/*Check if the server is able to run HabboCMS */ if(ini_get('safe_mode')) die("For HabboCMS to work please turn PHP Safe-Mode to 'Off' read more here: <a href='http://php.net/manual/en/features.safe-mode.php'>PHP Safe mode Manual</a>"); if(!function_exists('curl_init')) die("Your web server does not have 'curl' extension installed. For HabboCMS to work you must install 'php-curl' (# yum install php-curl)"); if(!function_exists('mysql_connect')) die("Your web server does not have 'mysql' extension installed. For HabboCMS to work you must install 'php-mysql' (# yum install php-mysql)"); if(!function_exists('mcrypt_decrypt')) die("Your web server does not have 'mcrypt' extension installed. For HabboCMS to work you must install 'php-mcrypt' (# yum install php53-mcrypt)");
/* Check if all required exists */ if(!file_exists(X . S . B . C . 'general.php')) die("Could not find your HabboCMS Config file. Please re-install HabboCMS"); //General Config file if(!file_exists(X . S . B . C . 'sql.php')) die("Could not find Database settings. Please re-install HabboCMS");
/* Include all required files */ require X . S . B . C . "general.php";
/* Check if all general variables are there */ if(!isset($_HabboCMS['website']['www'], $_HabboCMS['website']['shortname'], $_HabboCMS['website']['sitename'], $_HabboCMS['website']['language'], $_HabboCMS['website']['hash'], $_HabboCMS['website']['plugins'], $_HabboCMS['website']['webgallery'], $_HabboCMS['website']['gallery_rev'], $_HabboCMS['website']['skin'], $_HabboCMS['client']['gordon'], $_HabboCMS['client']['ip'], $_HabboCMS['client']['direct_ip'], $_HabboCMS['client']['port'], $_HabboCMS['client']['variables'], $_HabboCMS['client']['texts'], $_HabboCMS['client']['productdata'], $_HabboCMS['client']['furnidata'], $_HabboCMS['MUS']['active'], $_HabboCMS['MUS']['ip'], $_HabboCMS['MUS']['port'], $_HabboCMS['server']['type'], $_HabboCMS['general']['newbiemotto'], $_HabboCMS['general']['startcredits'], $_HabboCMS['general']['startpixels'], $_HabboCMS['mail']['supportmail'], $_HabboCMS['mail']['replyto'], $_HabboCMS['facebook']['enabled'], $_HabboCMS['facebook']['app_id'], $_HabboCMS['facebook']['app_id_secret'], $_HabboCMS['facebook']['permissions'], $_HabboCMS['twitter']['name'])) die("Missing variable from configuration file, please re-install HabboCMS");
/* Check if language and server files exists */ if(!file_exists(X . S . B . L . $_HabboCMS['website']['language'] . '.php')) die("Could not find your HabboCMS Config file. Please re-install HabboCMS"); //Check if language file exists if(!file_exists(X . S . B . E . $_HabboCMS['server']['type'] . '.php')) die("Could not find Database settings. Please re-install HabboCMS"); //Check if server files exists
/* Get language file and server file */ //require X . S . B . L . $_HabboCMS['website']['language'] . '.php'; require X . S . B . E . $_HabboCMS['server']['type'] . '.php';
/* Check if data comes from CloudFlare and get real IP Adress */ if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; //define('USING_CLOUDFLARE', true); }
/* Start Sessions */ session_start();
/* Check if banned */ if (!empty($_SESSION['website_banned'])) { header("Location: /banned"); exit; }
/* Check if all class files exists */ if(!file_exists(X . S . "functions.habbocms.php")) die("Could not find class file <b>fucntions.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "translator.habbocms.php")) die("Could not find class file <b>translator.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "core.habbocms.php")) die("Could not find class file <b>core.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "sql.habbocms.php")) die("Could not find class file <b>sql.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "users.habbocms.php")) die("Could not find class file <b>users.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "template.habbocms.php")) die("Could not find class file <b>template.habbocms.php</b>. Please re-install HabboCMS"); if(!file_exists(X . S . "plugins.habbocms.php")) die("Could not find class file <b>plugins.habbocms.php</b>. Please re-install HabboCMS");
/* Include server files */ require X . S . "functions.habbocms.php"; require X . S . "translator.habbocms.php"; require X . S . "core.habbocms.php"; require X . S . "sql.habbocms.php"; require X . S . "users.habbocms.php"; require X . S . "template.habbocms.php"; require X . S . "plugins.habbocms.php";
/* Install and set variables for system class files */ $core = new HabboCMS; $sql = new HabboSQL; $users = new HabboUsers; $plugins = new HabboPlugins; $html = new HabboTemplate; ?>
<?php class HabboTranslator { public $s = array(); function __construct($page) { global $_HabboCMS; $start = microtime(true); $sections = explode(',', $page); foreach ($sections as $page) { require X . S . B . L . $_HabboCMS['website']['language'] . '.php'; $this->s = array_merge($this->s,$s); } $total_time = round(((microtime(true)) - $start), 4); echo '<!-- language system installed in: ' . $total_time . ' secounds -->'; } /*Removes cache that was generated when the class was called*/ public function clear_cache() { unset($this->s); $this->s = array(); return true; }
public function s($key, $replace = array()) { $key = $this->s[$key];
}
} ?>
I will make an video of me developing soon ;)
09-11-12
AppleLion
Re: HabboCMS [PHP, MySQL] [All Emus]
I can translate it to Dutch if you Like ;D
13-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Working on habblet/ajax but its killing me, any suggestions?
maybe how to debug what habbo.com does when it sends headers etc
17-11-12
AppleLion
Re: HabboCMS [PHP, MySQL] [All Emus]
I use now PHPRETRO, but i dont wanna lose user accounts or that they must make a NEW account... Can you make a thing that you can use a another Password Hash code? So people dont lose there users :(
18-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by AppleLion
I use now PHPRETRO, but i dont wanna lose user accounts or that they must make a NEW account... Can you make a thing that you can use a another Password Hash code? So people dont lose there users :(
That would be possible, I can do that
18-11-12
NoBrain
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by AppleLion
I use now PHPRETRO, but i dont wanna lose user accounts or that they must make a NEW account... Can you make a thing that you can use a another Password Hash code? So people dont lose there users :(
That's easy, just set the hashing algorithm in the configuration so it can be changed, it will also need the salt in the configuration. :)
SHA-3 FTW!
18-11-12
Hejula
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by ησвяαιη
That's easy, just set the hashing algorithm in the configuration so it can be changed, it will also need the salt in the configuration. :)
SHA-3 FTW!
SHA-3 is pretty impressive. Just read the Wiki page about it!
I hope he can make a thing that i can import my users and that the progam can change it to the Hash of that CMS.
Idea:
A tool to import users that change all password Hashes to the new Hash.
18-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by AppleLion
Im not a expert in that things O_O
I hope he can make a thing that i can import my users and that the progam can change it to the Hash of that CMS.
Idea:
A tool to import users that change all password Hashes to the new Hash.
Not planing on using the same hash method as PHPRetro, so there will be like a button saying "Click here to import your old account" and they type in username and password and it automaticlly changes the hash. Like Sulake did when they merged the english speaking hotels
19-11-12
AppleLion
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
Not planing on using the same hash method as PHPRetro, so there will be like a button saying "Click here to import your old account" and they type in username and password and it automaticlly changes the hash. Like Sulake did when they merged the english speaking hotels
That's GREAT! You're Amazing:ott:
24-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
I'm starting to hate PHP more and more,
so fuck PHP I will go for ruby with rails next time
24-11-12
Joopie
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
I'm starting to hate PHP more and more,
so fuck PHP I will go for ruby with rails next time
Can you atleast say why you hate PHP? :P
24-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
I created a template system,
the class HabboTemplate is installing the page with function __construct which makes me not allow to make another class or call other db functions ($db, $sql, $general_sql etc) without getting the member function error.
If that made sense
Im sure I have done something wrong or there is a fix on this but... fml
24-11-12
Joopie
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
I created a template system,
the class HabboTemplate is installing the page with function __construct which makes me not allow to make another class or call other db functions ($db, $sql, $general_sql etc) without getting the member function error.
If that made sense
Im sure I have done something wrong or there is a fix on this but... fml
Error message and code of where the line is, and maybe your template class?
Maybe I can help you :)
29-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
New plugin class
PHP Code:
<?php class HabboPlugins { public $plugins = array(); private $keys = array( 'current_page' => URL, 's' => S, 'e' => E, 'p' => P, 'b' => B, );
function __construct() { global $_HabboCMS, $users, $debug, $core; if(!$_HabboCMS['website']['plugins']) return false; $debug->StartClock('plugins'); $xml = json_decode(json_encode((array) simplexml_load_string(file_get_contents(X . S . P . 'plugins.xml'))), 1); $this->plugins = $xml; foreach($xml as $name => $array) { if(isset($xml[$name]['@attributes']['active']) && $xml[$name]['@attributes']['active'] == 1) { require $this->filter($xml[$name]['path']) . $xml[$name]['onload']; } } echo '<!-- Took to ' . $debug->StopClock('plugins') . ' secounds to load plugins -->'; }
// In wamp like environments that do not come bundled with root authority certificates, // please download 'cacert.pem' from "http://curl.haxx.se/docs/caextract.html" and set the directory path // of the certificate as shown below. // curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); if( !($res = curl_exec($ch)) ) { // error_log("Got " . curl_error($ch) . " when processing IPN data"); curl_close($ch); exit; } curl_close($ch);
// STEP 3: Inspect IPN validation result and act accordingly
if (strcmp ($res, "VERIFIED") == 0) { // check whether the payment_status is Completed // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email // check that payment_amount/payment_currency are correct // process payment
} else if (strcmp ($res, "INVALID") == 0) { // log for manual investigation die("Invalid."); } ?>
Source: x.com
29-11-12
harbihotel
Re: HabboCMS [PHP, MySQL] [All Emus]
This is looking awesome. Can't wait for a release to use with my Phoenix Emu.
29-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Geese
Your structure is brutal from the snippets you provided. You have a bunch of good ideas and features but your strategy to implement them is wrong. You will find your project harder and harder to develop as you add more modules and wrappers to your project because of the poor structure it has. This will turn away customers, which will make all of this pointless.
I highly suggest you start over rather than build from what you have or do a simpler project.
yeah, maybe. I need to work alot with the structureand how things are combined
Quote:
This will turn away customers, which will make all of this pointless.
I'm mainly coding for my own hotel so there is a point.
Changes: Plugin system now using JSON for config reading instead of XML
29-11-12
seanrom
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Geese
No because you are posting this in the development section which means it's supposed to be released. What's the point in making something and releasing it if only you plan to use it? The community cannot use this, it's horrid. Nobody can extend your code, so why would they switch when they can easily extend on Uber CMS and other CMSs that poses a strong structure.
I stick with my opinion that you should start over or do a smaller project.
Yes, it will be released, and if people don't wanna use it? Idc.
If people don't wanna 'extend' it? Idc.
Also I want to know where the code is so 'horrid' and in what snippet. Most of the snippets I have posted is now completly changed now anyways.. How can you drag out of nowhere that the structure is bad without even seeing the whole script? How it all works together?
Thanks for the feedback. I'll work on the structure as I've said. I also challenge you to make something better that the community can "use" or people can "extend" and the structure is perfect.
29-11-12
Raz0rDot
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Geese
This will turn away customers, which will make all of this pointless.
Customers? He's not going to sell this or make profit from the CMS. I suggest you get your facts straight. HabboCMS doesn't have a bad structure as long as the main dev. understands it, and it's functional. Other developers could use the plugin hook, or templating system for further developing after this.
Retros themselves are pointless if you mean a bad structure makes them lose "customers". As long as no-one pays anything for it, there's no customers involved. Only users and maybe a few whom decide to develop from this CMS. Even that shouldn't matter. Users won't go into the codes unless they develop it, and still that wouldn't really be necessary considering the fact that there's a plugin hook function as well.
I'll agree with you that it's not easy to extend from it, but not many people really care for that these days. Just look at phoenix. Too many use the non-cracked version as they don't care that they cannot extend it themselves, or are just too lazy to do so.
This CMS will definitely be a great asset to the community even though it's not easy to extend from.
You sir made my day.
30-11-12
AppleLion
Re: HabboCMS [PHP, MySQL] [All Emus]
Quote:
Originally Posted by Oleaa
People set their own hash in the config file.
Heres also the PayPal API that i use.
Removed the give vip and credits etc part, you can do that yourself not that hard!
PHP Code:
<?php
ini_set('display_errors', 1);
$contents = '';
// STEP 1: Read POST data
// reading posted data from directly from $_POST causes serialization
// issues with array data in POST
// reading raw POST data from input stream instead.
$raw_post_data = file_get_contents('php://input');
$raw_post_array = explode('&', $raw_post_data);
$myPost = array();
foreach ($raw_post_array as $keyval) {
$keyval = explode ('=', $keyval);
if (count($keyval) == 2)
$myPost[$keyval[0]] = urldecode($keyval[1]);
}
// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-validate';
if(function_exists('get_magic_quotes_gpc')) {
$get_magic_quotes_exists = true;
}
foreach ($myPost as $key => $value) {
if($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1) {
$value = urlencode(stripslashes($value));
} else {
$value = urlencode($value);
}
$req .= "&$key=$value";
}
// STEP 2: Post IPN data back to paypal to validate
// In wamp like environments that do not come bundled with root authority certificates,
// please download 'cacert.pem' from "http://curl.haxx.se/docs/caextract.html" and set the directory path
// of the certificate as shown below.
// curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
if( !($res = curl_exec($ch)) ) {
// error_log("Got " . curl_error($ch) . " when processing IPN data");
curl_close($ch);
exit;
}
curl_close($ch);
// STEP 3: Inspect IPN validation result and act accordingly
if (strcmp ($res, "VERIFIED") == 0) {
// check whether the payment_status is Completed
// check that txn_id has not been previously processed
// check that receiver_email is your Primary PayPal email
// check that payment_amount/payment_currency are correct
// process payment
// In wamp like environments that do not come bundled with root authority certificates,
// please download 'cacert.pem' from "http://curl.haxx.se/docs/caextract.html" and set the directory path
// of the certificate as shown below.
// curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
if( !($res = curl_exec($ch)) ) {
// error_log("Got " . curl_error($ch) . " when processing IPN data");
curl_close($ch);
exit;
}
curl_close($ch);
// STEP 3: Inspect IPN validation result and act accordingly
if (strcmp ($res, "VERIFIED") == 0) {
// check whether the payment_status is Completed
// check that txn_id has not been previously processed
// check that receiver_email is your Primary PayPal email
// check that payment_amount/payment_currency are correct
// process payment
// In wamp like environments that do not come bundled with root authority certificates, // please download 'cacert.pem' from "http://curl.haxx.se/docs/caextract.html" and set the directory path // of the certificate as shown below. // curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); if( !($res = curl_exec($ch)) ) { // error_log("Got " . curl_error($ch) . " when processing IPN data"); curl_close($ch); exit; } curl_close($ch);
// STEP 3: Inspect IPN validation result and act accordingly
if (strcmp ($res, "VERIFIED") == 0) { // check whether the payment_status is Completed // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email // check that payment_amount/payment_currency are correct // process payment