summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2016-05-01Add view markup for showing user head images to the all users collapse panesMalf Furious1-7/+31
2016-05-01Update setting modal, user tab to display user head imageMalf Furious1-11/+36
Also restructured the web form a little and added the form-group to select a new image to upload
2016-05-01Add function getHeadImage() to User classMalf Furious1-0/+8
This function will return the path to the head image (user image) for the user object. This path should be something like: <APP_ROOT>/file.php?d=img/heads&f=<GUID>
2016-04-27Merge branch 'bug/file-upload' into devMalf Furious1-53/+35
2016-04-27Add function Form::saveFile()Malf Furious1-0/+41
This is a rework of how the framework handles performing file uploads. Rather than attaching new fields to a form (of type file) and handling them during populate() then saving later, users can call what is essentially a static function and save files in isolation. Since each webform I can conceive using in Scrott at this time won't be uploading more than one file at a time, this model should work nicely moving forward; however can be easily adjusted if need be.
2016-04-27Revert "Add form field type 'file'"Malf Furious1-17/+0
This reverts commit 8ad6e8f9223bd3ee214478b3e1247f9c7d8e91ec. See parent commit message
2016-04-27Revert "Update function Form::populate() to initialize fields added with ↵Malf Furious1-35/+1
Form::field_file()" This reverts commit 1f8b53e426b8c0a1546e9d5c21573be9003cb556. See parent commit message.
2016-04-27Revert "Add function Form::saveUploadedFile()"Malf Furious1-8/+0
This reverts commit 3d493fc75dc6e3593001c2d9dfef26f4c1d79c2c. The way I was wanting to handle file uploads isn't going to fly with a semantic of PHP and POST var mgmt. -.- Rolling back relevant changes to write up something else.
2016-03-31Merge branch 'feature/file-uploads' into devMalf Furious3-1/+117
2016-03-31Add heads() function to file.phpMalf Furious1-0/+24
This function asserts that the requester is logged in and that the file exists before either fpassthru()-ing the contents or returning early.
2016-03-31Add handle() function to file.phpMalf Furious1-0/+13
Grab the request and decide how to process it based on the directory the resource resides in
2016-03-29Add start of file.php scriptMalf Furious1-0/+20
This script is a proxy for downloading file from the public web file tree which Scrott want to enforce access-control over.
2016-03-29Create directory for user heads (user images)Malf Furious1-0/+0
Fix git control files to hold open assets/img/heads directory
2016-03-29Add function Form::saveUploadedFile()Malf Furious1-0/+8
Added function to form class to move tmp uploaded files to permanent storage
2016-03-27Update function Form::populate() to initialize fields added with ↵Malf Furious1-1/+35
Form::field_file() Set $form->[name] for each file field type setup on the form.
2016-03-27Add form field type 'file'Malf Furious1-0/+17
Add the Form::field_file() function to allow form handlers to specify they expect to receive file from the end-user. This adds data about the file field to the form, but does not yet handle it in the populate function
2016-03-27Merge branch 'feature/setting-modal' into devMalf Furious12-49/+684
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 Furious2-0/+67
Also, added relevant initialization code to common model
2016-03-27Add function User::getAddUsers_orderByAdminByName()Malf Furious1-0/+16
Added function to retrive all users in system presorted first by admin status (Admins first), then by username in alpha order
2016-03-27Fix maxlengths for fields on user objectsMalf Furious1-5/+5
Usernames, aliai, and email addresses are capped at 50 chars in the backend
2016-03-27Fix <label>s and <input>s that use unnecessary DOM IDsMalf Furious3-36/+36
I dont need to give these elements IDs, so I'm not going to
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-27Add view for setting modal, all users admin tabMalf Furious1-1/+53
2016-03-27Move getUserGlyphicon function from common model into user classMalf Furious3-15/+12
2016-03-27Handle submissions to setting modal, admin tabMalf Furious1-1/+29
2016-03-27Alter representation of form boolean valuesMalf Furious3-4/+4
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-27Call common default action handler from dashboard controllerMalf Furious1-0/+1
2016-03-27Populate admin setting fields on page loadMalf Furious2-4/+25
Added logic to set initial state of fields on the setting modal's admin tab
2016-03-27Add view for Setting modal, admin tabMalf Furious1-1/+39
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 Furious2-0/+12
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 User::confirmEmailKey()Malf Furious1-0/+12
Validates the users supposed email key. If correct, sets the users emailConf flag.
2016-03-27Add function User::setEmail()Malf Furious1-2/+11
This function handles internal vars while updating a user's email address.
2016-03-27Add function User::setPassword()Malf Furious1-2/+10
This user function will update the salt and key for a user object to change its password.
2016-03-27Add User settings tab for Setting modalMalf Furious1-5/+82
This commit adds the basic structure to the Setting modal in Common MVC. The meat of this commit is the content for the webform for the modal's form for user account settings. The next commit should implement form submission handling.
2016-03-27Only include the Setting modal if currently logged inMalf Furious1-1/+3
This prevents sending un-necessary HTML to the client on login/signup pages and allows code on the setting modal to assume that getCurrentUser() will always return an object.
2016-03-27Add settings modal to Common MVCMalf Furious3-1/+27
This modal dialog will be used to change app and object settings from any page in the app. The link to open it is added to the user button menu.
2016-03-27Update application navbarMalf Furious2-18/+25
The navbar now has a different view when logged in. I added the 'user button' which shows alert info and has a menu. Currently, the only menu item is 'Log out'.
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 function getDisplayName() to User classMalf Furious1-0/+11
If a user has an alias set, it should be displayed throughout the app instead of the username.
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-27Add Dashboard modelMalf Furious1-0/+15
2016-03-27Add Dashboard MVC default viewMalf Furious1-0/+13