[Finished] gHabbo (now continued as Trinity)

Status
Not open for further replies.

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Uuu, now I'm very intrigued! Best of luck, man! :up:
Sent from my iPhone using Tapatalk
cheers

11/11/15

Habbo functionality is beginning to come to the cms. Login, logout, and register have been completed. Now i'm working on the me page.
1g1zsvZ.gif


the css elements for buttons are all fucked up rightnow but i'll eventualy get to it.
 
Updating main thread
new screenies:
o9KKR9h.gif

Z1GBIm7.gif


After a user registers, they will be fowarded here:
PlKFDaU.png

vGTnKEh.png
 
Last edited:

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Wooo, a different CMS!
Cheers man! Original post has been updated :)
 
11/13/15

Since i'm using cookie sessions to handle my logins i'm now securing the cookie with a token similar to my csrf token. Just to be safe ..
ONaE9yk.png


Also, i've reworked the index.
97X1Cx8.gif
 

Marcel

You're the guy who stole my car
Jul 17, 2015
466
208
Nice man, You did a great job.
Cries because it's his last project.
Good job, I hope you continue though you've made the habbo community happy.
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Nice man, You did a great job.
Cries because it's his last project.
Good job, I hope you continue though you've made the habbo community happy.
Thanks! Yeah i'm beginning to grow out of habbo, actually i already have but i don't mind developing my first and final cms.
Masterpiece! Keep going looking forward into it.
Nowhere near a masterpiece but it should be significantly close lel :rasta:

11/13/15
The way i checked logins was really really bad, so i've managed to make it into a user class function.
mENZBIT.png

simple yet surprisingly effective and clean.

usage:
UWkTszr.png


I'm very happy with how lightweight it is. Just one line of code :)
Original post updated.
 
Fixed some very minor css issues;

before:
O5exvIZ.png


after:
pwy6e4o.png


looks much better now. that missing fade on the tabs was annoying me
mroj1sQ.gif


New function added to the users class gUsers::getCurrency('credits or ducketts');
dfGa96N.png
 
Last edited:

Lame

Member
Nov 6, 2014
303
78
yqZhG2M.png

object oriented php pdo cms

Thread last updated: 11/13/15
The back story:
I originaly wanted to code a habbo cms in python with flask, but then i noticed that it's a pain to get mod_python working on a server, and it could be a hassle if i wanted to release this cms to the public as a contribution to the community. This will be my last habbo project, as i've already out grown habbo retros.

The idea is to make a fast habbo cms that allows you to edit all the content on the pages without having to do server side html. For example, enter the panel and add/remove html or css elements to the server through a client (the admin panel)).

gHabbo features
  • gHabbo
    • Lightweight templating
      • Call php variables with {category->variable}
      • Import html widgets to make your template pages less clunky with {widget->name}
      • Use your own custom template by placing it in pub/template_name
    • Secure querys & database functions
      • PDO Prepared statements (counters sql injections)
      • CSRF encrypted tokens (counters cross site request forgery)
    • Simple User system
      • Create a user easily with gUsers::create($user, $pass, $passconfirm, etc);
      • Return user currency with gUsers::getCurrency('currency_type');
      • Smart error filtering automatically integrated into the user class
    • Effective code base
      • Import your own classes & functions by simply placing your file in app/classes/class.YOURCLASS.php.. that's it!
      • Clean site mapping. (yoursite.com/thispage/or maybe a subpage)
      • Install gHabbo easily without having to edit config files
      • Call configuration variables easily with gConfig::get('category->variable');
      • Call $_POST variables easily with gFormData::.pack('field_username');
    • (This list is updated often, check back soon)
Code snippets
79oijoE.png

gHabbo will allow automatic class loading, all you have to do is make a file named class."your classname".php. start your class with "classname", and call it in gHabbo with "classname"::"function"():


yNd8D3v.png

the database will utilize pdo. easily make a query in gHabbo with gDatabase::dbConnect()->prepare('SELECT * FROM ?');


3KN9eaz.png

you can call config values with gConfig::get('site->name');. the config is in array format as shown below:
6smLmjI.png
Development log
[*] = change [+] = added [-] = removed

[+] 11/4/15 -
[*] 11/5/15 -
[+] 11/7/15 -
[+] 11/10/15 -
[*] 11/10/15 -
[+] 11/11/15 -
[*] 11/13/15 -
[*] 11/13/15 -


Screenshots:
Z1GBIm7.gif

o9KKR9h.gif

UM2zhuG.png

vGTnKEh.png
Glad this is your last project; it fucking sucks Kappa
 

Jaden

not so active
Aug 24, 2014
886
263
I like the idea of "cookie sessions" but just to be more secure, I'd cache the cookie in the database based on the users password or something like that.
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
I like the idea of "cookie sessions" but just to be more secure, I'd cache the cookie in the database based on the users password or something like that.
Good point, i'll look into it, cheers man
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Gyzao GIF
Noope
What do you use to take those videos of your screen?
=> Imgur
ePognTA.png

The quality on it is amazing, although i've never used Gyzao
 
11/14/15

Hi.
So I completely scrapped my old getCurrency function as it was useless once i started working on updating user info:
EiYwuWm.png


Instead, i now have a function called gUsers::getUserColumn('column_here');
s080WgN.png

it's alot more clean and simple, you can choose any column you want from the user table rather then just credits or duckets.

Also, i've started the account settings page with session errors, the outcome atm is really nice.
8E1ofUv.gif


I plan on making a function called gUsers::updateUserInfo because atm it looks real sloppy :x
crtwbSe.png


Also, i've finally gotten around filtering variable to counter xss attacks.
z2iqfL6.png

ReAFTBH.png


started community section:
1zt3DqT.png

that's all for now!
main thread has been updated
 
Last edited:

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
Looks good. Gl
Thanks!

temporary demo site up:
 
11/16/15

Sup.
Started admin sessions:
Rb3EKy3.png

I'll be storing them in seperate cookies rather then using the same session as the site.

bootstrap <3
43yFj6l.gif



Just to let you know, this thread will be dead for a week or so because i'm working on my personal site.
 

brsy

nah mang
May 12, 2011
1,530
272
I plan on making a function called gUsers::updateUserInfo because atm it looks real sloppy :x
crtwbSe.png

The fact that you're inserting data from a cookie straight into the database can't be safe. I am not 100% sure, but I'm pretty sure that it's possible to modify your web browsers cookies, therefore allowing you to theoretically alter someone else's account settings.
 

griimnak

You're a slave to the money then you die
Jul 20, 2013
955
794
The fact that you're inserting data from a cookie straight into the database can't be safe. I am not 100% sure, but I'm pretty sure that it's possible to modify your web browsers cookies, therefore allowing you to theoretically alter someone else's account settings.
My god! I didn't even think about that! Good point man, i'll have to look into this asap.
 
Status
Not open for further replies.

Users who are viewing this thread

Top