Commit Graph
2082 Commits
Author SHA1 Message Date
Tim Almdal 75527db81f Clean up alignment in the login menu when the login form is displayed 2008-11-12 17:08:53 +00:00
Tim Almdal 2019e9a931 Remove user_password class and move the functionality into the user helper class 2008-11-12 15:53:39 +00:00
Jozef Selesi 56dcb953b0 Code cleanup, add test for time formatting function. 2008-11-12 15:43:05 +00:00
Jozef Selesi a1ca946a89 Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc. 2008-11-12 12:00:13 +00:00
Bharat Mediratta ed8f1d4152 gBlockContent lives on the outer div, so remove it from the inner form. 2008-11-12 10:54:01 +00:00
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
Jozef Selesi 31bea40e2e Set svn:eol-style LF on a new file and add the standard preamble to some files. 2008-11-12 07:07:13 +00:00
Tim Almdal 1da2428183 More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup 2008-11-12 03:40:49 +00:00
Tim Almdal 49e44f29f2 Added a generic style .gDisplayNone 2008-11-12 03:22:48 +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 ba348181f7 Rename tag_cloud.html.php to tags_block.html.php for consistency 2008-11-11 23:12:16 +00:00
Bharat Mediratta 3024d2313b Turn IN_PRODUCTION to false while we work on G3 2008-11-11 23:10:39 +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 b0a3308740 Minor cleanup; localization, indentation, etc. 2008-11-11 22:46:25 +00:00
Jozef Selesi 752459c64c Display comments from the database. 2008-11-11 20:54:12 +00:00
Tim Almdal dd9058ada4 Added some functionality to the user helper class (to check if the user is logged in) and changed the header to use the helper class 2008-11-11 20:16:58 +00:00
Tim Almdal 8223018a0b Property update 2008-11-11 20:04:15 +00:00
Tim Almdal f5d092b484 Correct some missing properties and change the user_model to have a set function so the password is hashed as part of the model 2008-11-11 20:02:43 +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
Jozef Selesi 76b3bdd40c Set svn:eol-style to LF on lib/ 2008-11-11 11:22:29 +00:00
Jozef Selesi c59481e615 Set svn:eol-style to LF. 2008-11-11 11:15:05 +00:00
Andy Staudacher 900f60d274 Fix header URLs (no longer hardcoded, avoiding nesting of index.php/index.php/ for some environments) 2008-11-11 10:14:01 +00:00
Andy Staudacher 71f8a0e8fe Fix config paths for MS Windows (kohana's URL router depends on normalized directory separators) 2008-11-11 10:06:38 +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
Tim Almdal 62bb63a70d New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration. 2008-11-11 04:57:49 +00:00
Bharat Mediratta db6917b58b Use select_list() to allow for a single assert_equal in our tests. 2008-11-10 22:08:02 +00:00
Bharat Mediratta 253ae3e003 Use alternate form of ORM::factory to reduce code. 2008-11-10 21:56:46 +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
Tim Almdal 7bcf7efc09 Remove the complexity of a interface driven user management module 2008-11-10 21:29:30 +00:00
Tim Almdal 0a8d5edbdc Early look at the User/Auth module refactoring. It will look for a driver based on the contents of the user/config/user.php file. And load that driver based on the User_Driver interface. There is a default User_Gallery_Driver class that will provide the actual interface implementation. Replacing this driver will allow a completely different user and authentication implementation to be used... hopefully will reduce issues with embedding and other user management systems. Removed from unit tests so they will still run. 2008-11-10 20:17:09 +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 92b1ae14f9 Require short_open_tag to be enabled, or die. 2008-11-10 16:36:08 +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
Bharat Mediratta aceb030973 Raise upload_max_filesize and post_max_size to very high values 2008-11-10 12:28:05 +00:00
Jozef Selesi d8c2399b96 Prevent direct script access. 2008-11-10 11:40:48 +00:00
Bharat Mediratta 8cb0acbbb0 Indent fixes 2008-11-10 09:39:31 +00:00
Chad Kieffer 4f80dddbd1 Indent fixes 2008-11-10 07:57:43 +00:00
Bharat Mediratta 8903daee31 Convert a few more images to ../images 2008-11-10 07:48:19 +00:00
Bharat Mediratta 2210d52007 Switch image paths to relative 2008-11-10 07:47:08 +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