Zaka
Programmer
- Feb 9, 2012
- 471
- 121
What have been done so far?
+ Pages: Index, Register, Maintenance, Me, Settings, Profile etc (prints down below)
+ AdminCP - This CMS comes with it's own "housekeeping", no it's not really responsive yet.
+ Works 100% for AzureSharp, haven't tested it for PlusEmu yet but it should work in theory.
What needs to be done?+ AdminCP - This CMS comes with it's own "housekeeping", no it's not really responsive yet.
+ Works 100% for AzureSharp, haven't tested it for PlusEmu yet but it should work in theory.
- Search function for users on the me page
- Missing settings for profile, you can currently only change your password
- AdminCP still have some features that needs to be implemented
- Missing settings for profile, you can currently only change your password
- AdminCP still have some features that needs to be implemented
NOTICE! I've done so much more than this list says, but I couldn't bother to write it all down.
Now before you guys go all ham about projects being discontinued and such. This is a project I have been working on a little bit now and then, but I am almost done, and I didn't want to put this thread up until I was finished with the cms to a stage where I could release a working version if I later decide to end the development.
There is no ETA for this CMS and I wont be updating very frequently because I like to work at different times and make many small changes here and there. So please bare with me! My intention is to get this released in about a month or so, I promise to release the cms in current state if I decide to stop the development. That way other developers can finish what I started, but for now I will continue this development on my own.
This cms is powered by PDO and MySQL. Passwords are encrypted with blowfish. I am very finicky when it comes to security, so I don't leave anything to chance.
This cms will be released under a common creatives license, which entitles you to do whatever with the cms privately and commercially, as long as proper credits are given.
Images of some pages
Staff Page
Hall of Fame
Profiles
AdminCP
AdminCP - Login (only if you want to directly login to the AdminCP)
Maintenance page
Me page
Menu
Hall of Fame
Profiles
AdminCP
AdminCP - Login (only if you want to directly login to the AdminCP)
Maintenance page
Me page
Menu
Database class
System class
Example of how userInfo can be used with arrays to fetch multiple columns in one go
Users class
You must be registered for see images attach
System class
You must be registered for see images attach
Example of how userInfo can be used with arrays to fetch multiple columns in one go
You must be registered for see images attach
Users class
You must be registered for see images attach
Please don't hesitate to come with further suggestions! Keep it relevant, please don't ask any questions that are already answered in this post.
NOTICE! The images provided in this post is the cms as it's state when I created this thread, further updates are posted along the thread as it goes, images included.
Demo: coming soon
UPDATE 2017-02-09 01:55
----------------------------------
I have now implemented CSRF protection in the CMS, both one-per-form and one used on any form.
In the global.php file we use both setCSRFToken() and setCSRFFormToken() and this can only be done once, doesn't matter how many times you have it in your code, nothing else will happen, but it needs to be in a global file that is required in every script or it needs to be added manually to every script you want CSRF protection in.
As I said earlier you can either use a global CSRF token or a specifik token for each form, this is easy done by adding an input in your form
PHP:
// For global CSRF key
echo $sys->getCSRFToken();
// For specifik form
echo $sys->getCSRFFormToken('/scriptname.php');
PHP:
$CSRFToken = $sys->getCSRFFormToken('/scriptname.php');
if (isset($_POST['csrf_token']) && hash_equals($CSRFToken, $_POST['csrf_token'])) {
// Run your script
} else {
// Wrong CSRF, something fishy going on
}
PHP:
$CSRFToken = $sys->getCSRFToken();
if (isset($_POST['csrf_token']) && hash_equals($CSRFToken, $_POST['csrf_token'])) {
// Run your script
} else {
// Wrong CSRF, something fishy going on
}
I also finished the general settings page with switches, it updates automatically on change with AJAX and has a small delay to avoid spam.
TIP: I don't post all updates here, the updates are posted further in the thread as it goes, I just felt this update was a bit important.
Sincerely,
Zaka
Attachments
Last edited: