Tim Almdal
57adefc5ba
Revert "Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme."
...
This reverts commit 26114972c3 .
2009-11-19 11:44:01 -08:00
Tim Almdal
26114972c3
Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18 15:36:13 -08:00
Bharat Mediratta
1067e68292
Redesign the way that we consider page types to create buckets of page
...
types, and a subtype for specifics. Currently the top level bucket
collection, item, other
Here are the core subtypes so far:
collection: album, search, tag
item: movie, photo
other: login, reset, comment-fragment, comment
It's legal to create new page_subtypes whenever you want. Use the
appropriate page_type to get the coarse grain behavior that you want.
2009-11-17 14:04:45 -08:00
Bharat Mediratta
d368894d37
Add in proper template variables to support pagination.
2009-11-14 16:32:32 -08:00
Bharat Mediratta
29efb6ba9f
Rename "pager" to "paginator" so that we differentiate page.html.php
...
from paginator.html.php
2009-11-14 16:20:36 -08:00
Chad Kieffer
268ab9e079
Remove g-right from quick search form, leave positioning to the theme.
2009-11-01 10:41:24 -07:00
Tim Almdal
7ea13b3869
Normalize capitalization ticket #596
2009-10-28 12:15:52 -07:00
Chad Kieffer
fbc5517711
Initial RTL update work. Consolidated shared rtl-related css selectors in gallery.common. Applied g-right and g-left to a few banner items, including login menu and the logo.
2009-10-28 00:15:08 -06:00
Tim Almdal
6fb116c53b
Merge branch 'master' into talmdal_dev
2009-10-26 06:24:51 -07:00
Chad Kieffer
2b7a21dcbc
Add clearfix to search results gallery-grid to clear the pager navigation. Other minor search results style updates. Don't display legends in short forms.
2009-10-25 23:46:09 -06:00
Tim Almdal
f0610ccaa0
Merge branch 'master' into talmdal_dev
2009-10-24 08:23:51 -07:00
Tim Almdal
571d7fe43c
When doing a search we need to "OR" the view permissions not "AND" them. Fixes ticket #805 .
2009-10-24 08:18:17 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-16 08:53:31 -07:00
Chad Kieffer
0f7de6d137
Apply g-short-form directly to short forms rather than via JS. Comment updates in ui.init.js.
2009-10-16 08:50:57 -07:00
Chad Kieffer
c876ec1f50
Apply g-short-form directly to short forms rather than via JS. Comment updates in ui.init.js.
2009-10-16 00:00:52 -06:00
Bharat Mediratta
b6c1ba7ea6
Use SQL_CALC_FOUND_ROWS instead of doing the search twice, for better performance.
...
Fixes ticket #835 , thanks Joe7!
2009-10-11 11:22:41 -07:00
Chad Kieffer
4be3210f1d
Fixed previous over zealous find and replace.
2009-10-04 15:30:05 -06:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Tim Almdal
6458b47e3e
Remove the update code introduced with 9d7d79. In addition, captialize MyISAM correctly.
2009-09-17 12:38:59 -07:00
Tim Almdal
9d76797b17
Changed the search module installer to explicitly specify MyISAM as the database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774
2009-09-16 22:23:32 -07:00
Bharat Mediratta
2aad580f53
Move specialized (pretty) url generation back into Item_Model so that
...
we're not relying on overriding url::site() to do tricks around item
urls. This means that you won't get item urls by doing
url::site("albums/37"), for example, but it also means that we won't
get pretty urls where we don't expect them (like in the action of a
<form> element).
Incidentally, this will help us move over to using the slug format
because if you've got a bad character in a url, the edit forms will
now work on it since they'll be id based.
2009-09-08 13:44:52 -07:00
Andy Staudacher
2bc73e2e36
Fix XSS vectors in HTML attributes (mostly t() calls)
2009-08-31 21:51:57 -07:00
Andy Staudacher
ddb84c84e1
Rename mark_safe() to mark_clean()
2009-08-31 00:42:18 -07:00
Andy Staudacher
e7f5e0a9a3
Merge commit 'upstream/master'
...
Conflicts:
modules/gallery/views/l10n_client.html.php
modules/organize/views/organize_tree.html.php
modules/server_add/helpers/server_add_event.php
2009-08-30 18:27:40 -07:00
Bharat Mediratta
af6bfa3c71
Change the processing time for search_task and exif_task to start the
...
1.5 second counter only after we've done any expensive queries. This
guarantees at least some time to do work.
Fixes ticket #693 .
2009-08-30 13:29:05 -07:00
Andy Staudacher
effccfd41d
Change all instances of SafeString::of_safe_html() to html::mark_safe() in views.
2009-08-30 07:00:56 -07:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Andy Staudacher
b4b638be44
Undo url helper changes - url methods no longer return a SafeString.
...
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-08-29 16:28:30 -07:00
Andy Staudacher
a5dfc81a8f
Merge commit 'upstream/master'
...
Conflicts:
modules/akismet/views/admin_akismet.html.php
modules/comment/helpers/comment_rss.php
modules/gallery/helpers/gallery_rss.php
modules/gallery/libraries/I18n.php
modules/gallery/views/permissions_browse.html.php
modules/gallery/views/simple_uploader.html.php
modules/info/views/info_block.html.php
modules/organize/controllers/organize.php
modules/organize/views/organize.html.php
modules/organize/views/organize_album.html.php
themes/default/views/album.html.php
themes/default/views/movie.html.php
themes/default/views/photo.html.php
2009-08-29 14:17:48 -07:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
Bharat Mediratta
4828db003f
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
...
the system's default table specification. Fixes ticket #597 .
2009-08-27 15:47:54 -07:00
Bharat Mediratta
7863aa16f9
Update tags module to notify modules when items related to a tag are
...
affected. Practically speaking this means that we'll reindex items
when tags are added or removed from them.
API change:
Remove item_related_updated_batch event.
Rationale:
While this is an efficient event, it requires module developers to
support two event APIs for staying up to date and increases the
likelihood that they'll forget one and have data corruption. Force
them all through the slower but more reliable pipe, for now. We
can always try to improve efficiency by using the batch_start and
batch_stop events.
2009-08-08 14:30:21 -07:00
Bharat Mediratta
7ad0808a11
Change the API for getting to the original state of an ORM.
...
Old API: $obj->original("field_name")
New API: $obj->original()->field_name
This allows us to revert the varous xxx_updated events back to passing
an original ORM as well as the the updated one. This makes for a
cleaner event API.
Old API: comment_updated($comment) { $comment->original("field_name") }
Old API: comment_updated($old, $new) { $old->field_name }
2009-08-02 12:09:00 -07:00
Tim Almdal
eb90fc9e63
Remove debugging print statement in search.php
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-30 01:32:24 +08:00
Bharat Mediratta
44bc74edb9
Change search callbacks to use the event system, so move them out of
...
xxx_search helpers and into xxx_event helpers.
2009-07-28 20:30:34 -07:00
Romain LE DISEZ
350c1b0267
Use BOOLEAN instead of integer to describe the permissions :
...
- DENY = false
- ALLOW = true
- UNKNOW = null (for intent only)
- INHERIT = null (for cache)
Upgrade is not included for now.
(cherry picked from commit 719c59e040 )
2009-07-23 09:11:55 -07:00
Bharat Mediratta
788a458a11
Remove success logging. Only log on errors, otherwise the log is huge.
2009-07-19 13:43:06 -07:00
Bharat Mediratta
5b3b675b6d
Non-trivial changes to the event handling code:
...
1) The item_updated event no longer takes the old and new items.
Instead we overload ORM to track the original data and make
that available via the item. This will allow us to move event
publishing down into the API methods which in turn will give us
more stability since we won't require each controller to remember
to do it.
2) ORM class now tracks the original values. It doesn't track
the original relationships (no need for that, yet)
3) Added new events:
item_deleted
group_deleted
user_deleted
2009-07-16 11:19:34 -07:00
Bharat Mediratta
e2a9a1d284
Add quotes around all values that contain spaces in them, and add a
...
test to make sure that we continue to do so.
This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07:00
Tim Almdal
863deab3d3
Fix a bug where the task message was not being set
2009-07-10 12:54:25 -07:00
Tim Almdal
e7e2d99255
Revert "Revert "Add task logging to the "Update Search Index" task""
...
This reverts commit 5118afc959 .
2009-07-09 08:43:42 -07:00
Tim Almdal
5118afc959
Revert "Add task logging to the "Update Search Index" task"
...
This reverts commit 6ac5238b83 .
2009-07-09 08:39:00 -07:00
Tim Almdal
6ac5238b83
Add task logging to the "Update Search Index" task
2009-07-08 09:27:37 -07:00
Tim Almdal
e5cd7052e8
Revert "Forgot this when i was cleaning up for ticket #519 "
...
This reverts commit 31969a1d82 .
2009-07-07 12:25:19 -07:00
Tim Almdal
31969a1d82
Forgot this when i was cleaning up for ticket #519
2009-07-07 12:09:55 -07:00
Tim Almdal
d6648c0aff
Fix for ticket #477 . Use nl2br method when rendering comment::text and
...
item::description. In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00
Tim Almdal
54ffea2419
Split the clean method into two clean and purify. clean is a light weight
...
approach using html::specialchars and purify uses HTMLPurifier to intelligently
cleanse the output fields. Use purifier for text and title fields where it is
likely that a user would enter html to format their data.
2009-07-03 21:44:10 -07:00