Commit Graph

  • 7423c755c0 aliasing owner to user Felix Rabinovich 2008-11-12 08:30:55 +00:00
  • 31bea40e2e Set svn:eol-style LF on a new file and add the standard preamble to some files. Jozef Selesi 2008-11-12 07:07:13 +00:00
  • 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 Tim Almdal 2008-11-12 03:40:49 +00:00
  • 49e44f29f2 Added a generic style .gDisplayNone Tim Almdal 2008-11-12 03:22:48 +00:00
  • 51c64f1d28 Create a simple benchmark that loads 500 localized messages and performs 500 localizations on them. Bharat Mediratta 2008-11-12 00:05:47 +00:00
  • ba348181f7 Rename tag_cloud.html.php to tags_block.html.php for consistency Bharat Mediratta 2008-11-11 23:12:16 +00:00
  • 3024d2313b Turn IN_PRODUCTION to false while we work on G3 Bharat Mediratta 2008-11-11 23:10:39 +00:00
  • fd4faa89e6 Override View_Core::render so that we trap errors stemming from bad PHP includes and show a visible stack trace to help developers. Bharat Mediratta 2008-11-11 23:07:30 +00:00
  • b0a3308740 Minor cleanup; localization, indentation, etc. Bharat Mediratta 2008-11-11 22:46:25 +00:00
  • 752459c64c Display comments from the database. Jozef Selesi 2008-11-11 20:54:12 +00:00
  • 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 Tim Almdal 2008-11-11 20:16:58 +00:00
  • 8223018a0b Property update Tim Almdal 2008-11-11 20:04:15 +00:00
  • 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 Tim Almdal 2008-11-11 20:02:43 +00:00
  • a15c7cb11f Change the PUT/DELETE tunneling param from __action to _method to be like Rails. Bharat Mediratta 2008-11-11 13:11:20 +00:00
  • ee413f5f39 Updated for recent Item_Controller API change Bharat Mediratta 2008-11-11 13:00:11 +00:00
  • 1651b3fe85 Move scaffolding code out of the comments controller to welcome.php. Jozef Selesi 2008-11-11 12:20:20 +00:00
  • 76b3bdd40c Set svn:eol-style to LF on lib/ Jozef Selesi 2008-11-11 11:22:29 +00:00
  • c59481e615 Set svn:eol-style to LF. Jozef Selesi 2008-11-11 11:15:05 +00:00
  • 900f60d274 Fix header URLs (no longer hardcoded, avoiding nesting of index.php/index.php/ for some environments) Andy Staudacher 2008-11-11 10:14:01 +00:00
  • 71f8a0e8fe Fix config paths for MS Windows (kohana's URL router depends on normalized directory separators) Andy Staudacher 2008-11-11 10:06:38 +00:00
  • 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. Tim Almdal 2008-11-11 07:39:20 +00:00
  • 87f1115113 Change REST API to use non-routable functions: _get(), _post(), _put(), _delete(). Bharat Mediratta 2008-11-11 07:29:48 +00:00
  • d35f337b7b Add phpdocs to explain how to use REST_Controller Bharat Mediratta 2008-11-11 06:24:30 +00:00
  • 9f261213a5 Reset PasswordHash.php to its original state and exclude it from the file_structure_test Tim Almdal 2008-11-11 06:21:21 +00:00
  • 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. Bharat Mediratta 2008-11-11 06:18:45 +00:00
  • 62bb63a70d New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration. Tim Almdal 2008-11-11 04:57:49 +00:00
  • db6917b58b Use select_list() to allow for a single assert_equal in our tests. Bharat Mediratta 2008-11-10 22:08:02 +00:00
  • 253ae3e003 Use alternate form of ORM::factory to reduce code. Bharat Mediratta 2008-11-10 21:56:46 +00:00
  • ffa39aabb9 Manually delete the auth table and module entry to ease transitions for devs. Bharat Mediratta 2008-11-10 21:55:27 +00:00
  • 7bcf7efc09 Remove the complexity of a interface driven user management module Tim Almdal 2008-11-10 21:29:30 +00:00
  • 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. Tim Almdal 2008-11-10 20:17:09 +00:00
  • ddf0a51900 Comment creation controller, helper and test. Add comments from the scaffold. Jozef Selesi 2008-11-10 17:32:04 +00:00
  • 359e28a50f Remove Auth module Tim Almdal 2008-11-10 16:45:06 +00:00
  • d4415d0d3e Reset the links in the header and update the readme Tim Almdal 2008-11-10 16:36:56 +00:00
  • 92b1ae14f9 Require short_open_tag to be enabled, or die. Bharat Mediratta 2008-11-10 16:36:08 +00:00
  • 7a1b2b0ca7 Add a test to make sure that we have no windows-style line endings. Bharat Mediratta 2008-11-10 15:33:55 +00:00
  • ceb0782233 Add support for multi-file-upload using jquery.MultiFile and modify Item_Controller to accept it. Bharat Mediratta 2008-11-10 12:28:58 +00:00
  • aceb030973 Raise upload_max_filesize and post_max_size to very high values Bharat Mediratta 2008-11-10 12:28:05 +00:00
  • d8c2399b96 Prevent direct script access. Jozef Selesi 2008-11-10 11:40:48 +00:00
  • 8cb0acbbb0 Indent fixes Bharat Mediratta 2008-11-10 09:39:31 +00:00
  • 4f80dddbd1 Indent fixes Chad Kieffer 2008-11-10 07:57:43 +00:00
  • 8903daee31 Convert a few more images to ../images Bharat Mediratta 2008-11-10 07:48:19 +00:00
  • 2210d52007 Switch image paths to relative Bharat Mediratta 2008-11-10 07:47:08 +00:00
  • 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 :-) Tim Almdal 2008-11-10 03:17:56 +00:00
  • 5e385398f0 IE fixes. Default theme now looks roughly the same in IE and Firefox. We need to avoid using absolute and relative positioning for our primary layout containers (i.e. gHeader, gFooter, etc.). Chad Kieffer 2008-11-10 02:16:09 +00:00
  • c2162a645a Clean up HTML for adding albums/photos a tad. Bharat Mediratta 2008-11-10 00:34:02 +00:00
  • b006b1922c uninstall and reinstall the comment module, too Bharat Mediratta 2008-11-10 00:26:52 +00:00
  • b5f2443bb5 Add the ability to create albums to the scaffolding Revert $_POST back to $this->input->post() because that supports default values. Bharat Mediratta 2008-11-10 00:25:59 +00:00
  • 49f3794894 jQuery edit in place is so easy, seems like it oughta be added to the photo view :) Chad Kieffer 2008-11-10 00:24:01 +00:00
  • 085ba7cd46 Tests for Item_Controller Bharat Mediratta 2008-11-10 00:16:41 +00:00
  • c054b4de04 Convert quote styles Convert $this->input->post to $_POST Bharat Mediratta 2008-11-10 00:16:03 +00:00
  • 223cba531e Rename tests to make room for controller tests Album_Test -> Album_Helper_Test Photo_Test -> Photo_Helper_Test Bharat Mediratta 2008-11-09 23:49:09 +00:00
  • 1ba012db0e Chain away temporary variables Bharat Mediratta 2008-11-09 23:45:47 +00:00
  • e7155c09c5 Implement Item_Controller::put() and delete() Adjust/simplify photo::create Add image uploading to the scaffolding Bharat Mediratta 2008-11-09 23:40:28 +00:00
  • aa437293e6 Fix line endings. Jozef Selesi 2008-11-09 23:34:03 +00:00
  • 25dd0bbf1c style fix Bharat Mediratta 2008-11-09 23:29:05 +00:00
  • 434e56351e Install/uninstall support for the comment module. Missing from the previous commit. Jozef Selesi 2008-11-09 23:06:31 +00:00
  • 46a67a4b6d IE fixes, sidebar is now fixed in IE (we were missing a yui-g class). Removed .first class, it's not needed, at least not now. Moved all top-level layout containers to page.html.php so that if themers want to replace YUI grids with something else, like Blueprint, they only really need to edit page.html.php. Chad Kieffer 2008-11-09 23:03:50 +00:00
  • 24decb7fa4 Beginnings of the comment module. Install and uninstall. Jozef Selesi 2008-11-09 22:57:55 +00:00
  • 85b909a9f9 CSS cleanup. Alphabetized all CSS attributes. Use short form declaration for background. Don't precede decimal values with 0 (.8em instead of 0.8em). Convert colors to short form, use lower case hex alpha values (easier to read), convert keyword colors to hex values. Quoted url paths. Fixed the order of border attributes (width style color). Don't clear floated elements around #gContent. Chad Kieffer 2008-11-09 20:07:47 +00:00
  • 1b490c5fe6 Make Gallery3 more RESTful. Bharat Mediratta 2008-11-09 19:20:23 +00:00
  • 065bbb2120 try to disable register_globals Bharat Mediratta 2008-11-09 19:10:48 +00:00
  • 4cc70a1851 change url::base() to url::file() Bharat Mediratta 2008-11-09 18:54:17 +00:00
  • a8713a7695 Allow in-place editing in the info block. Bharat Mediratta 2008-11-08 19:11:12 +00:00
  • e8d989ff9a Simplify the CSS a bit. Bharat Mediratta 2008-11-08 10:21:18 +00:00
  • 0238925a63 Restrict our dom traversal to look only for span.gInPlaceEdit for speed. Bharat Mediratta 2008-11-08 09:35:46 +00:00
  • 950c58e6d3 Add support for in-place editing of data fields. Bharat Mediratta 2008-11-08 09:28:11 +00:00
  • ac8199a09a Tell users to install the user module before installing auth. Bharat Mediratta 2008-11-08 07:51:19 +00:00
  • 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. Bharat Mediratta 2008-11-08 07:48:36 +00:00
  • 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) Bharat Mediratta 2008-11-08 07:27:46 +00:00
  • 28b739a210 Adding user (owner) to items; info module Felix Rabinovich 2008-11-08 07:18:56 +00:00
  • 3bb9b9185c Standardize on a format for exceptions messages new Exception("@todo ERROR_MESSAGE"); Tim Almdal 2008-11-08 05:30:41 +00:00
  • 36d1be4717 44 --> E_DATABASE_ERROR Bharat Mediratta 2008-11-08 05:12:37 +00:00
  • 73488d5ee9 Remove inappropriate comments Bharat Mediratta 2008-11-08 05:11:58 +00:00
  • 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. Tim Almdal 2008-11-08 01:56:59 +00:00
  • 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. Tim Almdal 2008-11-08 01:19:03 +00:00
  • dc90ad9739 Change add() to add photos:albums at a ratio of 10:1 Bharat Mediratta 2008-11-07 10:46:06 +00:00
  • 30c4433b44 Fix the child url to use the item type. Bharat Mediratta 2008-11-07 10:44:49 +00:00
  • 70e96fbaf0 add gMinimize to the block header Bharat Mediratta 2008-11-07 08:54:30 +00:00
  • 04d4ea27ee indentation fixes Bharat Mediratta 2008-11-07 08:53:42 +00:00
  • e0f8541fef Renamed .minimize to .gMinimize Chad Kieffer 2008-11-07 07:41:50 +00:00
  • 81ab478559 move block.html.php into the default theme Bharat Mediratta 2008-11-07 07:37:49 +00:00
  • 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. Bharat Mediratta 2008-11-07 07:33:43 +00:00
  • 50a9848f38 Updated CSS organization and headings, removed unused styles, added placeholders for a few styles, including gThumbnail. Simplified album grid loop, the thumbnail container markup for albums and items was almost identical, no need to repeat all of it. Switched album grid markup from <div> to <ul>. Updated element nesting in photo template. Chad Kieffer 2008-11-07 07:31:58 +00:00
  • ae359b50e0 Use get_object_vars to simplify code Bharat Mediratta 2008-11-07 07:31:11 +00:00
  • 936decb437 Add children_count() to ORM_MPTT Bharat Mediratta 2008-11-07 06:46:38 +00:00
  • 6a1ef44c88 convert tabs -> spaces Bharat Mediratta 2008-11-07 06:44:36 +00:00
  • 6b5b5ec3a6 Use jquery.cookie to keep the same tab open when you refresh Add a switch to turn profiling on/off Bharat Mediratta 2008-11-07 05:49:45 +00:00
  • c526a9cd25 Move default theme up above modules so that it can override module views Bharat Mediratta 2008-11-07 05:04:15 +00:00
  • 7329cb0dde Added YUI 2.6.0 CSS collection to lib (reset-gonts-grids and base) and call these rather than CDN versions, for now. Renamed default theme's style sheet to screen.css, recommend that CSS files be named for the primary media they support. Removed unused YUI JS component calls from the default theme. Chad Kieffer 2008-11-07 05:03:00 +00:00
  • 6f1c46da6e Oops, these files got left out of r18525. Bharat Mediratta 2008-11-06 10:22:34 +00:00
  • 93fd448e7e Break header/sidebar/footer out into separate templates. Bharat Mediratta 2008-11-06 07:24:58 +00:00
  • 278191dd6d Change the theming module again, per a discussion with Chad and Jakob. Now we have an overall page layout (page.html.php) which has a $content variable, and that $content will be one of several possible secondary views. Currently, it is either photo.html.php or album.html.php. Bharat Mediratta 2008-11-06 07:20:06 +00:00
  • 6cafc61f96 album::set_thumbnail is now part of Item_Model so it can go. Bharat Mediratta 2008-11-06 05:51:20 +00:00
  • d6e942f2e3 Add quick-link to the deepest photo to test hierarchical navigation Bharat Mediratta 2008-11-06 04:56:50 +00:00
  • 3fe8cd7135 Drop the ? from the base url; we're going to count on Apache PathInfo for navigation. Bharat Mediratta 2008-11-06 04:55:22 +00:00
  • c4407f7bda spruce up the display of commands Chad Kieffer 2008-11-06 04:37:28 +00:00
  • cf27982466 When uninstalling the core, uninstall all the other modules first. Otherwise, when you reinstall the other module's tables are still hanging around and interfere with their install. Bharat Mediratta 2008-11-06 03:58:37 +00:00
  • 2738d4b6a6 Fix a typo. Bharat Mediratta 2008-11-06 03:55:32 +00:00
  • ef4b125796 Uninstall/reinstall modules in the right order and catch exceptions (fixes test failures) Bharat Mediratta 2008-11-06 03:51:30 +00:00