Bharat Mediratta
894a33d744
Add support for pretty urls. So now instead of urls like:
...
http://example.com/gallery3/index.php/albums/2
http://example.com/gallery3/index.php/photos/9
You'll see urls like:
http://example.com/gallery3/index.php/Family/Weddings
http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
2009-01-29 03:22:02 +00:00
Tim Almdal
66fae63558
Create a sendmail library to wrap the call to the system sendmail
...
facility. Something quirky is happening in the first test, see comment
in code, but I couldn't figure it out. Left a @todo for now.
2009-01-28 04:22:59 +00:00
Bharat Mediratta
cd6629ad23
Add support for parenthetical grouping to Database queries. Turns out
...
that this is something they kind of want for Kohana :-)
Upstream ticket for this change: http://dev.kohanaphp.com/ticket/1070
2009-01-23 08:07:37 +00:00
Bharat Mediratta
fc8cf562f5
Fix up various little things to get File_Structure_Test to pass.
2009-01-19 07:26:25 +00:00
Andy Staudacher
e4a9b19bf9
Changing t() placeholder syntax from {{replace_me}} to %replace_me.
2009-01-15 10:02:41 +00:00
Bharat Mediratta
f3ba69c1d6
Make sure that helper functions are all static. Add new
...
File_Structure_Test to make sure we don't regress.
According to the PHP docs, the "public" keyword is implied on static
functions, so remove it. Also, require private static functions to
start with an _.
http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Bharat Mediratta
ff6791f576
Models should be named in adjective_noun form to make pluralizatoin
...
more intuitive.
Renamed Translations_Incoming to Incoming_Translation to suit.
2009-01-13 01:05:11 +00:00
Andy Staudacher
6510fae661
Remove path normalization, the current normalization code didn't go far enough anyway.
2009-01-11 05:28:48 +00:00
Andy Staudacher
5e0d0f546a
MySQL strict fix for Item_Model test. Set all fields that have no default value.
2009-01-11 05:19:09 +00:00
Andy Staudacher
4757126acc
Fix ORM MPTT tests for MySQL strict mode (can't omit Iten type in inserts, it doesn't have a default value).
2009-01-11 05:09:06 +00:00
Andy Staudacher
9406e80c90
Fix Access_Helper tests for MySQL strict mode (can't omit Iten type in inserts, it doesn't have a default value).
2009-01-11 03:28:57 +00:00
Bharat Mediratta
01666c5579
Fix all file structure issues (tabs, bad preambles, etc).
...
Note: installer/install.php is now on the "direct access" list.
2009-01-11 02:27:00 +00:00
Bharat Mediratta
7f52500cf9
Allow .txt.php views
2009-01-11 02:02:43 +00:00
Andy Staudacher
a631fe29f3
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
...
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Andy Staudacher
2917740ba6
First step of i18n refactoring:
...
- Using DB table translations_incomings as translations storage (file cache to be added)
- Removed overly complex i18n code which will be unnecessary with the future compiled cache files
- Added t() as a translation function (global refactoring from _() to t() to follow)
2009-01-08 06:52:18 +00:00
Bharat Mediratta
58c8b3b031
module::event now takes an unlimited number of args
...
added module::incr_var() ftw.
2009-01-08 02:46:09 +00:00
Bharat Mediratta
08c9745086
Make sure that create/update/delete fail without CSRF.
2009-01-04 01:55:07 +00:00
Bharat Mediratta
cd1d023754
Change the preamble for views in two ways:
...
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
have short_tags enabled (the app won't work, but we need to make sure that we're
still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
23105f1359
PhotoID -> PhotoId for consistency
2008-12-31 07:16:38 +00:00
Bharat Mediratta
bfb040a463
Fix a bug where we were accidentally allowing view permissions when
...
allowing or resetting permission further down in the tree. This bug
was introduced when I refactored the view permission cache into the
items table. Updated test to catch it.
2008-12-31 00:47:15 +00:00
Bharat Mediratta
ad719b9b6f
Fully implement the view_full permission.
2008-12-31 00:18:24 +00:00
Bharat Mediratta
eb35afc987
Add module::clear_var()
2008-12-26 01:29:33 +00:00
Bharat Mediratta
3185915264
Split Items_Controller_Test into Photos and Albums tests
2008-12-25 10:14:59 +00:00
Bharat Mediratta
5713e3c66e
Change photo::create() and album::create() to take ORM instances
...
instead of ids.
2008-12-23 04:36:09 +00:00
Chad Kieffer
a98d13e9c7
Update Selenium IDE test case file names.
2008-12-22 00:19:58 +00:00
Chad Kieffer
f2f5a67cde
Removed my local dev url.
2008-12-21 23:59:53 +00:00
Bharat Mediratta
99c481897b
Add "created" and "updated" timestamps to the items table.
2008-12-20 22:49:32 +00:00
Chad Kieffer
aed68bfa9f
I'm tired of clicking. Here are a few Selenium IDE tests.
2008-12-18 07:00:47 +00:00
Bharat Mediratta
8630d61051
Change the album thumbnail/resize from _album.jpg to .album.pjg
...
because the leading underscore confuses the Kohana router.
2008-12-17 04:55:49 +00:00
Bharat Mediratta
fc7b78492b
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
...
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy.
In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Bharat Mediratta
e82b08db20
Make the profiler output more legible by adding some padding to the table.
2008-12-16 04:45:52 +00:00
Bharat Mediratta
dc08917345
Fix a bug where we were not deleting the .htaccess file on access::reset()
2008-12-16 02:31:13 +00:00
Bharat Mediratta
61618af0db
Create and delete .htaccess files based on the view permissions for
...
the group::everybody() user.
2008-12-16 01:04:19 +00:00
Bharat Mediratta
3d2fc86604
Permission only function on albums.
2008-12-16 00:30:05 +00:00
Bharat Mediratta
b6363bcb03
Update to reflect changes in Kohana ORM relationship code.
...
Now you must call ORM::save() after ORM::add() and ORM::remove().
2008-12-15 20:49:05 +00:00
Bharat Mediratta
af8c74f612
Fix a bug where parent permissions were not getting inherited to newly
...
created albums and photos.
2008-12-13 20:06:20 +00:00
Bharat Mediratta
8ba5ea3cf8
Make sure that access::can fails if the item is not loaded
2008-12-13 19:49:33 +00:00
Tim Almdal
80792d4fb1
Set the resize and thumbnail maximum dimension into the module vars table
2008-12-13 05:01:12 +00:00
Bharat Mediratta
a3142246e4
Move the view permission cache directly into the item table for efficiency. Unit tests ftw!
2008-12-12 06:54:48 +00:00
Chad Kieffer
ffbb164934
New scaffold images. Landscape, portrait, square.
2008-12-12 06:54:30 +00:00
Bharat Mediratta
2cf3233f54
Get rid of all pseudo users and pseudo groups, while preserving all
...
other functionality. This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Tim Almdal
773d7024eb
Correct test
2008-12-11 16:09:49 +00:00
Tim Almdal
e84a0ebe46
Change the name of the implmentation of module parameters to module vars
2008-12-11 16:06:22 +00:00
Tim Almdal
7e5935d532
Create a module parameter table. This will be useful if a module wants to store information, but is not enough to warrant a table of its own
2008-12-10 19:44:58 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
e62103b8d9
Move code to delete users and add/remove users from groups into the
...
model.
2008-12-09 08:47:30 +00:00
Bharat Mediratta
f69f3967ea
move user::delete() to User_Model::delete()
2008-12-09 00:07:26 +00:00
Bharat Mediratta
e3ad42a276
Add access::can() which verifies that the user belongs to a group that has the
...
given permission.
2008-12-09 00:02:20 +00:00
Bharat Mediratta
bd3a472be7
Rename access::can() to access::group_can()
2008-12-08 10:46:53 +00:00
Bharat Mediratta
85239ec750
Ignore gallery_unit_test/views/kohana_*.php
2008-12-08 10:46:06 +00:00