Zodiak
recovering crack addict
- Nov 18, 2011
- 453
- 417
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:
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:
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!
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)
You must be registered for see links
You must be registered for see links
You must be registered for see links
You must be registered for see links
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:
You must be registered for see links
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:
You must be registered for see links
You must be registered for see links
This is 100% working.
You can disable this feature and just use `users`.
Screenies
Root file structure (Will add web.config for IIS users):
You must be registered for see links
The skins folder just has the folder of your skin name and within that your files (like RevCMS).
Class folder:
You must be registered for see links
Index:
You must be registered for see links
Register:
You must be registered for see links
Me:
You must be registered for see links
Account Settings:
You must be registered for see links
Identity Settings:
You must be registered for see links
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
You must be registered for see links
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!