summaryrefslogtreecommitdiffstats
path: root/app/acf_www-controller.lua
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Working menus... trying to figure out why when another user logs in it ↵Mike Mason2008-03-181-13/+10
| | | | | | doesn't change the real menu panel. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@833 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Still doesn't fully work but acf_www menu and page authorization is coming ↵Mike Mason2008-03-121-31/+47
| | | | | | along... git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@832 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Got the menu system somewhat working. Some of the matching is a bit off. ↵Mike Mason2008-03-071-9/+15
| | | | | | Next work on the access deny... git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@828 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Logic is there and writes to the mainmenu table. Will still need to work out ↵Mike Mason2008-02-261-27/+36
| | | | | | bugs and get these menus to go away. Tomorrow... git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@770 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Getting menu and permission to start working together. Just test code most ↵Mike Mason2008-02-141-0/+32
| | | | | | commented out. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@723 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Menus are now written into sessiondata.Mika Havela2008-02-111-8/+24
| | | | | | The menus are created from the sessiondata.menu[mainmenu|submenu]. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@709 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaning up the session management and expiration items. Will be more bug ↵Mike Mason2008-02-071-0/+8
| | | | | | fixes/changes to come... git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@706 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed the way the submenu-tabs is displayed. Now tabs are defined in the ↵Mika Havela2008-02-061-7/+4
| | | | | | .menu files. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@705 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Add label as a common entry to cfeNathan Angelacos2008-02-011-1/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@681 ab2d0c66-481e-0410-8bed-d214d4d58bed
* on logon, the session table actually gets savedNathan Angelacos2007-12-221-2/+8
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@451 ab2d0c66-481e-0410-8bed-d214d4d58bed
* logon works - but session table is not saved yetNathan Angelacos2007-12-221-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@450 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added functionallity to display the alpine version in the templateMika Havela2007-12-201-0/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@433 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added logevent function (hardcoded to write to /var/log/acf.log)Nathan Angelacos2007-12-091-1/+11
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@421 ab2d0c66-481e-0410-8bed-d214d4d58bed
* do not die when skin is missingNatanael Copa2007-11-161-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@323 ab2d0c66-481e-0410-8bed-d214d4d58bed
* support for skinsNatanael Copa2007-11-161-1/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@322 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Session library now records events of notice when an invalid sessionidNathan Angelacos2007-11-151-30/+21
| | | | | | | | is given, and does lazy saves for empty sessions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@309 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Session table is now retrieved and saved via the mvc.on_load and ↵Nathan Angelacos2007-11-151-17/+25
| | | | | | mvc.post_exec functions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@308 ab2d0c66-481e-0410-8bed-d214d4d58bed