summaryrefslogtreecommitdiffstats
path: root/app/model (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-02-09Add login modelMalf Furious1-0/+92
2017-07-06Remove unused global declarationMalf Furious1-2/+0
2017-06-27Add dbconfig model codeMalf Furious1-0/+44
2016-10-22Deprecate application codeMalf Furious9-944/+0
Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design.
2016-09-18Add form submission handler for group settings tabMalf Furious1-0/+80
2016-06-12Add group tab to setting modalMalf Furious1-0/+10
Created empty <div> for the group setting tab. Also added code to the common model for initializing the $mod->group variable and setting a flag marking what tabs to include in the setting modal (group tab in this case). Added logic to the main setting modal view file for picking up these flags and including appropriate additional content.
2016-06-12Move initialization logic from Obj model into Common modelMalf Furious2-7/+13
Some logic to initialize the current system object, its owner, and members has been moved into the Common model since this code will be relevant to other views and to support a new feature being added to display additional tabs in the setting modal box.
2016-06-12Add functions to Common model for assigning CSS to setting tabsMalf Furious1-0/+30
The setting modal window will need to support showing unknown tabs at the beginning of the tab list. These functions handle assigning specific CSS classes to tab-panes ONLY if that tab will appear in the left-most position in the modal's tab list.
2016-06-11Rename variableMalf Furious1-3/+3
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-08Start design for group viewMalf Furious1-0/+2
2016-06-08Create blank view for groupsMalf Furious1-0/+8
Finish initializing the Obj MVC by writing an empty view/action for groups.
2016-06-08Add new MVC, 'Obj'Malf Furious1-0/+23
This MVC will be used to browse scrott datastructures.
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-05-27Add copyright notice to Scrott model filesMalf Furious8-0/+112
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 action 'delete' to Deleteacct MVCMalf Furious1-0/+34
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-0/+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-21Add MVC DeleteacctMalf Furious1-0/+15
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 setting modal to allow admins to remove other users' head imagesMalf Furious1-0/+10
2016-05-01Update setting modal to allow user to remove their own head imageMalf Furious1-0/+10
2016-05-01Update form handler for common/setting-modal, all users tabMalf Furious1-5/+10
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 Furious1-6/+11
Now supports file upload to replace the user's head image
2016-03-27Add form handler for setting modal, admin/all users tab, for edit user actionMalf Furious1-3/+60
2016-03-27Add form handler for setting modal, all users, create new user paneMalf Furious1-2/+54
This handler is requires admin status and allows you to create a new application user
2016-03-27Add collapsable panel for editing each user's settings to admin setting tabMalf Furious1-0/+5
Also, added relevant initialization code to common model
2016-03-27Alter admin setting form handlerMalf Furious1-1/+1
Set a default value for field 'settSSL'. If this value is locked in the system-level configuration, then the disabled radio buttons don't assume a value during POST submission to the page and the field appears to the $form object as being unset. I use the currently set value for this option as the default.
2016-03-27Move getUserGlyphicon function from common model into user classMalf Furious1-14/+0
2016-03-27Handle submissions to setting modal, admin tabMalf Furious1-1/+29
2016-03-27Alter representation of form boolean valuesMalf Furious1-1/+1
Changed how Form() objects model true and false for boolean fields. Was "true" and "false", is now "1" and "0", respectivly. This is to address how Mysql handles these values as they are pushed to the db.
2016-03-27Populate admin setting fields on page loadMalf Furious1-0/+21
Added logic to set initial state of fields on the setting modal's admin tab
2016-03-27Fix function CommonModel::saveSettingUser()Malf Furious1-4/+7
Farious fixes for this form submission handler * missspelled variable names (*Password => *Passwd) * Added a notice message for password change success
2016-03-27Add function CommonModel::common_handleFormSubmissions()Malf Furious1-0/+11
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-27Add function CommonModel::saveSettingUser()Malf Furious1-0/+57
This is a webform handler for the setting modal, user setting tab.
2016-03-27Add function getCurrentUserGlyphicon() to Common modelMalf Furious1-0/+13
This helps render data for the common topp view (navbar). This function will return the glyphicon to use next to the current user's name.
2016-03-27Add Dashboard modelMalf Furious1-0/+15
2016-03-05Add Deauth modelMalf Furious1-0/+17
Deauth is the MVC used to de-authenticate a session -- logout. This MVC will have no views.
2016-02-17Update Except model, deflt action to consume $message for display on pageMalf Furious1-1/+2
2016-02-17Add 'Except' MVC -- Used to show application exception messages to userMalf Furious1-0/+15
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-06Update Auth model to reflect changes in previous commitMalf Furious1-15/+18
2016-02-01Implement 'login' action on Auth MVCMalf Furious1-0/+27
Finished initial functionality for Auth MVC by implementing the login feature
2016-01-31Log in on signup successMalf Furious1-0/+1
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-8/+4
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/+34
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-0/+15
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-26+ Added function to User class to fetch all users from DBMalf Furious1-0/+10
* Altered Auth MVC deflt action to return false if no users are found. This way, the Auth controller can automatically present user a page to create an admin account
2016-01-03Merge branch 'dev' into authMalf Furious1-1/+1
2016-01-03* Bug fix in sysconf model - save action: problem with how the code is ↵Malf Furious1-1/+1
redirecting to the app root on success (needed to add a trailing shash character)
2016-01-03+ Added model for Auth MVCMalf Furious1-0/+15
2016-01-02+ Added model for new page master layer ("Common" MVC)Malf Furious1-0/+9