[Development] SimpleCMS v2.0

Status
Not open for further replies.

Zodiak

recovering crack addict
Nov 18, 2011
450
411
Basically December 2013 I made a CMS coded from scratch by myself called SimpleCMS, it didn't have a template engine or anything like that. It supported MySQL because tbh that's all I knew within PHP at the time, now I've learnt MySQL, PDO, MySQLI, OOP, most PHP functions and how it all works and I started development on SimpleCMS v2.0 the other day. Yes it's written from scratch, it has a skin/template system, etc..
Database connection type: MySQLi
I've coded in a forgotten password function which basically isn't part of any skin it's in myurl.com/forgot.php, it uses SMTP mail functions so within the config you edit:
PHP:
/* Email Settings (Your E-Mail address details for sending emails if enabled)*/

$_CONFIG['email']['enabled'] = true; //Enable or disable email sending

$_CONFIG['email']['address'] = '[email protected]'; //Your E-Mail address (gmail.com, outlook.com, hotmail.com, hotmail.co.uk, yahoo.co.uk, yahoo.com, live.com)

$_CONFIG['email']['password'] = 'emailpassword'; //Your E-Mail password (Password you use to login to: gmail.com, outlook.com, hotmail.com, hotmail.co.uk, yahoo.com, yahoo.co.uk or live.com)

$_CONFIG['email']['smtp'] = 'smtp.mail.yahoo.com'; //E-Mail SMTP server (smtp.gmail.com for GMAIL, smtp.live.com for Live/Hotmail/Outlook, smtp.mail.yahoo.com for Yahoo)

$_CONFIG['email']['smtp_port'] = 465; //E-Mail SMTP port (465 for GMAIL and Yahoo, 587 for Live/Hotmail/Outlook)
Screenies of Mail working:





It has checks to make sure the code exists etc, also when a password reset is requested the user who requested it's IP is logged in the database so people won't be able to just generate lots of random strings until they change lots of passwords for lots of different users.

Error to stop spam:

Mail is 100% working.

I haven't finished the default skin yet, but a lot of it is done.

I've also implemented addon accounts, like habbo has. So basically when you register your E-Mail and password is inserted into the table `users_main_accounts` and your user is as normal inserted into `users`, you can then goto /indentity/avatars (if you're using my skin, or you can add the files needed from my skin to yours).
Screenies:


This is 100% working.

You can disable this feature and just use `users`.

Screenies
Root file structure (Will add web.config for IIS users):
The skins folder just has the folder of your skin name and within that your files (like RevCMS).
Class folder:
Index:
Register:
Me:
Account Settings:
Identity Settings:


Configuration file:
Code:
<?php
/*
*
*   _________.__               .__         _________     _____    _________
/   _____/|__| _____ ______ |  |   ____ \_   ___ \   /     \  /   _____/
\_____  \ |  |/     \\____ \|  | _/ __ \/    \  \/  /  \ /  \ \_____  \
/        \|  |  Y Y  \  |_> >  |_\  ___/\     \____/    Y    \/        \
/_______  /|__|__|_|  /   __/|____/\___  >\______  /\____|__  /_______  /
        \/          \/|__|             \/        \/         \/        \/ Configuration
        By Lucas Zodiak v2.0
* Take your time filling this information out.
*
*/

if(!defined('NOT_ALLOWED')) { die('Sorry, you cannot access this file.'); }

/* SQL Server Details */

$_CONFIG['sql']['host'] = 'localhost'; //SQL server host (Usually localhost or 127.0.0.1).

$_CONFIG['sql']['username'] = 'root'; //SQL server username.

$_CONFIG['sql']['password'] = ''; //SQL server password.

$_CONFIG['sql']['port'] = '3306'; //SQL server port.

$_CONFIG['sql']['dbname'] = 'hotel'; //SQL server database name.

/* Addon Accounts
* If enabled users will login using main accounts and can add new accounts to that one account.
* If enabled details will be stored within "users_main_accounts" if not they'll just use "users".
*/

$_CONFIG['addon']['enabled'] = true;

/* Findretros Settings -
* Note: If you're enabling findretros voting you'll need to use my web.config for IIS or .htaccess for xampp.
* On your findretros account make your voting return url http://yourhotel.com/index/novote.
* Set the hotel url on your findretros settings to yourhotel.com/index/novote. If you don't do this it's considered force voting which can get you banned.
* If you don't do the above step it's at your own risk, but force voting is against the findretros rules.
*/

$_CONFIG['findretros']['enabled'] = false; //True for enabling or false for disabling findretros index voting (Not forced).

$_CONFIG['findretros']['username'] = ''; //Findretros hotel username e.g http://findretros.com/page/boonrolelay.

/* Maintenance Settings */

$_CONFIG['maintenance']['enabled'] = false; //True for enabling or false for disabling hotel maintenance.

/* Email Settings (Your E-Mail address details for sending emails if enabled)*/

$_CONFIG['email']['enabled'] = true; //Enable or disable email sending

$_CONFIG['email']['address'] = '[email protected]'; //Your E-Mail address (gmail.com, outlook.com, hotmail.com, hotmail.co.uk, yahoo.co.uk, yahoo.com, live.com)

$_CONFIG['email']['password'] = 'emailpassword'; //Your E-Mail password (Password you use to login to: gmail.com, outlook.com, hotmail.com, hotmail.co.uk, yahoo.com, yahoo.co.uk or live.com)

$_CONFIG['email']['smtp'] = 'smtp.mail.yahoo.com'; //E-Mail SMTP server (smtp.gmail.com for GMAIL, smtp.live.com for Live/Hotmail/Outlook, smtp.mail.yahoo.com for Yahoo)

$_CONFIG['email']['smtp_port'] = 465; //E-Mail SMTP port (465 for GMAIL and Yahoo, 587 for Live/Hotmail/Outlook)

/* Hotel Settings */

$_CONFIG['hotel']['name'] = 'TestHotel'; //Your hotel name.

$_CONFIG['hotel']['desc'] = 'Testing SimpleCMS'; //Your hotel description.

$_CONFIG['hotel']['url'] = 'http://localhost'; //Your hotels domain / URL e.g http://facebook.com (Don't use a / at the end, this could cause problems in future).

$_CONFIG['hotel']['web-build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/2616'; //Web build (view-source:habbo.com and look for var habboStaticFilePath = "https://habboo-a.akamaihd.net/habboweb/WEB BUILD HERE/web-gallery";

$_CONFIG['hotel']['homeid'] = '0'; //The roomid of your default homeroom.

/* User Default Settings */

$_CONFIG['user']['credits'] = 5000; //Amount of credits a user will recieve upon registration.

$_CONFIG['user']['pixels'] = 5000; //Amount of pixels / duckets a user will recieve upon registration.

$_CONFIG['user']['figure'] = 'hd-208-1.ch-210-62.lg-270-62.ha-1006.ea-1401-62.fa-1201'; //Default figure a user will have upon registration.

$_CONFIG['user']['motto'] = 'Im new here!'; //Default motto a user will register with.

$_CONFIG['user']['rank'] = '1'; //The default rank a user will recieve upon registration.

/* Skin Settings */

$_CONFIG['skin']['name'] = 'default'; //The name / folder name of your skin.

/* SWF Settings */

$_CONFIG['swfs']['texts'] = ''; //URL to your external_texts file.

$_CONFIG['swfs']['vars'] = ''; //URL to your external_variables file.

$_CONFIG['swfs']['productdata'] = ''; //URL to your productdata file.

$_CONFIG['swfs']['furnidata'] = ''; //URL to your furnidata file.

$_CONFIG['swfs']['folder'] = ''; //URL to your swf folder, e.g http://localhost/r63. (Don't end with a '/'. Doing so could cause errors).

$_CONFIG['swfs']['banner'] = ''; //URL to your banner.php file (for hotels with packet encryption).

/* Social Networking Settings */

$_CONFIG['social']['twitter'] = 'http://twitter.com/Habbo'; //Link to your hotels twitter page

$_CONFIG['social']['facebook'] = ''; //Link to your hotels facebook page

/* Add-on Account Settings
* Use these settings to change the default figures on adding a new account. (If enabled)
*/
/* Girl Figures */
$_CONFIG['addon_figure']['girl1'] = 'hr-890-45.hd-600-8.ch-685-83.lg-705-83.sh-730-1408.ca-1812.wa-2011'; //First girl figure on add-on account page

$_CONFIG['addon_figure']['girl2'] = 'hr-890-34.hd-600-1.ch-685-73.lg-3216-1408.sh-907-64.he-1605-73'; //Second girl figure on add-on account page

$_CONFIG['addon_figure']['girl3'] = 'hr-515-34.hd-615-1.ch-655-80.lg-3216-84.sh-740-85'; //Third girl figure on add-on account page
$_CONFIG['addon_figure']['girl4'] = 'hr-890-48.hd-629-1.ch-665-72.lg-3216-76.sh-907-64'; //Fourth girl figure on add-on account page

$_CONFIG['addon_figure']['girl5'] = 'hr-890-31.hd-629-8.ch-884-80.lg-3216-80.sh-907-80.he-3274-1408.wa-3210-1408-1408'; //Fifth girl figure on add-on account page

/* Boy Figures */
$_CONFIG['addon_figure']['boy1'] = 'hr-802-40.hd-180-8.ch-808-1408.lg-3088-66-82.sh-906-1408.fa-1201'; //First boy figure on add-on account page

$_CONFIG['addon_figure']['boy2'] = 'hr-170-39.hd-180-1370.ch-255-66.lg-285-73.sh-290-1408.ea-1401-1408'; //Second boy figure on add-on account page

$_CONFIG['addon_figure']['boy3'] = 'hr-3090-37.hd-180-1.ch-3030-84.lg-275-81.ha-3117-64.cp-3126-84'; //Third boy figure on add-on account page

$_CONFIG['addon_figure']['boy4'] = 'hr-893-42.hd-180-1.ch-3030-1408.lg-3023-81.ea-1401-1408.cp-3286'; //Fourth boy figure on add-on account page

$_CONFIG['addon_figure']['boy5'] = 'hr-170-32.hd-190-10.ch-215-1408.lg-275-64.sh-290-73.fa-1205-90'; //Fifth boy figure on add-on account page

?>

There's a findretros script implemented into the index, if you wish to use this once I've finished and the CMS, you'll need to make your voting redirect url
and your normal findretros url the same, otherwise it's force voting which will result in you being banned.

Log
Login & register: 100% done.
E-Mail function: 100% done.
Forgotten Password function: 100% done.
Addon account functions: 100% done.
Parameters: 100% done.
Template system: 100% done.
Default skin: around 50% done.
Account settings functions: 50% done. (Just need to do password changing).
Findretros function: 100% done.
Can't think of anything else at the moment.
Overall the CMS is around 80% complete.

SimpleCMS v2.0 should be released to you guys soon!
 

Joel

Aspiring Developer
Mar 30, 2014
100
30
Great Development :) Can't wait to see loads of hotels using this CMS!
 

Javasex

On Instagram str8 Flexin
Dec 21, 2013
128
24
Good idea for more than Just a MySQL Server Connection? i.e MySQLi and PDO..
 

Wickd

The first member of the Knights of the Pink Table
Jan 15, 2013
1,936
612
Will this include working homes?
 

Zodiak

recovering crack addict
Nov 18, 2011
450
411
If anyone would like to watch any development I'll occasionally be doing joinme sessons so add my skype: lucast12321
 

GarettM

Posting Freak
Aug 5, 2010
833
136
Screenies do not work? and the configuration file is not really a code snippit it does not show you anything important at all see i can make one in seconds and i just realized this is a revcms edit not a cms. Proof Configs can be made easily below.
Code:
<?php
    /**
     *    SimpleCMS V2
     *
     *    A Simple Habbo Content Management System
     *
     *    @author        Lucas Zodiak
     *    @copyright    (c) 2014
     * @license        http://www.wtfpl.net/about/ WTFPL Version 2.
     *    @version        Release: 1.0
     *    @notes
     *        Please take your time setting the variables below.
     */
   
    if(!defined('NOT_ALLOWED'))
    {
        error_log('Configuration file access denied');
        exit;
    }
   
    $configuration = array();
   
    /**
     *    Database configuration.
     *
     *    hostname:    The MySQL hostname.
     *    username:    The MySQL username.
     * password:    The MySQL password.
     *    dbname:        The MySQL database.
     *
     *    The development array is for local server(s) or test server(s).
     * The production array is for the production server.
     */
   
    $configuration['database'] = array(
        'development'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'DevelopmentPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        ),
        'production'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'ProductionPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        )
    );
   
    /**
     *    Optional Configuration for CMS Features.
     *
     *    @variable    (array)['addon']['enabled'] : Allow users to have multiple characters.
     *    @input        True : Allow multiple accounts, False : Don't allow multiple accounts.
     *
     * @variable    (array)['findretros']['enabled']     : (true) Allow findretros voting : false denies findretros voting
     * @variable    (array)['findretros']['username']    : Your voting api username.
     */
    $configuration['addon'] = array(
        'enabled'     => false,
        'findretros' => array(
            'enabled'    => true,
            'username'    => ''
        )
    );
   
    /**
     *    Hotel Configuration
     *
     *
     */
    $configuration['hotel'] = array(
        'maintenance'    =>    false,
        'send_mail'        => false,
        'send_address'    =>    '[email protected]',
        'send_password'=> '',
        'smtp_host'        =>    'smtp.mail.yahoo.com',
        'smtp_port'        =>    465,
       
        'name'            =>    'TestHotel',
        'description'    =>    'Testing SimpleCMS',
        'domain'            => '',
        'web_build'        => '63_1dc60c6d6ea6e089c6893ab4e0541ee0/2616',
        'home_id'        => 0
    );
 

Zodiak

recovering crack addict
Nov 18, 2011
450
411
Screenies do not work? and the configuration file is not really a code snippit it does not show you anything important at all see i can make one in seconds and i just realized this is a revcms edit not a cms. Proof Configs can be made easily below.
Code:
<?php
    /**
     *    SimpleCMS V2
     *
     *    A Simple Habbo Content Management System
     *
     *    @author        Lucas Zodiak
     *    @copyright    (c) 2014
     * @license        http://www.wtfpl.net/about/ WTFPL Version 2.
     *    @version        Release: 1.0
     *    @notes
     *        Please take your time setting the variables below.
     */
  
    if(!defined('NOT_ALLOWED'))
    {
        error_log('Configuration file access denied');
        exit;
    }
  
    $configuration = array();
  
    /**
     *    Database configuration.
     *
     *    hostname:    The MySQL hostname.
     *    username:    The MySQL username.
     * password:    The MySQL password.
     *    dbname:        The MySQL database.
     *
     *    The development array is for local server(s) or test server(s).
     * The production array is for the production server.
     */
  
    $configuration['database'] = array(
        'development'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'DevelopmentPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        ),
        'production'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'ProductionPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        )
    );
  
    /**
     *    Optional Configuration for CMS Features.
     *
     *    @variable    (array)['addon']['enabled'] : Allow users to have multiple characters.
     *    @input        True : Allow multiple accounts, False : Don't allow multiple accounts.
     *
     * @variable    (array)['findretros']['enabled']     : (true) Allow findretros voting : false denies findretros voting
     * @variable    (array)['findretros']['username']    : Your voting api username.
     */
    $configuration['addon'] = array(
        'enabled'     => false,
        'findretros' => array(
            'enabled'    => true,
            'username'    => ''
        )
    );
  
    /**
     *    Hotel Configuration
     *
     *
     */
    $configuration['hotel'] = array(
        'maintenance'    =>    false,
        'send_mail'        => false,
        'send_address'    =>    '[email protected]',
        'send_password'=> '',
        'smtp_host'        =>    'smtp.mail.yahoo.com',
        'smtp_port'        =>    465,
      
        'name'            =>    'TestHotel',
        'description'    =>    'Testing SimpleCMS',
        'domain'            => '',
        'web_build'        => '63_1dc60c6d6ea6e089c6893ab4e0541ee0/2616',
        'home_id'        => 0
    );

A RevCMS edit? @Sledless has been on my JoinMe and watched me code some of this, @DesignGod watched me code the majority of this.. Lots of people have watched me code this, considering it's from scratch. The template system is like revs yeah, doesn't mean it's a rev edit.

More screenies:





 
Feb 1, 2014
165
137
Screenies do not work? and the configuration file is not really a code snippit it does not show you anything important at all see i can make one in seconds and i just realized this is a revcms edit not a cms. Proof Configs can be made easily below.
Code:
<?php
    /**
     *    SimpleCMS V2
     *
     *    A Simple Habbo Content Management System
     *
     *    @author        Lucas Zodiak
     *    @copyright    (c) 2014
     * @license        http://www.wtfpl.net/about/ WTFPL Version 2.
     *    @version        Release: 1.0
     *    @notes
     *        Please take your time setting the variables below.
     */
  
    if(!defined('NOT_ALLOWED'))
    {
        error_log('Configuration file access denied');
        exit;
    }
  
    $configuration = array();
  
    /**
     *    Database configuration.
     *
     *    hostname:    The MySQL hostname.
     *    username:    The MySQL username.
     * password:    The MySQL password.
     *    dbname:        The MySQL database.
     *
     *    The development array is for local server(s) or test server(s).
     * The production array is for the production server.
     */
  
    $configuration['database'] = array(
        'development'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'DevelopmentPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        ),
        'production'    => array(
            'hostname'    =>    '127.0.0.1',
            'username'    =>    'root',
            'password'    =>    'ProductionPassword',
            'dbname'        =>    'Habbo',
            'port'        => 3306
        )
    );
  
    /**
     *    Optional Configuration for CMS Features.
     *
     *    @variable    (array)['addon']['enabled'] : Allow users to have multiple characters.
     *    @input        True : Allow multiple accounts, False : Don't allow multiple accounts.
     *
     * @variable    (array)['findretros']['enabled']     : (true) Allow findretros voting : false denies findretros voting
     * @variable    (array)['findretros']['username']    : Your voting api username.
     */
    $configuration['addon'] = array(
        'enabled'     => false,
        'findretros' => array(
            'enabled'    => true,
            'username'    => ''
        )
    );
  
    /**
     *    Hotel Configuration
     *
     *
     */
    $configuration['hotel'] = array(
        'maintenance'    =>    false,
        'send_mail'        => false,
        'send_address'    =>    '[email protected]',
        'send_password'=> '',
        'smtp_host'        =>    'smtp.mail.yahoo.com',
        'smtp_port'        =>    465,
      
        'name'            =>    'TestHotel',
        'description'    =>    'Testing SimpleCMS',
        'domain'            => '',
        'web_build'        => '63_1dc60c6d6ea6e089c6893ab4e0541ee0/2616',
        'home_id'        => 0
    );

No, this is not a revcms edit. This CMS is from scratch, I watched him code it from start to 'soon to be' finish.
Since when does a configuration file determine if someone has copied a cms? Jesus, silly people.
 

GarettM

Posting Freak
Aug 5, 2010
833
136
No, this is not a revcms edit. This CMS is from scratch, I watched him code it from start to 'soon to be' finish.
Since when does a configuration file determine if someone has copied a cms? Jesus, silly people.
Okay sorry so much people copy revcms that i assume sometimes :p

OT: Good luck if you need any help pm me
 

lepos

thinking about you. yes you
Dec 11, 2011
2,022
685
Thread closed. There seems to have been no updates in the last 14 days, feel free to PM me to have it re-opened.
 
Status
Not open for further replies.

Users who are viewing this thread

Top