summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-06-11Add function User::getGroups()Malf Furious1-0/+25
This function returns all groups the user either owns or is a member of. This is not necessarily the same as all groups the user has access permission to. The *not-yet-implemented* object explorer feature should be used to browse those.
2016-06-11Rename variableMalf Furious2-5/+5
In the Obj MVC, rename group in the model to obj. This will help with referencing the active object from template views without knowing what type of object it is.
2016-06-10Fix typoMalf Furious1-1/+1
2016-06-10Assert access control before rendering an object viewMalf Furious1-0/+3
If the current user does not have access permission to the requested object, throw an exception and do not proceed.
2016-06-10Add functions to Object class to determine user permissionsMalf Furious1-0/+313
Added a variety of functions to the Object base class for testing a user's access level to another object. Also added functions to test whether a given user or group is an owner or member of another object.
2016-06-10Add 'go home' button to exception pageMalf Furious1-4/+8
2016-06-09Remove bootstrap grid structure from group viewMalf Furious1-12/+8
2016-06-08Start design for group viewMalf Furious3-11/+22
2016-06-08Add function Object::getOwner()Malf Furious1-0/+12
Added object function to get the owner of an object. This base-class function returns a User object, however a user might not always be the kind of owner (eg: a group can own a pad). In these situations, Object sub-classes should override this function and return the appropriate type of object.
2016-06-08Add function Object::getMembers()Malf Furious1-0/+16
Added object function to get an array of all its members. These will always be user objects, so this is always a safe function to call.
2016-06-08Create blank view for groupsMalf Furious3-2/+38
Finish initializing the Obj MVC by writing an empty view/action for groups.
2016-06-08Add new MVC, 'Obj'Malf Furious3-0/+83
This MVC will be used to browse scrott datastructures.
2016-06-01Update newgroup modalMalf Furious1-1/+1
Made the name field (the only field) on this form as required.
2016-06-01Implement add group form handlerMalf Furious1-0/+20
Added handler function to common model to create new use groups from the modal view.
2016-06-01Add function Group::createNewGroup()Malf Furious2-0/+17
This function will initialize a new group object and write it to the database, with a given group name and owner user.
2016-06-01Add modal view to create a new user groupMalf Furious2-0/+61
2016-05-30Merge branch 'support/version-meta' into devMalf Furious61-9774/+1457
2016-05-30Add copyright notice to schema fileMalf Furious1-4/+14
2016-05-29Add GNU GPL license to COPYING fileMalf Furious1-0/+674
2016-05-29Add GNU GPL logo for app informationMalf Furious1-0/+0
2016-05-29Add copyright notice to application view filesMalf Furious18-0/+304
2016-05-27Add copyright notice to Scrott model filesMalf Furious8-0/+112
2016-05-27Add copyright notice to Scrott entry-point filesMalf Furious2-0/+28
2016-05-26Add copyright notice to Scrott controller filesMalf Furious7-0/+98
2016-05-26Add copyright notice to Scrott class filesMalf Furious15-0/+210
2016-05-26Add copyright notice to scrott main JS fileMalf Furious1-0/+14
2016-05-26Remove unused Bootstrap JS filesMalf Furious2-2376/+0
These are extra files distributed with Bootstrap that I do not need. I am keeping the minified Bootstrap main JS file, which is already used by the Scrott application.
2016-05-26Remove unused CSS files from Bootstrap distributionMalf Furious5-7394/+0
These are extra files distributed with Bootstrap that I do not need, I am retaining the minified main Bootstrap CSS file, which is already used by the Scrott application.
2016-05-22Define Scrott version number constant throughout appMalf Furious1-0/+3
2016-05-22Merge branch 'feature/user-removal' into devMalf Furious8-2/+214
2016-05-22Add form submission handler for user removalMalf Furious1-0/+46
Added handler for the button added in the previous commit.
2016-05-22Add delete account button to all users panelsMalf Furious1-0/+11
Added button for admins to remove any user account
2016-05-22Add action 'delete' to Deleteacct MVCMalf Furious2-1/+51
This action will validate the user's password, and make sure you're not removing the last admin, then proceed to delete the current user's account from the database and log them out, for good.
2016-05-22Add function User::getNumAdmins()Malf Furious1-0/+10
Function to count the number of admin accounts that exist. This is used to make sure that while deleteing accounts, the number of administrators never drops to zero.
2016-05-22Create view for delete account MVCMalf Furious1-0/+24
This page prompts for user password before actually deleteing their account.
2016-05-22Add class constructor to Common modelMalf Furious2-2/+10
There are two functions that need called in the common model whenever a page is rendered. Rather than requiring all of the base MVC controllers to call them, I am placing them in a constructor for this model class. This constructor should fire automatically (since base mvc models inherit this class), unless base classes define their own constructors. I don't antisipate this happening, however in that case, they would just need to call parent::__construct().
2016-05-21Hook Deleteacct in the Root app controllerMalf Furious1-0/+2
2016-05-21Add MVC DeleteacctMalf Furious3-0/+56
This will prompt the user for their password if they opt to delete their own account. This is to prevent malicious attempt by others to trick users into having there accounts deleted by way of a XSS attack.
2016-05-21Add 'Delete Account' button to user settings formMalf Furious1-0/+5
Links to a confirmation page which will require the user's current password to succeed.
2016-05-01Merge branch 'feature/user-img-mgmt' into devMalf Furious9-29/+144
2016-05-01Remove an un-needed .gitkeep fileMalf Furious1-0/+0
2016-05-01Add default user head image, null.jpgMalf Furious1-0/+0
This is the image used by each user object which does not have its own image in the heads directory. I made this myself since I couldn't find anything that looked very appealing on the internet without running into copyright issues. Hopefully, this image will get replaced later.
2016-05-01Update setting modal to allow admins to remove other users' head imagesMalf Furious2-1/+11
2016-05-01Update setting modal to allow user to remove their own head imageMalf Furious2-1/+11
2016-05-01Add function User::rmHeadImage()Malf Furious1-0/+11
Function to delete the user image file for the given user object.
2016-05-01Add global javascript file scrott.jsMalf Furious2-0/+9
Included initial function assertConfirm(), function to present user an "Are you sure?" prompt before submitting a web form.
2016-05-01Fix to Form::saveFile()Malf Furious1-1/+3
Only log an error if we get an upload error besides err code 4 (No file uploaded)
2016-05-01Update form handler for common/setting-modal, all users tabMalf Furious2-7/+12
Now supports file upload to replace the user's head image
2016-05-01Define constants for head-image upload parametersMalf Furious1-1/+7
Created class-scope vars to define allowable sizes and types for uploaded user images
2016-05-01Update form handler for common/setting-modal, user tabMalf Furious3-9/+14
Now supports file upload to replace the user's head image