summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
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.
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-26clean up whitespace errors introduced in last commitBharat Mediratta
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-24Partially revert r20906 -- it was breaking the test framework.Bharat Mediratta
2009-05-24Make img_dimensions() return early if the width or height is zero (probably ↵Bharat Mediratta
a broken image).
2009-05-24Ignore core when we're loading modules (it's not a module!)Bharat Mediratta
2009-05-21Standardize the method namesTim Almdal
2009-05-21Check to make sure that our permission system is working and reportBharat Mediratta
back to our users in the edit permissions dialog.
2009-05-21Fix the admin credits, tooBharat Mediratta
2009-05-21Move the credits string into core_theme::credits()Bharat Mediratta
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-20Move the first-admin-login steps out of the user module and into an event ↵Bharat Mediratta
listener in core
2009-05-20Always set the graphics_toolkit_path, even if we're on GD. That'llBharat Mediratta
force it to show up in Admin > Settings > Advanced so that people can easily forcefully change over to ImageMagick or GraphicsMagick.
2009-05-20Add a default image quality level. There's no UI for it, except AdminBharat Mediratta
> Settings > Advanced. The default is 75.
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-17Add var/tmpBharat Mediratta
2009-05-17Rollback some of the changes from r20822. But still pull theTim Almdal
determination of the function name and arguments to outside the module loop
2009-05-16Don't allow photos, albums or movies to have a trailing period to avoidBharat Mediratta
security problems. Ref http://dev.kohanaphp.com/issues/684). This plus r20823 resolves ticket #248.
2009-05-16Don't allow albums/photos/movies to end in "." because it risksBharat Mediratta
securit issues (and so Kohana won't route them, see http://dev.kohanaphp.com/issues/684). Partial fix for ticket #248.
2009-05-16Modify the module::event method to accept 2 additional parametersTim Almdal
instead of a variable list and then pass both of these parameters by reference to the event handlers. 2 parameters cover 100% of our existing event calls.
2009-05-16Support renaming albums, photos and movies.Bharat Mediratta
Fixes ticket #278.
2009-05-16Don't allow the various ::create() methods to take "/" in the name.Bharat Mediratta
2009-05-16Rename the theme menu options under the Appearance menu.Bharat Mediratta
2009-05-14Fix for ticket #268Tim Almdal
1) Added a clear method to model_cache 2) Cleared the model_cache, when the make_album_cover or remove_album_cover is called.
2009-05-14Use the active user as the new item's owner, if no owner id is specifiedBharat Mediratta
2009-05-14Cache variables in core._cache so that we can retrieve them all in aBharat Mediratta
single query. In most cases, we were fetching 4-5 variables per page load, so this is 2-3x faster.
2009-05-14Introduce a relative_path_cache column in the items table. This letsBharat Mediratta
us avoid doing lots of MPTT lookups to find the parent path when we're trying to generate thumbnails, etc. Invalidate the cache at all the right times. This greatly reduces our query count on album page views. This fixes ticket #40.
2009-05-14Overload ORM_Iterator to cache models as we pull them out of theBharat Mediratta
result set. This allows us to see the cache and avoid further lookups.
2009-05-14Use model_cache() instead of ORM::factory()Bharat Mediratta
2009-05-13Use the $filename not the $name to find the path extension.Bharat Mediratta
2009-05-13I should test this stuff before I submit it, eh.Bharat Mediratta
2009-05-13Store the ffmpeg path in a variable.Bharat Mediratta
2009-05-13Fix menu typo.Bharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Add the "advanced settings" controller which lets you see all theBharat Mediratta
vars. We'll eventually turn this into a registry where you can edit settings directly (at your own risk).
2009-05-13Create a new "add" permission and require it at the controller levelBharat Mediratta
when adding photos/movies/albums
2009-05-13Exclude the root album from the "dirty images" queryBharat Mediratta
Clean some HTML out of a translated string.
2009-05-13Oops, use filename instead of nameBharat Mediratta
2009-05-13Display the server load average in the platform block. Fixes ticket #198.Bharat Mediratta
2009-05-12Allow configurable padding optionsBharat Mediratta
2009-05-11Fix for #226Tim Almdal
2009-05-10remove_rule() should mark thumbs/resizes dirty also. Resolves ticket #269, ↵Bharat Mediratta
thanks jstricker!
2009-05-10Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ)Bharat Mediratta
2009-05-09Force the 'GD Version' key to existBharat Mediratta
2009-05-07Allow sorting by Capture Date.Bharat Mediratta
2009-05-07Grab photo capture date and captions from EXIF/IPTC data.Bharat Mediratta
- Add a "captured" column to the items table. - Pull the DateTime EXIF field and put it into the captured column - Pull the Caption EXIF & IPTC fields and put them into the description field if there was not already a value there
2009-05-03Don't try to make a new photo the album cover unless we can edit the parent ↵Bharat Mediratta
album
2009-05-02Mark functions as staticBharat Mediratta
2009-05-02Revert r20668; if we call our helper 'gallery' then it interferes with ↵Bharat Mediratta
g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble.