Bharat Mediratta
39bfe5ee74
Add security preamble
2009-05-18 03:51:15 +00:00
Bharat Mediratta
993742feb3
Move 3rd party PasswordHash library into the "lib" dir for
...
consistency. No 3rd party libs in "libraries", at least for now.
2009-05-18 03:39:42 +00:00
Bharat Mediratta
5133d2cbb9
Remove modules/unit_test/views; we don't use them
2009-05-18 03:34:12 +00:00
Bharat Mediratta
abeec7c7b8
Merged /gallery3/vendor/forge/modified:r20843
...
Added preamble to all Forge files.
2009-05-18 03:28:46 +00:00
Bharat Mediratta
2cf9b95f5f
Remove Forge files that we don't use
2009-05-18 00:31:03 +00:00
Bharat Mediratta
59b0e40f65
Define KOHANA as the front controller .php file.
2009-05-18 00:28:20 +00:00
Bharat Mediratta
70184a041d
Add preamble. http://dev.kohanaphp.com/issues/1661
2009-05-18 00:21:05 +00:00
Bharat Mediratta
c87c6f6859
There's a new view for CLI unit test output in the Unit_Test library
2009-05-18 00:16:37 +00:00
Bharat Mediratta
fd0c0a608a
Updated kohana and modules/unit_test to upstream r4356
2009-05-18 00:14:07 +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
1c84472746
Make our dependency on json_encode() an explicit requirement
2009-05-17 21:51:15 +00:00
Bharat Mediratta
bd3dd786e7
Define TMPPATH
2009-05-17 04:55:12 +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
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