HEAD at our github repository now includes the option to have multiple admin accounts.
Once an initial admin account is set up, a new menu in the ServerAdmin pages allows the creation of additional server admin’s as well as removing accounts and changing the passwords.
But there is an even more interesting add-on: It is now possible to include information contained in HTML forms, url encoded data as well as information inside other internal Swiftfire data structures to a webpage.
For example, the information in postInfo and getInfo can be accessed by a new ‘show’ function that takes one (keyed argument) parameter: show($postInfo.NAME) would be replaced by the value in
postInfo["NAME"] which in turn is taken from a form that has been posted with a name/value pair of NAME=<value>.
More than this though is the possibility to write new functions that take a “keyed argument” as a parameter. This has been used to update the function: postingButton(target, title, name, value) to postingButton(target, title, name, keyed-value). This is very useful to propagate form entered values to a new page either as text or as part of new forms.
Example: The page where an admin account can be deleted creates a name/value pair of “ID:<account-name>” in its request. This information is used to create a second page where the user is asked to confirm that the account must be removed. This page uses show($postInfo.ID) to display the name of the account to be removed and postingButton(“/serveradmin/sfcommand/DeleteAccount”, Confirmed, ID, $postInfo.ID) to create a button that would post the name back to the server to remove the account.