Commit Graph

1094 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
2e204cac78 Add a cache buster to thumbnail urls, using the item update time.
Fixes ticket #121.
2009-05-20 06:58:47 +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
Bharat Mediratta
006e0b4f28 Replace the old "add photo" form with the simple uploader version in
the "add a photo" quick menu option.
2009-05-20 03:24:39 +00:00
Bharat Mediratta
f850bf75cf Fix a typo; swapped uninstalled and installed. 2009-05-20 01:18:14 +00:00
Bharat Mediratta
a0e0c48e47 Collate install/uninstall messages. Fixes ticket #288 2009-05-19 05:59:30 +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
ad16488643 Turn on IN_PRODUCTION mode now across the board. Create our own error
page where we'll show whatever information is useful.  Get rid of the
IN_PRODUCTION hack in MY_View.php that we no longer need.
2009-05-18 06:30:32 +00:00
Bharat Mediratta
09d0cd6f01 Update filters 2009-05-18 06:22:16 +00:00
Bharat Mediratta
bdd5c3a575 update PasswordHash path 2009-05-18 04:52:19 +00:00
Bharat Mediratta
13cc8bc706 verify csrf when installing/uninstalling modules 2009-05-18 04:21:02 +00:00
Bharat Mediratta
34d8b49aed Clean up tmp when packaging 2009-05-18 04:20:36 +00:00
Bharat Mediratta
f660fa1e3b Restructure the code preamble checking tests to check all PHP files,
not just the ones that we created ourselves.
2009-05-18 04:15:35 +00:00
Bharat Mediratta
5a6aef9c23 Fix preamble 2009-05-18 00:05:50 +00:00
Bharat Mediratta
7f4bcb540f Update preamble test to list all broken files at once 2009-05-17 23:04:03 +00:00
Bharat Mediratta
da9c170ba7 Update tests to reflect the new code that allows changing file and directory names 2009-05-17 22:47:34 +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
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
b698b8202f Provide tooltips for Menu_Element_Link 2009-05-14 23:40:48 +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
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