[Development] HybridCMS- Secure, fast, lightweight. [R63+/OOP/PHP]

Status
Not open for further replies.

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
kZGZRXe7Jsd0.png
By CookieMonsta.​


Introduction-
HybridCMS is an all new Habbo Website and Content Management System. It's been in development for about 2 weeks now. And now that I'm breaking off into holiday vacation for another 2 weeks, Hybrid is sure to have lots of progress!

Hybrid Goals-
My goal is to get the very basics of Hybrid coded before my holiday vacation ends. At the very least anyways. Meaning, login, SSO, register, etc.


What's done so far-
So far, Hybrid has;
  • Login
  • Register
  • Client
What makes Hybrid standout-
Hybrid is developed not only to kill boardom, and not only for fun, but to add some variety to the Retro community. You will see why once the predicted features are listed in the thread. :')

Tech features-
  • MySQLi and PDO database connections.
  • Secured Template outputing.
  • Database backups.
  • Page caching.
  • Session timing.
  • Log file keeping.
  • Multi-emulator compatibility.
  • Login / Logout functions.
  • Register function.
  • Maintenance function.
  • Banning function.
  • Clean database structure.
  • Housekeeing build upon Blowfis framework.
  • Facebook intergration.
Habbo features-
  • Habbo homes.
  • Habbo groups.
  • Full habbo themed template.
  • Old habbo me.php.
  • Habbo identity.
  • Account settings.
  • Full housekeeping.
  • Custom badgecode hasher.
  • News.
  • Hot campaigns.
  • Tags.
  • Staff.
  • eXperts.
  • Event staff.
File structure-
_Application
__Library
___Classes
___Drivers
___Widgets
__Management
__Storage
___Campaigns
___Development
___Topstory
__Template
_Housekeeping
__Library
_Web-gallery
Development screenshots-
CnqU7.png

333d48a9a18c406297b1f74.png

d4326bfbdaef49da9d77266.png

xXTwB.png

kldDf.png

Did6l.png


Credits-
CookieMonsta- Developer.
Th0r- Logo.
Hejula- Original Habbo theme, made for rev. (implemented into Hybrid)
Marakov- Blowfis framework. (for the housekeeping)

Don't hold a grudge on CookieMS. Don't worry, be happy. Remember, you're not buying anything. Why flame?
 

Stevee

Posting Freak
Mar 29, 2011
580
35
This seems like it'll be alright, I hope you finish your project. Can't wait to see the results.
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
CookieMS, WambaPHP, now this...hmm...

Good luck on this though, hope you finish it.
Actually, if you read my thread, I said that Wamba was a merge with your SuperCMS or w.e it is :p
This seems like it'll be alright, I hope you finish your project. Can't wait to see the results.
Thanks! 
MySQLi class. (Will optimize later on.)

PHP:
 /*================================================================+\
    || # HybridCMS- An advanced Content Management System for habbo based private servers. ||
    |+================================================================+|
    || # Copyright (C) 2012 CookieMonsta. All rights reserved.        ||
    || # http://www.devbest.com/user/CookieMonsta                     ||
    || # This was a scratch development. Love to devbest for support! ||
    |+================================================================+|
    || # HybridCMS is provided "as is" and comes without               ||
    || # warrenty of any kind. HybridCMS is free software!             ||
    || # License: GNU Public License 3.0                              ||
    || # http://opensource.org/licenses/gpl-license.php               ||
    \+================================================================*/
    /*
    *
    *  HybridCMS- MySQLi Class
    *
    */
   
    // #################################################################
    // Secure this file.
    if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
   
    // #################################################################
    // Start the script.
    // Define the class.
    class MySQLi_Database
    {
    public function __construct()
    {
    // Fetch Configuration variables.
      Global $_CONFIG;
      $this->MySQLi_Hostname = $_CONFIG['MySQLi']['Hostname'];
      $this->MySQLi_Username = $_CONFIG['MySQLi']['Username'];
      $this->MySQLi_Password = $_CONFIG['MySQLi']['Password'];
      $this->MySQLi_Database = $_CONFIG['MySQLi']['Database'];
    }
    public function connect()
      {
    $this->MySQLi_Connect =
    @mysqli_connect($this->MySQLi_Hostname, $this->MySQLi_Username, $this->MySQLi_Password, $this->MySQLi_Database);
   
    // Check the connection & close the conneciton.
    if (mysqli_connect_errno())
    {
    Die('<center><div style="width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family: Arial;"><h3>HybridCMS has Encountered an Error.</h3>HybridCMS has failed to connect to the MySQLi Host. Your username or password might be incorrect.<br> <i> Please double check your confiugration </i> </b></div></center>');
    }
    }
    public function disconnect()
    {
    @mysqli_close($this->MySQLi_Connect);
    }
    }
   
    // #################################################################
    // End...
 
Jan 17, 2012
649
166
Actually, if you read my thread, I said that Wamba was a merge with your SuperCMS or w.e it is :p
<- Released it, man. But, you pretty much gave up on it, and left it to me. :/
Thanks! 
MySQLi class. (Will optimize later on.)

PHP:
/*================================================================+\
    || # HybridCMS- An advanced Content Management System for habbo based private servers. ||
    |+================================================================+|
    || # Copyright (C) 2012 CookieMonsta. All rights reserved.        ||
    || # http://www.devbest.com/user/CookieMonsta                    ||
    || # This was a scratch development. Love to devbest for support! ||
    |+================================================================+|
    || # HybridCMS is provided "as is" and comes without              ||
    || # warrenty of any kind. HybridCMS is free software!            ||
    || # License: GNU Public License 3.0                              ||
    || # http://opensource.org/licenses/gpl-license.php              ||
    \+================================================================*/
    /*
    *
    *  HybridCMS- MySQLi Class
    *
    */
 
    // #################################################################
    // Secure this file.
    if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
 
    // #################################################################
    // Start the script.
    // Define the class.
    class MySQLi_Database
    {
    public function __construct()
    {
    // Fetch Configuration variables.
      Global $_CONFIG;
      $this->MySQLi_Hostname = $_CONFIG['MySQLi']['Hostname'];
      $this->MySQLi_Username = $_CONFIG['MySQLi']['Username'];
      $this->MySQLi_Password = $_CONFIG['MySQLi']['Password'];
      $this->MySQLi_Database = $_CONFIG['MySQLi']['Database'];
    }
    public function connect()
      {
    $this->MySQLi_Connect =
    @mysqli_connect($this->MySQLi_Hostname, $this->MySQLi_Username, $this->MySQLi_Password, $this->MySQLi_Database);
 
    // Check the connection & close the conneciton.
    if (mysqli_connect_errno())
    {
    Die('<center><div style="width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family: Arial;"><h3>HybridCMS has Encountered an Error.</h3>HybridCMS has failed to connect to the MySQLi Host. Your username or password might be incorrect.<br> <i> Please double check your confiugration </i> </b></div></center>');
    }
    }
    public function disconnect()
    {
    @mysqli_close($this->MySQLi_Connect);
    }
    }
 
    // #################################################################
    // End...
Good progress. But, you should start learning how to indent.
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
<- Released it, man. But, you pretty much gave up on it, and left it to me. :/

Good progress. But, you should start learning how to indent.
There will be indentation. 
So, I don't yet know if I will stick with this, but I was thinking this could be a good Emulator class structure.
PHP:
<?php
        // This is the phoenix class.
    Class Phoenix
        {
                      // So i was thinking, one array for tables.
            static $DB_Tables = Array(
                'table_users' => 'users',
                'table_group' => 'groups',
                'table_more'  => 'something',
            );
 
                        // And one arrray for rows. (columns?)
            static $DB_Rows = Array(
                'row_sso'    => 'auth_ticket',
                'someshit'    => 'Yep.',
            );
 
// And then some moar shit down here.
 
 
 
        }
?>
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
I wonder how this will end up... but if you succeed, it would almost be the only CMS with working groups & homes.
 

xNielsBeatZ

Member
Oct 24, 2012
51
7
I always see your reactions to other people that are developing a CMS, so i expect allot from it.

Good luck.
 

GarettM

Posting Freak
Aug 5, 2010
833
136
PHP:
/*================================================================+\
    || # HybridCMS- An advanced Content Management System for habbo based private servers. ||
    |+================================================================+|
    || # Copyright (C) 2012 CookieMonsta. All rights reserved.        ||
    || # http://www.devbest.com/user/CookieMonsta                    ||
    || # This was a scratch development. Love to devbest for support! ||
    |+================================================================+|
    || # HybridCMS is provided "as is" and comes without              ||
    || # warrenty of any kind. HybridCMS is free software!            ||
    || # License: GNU Public License 3.0                              ||
    || # http://opensource.org/licenses/gpl-license.php              ||
    \+================================================================*/
    /*
    *
    *  HybridCMS- MySQLi Class
    *
    */
 
    // #################################################################
    // Secure this file.
    if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
 
    // #################################################################
    // Start the script.
    // Define the class.
    class MySQLi_Database
    {
    public function __construct()
    {
    // Fetch Configuration variables.
      Global $_CONFIG;
      $this->MySQLi_Hostname = $_CONFIG['MySQLi']['Hostname'];
      $this->MySQLi_Username = $_CONFIG['MySQLi']['Username'];
      $this->MySQLi_Password = $_CONFIG['MySQLi']['Password'];
      $this->MySQLi_Database = $_CONFIG['MySQLi']['Database'];
    }
    public function connect()
      {
    $this->MySQLi_Connect =
    @mysqli_connect($this->MySQLi_Hostname, $this->MySQLi_Username, $this->MySQLi_Password, $this->MySQLi_Database);
 
    // Check the connection & close the conneciton.
    if (mysqli_connect_errno())
    {
    Die('<center><div style="width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family: Arial;"><h3>HybridCMS has Encountered an Error.</h3>HybridCMS has failed to connect to the MySQLi Host. Your username or password might be incorrect.<br> <i> Please double check your confiugration </i> </b></div></center>');
    }
    }
    public function disconnect()
    {
    @mysqli_close($this->MySQLi_Connect);
    }
    }
 
    // #################################################################
    // End...
Make it more neet
PHP:
<?php
/**
  * ----------------------------------------------------------------------------------
  * HybridcMS - An Advance Content Management System For Habbo Private MMORPG Servers
  * ----------------------------------------------------------------------------------
  * # Copyright (C) 2012 CookieMonsta. All rights reserved.
  * # http://www.devbest.com/user/CookieMonsta
  * # This was a scratch development. Love to devbest for support!
  * # HybridCMS is provided "as is" and comes without warrenty of any kind
  * # HybridCMS is a free and always will be a FREE software
  * # License: GNU Public License 3.0
  * # Http://opensource.org/licenses/gpl-license.php
  */
 
  if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
 
 
  class DB  {
      protected $connection;
 
      static $query;
 
      public function __construct($host, $user, $pass, $database) {
          $this->connection = new mysqli($host, $user, $pass, $database);
     
          if(mysqli_connect_error()):
                Die('<center><div style="margin: 45px; width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family:Verdana, Geneva, sans-serif;"><h4>Mysqli Error</h4><hr /><p>'
                . mysqli_connect_error() . "</p> <small> HybridCMS Error </small>");
          endif;
      }
      public function query($value='')
      {
          return $this->connection->query($query);
      }
      public function __destruct() {
          if($this->connection) {
              $this->connection->close(); // No Point if No connection was never built
          } else {
              $this->connection = null;
         }
      }
  }
  ?>
also error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); would help with mysqli warnings
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
PHP:
/*================================================================+\
    || # HybridCMS- An advanced Content Management System for habbo based private servers. ||
    |+================================================================+|
    || # Copyright (C) 2012 CookieMonsta. All rights reserved.        ||
    || # http://www.devbest.com/user/CookieMonsta                    ||
    || # This was a scratch development. Love to devbest for support! ||
    |+================================================================+|
    || # HybridCMS is provided "as is" and comes without              ||
    || # warrenty of any kind. HybridCMS is free software!            ||
    || # License: GNU Public License 3.0                              ||
    || # http://opensource.org/licenses/gpl-license.php              ||
    \+================================================================*/
    /*
    *
    *  HybridCMS- MySQLi Class
    *
    */
 
    // #################################################################
    // Secure this file.
    if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
 
    // #################################################################
    // Start the script.
    // Define the class.
    class MySQLi_Database
    {
    public function __construct()
    {
    // Fetch Configuration variables.
      Global $_CONFIG;
      $this->MySQLi_Hostname = $_CONFIG['MySQLi']['Hostname'];
      $this->MySQLi_Username = $_CONFIG['MySQLi']['Username'];
      $this->MySQLi_Password = $_CONFIG['MySQLi']['Password'];
      $this->MySQLi_Database = $_CONFIG['MySQLi']['Database'];
    }
    public function connect()
      {
    $this->MySQLi_Connect =
    @mysqli_connect($this->MySQLi_Hostname, $this->MySQLi_Username, $this->MySQLi_Password, $this->MySQLi_Database);
 
    // Check the connection & close the conneciton.
    if (mysqli_connect_errno())
    {
    Die('<center><div style="width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family: Arial;"><h3>HybridCMS has Encountered an Error.</h3>HybridCMS has failed to connect to the MySQLi Host. Your username or password might be incorrect.<br> <i> Please double check your confiugration </i> </b></div></center>');
    }
    }
    public function disconnect()
    {
    @mysqli_close($this->MySQLi_Connect);
    }
    }
 
    // #################################################################
    // End...
Make it more neet
PHP:
<?php
/**
  * ----------------------------------------------------------------------------------
  * HybridcMS - An Advance Content Management System For Habbo Private MMORPG Servers
  * ----------------------------------------------------------------------------------
  * # Copyright (C) 2012 CookieMonsta. All rights reserved.
  * # http://www.devbest.com/user/CookieMonsta
  * # This was a scratch development. Love to devbest for support!
  * # HybridCMS is provided "as is" and comes without warrenty of any kind
  * # HybridCMS is a free and always will be a FREE software
  * # License: GNU Public License 3.0
  * # Http://opensource.org/licenses/gpl-license.php
  */
 
  if(!Defined('HybridCMS_Secure')) die ("Sorry, Direct access is denied.");
 
 
  class DB  {
      protected $connection;
 
      static $query;
 
      public function __construct($host, $user, $pass, $database) {
          $this->connection = new mysqli($host, $user, $pass, $database);
   
          if(mysqli_connect_error()):
                Die('<center><div style="margin: 45px; width: 50%; border: 2px solid #FF0000; background-color: #FF8C8C; padding: 10px; padding-top: 0; font-family:Verdana, Geneva, sans-serif;"><h4>Mysqli Error</h4><hr /><p>'
                . mysqli_connect_error() . "</p> <small> HybridCMS Error </small>");
          endif;
      }
      public function query($value='')
      {
          return $this->connection->query($query);
      }
      public function __destruct() {
          if($this->connection) {
              $this->connection->close(); // No Point if No connection was never built
          } else {
              $this->connection = null;
        }
      }
  }
  ?>
also error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); would help with mysqli warnings
I was planning a neatening it :).
But thanks, you saved me a minute or so <3_<3
 

xXiDrewXx

New Member
Dec 20, 2012
3
0
Looks Very Nice But I Reccomend Changing The Theme Around Just a Bit And If You Can You Can Add A Theme Interface Like RevCMS So Where You Can Download Diffrent Themes
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Looks Very Nice But I Reccomend Changing The Theme Around Just a Bit And If You Can You Can Add A Theme Interface Like RevCMS So Where You Can Download Diffrent Themes
If You Read The Main Post You Will See That A Template System For Different Themes Is Also A Part Of The Project...
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
If You Read The Main Post You Will See That A Template System For Different Themes Is Also A Part Of The Project...
Looks Very Nice But I Reccomend Changing The Theme Around Just a Bit And If You Can You Can Add A Theme Interface Like RevCMS So Where You Can Download Diffrent Themes
I am not supporting skin changing. Reasoning for that is the "habbo" skin it self will be basicly the whole cms. Like, all the groups and crap that I'm working on and all that.
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
You can host it on a computer or a free web host.
Last time I hosted on a free host, it got deleted. Which was the whole CookieMS situation.
And last time I hosted via computer, dickholes started to DDoFag.
 
Jan 17, 2012
649
166
Last time I hosted on a free host, it got deleted. Which was the whole CookieMS situation.
And last time I hosted via computer, dickholes started to DDoFag.
Can you atleast host it on Github, so we can see some progress? You keep saying that you will set it up, but you eventually don't.
 
Status
Not open for further replies.

Users who are viewing this thread

Top