summaryrefslogtreecommitdiffstats
path: root/app/acf_www-controller.lua
Commit message (Collapse)AuthorAgeFilesLines
* Fix HTML multi select to use select instead of series of checkboxesTed Trask2014-03-031-2/+3
|
* Fix bug in acf_www-controller logevent based on global versus module variableTed Trask2013-11-201-1/+1
|
* Remove all calls to 'module' in preparation for move to Lua 5.2Ted Trask2013-10-171-38/+40
| | | | | Use mymodule parameter for module definition. This was also helpfule in revealing places where the code relied on the global environment.
* Change use of require to work with Lua 5.2Ted Trask2013-10-091-2/+2
|
* Add home config option to acf.conf for default home pageTed Trask2013-05-301-21/+28
| | | | The default_prefix and default_controller logic was broken, and is now removed
* Change logon/logout action to logon/logoff and standardize on logon/off ↵Ted Trask2013-05-301-1/+1
| | | | instead of login/out
* Added support for automatic login after HTTP authentication if ACF user existsTed Trask2013-05-301-0/+13
|
* Further fixes for null handling in handle_clientdataTed Trask2013-04-301-1/+1
|
* Fix null clientdata handling bug when recursingTed Trask2013-04-301-1/+2
|
* Added option to have skin-specific template in skindirTed Trask2012-10-111-8/+15
|
* Added clientdata.skinned option to turn off skins in html templateTed Trask2012-10-021-0/+1
|
* Revert "Added clientdata.skinned option to turn off skins/templates"Ted Trask2012-10-021-1/+1
| | | | This reverts commit b0d5cd7398e09c6b1e2becacaab196c5f2a91096.
* Added clientdata.skinned option to turn off skins/templatesTed Trask2012-10-021-1/+1
|
* Change handle_form to pass self into get_function and set_functionTed Trask2012-04-221-2/+2
|
* Modify acf_www and acf_cli handle_clientdata to separate out functionality ↵Ted Trask2012-02-231-25/+13
| | | | for the two apps
* Removed controllerfunction.lua and moved handle_form and handle_clientdata ↵Ted Trask2012-02-231-0/+97
| | | | | | into mvc.lua mvc.lua has generic versions of the functions, overridden in acf_www and acf_cli with customizations
* Changed mvc and www view_resolvers to make auto_view workTed Trask2012-02-021-27/+12
| | | | | | Templates (for www) now receive a viewfunc, rather than using viewfile. Actions without views with viewtype of html, ajax, stream, or serialized will now be displayed using standard code. Fixed bug in acf-cli parameters messing up action
* Modified require statements for acf.xTed Trask2012-01-211-1/+1
|
* Starting to reorganize mvc.lua and acf_www controllers to move www-specific ↵Ted Trask2012-01-191-38/+18
| | | | | | | things from mvc to acf_www, and visa versa Goal is to have mvc.lua more usable from a lua app Also affects acf-cli and acf_cli controller
* Added template-ajax.lsp and made www controller respect passed in viewtype.Ted Trask2010-11-161-1/+13
|
* Fix two bugs related to session lockout.Ted Trask2010-10-291-1/+1
| | | | | Parse the lockevent filename, was seeing user locked out because username was substring of another username. All active sessions were killed whenever anyone got locked out because of error with username processing.
* Added home page (action) to user parameters and redirect there after loginTed Trask2010-10-061-0/+4
| | | | Moved get_all_permissions function from acf-util/roles-model to lib/roles
* Made major changes to authenticator and roles to improve efficiency.Ted Trask2010-09-281-1/+1
| | | | | | | | | | Changed authenticator.lua to request individual users, rather than always loading everyone. Modified get_userinfo and removed get_userinfo_roles and get_userinfo_skin to remove unnecessary cfe processing. This was especially bad when retrieving the cfe options for skins and roles. This does break the interface used by other modules like acf-tinydns. Validation and cfe processing were moved into password-model, where they belong. Added global variables to authenticator and roles libraries so they can reuse data that was already generated. Modified logon-controller to only check for zero users if logon fails.
* Added sessiontimeout, lockouttime, and lockouteventlimit parameters to acf.conf.Ted Trask2010-03-101-2/+2
|
* Added new view variable wwwprefix to adjust web path, fix index.html redirect.Ted Trask2010-02-161-1/+2
|
* Changes to skins to allow user skins to be addedTed Trask2010-01-211-1/+1
| | | | page_info.skindir is no longer available to views, but staticdir is.
* Added a skin to user options so users can choose own skin with user management.Ted Trask2010-01-131-0/+3
|
* Fixed redirect bug caused by escape in HTTP_REFERER.Ted Trask2010-01-131-1/+3
|
* Made libdir load order match appdir load order, bumped to 0.9.1v0.9.1Ted Trask2010-01-041-3/+1
|
* Allow appdir and libdir to be comma-separated lists of directories.Ted Trask2009-12-311-17/+33
|
* Added logfile config setting to acf.confTed Trask2009-12-301-4/+12
|
* Cleaned up acf.conf, removed hardcoded /usr/share/acf paths.Ted Trask2009-12-301-2/+3
|
* Fixed template bug, remembered to actually remove the basename/dirname ↵Ted Trask2009-12-281-1/+1
| | | | functions.
* Removed redundant/buggy basename and dirname functions. Added ↵Ted Trask2009-12-281-7/+28
| | | | | | | parse_redir_string to www controller. Removed basename and dirname from mvc and fs, use posix functions instead. parse_path_info was buggy and used 2 ways, rewrote and created parse_redir_string for backwards parsing.
* Modified menus to allow multiple controllers to use same menu group.Ted Trask2009-12-231-11/+7
| | | | Also, allow for symlinks when searching for menu files. Slight cleanup of roles.
* Modified permissions from controller:action to prefix/controller/action.Ted Trask2009-12-211-12/+12
| | | | | Had to move welcome to the acf-util prefix. Changed format of roles files: old ACF format will still work, but authenticator format won't.
* Added a check-permission function to viewlibrary to abstract permissions.Ted Trask2009-12-171-3/+14
|
* Added pagination functionality to viewfunctions, modified acf_www-controller ↵Ted Trask2009-07-101-2/+3
| | | | to pass clientinfo to view.
* Made session timeout nicer.Ted Trask2009-06-101-0/+14
| | | | Extended logon redirect due to session timeout to save get / post data and referrer info.
* Modified redirect to referrer to ignore if REFERRER is empty.Ted Trask2009-03-281-3/+5
|
* allow override default_controller in /etc/acf/acf.confNatanael Copa2008-12-271-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1642 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified viewfunctions to split displayform, creating displayformstart and ↵Ted Trask2008-10-221-2/+7
| | | | | | displayformend, to provide flexibility while still using the library. Also added support for hidden fields - including a common redir field. Removed redirectOnSuccess from controllerfunctions handle_form, and replaced it with the redir field. Removed redirectOnSuccess from controllers that used it and added handlecommandresults and redir entries to links and forms throughout many views. This will cause a redirect to the originating view when a form is successfully completed. acf_www-controller now includes orig_action in page_info to report the original action launched by the user. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleanup of some libs.Ted Trask2008-09-261-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1533 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Moved cfe into mvc.lua and removed cfe.lua.Ted Trask2008-09-251-1/+0
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1518 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified acf_www and logon-controller to redirect to logon on dispatch error ↵Ted Trask2008-08-221-7/+9
| | | | | | and redirect to requested page after logon. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1402 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles and authenticator to delete all data fields when deleting a ↵Ted Trask2008-08-161-1/+1
| | | | | | role or user. Modified all roles code to pass self for future move from text file to database. Roles cannot use authenticator unless or until roles file syntax is changed. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1382 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified acf_www to allow a view without an action to be a link instead of ↵Ted Trask2008-08-121-1/+2
| | | | | | just a file. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1378 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed redirect_to_referrer with GET data. Moved handling of multi select ↵Ted Trask2008-07-121-15/+1
| | | | | | from acf_www-controller to controllerfunctions. Fixed form ids containing '.'. Added new handle_clientdata function to controllerfunctions. Modified password-controller to use handle_clientdata for multi select to work.k git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1299 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added hidden filename field to common filedetails lsp. Modified ↵Ted Trask2008-07-081-17/+30
| | | | | | acf_www-controller to allow views without actions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1289 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added debug html page. Change redirect_to_referreferrer when there's no ↵Ted Trask2008-07-031-6/+13
| | | | | | referrer. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1271 ab2d0c66-481e-0410-8bed-d214d4d58bed