summaryrefslogtreecommitdiff
path: root/core/controllers
AgeCommit message (Collapse)Author
2009-03-18Functional l10n_client / server interaction:Andy Staudacher
- Get / verify API Key from l10n server - Submit translations - Fetch translations / updates Reference: Tasks: 75, 76, 55 TODO: Move out of core (and a series of other tasks).
2009-03-17Switch from using SimpleUploader to using swfUpload as our flash basedBharat Mediratta
uploader. This is modeled on http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete. Notes: * Changed #gProgressBar to .gProgressBar to support multiple progress bars on the same page * Added a bunch of CSS to the "needs a home" section in themes/default/css/screen.css
2009-03-16Initialize some variablesBharat Mediratta
2009-03-16Revive the install() and uninstall() functions in Scaffold_ControllerBharat Mediratta
because we need those to make a package. Fix the packaging code to ignore whatever prefix is being used by the developer who is doing the packaging. Update the install.sql file (there were a variety of small inconsistencies, probably from hand-editing. Don't hand-edit this file!)
2009-03-16Move security into the constructor. Protecting the index() call is easily ↵Bharat Mediratta
bypassed.
2009-03-16Get rid of obsolete/undefined $block_adderBharat Mediratta
2009-03-16Clean up the login, maintenance login and required-top-level-login code.Bharat Mediratta
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
2009-03-16Thin down the scaffolding code so that all that is there is the testTim Almdal
data creation and the packaging code. The rest ofthe functionality is either no longer required, or moved to the developer module (MPTT Tree). Also provide checking for the active user to be an admin.
2009-03-15Move profiling and debugging out of the scaffolding and into theTim Almdal
developer module.
2009-03-11Force a login if everybody does not have access to the rootTim Almdal
item. ticket #118.
2009-03-11Refine the task api but removing the optional parameters on theTim Almdal
task::create method call
2009-03-11Get rid of stray 'type' argument to task::get_definitions()Bharat Mediratta
2009-03-10Add profiling/debugging switches in the Scaffold menu.Bharat Mediratta
2009-03-10Show the album edit form for albums, not the photo edit formBharat Mediratta
2009-03-09Override the ORM_MTTP::children and ORM_MTPP::descendants methods inTim Almdal
the item model and always pass the orderby fields. This insures that all children or descendant calls will respect the album sort order.
2009-03-09Restructure the sort order to maintain the sort column and sort orderTim Almdal
as two separate columns in the item table.
2009-03-09Add a 'cancel all' link tooBharat Mediratta
2009-03-09More tasks cleanup.Bharat Mediratta
Don't join through to the users table; that won't work in embedded mode. Instead, add Tasks_Model::owner() that calls user::lookup() and refer to the object directly in the view. Add Admin_Maintenance:remove_finished_tasks() so that we can easily do old task cleanup. Hide Running / Finished sections if there aren't any running or finished tasks.
2009-03-09Don't forget to clean up temp files after uploading.Bharat Mediratta
Fixes ticket #120.
2009-03-09Instead of putting after_install in the url, put it in the session.Bharat Mediratta
This helps us to make sure that we only see the welcome message once.
2009-03-08Log the user in as admin after running the web installer, and giveBharat Mediratta
them a nice "Welcome to Gallery 3" dialog. The text in there needs a little work but it's a start. In the process, re-build the install.sql using the scaffolding code.
2009-03-08Post process the sql generation code to support prefixesBharat Mediratta
2009-03-08Update sort order processing per Bharat's feedbackTim Almdal
* Remove mime type and type as sortable fields * Change the internal representation to serialized array * Shorten the database field to varchar(64)
2009-03-08Implement Sortable albums. Current sort fields include (CreationTim Almdal
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08Undo... pass any additional parameters to the _edit_form methodTim Almdal
2009-03-08Pass any additional parameters to the _edit_form methodTim Almdal
2009-03-06oops. fix accidental style change that slipped into last commitChris Kelly
2009-03-06Added json and filter as requirementsChris Kelly
2009-03-05Avoid using default task types. Require task::get_definitions() toBharat Mediratta
specify a single type and ask for it appropriately in admin_maintenance. Specify a type for every existing task.
2009-03-05A little task restructuringBharat Mediratta
2009-03-05Implement a Maintenance mode as per ticket: #15Tim Almdal
2009-03-04Implement batch support in a simple fashion to avoid having to change the ↵Bharat Mediratta
swf file for now
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
batch::start() before starting a series of events, and batch::stop() when you're done. In batch mode, the notification module will store up pending notifications. When the batch job is complete, it'll send a single digested email to each user for all of her notifications. Updated the scaffold and local_import to use this. Haven't modified SimpleUploader yet.
2009-03-04Delete test(), it should never have been checked in.Bharat Mediratta
2009-03-03Use the gallery root directory on the batch::operation call whenTim Almdal
generating random albums and images
2009-03-03Refactored the batch Api: 1) created a small batch helper class:Tim Almdal
Starting a batch call batch::operation(name, item). In the case of adding photos name = add and item is the parent of the new items. When the operation is finished the batch::end_operation(name) is called. operation and end_operation events are called. Handlers (i.e. item_created) can call batch::in_progress(name) to determine if a batch is being processed.
2009-03-01Simplify the batch api by having the core event handlers forTim Almdal
start_batch and end_batch add and remove the batch id from the session. Modules wishing to do batch processing, just need to fire the start_batch and end_batch events. Other modules that need to be aware of batches (i.e. notifications) just check the session for "batch_id".
2009-02-28The scaffolding, simple_uploader and local_import now call two newTim Almdal
events: start_add_batch and end_add_batch. The parameter is a batch id which is generated on the first add request. The protocol is call the add_photo as many times as required and then call finish when done. Also renamed the add method in local_import to add_photo so it is consistent with simple_uploader
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-27* Refactor task management methods from admin_maintenance.php toTim Almdal
task.php * Added a owner_id field to the task database * Modified the admin maintenace to show the owner of the task <<**** Requires a reinstallation of core ****>>
2009-02-26Use the Database::update function instead of a raw SQL queryTim Almdal
2009-02-26Support adding custom header/footer text to themes via admin/theme_detailsBharat Mediratta
2009-02-26Make theme details its own page so that we can wrap it in a div andBharat Mediratta
give it a title.
2009-02-26Minor cleanups.Bharat Mediratta
2009-02-25Add support MP4 movies also. Flowplayer supports them and can streamBharat Mediratta
them using the h264streaming plugin. Everything else is a fairly minor change.
2009-02-22Remove the $item from the various graphics functions, that was a badBharat Mediratta
idea. Instead convert movies to jpeg before doing any transformations, which keeps the graphics functions clean and abstract and dealing solely with image types. Lighter/simpler solution.
2009-02-22Standardize to uppercase DESC in the order by method callsTim Almdal
2009-02-22Added t(...) around some display strings that were overlooked.Tim Almdal
2009-02-22Very basic movie support. You can upload a FLV file, we use ffmpeg toBharat Mediratta
extract a thumbnail out of it and if you click through we show it using flowplayer.