summaryrefslogtreecommitdiffstats
path: root/app/class/globals.php (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-10-23Scrott v0.5HEADv0.5masterMalfurious1-1/+1
Signed-off-by: Malfurious <m@lfurio.us>
2019-04-13Scrott v0.4v0.4Malf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2019-01-12Add rudimentary system for launching a modal on page loadMalf Furious1-0/+24
If the $_SCROTT['AUTO_MODAL'] global is defined, it will refer to a modal's DOM ID to be shown once the page loads. Currently, an error state will supersede this and display the notice modal instead. Signed-off-by: Malf Furious <m@lfurio.us>
2019-01-12Bump version numberMalf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-10Bump version numberMalf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Bump version numberMalf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-09-19globals: Remove single call assertions for setPage...() functionsMalf Furious1-12/+2
Removing these unnecessary checks. They are not protecting us from anything, only inconveniencing me in index.php.
2018-09-19globals: Add function saveIfFile()Malf Furious1-0/+15
This is an alternative function to globals' saveFile(), which allows model code to just pass in the name of the expected uploaded file, rather than requiring them to look up the file themselves. This is in line with my preference to encapsulate PHP superglobals access away from most of the codebase. Note that even if the user opts not to upload optional files, the associated file <input> field will still be present in $_FILES, with a special error code set (meaning 'no file uploaded') which setFile() ignores. It is only in the case of a malformed form submission that $_FILES will be missing the requested file field, prompting Scrott to throw an exception.
2018-09-15Add function oneStr()Malf Furious1-0/+15
The initial intended use case for this is applying the "active" and "in active" classes to the first tab to appear in the settings modal.
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-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-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.
2017-06-27Add function input()Malf Furious1-0/+11
2017-06-27Add function isAction()Malf Furious1-0/+11
2017-04-16Add global function saveFile()Malf Furious1-0/+41
2017-04-16Add global state for page errors, warnings, etc.Malf Furious1-0/+40
Added arrays to the global $_SCROTT variable to keep lists of page errors, warnings, and notices. Also added functions to globals.php for interacting with these arrays.
2017-02-14Add function require_https()Malf Furious1-0/+10
2017-02-13Add app-root(), app-path(), and similar function to globals.phpMalf Furious1-0/+34
2017-02-05Add global source code fileMalf Furious1-0/+22