Bharat Mediratta
453e15f502
Throw an exception when we can't upload a file. This is not the best solution, but it works for now.
2008-11-12 10:11:05 +00:00
Felix Rabinovich
7423c755c0
aliasing owner to user
2008-11-12 08:30:55 +00:00
Bharat Mediratta
51c64f1d28
Create a simple benchmark that loads 500 localized messages and performs
...
500 localizations on them.
2008-11-12 00:05:47 +00:00
Bharat Mediratta
fd4faa89e6
Override View_Core::render so that we trap errors stemming from bad
...
PHP includes and show a visible stack trace to help developers.
2008-11-11 23:07:30 +00:00
Bharat Mediratta
a15c7cb11f
Change the PUT/DELETE tunneling param from __action to _method
...
to be like Rails.
2008-11-11 13:11:20 +00:00
Bharat Mediratta
ee413f5f39
Updated for recent Item_Controller API change
2008-11-11 13:00:11 +00:00
Jozef Selesi
1651b3fe85
Move scaffolding code out of the comments controller to welcome.php.
2008-11-11 12:20:20 +00:00
Tim Almdal
bba5289035
Change Album and Photo controllers to set the user object as a global variable; change the header so it links to the user controllers; and add the user controllers which don't do anything.
2008-11-11 07:39:20 +00:00
Bharat Mediratta
87f1115113
Change REST API to use non-routable functions: _get(), _post(),
...
_put(), _delete().
This should make it more obvious that these are not your typical
routes, simplifies overall routing by removing a rule and removes the
possibility of accidentally leaking information if we route to one of
them by accident.
2008-11-11 07:29:48 +00:00
Bharat Mediratta
d35f337b7b
Add phpdocs to explain how to use REST_Controller
2008-11-11 06:24:30 +00:00
Tim Almdal
9f261213a5
Reset PasswordHash.php to its original state and exclude it from the file_structure_test
2008-11-11 06:21:21 +00:00
Bharat Mediratta
dae36c2aa4
Create REST_Controller abstract base class for all REST based resource
...
controllers. Any controller that wants to act RESTful can extend this
class and implement get/post/put/delete.
Tweak default routes to disallow direct access to the REST controller
and direct access to any REST methods.
2008-11-11 06:18:45 +00:00
Bharat Mediratta
ffa39aabb9
Manually delete the auth table and module entry to ease transitions for devs.
2008-11-10 21:55:27 +00:00
Jozef Selesi
ddf0a51900
Comment creation controller, helper and test. Add comments from the scaffold.
2008-11-10 17:32:04 +00:00
Tim Almdal
359e28a50f
Remove Auth module
2008-11-10 16:45:06 +00:00
Tim Almdal
d4415d0d3e
Reset the links in the header and update the readme
2008-11-10 16:36:56 +00:00
Bharat Mediratta
7a1b2b0ca7
Add a test to make sure that we have no windows-style line endings.
2008-11-10 15:33:55 +00:00
Bharat Mediratta
ceb0782233
Add support for multi-file-upload using jquery.MultiFile and modify
...
Item_Controller to accept it.
2008-11-10 12:28:58 +00:00
Tim Almdal
8858b957b0
The start of the login functionality. It shows the login popup but doesn't do anything else. Just got tire of my changes being clobbered :-)
2008-11-10 03:17:56 +00:00
Bharat Mediratta
c2162a645a
Clean up HTML for adding albums/photos a tad.
2008-11-10 00:34:02 +00:00
Bharat Mediratta
b5f2443bb5
Add the ability to create albums to the scaffolding
...
Revert $_POST back to $this->input->post() because that supports default values.
2008-11-10 00:25:59 +00:00
Bharat Mediratta
085ba7cd46
Tests for Item_Controller
2008-11-10 00:16:41 +00:00
Bharat Mediratta
c054b4de04
Convert quote styles
...
Convert $this->input->post to $_POST
2008-11-10 00:16:03 +00:00
Bharat Mediratta
223cba531e
Rename tests to make room for controller tests
...
Album_Test -> Album_Helper_Test
Photo_Test -> Photo_Helper_Test
2008-11-09 23:49:09 +00:00
Bharat Mediratta
e7155c09c5
Implement Item_Controller::put() and delete()
...
Adjust/simplify photo::create
Add image uploading to the scaffolding
2008-11-09 23:40:28 +00:00
Bharat Mediratta
25dd0bbf1c
style fix
2008-11-09 23:29:05 +00:00
Jozef Selesi
24decb7fa4
Beginnings of the comment module. Install and uninstall.
2008-11-09 22:57:55 +00:00
Bharat Mediratta
1b490c5fe6
Make Gallery3 more RESTful.
...
Create Item_Controller as a common superclass for Album_Controller and
Photo_Controller. Change routes to route requests to Item_Controller
for dispatching, which in turn will generate get/post/put/delete
requests to the controlller so that each controller has a RESTful
surface.
Change in_place editing to take advantage of this.
2008-11-09 19:20:23 +00:00
Bharat Mediratta
e8d989ff9a
Simplify the CSS a bit.
2008-11-08 10:21:18 +00:00
Bharat Mediratta
0238925a63
Restrict our dom traversal to look only for span.gInPlaceEdit for speed.
2008-11-08 09:35:46 +00:00
Bharat Mediratta
950c58e6d3
Add support for in-place editing of data fields.
2008-11-08 09:28:11 +00:00
Bharat Mediratta
ac8199a09a
Tell users to install the user module before installing auth.
2008-11-08 07:51:19 +00:00
Bharat Mediratta
418c0aab69
Create permanent owner_id column in the item table, and use a soft
...
relationship to bind the two. To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08 07:48:36 +00:00
Bharat Mediratta
ea7cc4f46e
Simplify the way that we find the user id (just look it up, and if there's a database exception use the null value)
2008-11-08 07:27:46 +00:00
Felix Rabinovich
28b739a210
Adding user (owner) to items; info module
2008-11-08 07:18:56 +00:00
Bharat Mediratta
36d1be4717
44 --> E_DATABASE_ERROR
2008-11-08 05:12:37 +00:00
Tim Almdal
d025155314
The start of an authentication module. This provides the installation and a basic install test. There is no interface at the moment to do authentication. It is dependent on the install of the user module.
2008-11-08 01:56:59 +00:00
Tim Almdal
57683d5b70
Change how the modules table doesn't exist is caught. In running unit test, sometimes i would get the message "There was an SQL error: Table 'gallery3_unittest.modules' doesn't exist - ...." and sometimes I would get the message "Table modules does not exist in your database." In both cases the error code was 44.
2008-11-08 01:19:03 +00:00
Bharat Mediratta
dc90ad9739
Change add() to add photos:albums at a ratio of 10:1
2008-11-07 10:46:06 +00:00
Bharat Mediratta
81ab478559
move block.html.php into the default theme
2008-11-07 07:37:49 +00:00
Bharat Mediratta
76436c0029
Add automatic pagination. All you have to do is add <?= $theme->pager
...
?> to your theme file and you get a well formed pager. Themes can
customize this any way they want. A version that matches the mockup
is provided in the default theme.
2008-11-07 07:33:43 +00:00
Bharat Mediratta
ae359b50e0
Use get_object_vars to simplify code
2008-11-07 07:31:11 +00:00
Bharat Mediratta
936decb437
Add children_count() to ORM_MPTT
2008-11-07 06:46:38 +00:00
Bharat Mediratta
6b5b5ec3a6
Use jquery.cookie to keep the same tab open when you refresh
...
Add a switch to turn profiling on/off
2008-11-07 05:49:45 +00:00
Bharat Mediratta
c526a9cd25
Move default theme up above modules so that it can override module views
2008-11-07 05:04:15 +00:00
Bharat Mediratta
6f1c46da6e
Oops, these files got left out of r18525.
2008-11-06 10:22:34 +00:00
Bharat Mediratta
6cafc61f96
album::set_thumbnail is now part of Item_Model so it can go.
...
Fix a bug in the scaffolding where we weren't saving the album after
adding its thumbnail (so its dimensions weren't getting set).
2008-11-06 05:51:20 +00:00
Bharat Mediratta
d6e942f2e3
Add quick-link to the deepest photo to test hierarchical navigation
2008-11-06 04:56:50 +00:00
Bharat Mediratta
3fe8cd7135
Drop the ? from the base url; we're going to count on Apache PathInfo for navigation.
2008-11-06 04:55:22 +00:00
Chad Kieffer
c4407f7bda
spruce up the display of commands
2008-11-06 04:37:28 +00:00