summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-10-25Created gallery.css file, moved simple uploader, move, and permissions CSS ↵Chad Kieffer
there. Removed relocated styles from theme css.
2009-10-25Replace reference to identity with the reference to user. Dangers of ↵Tim Almdal
flipping back and forth between branches.
2009-10-24Update themes::load_theme() to work with mod_rewrite's short urls.Bharat Mediratta
Conflicts: modules/gallery/helpers/gallery_event.php
2009-10-23Allow themes to override event handlers. In gallery::ready() grab the serverTim Almdal
PATH_INFO and pass it to the theme::load_themes method. If it starts with \"/admin\", then set the theme to the active admin theme, otherwise set it to the active site theme. Fixes ticket #841: Themes cannot overload event classes."
2009-10-23move controllers and views to the user module to make the Identity Provider ↵Tim Almdal
refactor smaller
2009-10-22Poor man's merge. Note to self, git pull before working. Next pound the ↵Chad Kieffer
steps to merge into your head.
2009-10-18Resolve merge conflict.Chad Kieffer
2009-10-15Move all the edit/update forms for users and groups back to the user module.Tim Almdal
2009-10-14Recreate group::lookup that somehow got removed.Tim Almdal
2009-10-13Optimize the creation of the language blockTim Almdal
2009-10-13refactor the user and group helpers into the gallery core module. 2 reason, ↵Tim Almdal
first it makes sense that users and groups are a gallery requirement and belong in core. secondly, prepares the way for the Identity refactor.
2009-10-13Refactor the ui component of the user module into the gallery core module.Tim Almdal
2009-10-13forgot to add a break statement when i pastedTim Almdal
2009-10-13Continue to refactor locale and gallery3 ui from the user module to the ↵Tim Almdal
gallery module
2009-10-13refactor locale related functionality out of the user module and into the ↵Tim Almdal
gallery module.
2009-10-13Don't allow users to change the file extension of photos/moviesBharat Mediratta
If you can change the extension, then you can alter the way the server handles the file, which is a security problem. So for example, you can change a .JPG to a .PHP and then if you put some malicious PHP code in the EXIF data, you can get the server to execute it. Vulnerability is low because only users who have edit permissions could do this. Fixes ticket #846
2009-10-11Make the slug field required for all items.Bharat Mediratta
Make the filename field required for photos/movies. Fixes ticket #838
2009-10-07Merge branch 'master' of github.com:gallery/gallery3Chad Kieffer
2009-10-07Consolidated the rest of the base message styles into lib/gallery.common.css ↵Chad Kieffer
and applied updates to views. Moved over draggable/droppable styles. Use g-target consistently for drag/drop interactions. Minor re-ordering of selectors in gallery.common.css. Updates to css comments.
2009-10-06Remove debugging lines (thanks talmdal!)Bharat Mediratta
2009-10-06Update gallery::find_file to look for subdirectories in lib, then fallBharat Mediratta
back to looking in just lib itself. This is not consistent behavior with the rest of our module structure, though so we should probably make it more consistent. Fix up the permission images to use gallery::find_file again.
2009-10-06Move the graphics::rotate to gallery_graphics::rotate to be consistent with ↵Tim Almdal
the other gallery graphics functions.
2009-10-04Revert "Create a gallery::plugin_path which returns the appropriate path to ↵Tim Almdal
the module or theme. This checks for the existence of an application/modules or application/themes first." This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04Create a gallery::plugin_path which returns the appropriate path to the ↵Tim Almdal
module or theme. This checks for the existence of an application/modules or application/themes first.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-01Change gallery::find_file to not assume that the absolute path is relative ↵Tim Almdal
to the document root. Instead ignore all th path parts until one of application, modules, themes, or libs is found. Fixes ticket #827
2009-09-30Merge branch 'master' of github.com:gallery/gallery3Chad Kieffer
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-30Fix a problem with trying to display item related menu items on a dynamic ↵Tim Almdal
page like tags
2009-09-30Added active_sidebar_blocks and deactive_sidebar_blocks to allow the ↵Tim Almdal
installer to activate and deactive the side bar blocks when a module is activated or deactivated.
2009-09-30Add functionality to activate sidebar blocks when the module is activated ↵Tim Almdal
and deactivate the sidebar blocks when the module is deactivated.
2009-09-30Set the gallery version to 15 and provide upgrade processing to set the ↵Tim Almdal
default sidebar.
2009-09-30Enable the administration screen for the sidebar. Fix for ticket #110.Tim Almdal
2009-09-30Make the parameter to block_manager::get_html() optional as its not ↵Tim Almdal
applicable to admin sidebar blocks.
2009-09-30Use the block_manager to manage site sidebar panels. Fixes ticket #110.Tim Almdal
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list. * Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks. * Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks * Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach * Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules. * Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules. * Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated * Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-29Remove a debugging log statementTim Almdal
2009-09-29Remove the @todo and optimize the gallery_event call for 3 and 4 ↵Tim Almdal
arguments... context menu events have 4 arguments.
2009-09-29* Remove the @todo in module event and always try to call ↵Tim Almdal
gallery_event::$function first * Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php * Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-28Create and throw the exception, instead of logging. The theory behindBharat Mediratta
exceptions is that they only need to be logged if they can't be caught and handled. If we don't throw it, then the error gets swallowed and the code that errored out just blithely continues.
2009-09-28Do a pass on the gallery::find_file and Gallery_View::{script,css} PHPdoc.Bharat Mediratta
2009-09-28Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2009-09-28Update the PHPDoc for gallery::find_file and convert ↵Tim Almdal
Gallery_View::script/css to use gallery::find_file
2009-09-28Clean up upgrader for version 14. Put {} around table name,Bharat Mediratta
capitalize reserved words, use single quotes in the query to avoid escaping the double quotes, remove table alias.
2009-09-27Clean up the task initialization for rebuild thumbs and resizes.Tim Almdal
2009-09-27Change gallery installer to do a direct update to the database, preppending ↵Tim Almdal
gallery_graphics:: to each of the defined rules operations
2009-09-27This path requires the upgrader to be run and applies the following changes:Tim Almdal
* moves the composite method back into core * requires that the operation be fully qualified i.e. gallery_graphics::resize * caches the graphics rules on each request
2009-09-27Fix one more place in the installer where we referring to the old defaultBharat Mediratta
theme names. Update installer.sql
2009-09-24Refactor the graphic rules processing to accomplish 2 goals: First separate ↵Tim Almdal
the grapics library from module supplied rules and secondly, allow for modules to provide new processing rules callbacks. graphics::generate will now look for <module_name>_graphics::<rule> methods.
2009-09-24Refactored the rebuild_dirty_images handler to simplify the counting and end ↵Tim Almdal
processing. It was getting all confused with trying to figure out the completed and remaining. Now on initiation it sets the total images that are dirty and then counts the completed until it equals the total, then exits. Fixes ticket #771
2009-09-24Fix unit tests by updating the xss golden file and declaring ↵Tim Almdal
gallery_error::error_handler as static