Commit Graph
721 Commits
Author SHA1 Message Date
Bharat Mediratta b31c79a71f Fix a bug that I think I introduced in my last sendmail refactor where
I inverted the expectations on the result from mail() causing image
uploads to fail (even though the mail gets sent!)
2009-02-08 20:01:15 +00:00
Tim Almdal 3b944bca5d Use the ORM method delete_all to remove selected records from the
database instead of calling the Database::query with raw sql.
2009-02-08 18:03:31 +00:00
Bharat Mediratta 3a83c4e76f Properly implement changing the thumbnail and resized image sizes by
updating the graphics rules as appropriate.
2009-02-08 10:18:09 +00:00
Bharat Mediratta 442d9295c6 Change mark_all_dirty to mark_dirty and specify what we want to mark dirty. This will be useful for Admin_Theme_Details 2009-02-08 06:40:57 +00:00
Tim Almdal 41ed142f5d A better fix for the problem with special characters (this simple 2
line change replaces r19995, r19998-r20001 (thanks Bharat)
2009-02-08 02:27:45 +00:00
Tim Almdal 1fc2307fab rollback r20001-r19998, r19995. This may require a reinstall 2009-02-08 02:21:28 +00:00
Bharat Mediratta 7ebbe189d4 Implement the "additional options" part of the quick menu. It's only
for albums, because we don't currently have additional options for
photos yet.
2009-02-08 00:42:17 +00:00
Bharat Mediratta 1d9a3f70b1 Fix indentation. 2009-02-07 21:37:42 +00:00
Tim Almdal 12701b1801 The start of the exif module. so I can merger the exifer library 2009-02-07 21:21:08 +00:00
Tim Almdal 54646583bc Remove the try/catch as it was being fixed twice 2009-02-07 21:05:04 +00:00
Tim Almdal 90277704a2 Changed the way album and photo creation guards against duplicate
names.
Added similiar code to insure that path names are not duplicated.
2009-02-07 18:12:06 +00:00
Tim Almdal 69e0d72b93 Updated comments on photo::create to reflect the inclusion of the
owner_id and shamelessly broke it into two changes to to the 20k commit.
2009-02-07 17:27:09 +00:00
Tim Almdal 43dff9f95f Updated comments on album::create to reflect the inclusion of the owner_id 2009-02-07 17:26:17 +00:00
Tim Almdal a3704c8dd8 Assign the Album|Photo path field explicitly instead of hiding that in
the item::__set magic method.
2009-02-07 17:16:48 +00:00
Tim Almdal 8a738ed241 Correct comment on factory 2009-02-06 22:10:08 +00:00
Tim Almdal 4e107dac41 Implement fix for ticket #35. *** Requires reinstall of core ***
* Added new field in items table (path) which is sanitized version of
name.
* Added __set method on Items_module to set the path field whenever
the name field is changed.
* Made some changes to the scaffolding so missing the path column
would not kill the scaffolding.
* Changed MY_url::site so not having a 3rd parameter won't throw an error.
2009-02-06 16:39:18 +00:00
Chad Kieffer 67d551d5e3 jQuery-based buttons! Form updates, short form updates. Need to fix add user/group buttons and search form on search results page. 2009-02-06 06:34:47 +00:00
Tim Almdal 80d4df3a4a Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
2009-02-06 03:47:36 +00:00
Chad Kieffer c166042313 Apply default link styles to links in dialogs, including the Forgot Password link. 2009-02-06 01:47:42 +00:00
Tim Almdal 04fe9da190 Addressed the issues in ticket 34.
Surround the the attempt to use gd_info with a try catch block.
Created a new class gInstalledToolkit which has the highlighting and
the over pointer definition.  Now if you mouse across an inactive
toolkit it remains inert.
2009-02-05 23:29:44 +00:00
Chad Kieffer 7521465ec3 Use jQuery UI close icon for full size close. Quote and code cleanup 2009-02-05 22:34:29 +00:00
Tim Almdal 4607c2521e Improve the close icon so it doesn't look as much like an envelope.
Also add resizing to the fullsize image if the windo size changes.
2009-02-05 20:44:24 +00:00
Tim Almdal 63ca443649 Add full size image display. Changes the core menu now checks that the
user has authotization before displaying the view fullsize icon.  It
probably needs a better icon, (but u make do with what u have or don't
have :-) )
2009-02-05 18:12:33 +00:00
Bharat Mediratta 79dda6a0c2 Rename "welcome" controller to "scaffold" so that we can eventually
have a welcome page.
2009-02-05 08:39:12 +00:00
Bharat Mediratta 3e54159d5c Guard against the case where gd_info() isn't defined 2009-02-05 08:38:15 +00:00
Bharat Mediratta 1894a673bf Move test-related extensions to Sendmail into a subclass that we only
use in the test code (Sendmail_For_Test).
2009-02-05 07:51:11 +00:00
Bharat Mediratta 9e2b84d406 Minor code style changes. 2009-02-05 05:52:03 +00:00
Bharat Mediratta c63c843f18 Drop scaffolding menu link if welcome.php is missing. 2009-02-03 09:43:47 +00:00
Bharat Mediratta cf45795525 Doh! Fix a bug in add_after() that caused it to drop the item we were adding it after. 2009-02-03 09:42:07 +00:00
Andy Staudacher 5d0b710d54 Fix sendmail tests (had mismatch between configured header separator and expected results) 2009-02-02 07:05:02 +00:00
Andy Staudacher 4842df9dc9 Do 1 DB query for l10n per HTTP request (per locale), not one per t() call. 2009-02-02 06:32:42 +00:00
Tim Almdal a70f3bf386 Have the quick delete file "item_before_delete" so that search and
notification modules can do their thing.  In addition, correct search
so it works properly and doesn't try to create an Item_id_Model class.
2009-02-02 04:58:19 +00:00
Tim Almdal 41dbe5cf6c Changed the Sendmail library to allow the separator between mail
headers to be specified as a parameter.  The documents say that it
should be "\r\n".  Some sendmail programs seem to violate the
specification and get confused.  In these cases the header separator
is just "\n".

This change allows the header separator to be set by the a
configuration parameter.
2009-02-02 02:58:12 +00:00
Tim Almdal d49484c9a6 Update the handling of the to field if the input field is an array 2009-02-01 03:55:40 +00:00
Tim Almdal 7239a4d8bc Add the ability to generate the id parameter on Menu Dialog. 2009-01-29 18:25:14 +00:00
Bharat Mediratta b4f92c7de6 Add delete support as a quick-edit option 2009-01-29 09:26:39 +00:00
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
Bharat Mediratta ad82721c3b Fix an off-by-one issue-- the destination level is the target's child, not the target itself. 2009-01-29 03:17:09 +00:00
Bharat Mediratta 8d4b0afa4f Support making an album the album cover for its parent 2009-01-29 03:14:43 +00:00
Bharat Mediratta 01d81ec6b4 Update the level when moving items 2009-01-29 02:57:29 +00:00
Bharat Mediratta d2b4c636c2 replace title with level, for ease in diagnosing levelling issues. 2009-01-29 02:53:54 +00:00
Bharat Mediratta b7bfd011cb Remove extra debug call to install() 2009-01-29 02:19:52 +00:00
Bharat Mediratta f85bc9bb7b Consolidate all our hooks into one file 2009-01-29 01:47:28 +00:00
Bharat Mediratta 33d7fa8cf6 Make the application home page the scaffolding. 2009-01-29 01:38:40 +00:00
Bharat Mediratta 6bfadc14ed Fully implement the user administration backend with drag/drop to add
users to groups.
2009-01-28 22:42:50 +00:00
Bharat Mediratta 43b30c0ee2 Add Menu::add_after() 2009-01-28 19:25:01 +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 2a9d48f8bb Rename Admin_Themedetails -> Admin_Theme_Details 2009-01-27 07:47:55 +00:00
Bharat Mediratta 47067c72ea Remove unused theme code left over from before virshu moved theme
settings into Admin_Themedetails.
2009-01-27 07:30:28 +00:00
Bharat Mediratta 1633001d7f Update the album cover if necessary. 2009-01-25 07:58:58 +00:00