Commit Graph
2082 Commits
Author SHA1 Message Date
Bharat Mediratta 4ab53d145b Create Image::composite() and implement it in GD, ImageMagick and GraphicsMagick drivers. 2008-12-29 23:25:28 +00:00
Bharat Mediratta 4439ca94a9 Don't let the x/y coordinates in composite go negative. 2008-12-29 23:12:26 +00:00
Tim Almdal f5136051c9 Filter on published in Comment_Controller::_index() 2008-12-29 22:59:44 +00:00
Bharat Mediratta 6ab195854d Remove rest::JSON content type; it's causing lots of problems and it doesn't directly help since text/html works just as well for our JSON communications 2008-12-29 22:41:53 +00:00
Bharat Mediratta 29c925a3cc Properly implement graphics::composite() 2008-12-29 22:31:06 +00:00
Bharat Mediratta 776123496b Add transparency support 2008-12-29 22:30:19 +00:00
Bharat Mediratta 763cc32caf Return the task on success so that our UI can show it at 100% 2008-12-29 21:28:28 +00:00
Bharat Mediratta 26417f6dd4 Replace __CSRF__ token with a real csrf. This allows links in site status messages to persiste across sessions. 2008-12-29 21:27:46 +00:00
Bharat Mediratta ef4ec6d513 Oops, my last change broke the default resize dimensions 2008-12-29 21:25:51 +00:00
Tim Almdal 69603ede7a Implemented bharat's suggestions to the comment module in preparation for the spam_filter module 2008-12-29 21:09:44 +00:00
Bharat Mediratta 2bfddc4c87 Make graphics rules take named parameters. This will give us some
flexibility in the future.
2008-12-29 20:20:10 +00:00
Bharat Mediratta 8102d8ea77 Clean up _update_graphics_rules() to make it more robust 2008-12-29 20:17:24 +00:00
Tim Almdal 95f1440ef2 Changes to the comment module to support spam filtering. Basically added two columns to the comment table. The url of the author's web site(default null) and a flag to indicate that the comment is visible (default true).
The comment block has changed to only display comments that are visible.

And there is code added to call the spam_filter helper if the spam_filter module is installed.
2008-12-29 19:37:19 +00:00
Bharat Mediratta 3c0be5156b url::site is implicit in Forge actions, don't specify it a 2nd time 2008-12-29 18:38:40 +00:00
Chad Kieffer 62cd05fb16 Apply button bg image to Superfish menu items. 2008-12-29 06:12:00 +00:00
Bharat Mediratta 8fe1990c99 Don't set the document type to JSON when uploading photos. 2008-12-29 04:20:25 +00:00
Bharat Mediratta 22a7983bbd Re-add $theme->messages(), which got accidentally removed. 2008-12-29 04:12:21 +00:00
Bharat Mediratta e6da2234e7 Relax the rules a bit 2008-12-29 03:51:53 +00:00
Bharat Mediratta 3cfc9afde4 Remove references to permanent_key 2008-12-29 03:50:48 +00:00
Bharat Mediratta b46bfdd492 Separate permanent messages out of the message helper and put them
into site_status.  Show site status in the header in the admin theme.
2008-12-29 00:35:31 +00:00
Bharat Mediratta ed8689f768 Expand on the maintenance code to make it more robust and give the
admin more control.  You can now track running tasks, resume stalled
tasks, cancel running tasks, and remove finished tasks.

Added graphics::compose() as a placeholder for future watermark
operations.

Added CSRF protection to maintenance urls.
2008-12-28 23:48:15 +00:00
Felix Rabinovich 1d76689e4b Add title back to non-DHTML form to maintain consistency 2008-12-28 22:49:58 +00:00
Bharat Mediratta 1161cefada Javascript wrapper to ping tasks 2008-12-28 10:14:12 +00:00
Bharat Mediratta 74d4e7d505 First round of a task framework. Tasks are job definitions stored in
the database.  They're started with admin/maintenance/start/[task_name]
which sends down some JS/HTML which regularly pings the task at
admin/maintenance/start/[task_id] until its done.

The UI is still very rough.  It works, though!
2008-12-28 10:12:41 +00:00
Chad Kieffer aff2af5e1f Tighten up album grid display. Vertically align thumbnail/metadata in gItem container. Brought back borders. Use a neutral bg color for albums. Link item titles, not just thumbnails. 2008-12-28 07:33:09 +00:00
Chad Kieffer dc62e4167e Rename pagination icons to follow convention. 2008-12-27 17:16:21 +00:00
Chad Kieffer ef27cd4c33 Icon refinement 2008-12-27 17:01:42 +00:00
Bharat Mediratta 9904c0e5ff Ignore resizes for albums when calculating the dirty count 2008-12-27 03:37:09 +00:00
Bharat Mediratta f808dd9d01 Add clear_permanent() 2008-12-27 03:35:57 +00:00
Felix Rabinovich a26127ae9c Added title to user/group administration dialogs 2008-12-26 20:34:56 +00:00
Felix Rabinovich 6b1fa62173 Added content type to JSON output functions 2008-12-26 20:08:15 +00:00
Bharat Mediratta 7fdde469d3 Move Watermarks under Content in the Site Admin menu. 2008-12-26 18:59:41 +00:00
Felix Rabinovich 6dcc3e5c25 User/Group administration cleanup 2008-12-26 06:14:24 +00:00
Chad Kieffer 4dda9c5a6e Comment and indent cleanup. Forgot to delete an image in a previous commit. 2008-12-26 06:09:43 +00:00
Felix Rabinovich 2917af5c0d Separate GET and POST in Group Administration 2008-12-26 05:45:09 +00:00
Bharat Mediratta ecf7d46a67 Add the graphics rules for both thumbs and resizes (instead of just thumbs). 2008-12-26 05:44:02 +00:00
Bharat Mediratta dee20ed6a2 Added the concept of "permanent" messages that we show to admins. Use
this to show a "your thumbs/resizes are out of date" message whenever
we change the graphics rules.  Tweak watermark module to add graphics
rules whenever we make a change, which triggers the graphics module to
add the permanent message.
2008-12-26 05:43:06 +00:00
Felix Rabinovich 0bef37eb0b To reset a form use resetForm 2008-12-26 05:36:08 +00:00
Felix Rabinovich 72c3a417ca Separate GET and POST in User Administration 2008-12-26 05:26:22 +00:00
Chad Kieffer 2d40715f44 The close icon's a background sprite, should be prefixed with bg- not ico-. 2008-12-26 05:15:57 +00:00
Bharat Mediratta 0630dc9a8e Fix get_add_form() to use self::positions() so that we get the right key/value pairs. 2008-12-26 05:14:00 +00:00
Bharat Mediratta b5e1aa6a60 Login is 'info' not 'success' 2008-12-26 05:11:42 +00:00
Bharat Mediratta e31ca19a06 Added graphics::mark_all_dirty(). The watermark code now marks images
as dirty if the admin changes the watermark at all.
2008-12-26 04:52:18 +00:00
Bharat Mediratta 11d4c2d126 Fix a bug I introduced when I switched from module id to module name; now deleting cleans up vars and graphics rules 2008-12-26 04:49:28 +00:00
Bharat Mediratta df3f0c3382 Add missing '=' causing <img> height not to get set. 2008-12-26 04:35:44 +00:00
Felix Rabinovich c154f9f20a Group Administration 2008-12-26 04:35:27 +00:00
Bharat Mediratta 837a5430b8 More watermark changes:
Change admin/watermarks/upload -> admin/watermarks/add for consistency.

Internationalize position text, store it as text in the database,
display it to the admin.

Make i18n strings consistent to reduce l10n load.
2008-12-26 04:34:20 +00:00
Chad Kieffer b20b56d762 Major image cleanup, removed unsued images. Combined separate background and icon state images into sprites. Fix dialog artifact in Chrome. 2008-12-26 04:27:39 +00:00
Bharat Mediratta 2011ee13ef Remove an HTTP redirect that was breaking the Ajax interface. 2008-12-26 04:02:55 +00:00
Bharat Mediratta 6b45be9632 Fix a typo. 2008-12-26 03:56:12 +00:00