summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-09-15Add 'my pads' pageMalf Furious2-0/+60
2018-09-15Implement dm-pad-add form handlerMalf Furious1-0/+27
2018-09-12Add function agent::getAgentObj()Malf Furious1-0/+17
This is basically a constructor for agent. The actual type returned is a contrete agent.
2018-09-08Add 'New Pad' modalMalf Furious2-1/+61
2018-09-08Add owner dropdown to 'New Group' modalMalf Furious1-0/+14
2018-09-07Fix typoMalf Furious1-1/+1
2018-09-07Fix bug in function table->loadObj()Malf Furious1-1/+7
If a table query yeilds zero rows, we would still attempt to load the first (index zero) into $this, causing an error to be thrown by PHP. We are now checking the size of the results array first.
2018-09-07Merge branch 'feature/bs-select' into devMalf Furious4-0/+38
2018-09-07Include bootstrap-select from std pageMalf Furious1-0/+2
2018-07-27Track library Bootstrap-select v1.12.4Malf Furious3-0/+36
2018-07-26Remove TODO and placeholderMalf Furious1-3/+0
2018-07-26Add "My Groups" pageMalf Furious2-0/+60
2018-07-26Add group/pad list itemMalf Furious3-0/+186
UI module to use when listing out groups and pads. These will link to the group/pad page and display information about the object.
2018-07-26Update function obj::getMembers()Malf Furious1-2/+7
Added a $limit argument to specify a maximum number of results to return.
2018-07-24Add About Scrott modalMalf Furious1-0/+16
2018-07-24Move $user page object scopeMalf Furious1-1/+2
Since several routes will use the current $user as the PAGE_OBJECT, I'm just setting it once above most of the logic. Any route that needs something else can change it. There's a condition in the setPageObj() function that throws if we attempt to call it more than once. I'm thinking this can be removed it's not protecting from much.
2018-07-24Add call to setPageName()Malf Furious1-0/+1
2018-07-24Show PAGE_NAME in the navbar/pad selectMalf Furious1-1/+1
2018-07-24Add $_SCROTT['PAGE_NAME'] variable and getter/setterMalf Furious1-0/+30
The intention is for index.php to set this variable. This is the text (HTML) displayed on the button for the pad select dropdown in the nav bar. Basically the canonical name of the page we're on.
2018-07-22Fix bug with login handlerMalf Furious1-1/+1
Now reloading current path after successful login, instead of redirecting to app-root.
2018-07-22Update function location()Malf Furious1-3/+6
Passing no argument (or NULL) now causes this function to redirect to the 'app-path' (current request page). This is a way to reload the current page.
2018-07-22Add groups/pads page buttons to navbarMalf Furious1-0/+2
2018-07-22Fix bug in agent 'has permission' functionsMalf Furious1-0/+27
The check that this commit adds to each of these functions enables users with all permissions on themselves.
2018-07-22Fix bug in function agent::isOwner()Malf Furious1-1/+4
If the argument doesn't have an owner, then an access error is thrown when we try to do ->guid. Since there is no owner, just return false. Otherwise, do the comparision as usual.
2018-07-22Implement display of object page background imagesMalf Furious1-1/+12
2018-07-21Update index.php to set appropriate page objectsMalf Furious1-1/+2
2018-07-21Change errorlevel constantsMalf Furious1-3/+3
2018-07-21Add PAGE_OBJECT global mechanismMalf Furious1-0/+33
This addresses a problem with most views. They need an object context to display in. IE what pad, group, etc. are we viewing? This variable is intended to be set by index.php and referenced by page models.
2018-07-21Display new group modal in navMalf Furious1-3/+4
2018-07-21Add new group modal view/model codeMalf Furious2-0/+84
2018-07-21Reorg examples/ directoryMalf Furious10-0/+0
2018-07-21Remove old contentMalf Furious10-456/+0
2018-07-20Add the notice modalMalf Furious2-0/+93
2018-07-19Ignore dbconfig.phpMalf Furious1-0/+1
2018-07-19Fix bug in index.phpMalf Furious1-1/+2
Perform minor sanitization on the input $_SERVER['PATH_INFO']. This commit adds logic that strips empty strings from main's $argv array. The pass to array_values() is to discard original $tokens array keys and re-number them starting from zero.
2018-07-19Define /logout routeMalf Furious1-0/+9
2018-07-19Add basic dashboard pageMalf Furious2-0/+47
2018-02-11Add start of navbarMalf Furious1-0/+68
2018-02-11Fix icon center-spacing on dbconfig viewMalf Furious1-1/+1
2018-02-11Address issue with user functions getCurrent() and setCurrent()Malf Furious1-2/+2
Previously, these functions would always call session_start() before doing most of their work. However, I've found that calling that function two or more times within the lifetime of a program results in NOTICE messages output from the PHP interpreter. Therefore, I am now only calling session_start() if the session is not already active.
2018-02-10Add exception view to index.phpMalf Furious1-1/+1
2018-02-10Add exception handler viewMalf Furious1-0/+46
2018-02-09Fix bug in function user::getCurrent()Malf Furious1-1/+11
If the session is set to an invalid (eg: deleted) user GUID, an exception is (correctly) thrown. This commit catches that and enables getCurrent() to close the bad session and return NULL.
2018-02-09Add login modelMalf Furious1-0/+92
2018-02-09Limit app textbox input to 64 charsMalf Furious1-1/+1
Many database string fields are capped at 64 chars. Am now asserting this limit in the UI.
2018-02-08Reorg examples/ directoryMalf Furious2-0/+0
2018-02-08Remove old contentMalf Furious19-1304/+0
2018-02-07Merge branch 'bug/object' into devMalf Furious7-49/+49
2018-02-07Update df script to use renamed obj classMalf Furious1-1/+1
2018-02-07Update class files to use renamed obj classMalf Furious5-43/+43