summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2010-12-22Packaging + tests of Bharat's find_by_path routine.Kriss Andsten
2010-12-18Warn admins after login if their PHP install has theBharat Mediratta
session.use_trans_sid feature enabled, since this will cause random logouts. Partial fix for #1316.
2010-12-17Sort the Admin > Settings menu instead of relying on module activation order.Bharat Mediratta
Requires making Menu::get() return a reference. Fixes #1545.
2010-12-17Include the root in the tree output.Bharat Mediratta
2010-12-16Follow on to 16555935ee45a09b8d5b5b351222631ba2ce2132 to clean up theBharat Mediratta
style a bit. Tracked in #1539.
2010-12-17Fetch permissions for non-albumbs by parent rather than by item, allowing ↵Kriss Andsten
the result to be cached.
2010-12-16Create a "tree" rest resource that can return the entire album tree inBharat Mediratta
a single fast request, among other operations. Fixes #1538.
2010-12-16Create url::merge_querystring() which merges a query string into anBharat Mediratta
existing url. Fixes #1537.
2010-12-15Consolidate all the random code into a random helper that offers:Bharat Mediratta
random::hash() random::string() random::percent() random::int() So that we don't have lots of different ways to get random values all over the code. Follow-on to #1527.
2010-12-15Use mt_rand() instead of rand() since it provides better portability.Bharat Mediratta
Fixes #1527.
2010-12-15Follow on to d2be26e407aeb620082bcad2d5a45272868b38a1 to convert tabs to spaces.Bharat Mediratta
2010-11-28Delete the temporary "user" value from the session when upconvertingBharat Mediratta
the admin account post-install. Fixes #1511.
2010-11-28Replace self::func() with <helper_name>::func() for all public APIsBharat Mediratta
and constants to make overloading easier. Fixes #1510.
2010-11-27Clean up phpDoc on get() a little moreBharat Mediratta
2010-11-27Tighten up the phpDoc for get().Bharat Mediratta
2010-11-28Slightly more invasive version, but cleaner on the eyes.Kriss Andsten
2010-11-28Patch from ticket 1503, making rest/items behaviour consisten with rest/item ↵Kriss Andsten
behaviour.
2010-11-21Shuffle up the way we figure out which image to rebuild next so thatBharat Mediratta
multiple concurrent tasks actually work in parallel and don't stomp on each other. Fixes #1498.
2010-11-20Move the sys_getloadavg() call into the template since that's what we're ↵Bharat Mediratta
doing for other similar calls
2010-11-18Add Bengali (bn_BD).Bharat Mediratta
2010-11-18Use sys_getloadavg() instead of reading /proc/loadavg. Fixes #1491.Bharat Mediratta
2010-11-09Return the admin check as part of the block structure as opposed to printingTim Almdal
it directly to the output. I had problems with the admin check messing up the AJAX calls on the module update page. And it went away after this fix.
2010-11-08Updated item::random_query() PHPdoc to include example usageBharat Mediratta
2010-11-08Implement module::clear_all_vars($module_name)Bharat Mediratta
Also switch from using ORM to Database_Builder for the SQL because it's cleaner, and clean up the test. Fixes #1479.
2010-11-07Add Malay as 'Bahasa Melayu'Bharat Mediratta
2010-10-24Allow access to the rest module when the gallery is wholly private. Fixes ↵Bharat Mediratta
ticket #1452.
2010-10-09Identify robots and don't let them save sessions.Bharat Mediratta
2010-10-07Change version to "3.0+ (git)".Bharat Mediratta
2010-10-04Set the version to 3.0 final (woot!).Bharat Mediratta
2010-10-02Detect the case where there are no more broken images and skip to the end. ↵Bharat Mediratta
Fixes #1414.
2010-10-02Proxy the BasicAuth authentication header in htaccess_works() so thatBharat Mediratta
if the entire Gallery is behind BasicAuth we share the same credentials as the browser. Fixes #1413.
2010-10-02Set the User-Agent field to "Gallery3" by default. Fixes #1408.Bharat Mediratta
2010-10-01Fix a bug in the way we set the mime type for protected image renders.Bharat Mediratta
Also whitelist the digibug controller so that it's accessible when the gallery is private, and don't expire old proxies right away since Digibug may request the full size multiple times for different preview operations. Fixes ticket #1410.
2010-09-29Stop caching all module variables in the vars table using theBharat Mediratta
name=_cache row. If that overflows, it will cause us to be unable to load variables, and we can't recover from that. Instead, use the Cache table. Bump the gallery module to v40. Fixes ticket #1405.
2010-09-25Base64 encode the data result if the encoding param is set to "base64".Bharat Mediratta
Fixes #1400.
2010-09-22Prioritize using the value in graphics_toolkit_path over the standardBharat Mediratta
path so that if you change that value in Admin > Settings > Advanced we prefer it over other paths (which may be restricted by open_basedir). Fixes #1395.
2010-09-16Add a module variable containing extra paths to search for binaries.Bharat Mediratta
Fixes ticket #1384.
2010-09-16Restrict viewing user profile pages to registered users only, butBharat Mediratta
provide a "show_user_profiles_to" setting to allow admins to open it up to everybody (choices there are "registered_users", "admin_users" or "everybody"). Fixes ticket #1378.
2010-09-14Add ability to sort albums by name. Fixes ticket #1377.Bharat Mediratta
2010-09-13When moving a single item, just copy its permissions from its parentBharat Mediratta
album. This is totally legal since an items permissions must be the same as its parent's, and it's much faster for large installs where a complete recalculation can be very costly. Should fix #1360.
2010-09-13When deleting items, choose the first *viewable* peer as the albumBharat Mediratta
cover. Normally, all items are equally viewable, but in our unit tests we occasionally have the scenario where peers have different viewability settings which is internally consistent although only possible if you set the fields manually.
2010-09-12Ignore the private gallery settings if we're in the cli SAPI. ItBharat Mediratta
breaks the upgrader. Fixes #1361, thanks to Romain LE DISEZ.
2010-09-12LOWER() the slug and name in the find_dupes functions since DISTINCTBharat Mediratta
is case sensitive, but our dupe validation is not. Fixes ticket #1367.
2010-09-11Only call $theme->item() if we're in a non admin theme.Bharat Mediratta
2010-09-11Use $theme->item() instead of $theme->item, otherwiseBharat Mediratta
isset($theme->item) may return true even when we don't have an actual Item_Model in there.
2010-09-08Detect out-of-date modules and put up a message for site admins.Bharat Mediratta
Fixes ticket #1353.
2010-09-08Detect when a module fails to upgrade properly and put up anBharat Mediratta
informative message to help the user know that she needs to get a newer copy of the module. Fixes ticket #1189.
2010-09-07Fix typo.Bharat Mediratta
2010-09-07Add Macedonian. Fixes ticket #1345.Bharat Mediratta
2010-09-06Use the absolute site url when logging out of the admin site else weBharat Mediratta
wind up with weird url doubling effects. Fixes ticket #1342.