Commit Graph
465 Commits
Author SHA1 Message Date
Bharat Mediratta f24c8f66ea Move the first-admin-login steps out of the user module and into an event listener in core 2009-05-20 16:49:06 +00:00
Bharat Mediratta 3dc5571629 Always set the graphics_toolkit_path, even if we're on GD. That'll
force it to show up in Admin > Settings > Advanced so that people can
easily forcefully change over to ImageMagick or GraphicsMagick.
2009-05-20 16:42:49 +00:00
Bharat Mediratta 0536025ff6 Add a default image quality level. There's no UI for it, except Admin
> Settings > Advanced.  The default is 75.
2009-05-20 04:04:50 +00:00
Tim Almdal 762ca22544 This takes us the next step closer to providing bulk edit. We still
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-18 19:34:03 +00:00
Bharat Mediratta 1968057a90 Add var/tmp 2009-05-17 04:44:16 +00:00
Tim Almdal 3baecc628f Rollback some of the changes from r20822. But still pull the
determination of the function name and arguments to outside 
the module loop
2009-05-17 04:37:00 +00:00
Bharat Mediratta 8f11bce904 Don't allow photos, albums or movies to have a trailing period to avoid
security problems.  Ref http://dev.kohanaphp.com/issues/684).

This plus r20823 resolves ticket #248.
2009-05-16 22:27:32 +00:00
Bharat Mediratta 6ceb10424b Don't allow albums/photos/movies to end in "." because it risks
securit issues (and so Kohana won't route them, see
http://dev.kohanaphp.com/issues/684).

Partial fix for ticket #248.
2009-05-16 22:20:16 +00:00
Tim Almdal c3917aa250 Modify the module::event method to accept 2 additional parameters
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-16 16:46:08 +00:00
Bharat Mediratta 930452aa6b Support renaming albums, photos and movies.
Fixes ticket #278.
2009-05-16 04:32:00 +00:00
Bharat Mediratta 33f1187220 Don't allow the various ::create() methods to take "/" in the name. 2009-05-16 03:48:56 +00:00
Bharat Mediratta 9d272f2962 Rename the theme menu options under the Appearance menu. 2009-05-16 02:49:23 +00:00
Tim Almdal d7c4d32c57 Fix for ticket #268
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-14 15:14:07 +00:00
Bharat Mediratta d7fe3104e3 Use the active user as the new item's owner, if no owner id is specified 2009-05-14 04:00:00 +00:00
Bharat Mediratta 627e83adc1 Cache variables in core._cache so that we can retrieve them all in a
single query.  In most cases, we were fetching 4-5 variables per page
load, so this is 2-3x faster.
2009-05-14 03:56:29 +00:00
Bharat Mediratta aaff4a7886 Introduce a relative_path_cache column in the items table. This lets
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-14 02:14:46 +00:00
Bharat Mediratta f439fe96c8 Overload ORM_Iterator to cache models as we pull them out of the
result set.  This allows us to see the cache and avoid further
lookups.
2009-05-14 01:19:05 +00:00
Bharat Mediratta 96d59caa3b Use model_cache() instead of ORM::factory() 2009-05-14 00:59:48 +00:00
Bharat Mediratta d6214a974e Use the $filename not the $name to find the path extension. 2009-05-13 23:28:48 +00:00
Bharat Mediratta 58a11e3f7c I should test this stuff before I submit it, eh. 2009-05-13 20:55:23 +00:00
Bharat Mediratta 7ada2e7fe6 Store the ffmpeg path in a variable. 2009-05-13 20:46:59 +00:00
Bharat Mediratta 07bf3e071e Fix menu typo. 2009-05-13 20:42:30 +00:00
Bharat Mediratta 5495037a3d Gee it's May already. Update copyright to 2009. 2009-05-13 20:04:58 +00:00
Bharat Mediratta 12380b8b39 Add the "advanced settings" controller which lets you see all the
vars.  We'll eventually turn this into a registry where you can edit
settings directly (at your own risk).
2009-05-13 19:48:57 +00:00
Bharat Mediratta c52a231bc0 Create a new "add" permission and require it at the controller level
when adding photos/movies/albums
2009-05-13 18:03:50 +00:00
Bharat Mediratta 65aafe1e72 Exclude the root album from the "dirty images" query
Clean some HTML out of a translated string.
2009-05-13 05:11:31 +00:00
Bharat Mediratta e41b1795bd Oops, use filename instead of name 2009-05-13 04:33:40 +00:00
Bharat Mediratta 983dc66684 Display the server load average in the platform block. Fixes ticket #198. 2009-05-13 01:32:11 +00:00
Bharat Mediratta 0864d7ca65 Allow configurable padding options 2009-05-12 22:27:34 +00:00
Tim Almdal 010c355ecf Fix for #226 2009-05-11 18:13:19 +00:00
Bharat Mediratta e947e771d3 remove_rule() should mark thumbs/resizes dirty also. Resolves ticket #269, thanks jstricker! 2009-05-10 21:57:09 +00:00
Bharat Mediratta 57ef43afdb Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ) 2009-05-10 18:56:49 +00:00
Bharat Mediratta 99ca6133b0 Force the 'GD Version' key to exist 2009-05-09 16:37:03 +00:00
Bharat Mediratta 98e60731b2 Allow sorting by Capture Date. 2009-05-07 01:28:10 +00:00
Bharat Mediratta fc6bdbbbc8 Grab photo capture date and captions from EXIF/IPTC data.
- 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-07 01:18:31 +00:00
Bharat Mediratta a676ac8e60 Don't try to make a new photo the album cover unless we can edit the parent album 2009-05-03 21:14:18 +00:00
Bharat Mediratta f2479cc65a Mark functions as static 2009-05-02 21:13:13 +00:00
Bharat Mediratta 4b790f5b76 Revert r20668; if we call our helper 'gallery' then it interferes with g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble. 2009-05-02 20:49:09 +00:00
Bharat Mediratta 5950f49210 Rename core helper to gallery helper to indicate that it's more of an app-wide helper. 'core' doesn't make as much sense 2009-05-02 20:37:45 +00:00
Bharat Mediratta b4c9a97050 Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta 0fd82598b5 Move make_album_cover and remove_album_cover out of Item_Model and
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-02 20:14:13 +00:00
Tim Almdal 71cac8bf15 Forgot these when i created the make_album_cover method 2009-05-01 23:32:35 +00:00
Tim Almdal 820cbdf1c3 Refactor the creation and removal of the album covers into
make_album_cover and remove_album_cover methods in Item_Model.
Usage: $photo->make_album_cover()  $album->remove_album_cover()
2009-04-29 15:57:29 +00:00
Bharat Mediratta 33775f9fb0 Throw an exception in graphics::resize() if the input file is empty 2009-04-22 19:50:38 +00:00
Tim Almdal 1956a6ae95 Refactor the move functionality into a helper function so it can be
called from organize
2009-04-22 04:20:05 +00:00
Bharat Mediratta 0fe4398765 whitespace cleanup 2009-04-18 23:07:08 +00:00
Bharat Mediratta f243e8d41c Be graceful if exec() is disabled 2009-04-17 09:50:53 +00:00
Jakob Hilden 8db55de4f0 changed order of form fields in photo and album forms so that the confusing "name" field is not on top anymore
changed "name" label to "Filename" for photos and "Directory Name" for albums
2009-04-12 17:52:26 +00:00
Bharat Mediratta 670e0d8f85 Fix indentation. 2009-04-12 06:41:43 +00:00
Bharat Mediratta ff732d9c7e Fix the spelling of "appearance_menu" and update user_menu so that the
user/groups admin menu option appears again.
2009-04-09 02:25:27 +00:00