summaryrefslogtreecommitdiff
path: root/modules/organize
AgeCommit message (Collapse)Author
2009-07-22Use the Kohana cascading filesystem to locate resources loaded by theBharat Mediratta
theme. Because the theme comes first, this means that themes can override any module resources, at the cost that we no longer have namespacing for JS and CSS files. The only file getting used outside of this model is themes/default/screen.css which is used in the admin theme. I fixed that by copying screen.css into admin_default and renaming its screen.css to admin_screen.css. I also copied over all the images that it was referencing. Fixes tickets #48 and #539. Theme API changes: - theme_script(), theme_url() and theme_css() are no longer needed - script(), url() and css() now refer to the first matching asset in the module load path, where gallery3/lib is at the end of the path
2009-07-21Escape bare & symbols so that we use valid entities. Fixes ticket #577.Bharat Mediratta
2009-07-21Fix some consistency in text.Shai Ben-Naphtali
This fixes ticket #546 Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-07-16Second non-trivial change to the event code. We now publish modelBharat Mediratta
related events from within the model handling code. The only exception to this currently is item_created which is challenging because we have to save the item using ORM_MPTT::add_to_parent() before the object itself is fully set up. When we get that down to one call to save() we can publish that event from within the model also.
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-07-14Remove references to missing organize_edit_drawer.pngBharat Mediratta
2009-07-14Revert "Remove the reference to organize.css is it is no longer used and is"Bharat Mediratta
This reverts commit 31ffb82382d76390f1206944329dde86c687349c.
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
test to make sure that we continue to do so. This makes sure that we don't have problems with 5.3 which treats the literal "on" as a boolean.
2009-07-10Fix for ticket #341.Tim Almdal
Change the wording for the sort order from "Default" to "Order Added"
2009-07-10Change the word "Done" to "Close" to make translations easierTim Almdal
2009-07-09Remove the reference to organize.css is it is no longer used and isTim Almdal
producing errors in the log.
2009-07-04Rename the get_url function in organize.js so that it doesn't collide with theTim Almdal
one in server_add
2009-07-03Split the clean method into two clean and purify. clean is a light weightTim Almdal
approach using html::specialchars and purify uses HTMLPurifier to intelligently cleanse the output fields. Use purifier for text and title fields where it is likely that a user would enter html to format their data.
2009-07-01Fix a bunch of XSS vulnerabilities turned up by manual inspectionBharat Mediratta
using the checklist in ticket #385.
2009-06-29Temporary checkin to allow merge with trunk... don't integrateTim Almdal
2009-06-28Use $theme->script() method to render module javascript filesTim Almdal
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-22Fix css indentationBharat Mediratta
2009-06-03Sanitize all data we return via json_encode() to guard against XSS andBharat Mediratta
other data leaks.
2009-06-02Fix for ticket #320Tim Almdal
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-05-31Run all variables that come from user-entered data through p::clean()Bharat 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-26Since organize is now in the preview stage and will probably beTim Almdal
rewritten by beta2, pull all of its "tenticles" back into itself and out of core or tags module.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-25Delete placeholder comments.Bharat Mediratta
2009-05-22Set a minimum distance (10px) that the cursor has to move inorder forTim Almdal
the draggable functionality to be activated
2009-05-21Provide delete confirmations in quick pane and organize features. IfTim Almdal
I've missed any spots let me know.
2009-05-211) This provides the editting functionality for albums and photos in theTim Almdal
organize feature. 2) Remove the tag functionality at this point 3) Added a callback to handle validating conflicting names (only used by organize at this point. 4) Closes #231
2009-05-18This takes us the next step closer to providing bulk edit. We stillTim Almdal
can't edit, but we are getting closer :-). This change sets up a framework for modules to contribute edit panels to the organize drawer. Currently implemented General (albums and photos), Sort Order (albums only) and Manage Tags
2009-05-14Use ternary operators to tighten up some logicBharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-07Create a thumbnail stack of selected thumbnails for the organizeTim Almdal
drawer
2009-05-071) Leave an object selected if its clicked.Tim Almdal
2) And a 1em left margin to provide more spacing, so the lasso is less inclusive
2009-05-07Improve the selection/drag handling so that drag of a single itemTim Almdal
doesn't have to be selected first
2009-05-061) Improved selection processing.Tim Almdal
2) Drawer closes if no images or albums are selected
2009-05-02Create item helper and move move_item(), remove_album_cover() andBharat Mediratta
make_album_cover() functions into it.
2009-05-02Move make_album_cover and remove_album_cover out of Item_Model andBharat Mediratta
into the core helper. Clean up interactions so that when we remove an album cover we pick a new one, or clean out the old album cover if there are no other choices.
2009-05-02Clean up API to be organized around the functionality it provides, not the ↵Bharat Mediratta
feature its provided for.
2009-05-02Remove extra whitespace.Bharat Mediratta
2009-05-02Fix indentation.Bharat Mediratta
2009-05-02Remove angled ends of edit drawer handle.Chad Kieffer
2009-05-02Add missing return statementTim Almdal
2009-05-02Move the drawer to the bottom of the page and compress the thumb gridTim Almdal
when the drawer opens. This way the drawer is never scrolled.
2009-05-01Set organize messages to use existing gMessage, added album cover message.Chad Kieffer
2009-04-29Refactor the creation and removal of the album covers intoTim Almdal
make_album_cover and remove_album_cover methods in Item_Model. Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-29Change album cover functionality addedTim Almdal
2009-04-29The delete button now deletes the selected itemsTim Almdal
2009-04-281) Refactor the ajax calls so that the code is reused across multiplTim Almdal
request types. 2) Enable/Disable the drawer handle buttons depending on the number of items selcted 3) Image rotation works.
2009-04-27Another iteration of the organize module:Tim Almdal
Rearrange the layout as per discussion with thumb, start the drawer functionality. Still to do... 1) Add the processing behind the buttons on the drawer handle 2) Enable the drawer buttons when something is selected 3) Create a copy of the thumbs for the drawer 4) Add the bulk editting functionality to the drawer