Commit Graph
2181 Commits
Author SHA1 Message Date
Bharat Mediratta 17c58c8dce Skip over empty import modes. Fixes ticket #227 2009-05-17 00:46:53 +00:00
Bharat Mediratta 245c840405 Silently drop trailing periods in the album name so that we don't have
to throw up an error message (since we don't accept them in album
names).
2009-05-16 22:31:02 +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 7679811a31 Item_Model::rename() cannot accept new filenames that contain "/" 2009-05-16 03:37:14 +00:00
Bharat Mediratta 59db5456d4 Implement Item_Model::rename(), with unit tests. 2009-05-16 03:29:14 +00:00
Bharat Mediratta 9d272f2962 Rename the theme menu options under the Appearance menu. 2009-05-16 02:49:23 +00:00
Bharat Mediratta 19149986c1 Only cache rows if they are objects, which assumes also that they are instances of ORM. 2009-05-15 17:08:29 +00:00
Bharat Mediratta 75cf17d0d6 Make denied links not clickable at the root level when the permission
is already denied.  Ie, at the root level you can't click the item to
reset because there's no permission to inherit from, so denied is now
just a non-actionable status.
2009-05-15 01:25:11 +00:00
Bharat Mediratta 5b8722f7cb Use ternary operators to tighten up some logic 2009-05-14 23:49:29 +00:00
Bharat Mediratta 7f77c676fe Get rid of the 'View comments on this item' menu option for photos.
It doesn't fit in with the others and as Jakob points out, the scroll
wheel on the mouse is perfectly sufficient.  I'll leave the icon around, though.
2009-05-14 23:41:49 +00:00
Bharat Mediratta b698b8202f Provide tooltips for Menu_Element_Link 2009-05-14 23:40:48 +00:00
Bharat Mediratta a0e5e0b1aa Tell the user the location of VARPATH so that they know where their photos are getting installed. 2009-05-14 22:39:45 +00:00
Bharat Mediratta 9b0541a0ad Fix save() to stop using ORM objects. 2009-05-14 22:39:14 +00:00
Bharat Mediratta 3fdaf7b60e Convert spaces into underscores when generating the album name from the title 2009-05-14 22:27:08 +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 c8c82eff66 Specify the internal_cache_path (even though we're not using this yet). 2009-05-14 04:28:29 +00:00
Bharat Mediratta 555ee41474 Bind to the change() event also so that we can pick up autocompletions in the title box. 2009-05-14 04:23:15 +00:00
Bharat Mediratta 5979836006 Change the way we update view_count to use math instead of ORM for better accuracy 2009-05-14 04:05:14 +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 e543b055fb Updated to match r20797 2009-05-14 02:00:31 +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
Jakob Hilden cb1a5113f8 permissions UI facelift 2009-05-14 00:12:46 +00:00
Bharat Mediratta 3c78d482e5 Beautify only the title, not the filename 2009-05-14 00:06:45 +00:00
Bharat Mediratta a149659f33 Fix a bad redirect. 2009-05-13 23:52:40 +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 d3103f6c5d Add a little JS sugar to set the album directory name to the same as
the album title.
2009-05-13 23:23:08 +00:00
Tim Almdal daebdab0c6 Address the final point in #226. Disable the make album cover icon if
the pane has the ui-state-disabled class
2009-05-13 22:56:51 +00:00
Bharat Mediratta baa220186e Suppress some warnings 2009-05-13 22:34:54 +00:00
Bharat Mediratta ce4a8224d8 Allow admins to modify variables. This way when something goes wrong,
we can tell them what to do in the forums and we don't have to build
super smart admin UIs to help users with weird edge cases.

This plus r20789 is probably a good enough fix for #232.
2009-05-13 21:32:22 +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 5c40669fd7 Unlink var/modules dir also when packaging 2009-05-13 18:02:57 +00:00
Bharat Mediratta dd8c688542 Set the default transparency to 1 (no transparency at all) 2009-05-13 05:13:21 +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 d049e406e0 updated to reflect tinyint(2) -> smallint(6) change 2009-05-13 04:45:25 +00:00
Bharat Mediratta 88afbeba07 Clean out old dirs before packaging. 2009-05-13 04:36:18 +00:00
Bharat Mediratta e41b1795bd Oops, use filename instead of name 2009-05-13 04:33:40 +00:00
Bharat Mediratta 37fabc5e07 Empty dir 2009-05-13 04:02:42 +00:00
Bharat Mediratta dcdc6f1e77 Don't allow admins to delete the guest user. Fixes ticket #213 2009-05-13 04:01:38 +00:00