summaryrefslogtreecommitdiff
path: root/modules/g2_import/controllers/g2.php
AgeCommit message (Collapse)Author
2013-02-13Merge pull request #143 from mikeage/g2_importBharat Mediratta
Replace = with ==
2013-02-13Replace = with ==Mike Miller
This was my mistake; I didn't test it thoroughly. It results in all g2 mappings being broken!
2013-02-01 #1987 g2_import module should redirect with a 301, not 302Mike Miller
As the g2_import process is generally assumed to be permanent, the redirect should be a 301, and not a 302.
2013-01-30Merge pull request #110 from mikeage/g2_importBharat Mediratta
#1973 Handle redirected G2 URLs for tags, including g2_itemId passed
2013-01-30 #1973 Handle redirected G2 URLs for tags, including g2_itemId passedMike Miller
2013-01-25#1956 - Escape LIKE queries (for _ and %).shadlaws
In MySQL queries, _ and % characters are treated as wildcards (similar to ? and *, respectively). - Added escape_for_like function to MY_Database.php - Added unit test to Database_Test - Corrected the five unescaped instances in the code using this function.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2013-01-13Tags by name (includes a G2 mapping)Mike Miller
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-06-27[Fixes #1757] Redirect to root album if path comes in as main.php or index.phpAndy Lindeman
2011-05-02Track and redirect core.DownloadItem requests properly. This canBharat Mediratta
happen if the G2 was imported with rewrite on, so the g2_url in the g2_map table has a shortened url, but then rewrite is disabled and the .htaccess mod_rewrite rules are sending over a &g2_view=core.DownloadItem request. Fixes #1728.
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-09-18When looking for G2 urls in the g2_map, try also swapping spaces for +Bharat Mediratta
in case the url had spaces in it. Fixes ticket #1388.
2010-09-18Fix a bug in that last commit where I was treating resource_type as a function.Bharat Mediratta
2010-09-18Redirect to the root album when there's an empty path and empty id.Bharat Mediratta
Fixes ticket #1387.
2010-08-29Reformat comment.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-09Change access::can to access::required in g2 redirect, to please the ↵Andy Staudacher
controller auth code audit test.
2010-02-06Fixing G2 url mapping for G2 default style URLs (where ShowItem and ↵Andy Staudacher
DownloadItem URLs aren't rewritten in G2). Note: For a perfect solution, we should add 2 map entries for each of G2's ShowItem and DownloadItem URLs, one for short and one for long style URLs. E.g. A G2 installation might have been using short style URLs not for its complete lifetime. And long style URLs are supposed to work in G2 even when short style URLs are enabled (and its used that way in bbcode / as a way to get permenant, id based URLs from G2).
2010-02-06Add core.DownloadItem redirect for G2's Photo and Movie items (was ↵Andy Staudacher
previously omitted, but we already had core.DownloadItem redirects for derivatives)
2010-02-06Fix g2 redirects for non-admins. The g2 URL mapping controller was ↵Andy Staudacher
accidentally declared as admin controller. (The previous attempt to fix this isn't a bad change either, thus keeping the external permenant redirect).
2010-01-27Convert back to using ORM::factory(..., $id) instead of calling where().Bharat Mediratta
2010-01-01Improve the PHPdoc for map()Bharat Mediratta
We now expect to either get query parameters from the Gallery2 url so we can pick off g2_itemId, or we'll get the rewrite url in the path query param.
2010-01-01New controller for remapping Gallery 2 urls to Gallery 3 urls.Bharat Mediratta