summaryrefslogtreecommitdiffstats
path: root/app/controller (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-06-12Update Obj controllerMalf Furious1-8/+5
This commit makes the Obj controller compatable with changes introduced in the previous commit.
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-08Create blank view for groupsMalf Furious1-2/+3
Finish initializing the Obj MVC by writing an empty view/action for groups.
2016-06-08Add new MVC, 'Obj'Malf Furious2-0/+60
This MVC will be used to browse scrott datastructures.
2016-05-26Add copyright notice to Scrott controller filesMalf Furious7-0/+98
2016-05-22Add action 'delete' to Deleteacct MVCMalf Furious1-1/+17
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 class constructor to Common modelMalf Furious1-2/+0
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 Furious1-0/+28
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-01Update form handler for common/setting-modal, user tabMalf Furious1-1/+1
Now supports file upload to replace the user's head image
2016-03-27Call common default action handler from dashboard controllerMalf Furious1-0/+1
2016-03-27Add function CommonModel::common_handleFormSubmissions()Malf Furious1-0/+1
This helper func to all implementing MVC controllers is used to check for submission of any web-form defined within a common MVC view file. If detected, the appropriate handler function is called.
2016-03-27Hook Deauth and Dashboard MVCs from Root controllerMalf Furious1-4/+18
These two MVC trees are now accessable from the app. Also, the root controller is finally in a clean state :).
2016-03-27Add Dashboard controllerMalf Furious1-0/+27
2016-03-05Add Deauth controllerMalf Furious1-0/+26
Model added in previous commit.
2016-03-05Add sec_verify_ip to app root controllerMalf Furious1-0/+3
2016-02-22Create a basic flow for the application Root controllerMalf Furious1-11/+22
This applies the rules for requiring or forbiding the use of SSL/HTTPS and reorganizes the rest of root's handle() function (that is, the check for displaying sysconf, auth, or a placeholder message).
2016-02-20Hook new Except MVC from the Root controllerMalf Furious1-17/+26
This patch encapsulates all app operations in a try block, and handles any exception by passing it into the new 'Except' MVC to be displayed
2016-02-17Add 'Except' MVC -- Used to show application exception messages to userMalf Furious1-0/+27
This MVC should be triggered by the root controller if normal routines throw an exception and should pass the exception message to the Except controller.
2016-02-07Modify Auth controller descriptionMalf Furious1-1/+1
This MVC will not be used to handle deauth (logout) anymore. To improve app flow, a separate one will be created for this purpose
2016-02-06Update Auth controller to work with recent MVC redesign (HEAD^^)Malf Furious1-16/+4
2016-02-01Implement 'login' action on Auth MVCMalf Furious1-0/+10
Finished initial functionality for Auth MVC by implementing the login feature
2016-01-31Log in on signup successMalf Furious1-1/+9
Now, on a successful submission of the signup view form (Auth MVC), the app automatically logs in the newly-created user and redirects to Framework::ap() . "/". Placeholder code has been added to the root controller to simply var_dump() the current logged in user if one exists, otherwise the login view (Auth MVC) is shown
2016-01-31Merge Auth MVC, initial_signup action into signupMalf Furious1-7/+1
There was a mistake that caused the page notice about no accounts existing to sometimes not showup in error. This merge resolves that issue as well as tidys up the code a bit.
2016-01-30Implement signup_submit action on Auth MVCMalf Furious1-0/+10
Submissions to the Auth signup page are now fully handled by either creating a new account (User object in the system) or posting an error message to the page (Auth model)
2016-01-28Finish signup and initialSignup actions on Auth MVCMalf Furious1-2/+20
If no accounts exist no login page will be shown. Instead, the app presents the signup page to allow the administrator to create his account. This is the only case where a new account should be an admin by default.
2016-01-03* Hooked the Auth MVC from the Root controllerMalf Furious1-1/+6
2016-01-03+ Added controller for new MVC "Auth"Malf Furious1-0/+33
2015-12-18! Review of app/ directory for merging upstream to dev has been ↵Malf Furious1-0/+3
completed..... whew + Added some TODO comments for later development
2015-12-06* Implemented the "save" action for MVC sysconfM1-1/+17
2015-12-05* Now normalizing the $argv array in the root app controllerM1-0/+2
2015-11-22* Placeholder message for site contentM1-0/+2
2015-11-22* Derp, default is a reserved word, calling the function 'deflt' insteadM1-1/+1
* Removed explicit call to parent constructor in model class, since that function is not explicitly defined
2015-11-22* Root controller is now asserting the existence of scrott.conf.php and ↵M1-2/+8
delegating to the correct mvc if it is missing
2015-11-22+ Added controller for SysConf MVCM1-0/+27
2015-11-22* Bug fix in normalizeArgv functionM1-3/+5
2015-11-22+ Added function to root controller for normalizing the $argv arrayM1-0/+32
2015-11-21+ Added app root controllerM1-0/+20
* Finished implementing app main function to instanciate root and delegate to it