summaryrefslogtreecommitdiffstats
path: root/app/acf_www-controller.lua
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Modified core to create model and controller function libraries and some ↵Ted Trask2008-07-021-14/+16
| | | | | | common html views. Moved cfe to a library. Modified redirect_to_referrer function - may break some pages. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1267 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed debug log output from acf_www.Ted Trask2008-06-241-8/+8
| | | | | | Fixed minor bug in tinydns. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1255 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Simplified www redirection code to only redirect if valid url.Ted Trask2008-06-111-49/+51
| | | | | | Modified exception handler to add pages for dispatch errors and exceptions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1215 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding support to move skins to a specific subfolder.Mika Havela2008-05-211-0/+1
| | | | | | Preparation to move out skins to separate acf's (instead of having all skins in acf-core. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1138 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Replaced references to ENV[SCRIPT_NAME] with self.conf.script.Ted Trask2008-05-151-2/+2
| | | | | | Logon link no longer forced to be https. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1120 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added suppress_view option to dispatch_component and return viewtable.Ted Trask2008-05-141-41/+26
| | | | | | | Removed hostname from pageinfo and replaced with component load in template. A little cleanup to use pageinfo in views. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1119 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Change inheritance from worker->self->parent to self->worker->parent as ↵Ted Trask2008-05-141-147/+274
| | | | | | | | | | found in wiki. Move the permissions stuff out of mvc.dispatch into new acf_www.dispatch. Moved redirect from mvc to acf_www and made to parse path. Changed the order of parameters to template and passed all to the view. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1118 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrote syslog to use components and remove view-specific code from controller.Ted Trask2008-05-131-10/+19
| | | | | | Also made sure not to write to conf file unless all variables pass validation. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1116 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added support for components to acf_www-controller.Ted Trask2008-05-091-21/+74
| | | | | | Now views can load sub-views (components) using a function in the view library (which is now passed to each view). Based on Ruby on Rails components. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1115 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated rolesTed Trask2008-05-021-0/+14
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1099 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified cfe, removing option, errtxt, and name, and adding label - This may ↵Ted Trask2008-04-301-5/+2
| | | | | | | | | | | | break things. Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Replaced all list_redir functions with redirect in mvc.lua, implemented a ↵Ted Trask2008-04-241-2/+0
| | | | | | default_action string in each controller, removing the on_load functions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1037 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added destroy and on_unload functions. Moved saving of session from ↵Ted Trask2008-04-241-15/+16
| | | | | | post_exec to on_unload. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1036 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed automatic redirection to include prefixTed Trask2008-04-221-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1033 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Ted's Logon/permissions changesTed Trask2008-04-211-125/+81
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1030 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Doing some changes with roles/permission. First need to change the name of ↵Mike Mason2008-04-101-2/+2
| | | | | | the ALL group... git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@984 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated the menubuilder so that submenus show.Mika Havela2008-04-031-27/+13
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@904 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed to https.Mika Havela2008-03-261-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@843 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Tab displays and bug fixesMike Mason2008-03-251-0/+26
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@839 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Made the build_menu a public function so that logoff could run it. No more bugsMike Mason2008-03-201-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@835 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Working fully except for one bug when you logout you get all the menus again.Mike Mason2008-03-181-7/+9
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@834 ab2d0c66-481e-0410-8bed-d214d4d58bed