summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
AgeCommit message (Collapse)Author
2009-06-09Say hello to the new upgrader UI.Bharat Mediratta
2009-06-09Replace login_page.html.php with the form, wrapped in our default pageBharat Mediratta
type.
2009-06-10Add some window dressing to login_page.html in order to make it more in lineTim Almdal
with the overall look of the Gallery3 theme Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-10Created not_authorized.html.php which is a prettier login screen if the rootTim Almdal
album is not publicly browsable. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-09Rather than just displaying the "unformatted" login screen when the root albumTim Almdal
is not viewable by a guest, display the root album as if it was empty. When the page finishes loading force the login dialog to be displayed. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-09Show status message when album cover is set (#257)Chad Kieffer
2009-06-04Fix a bug in Item_Model::get_position() where we incorrectly using theBharat Mediratta
grandparent id. Oops. This caused navigation from photo back up to album to be broken. Also update Photos_Controller to use the active sort order.. it was still hardcoded to use the id. It's more efficient now, yay. Fixes ticket #340.
2009-06-02Extend L10n client to provide UI for plural translation.Andy Staudacher
Ticket 148.
2009-06-01Unescape %20 into " " also.Bharat Mediratta
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.
2009-06-01Normalize the random values used in the blocks_dashboard_xxx vars soBharat Mediratta
that install.sql is more stable.
2009-06-01Do a little cleanup and get rid of code left-over from when thisBharat Mediratta
controller rendered HTML. Also, catch all exceptions at the root level and restore the change in 84ce0cdefda162917c7b01722a7259ac52c4e30d which appears to have gotten lost in the shuffle.
2009-05-31Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2009-05-31Move the sql packaging code from installer into the gallery module. It must ↵Tim Almdal
be run from the command line and will throw a 404 if it is run as a web request.
2009-05-31Remove extra blank lineBharat Mediratta
2009-06-01Convert %7E to ~ when proxying files to work around Firefox's overzealous ↵bharat
security model.
2009-05-29remove scaffolding codetim almdal
2009-05-29Use the relative_path_cache to look up items which should be a fasterBharat Mediratta
query than using the level + the components.
2009-05-29Require "add" permission to show the add form.Bharat Mediratta
2009-05-28Fix broken html::script() and url::file() references to the newlyBharat Mediratta
moved gallery module.
2009-05-27Normalize root update time in the installerBharat Mediratta
Rebuild install.sql
2009-05-27Convert a few more references of APPPATH to MODPATH/galleryBharat Mediratta
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.