summaryrefslogtreecommitdiff
path: root/modules/g2_import
AgeCommit message (Collapse)Author
2009-08-31Rename mark_safe() to mark_clean()Andy Staudacher
2009-08-30Change all instances of SafeString::of_safe_html() to html::mark_safe() in ↵Andy Staudacher
views.
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Undo url helper changes - url methods no longer return a SafeString.Andy Staudacher
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-08-29Merge commit 'upstream/master'Andy Staudacher
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-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-27Remove 'ENGINE=InnoDB' specification from tables that we create. UseBharat Mediratta
the system's default table specification. Fixes ticket #597.
2009-07-28Use events to generate menus, instead of having xxx_menu helpers.Bharat Mediratta
This is the first step towards having a simple, lightweight and unified API for module interaction.
2009-07-28Standardize the specification of tags.Tim Almdal
With this patch a comma(,) is the only valid tag separator. Spaces are allowed in tags and phrases no longer need to be specified with a dot. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-18Reduce import logging to errors only to reduce the size of the logs.Bharat Mediratta
Excessive logging results in a very slow import.
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
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-14Remove extra debug statements.Bharat Mediratta
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
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-09Correct the pattern match to compress multiple spaces into a singleTim Almdal
dot.
2009-07-09Change the tag importer to convert spaces to a dot in multi word tags.Tim Almdal
2009-07-07Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
Conflicts: modules/g2_import/helpers/g2_import.php
2009-07-07Allow the task::log method to take an array of lines and change g2_import.phpTim Almdal
helper to use this approach.
2009-07-07Clean up some indentation.Bharat Mediratta
2009-07-07Change references to Gallery 2 and Gallery 3 to consistently refer toTim Almdal
Gallery n as opposed any variants of this.
2009-07-06Change wording of failed to import tags to make it consistent with the other ↵Tim Almdal
failed import messages. Thanks shai
2009-07-06correct spacing in a message. thanks shaiTim Almdal
2009-07-06Fix for tickets #312 and #370. Added a task logging api. Changed g2_importTim Almdal
to write all activity to the "log file". The "log file" is stored in the persistent cache.
2009-07-04Lets try the BBCode conversion again... go with basic tags even if some areTim Almdal
deprecated.
2009-07-04Change the BBCode Transformation to use the <span class=""> where possibleTim Almdal
2009-07-04Revert "Change the bbcode transformation to more standard tags that can be"Tim Almdal
This reverts commit 4ba022438e29dd305435a18e94a0bc08b5dd76a4.
2009-07-04Change the bbcode transformation to more standard tags that can beTim Almdal
easily style via css
2009-07-03Fix for #364 = G2 Import Doesn't support markupTim Almdal
Create a _transform_bbcode which coverts the g2 bbcode to html. The html won't be rendered until ticket #400 is implemented as pclean() excapse the html
2009-07-02Fix for ticket #359 and a partial fix for ticket #345.Tim Almdal
In G2, text strings have the &, ", < and > replaced by &amp;, &quote;, &lt; and &gt; respectively. Created the _decode_html_special_chars method in helpers/g2_import.php to revert these character strings.
2009-07-02Fix for ticket #390.Tim Almdal
Added a call to GalleryCoreApi::fetchItemViewCounts to retrieve the gallery2 view counts forthe imported items.
2009-07-02Suppress the filesize error if the thumbnail is not found so we can getTim Almdal
an EMPTY_INPUT_FILE exception which we can then log and continue.
2009-07-01Start of fixing a problem with importing movies w/o a thumbnailTim Almdal
2009-07-01Fix for ticket #357.Tim Almdal
Changed the set the created date as part of the import and change models/comment::save() to not set the creation date if it is already set.
2009-06-30Unlink the old rewritten path files in var/modules/g2_import when weBharat Mediratta
validate the embed path. This resolves an issue with b1 installs which had versions of the rewritten code that were buggy and can be replaced.
2009-06-23Add support for Gallery 2.2.2 style bootstrap syntax.Bharat Mediratta
2009-06-23Gracefully handle the case when the gallery2 instances moves somewhereBharat Mediratta
else (or gets deleted). Fixes ticket #458
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-20Keywords in G2 are free form. So we don't know what our user used as a ↵Bharat Mediratta
separator. Try to be smart about it. If we see a comma or a semicolon, expect the keywords to be separated by that delimeter. Otherwise, use space as the delimiter. Fixes ticket #446
2009-06-19More minor facelift for the admin/g2_import page.Bharat Mediratta
2009-06-19Give the admin/g2_import page a facelift.Bharat Mediratta
2009-06-19Swap the order of two lines to make the debug output have the right data.Bharat Mediratta
2009-06-18Make an attempt to catch all situations where loading an item from G2Bharat Mediratta
returns an error, and log them appropriately. This should fix a slew of import failures from corrupt G2 installs.
2009-06-15Don't try to require GalleryCommentHelper.class if the module is notBharat Mediratta
active, since the code may not even be present. This assumes that if the G2 comment module *is* active that the code is present, but that's part of the assumption that the G2 we're importing from is healthy. Fixes ticket #409
2009-06-14Trap gallery2 errors when we try to load an invalid user id and abort ↵Bharat Mediratta
loading that user.
2009-06-13Add a warning about eAccelerator interfering with g2_import.Bharat Mediratta
2009-06-12Support imports from multisite G2 installs.Bharat Mediratta
2009-06-12Work around different initialization code in earlier versions of Gallery 2.Bharat Mediratta
2009-06-11Rename theme_details to theme_options. These changes got left out ofBharat Mediratta
68fd196d66e2d21f571ff3b5a673f18cd129abf9 leaving us in a temporarily broken state.
2009-06-11Trap exceptions from movie::create() and mark those movies as corrupt.Bharat Mediratta
2009-06-07Improve error handling support for corrupt images and report themBharat Mediratta
appropriately in g2_import.
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.