summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-06-06Merge branch 'master' of git@github.com:gallery/gallery3Chad Kieffer
2009-06-06Remove album view icon link, added album link to info module. This and ↵Chad Kieffer
breadcrumb should suffice.
2009-06-05change the version to beta 1Bharat Mediratta
2009-06-06Add the exception message to the trace string when there's a graphicsBharat Mediratta
failure. Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Correct locale and local translationunostar
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Add Belarusian to the language list.Bharat Mediratta
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06Localize the 'Advanced' menu itemBharat Mediratta
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-04Skip over busted images when rebuilding. Change graphics::generate()Bharat Mediratta
to return true/false on whether or not it could rebuild the image properly, then track the broke images in the task and ignore them. Fixes ticket #344.
2009-06-04Work around a problem with the CGI sapi on urls that don't containBharat Mediratta
index.php (ie, /gallery3 instead of /gallery3/index.php) that causes is to mis-route.
2009-06-04Make sure the item is loaded in parse_url() before we use it.Bharat Mediratta
2009-06-04Add MY_num containing num::convert_to_bytes() which supports PHP'sBharat Mediratta
size shorthand, and convert the simple_uploader code to use it.
2009-06-04Let the Akismet module create the statistics menu, since it's the onlyBharat Mediratta
one that uses it. Perhaps this is not the best solution, but it's the pragmatic one.
2009-06-03Sanitize all data we return via json_encode() to guard against XSS andBharat Mediratta
other data leaks.
2009-06-02made "Add photos" its own site menu itemjhilden
* open for suggestions on the submenu item labels * @bharat: not sure about the add photos menu item id in the dropdown case
2009-06-02make cleanm staticTim Almdal
2009-06-02Extend L10n client to provide UI for plural translation.Andy Staudacher
Ticket 148.
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.
2009-06-01Fix a place where I shouldn't have renamed "core" to "gallery", breaking ↵Bharat Mediratta
maintenance mode.
2009-05-31Relax the regex we use to extract the movie size so that it works withBharat Mediratta
the new version of ffmpeg that I have on my dev box (ffmpeg 0.5-svn17737+3:0.svn20090303-1)
2009-05-31Switch to using html::specialchars() for cleaning.Bharat Mediratta
2009-05-31First pass at an XSS security test, along with the "p" helper whichBharat Mediratta
can clean HTML output.
2009-05-30gate $can_edit and $can_add on whether or not we have an $item at allBharat Mediratta
(fixes a bug where search doesn't render because it has no item).
2009-05-29remove scaffolding codetim almdal
2009-05-29Use the relative_path_cache to look up items which should be a fasterBharat Mediratta
query than using the level + the components.
2009-05-29Don't show "edit permissions" for non-albums.Bharat Mediratta
2009-05-29Move credits message into a variable, which can be changed in Admin >Bharat Mediratta
Settings > Advanced. It's stored in the variable as an internationalized string and localized at output time.
2009-05-29Don't show the add photo/album options to users who don't have theBharat Mediratta
permission. This isn't a security hole, since they can't actually add stuff.. but they can try and fail which is a bad user experience. Also fix it up so that we show the option menu only if there's stuff to show, and cache some of the permissions for performance (which I'm guessing at-- didn't benchmark it).
2009-05-29Remove a completed @todoBharat Mediratta
2009-05-28Restore calls to module::load_modules() after ↵Bharat Mediratta
install/activate/deactivate/uninstall events.
2009-05-28Load the gallery module in load_modules(), but put it at the end ofBharat Mediratta
the module list (to match its location in the cascading filesystem)
2009-05-28Force modules/gallery to be at the end of the module load path, soBharat Mediratta
that all other modules can override the core code.
2009-05-28Fix broken html::script() and url::file() references to the newlyBharat Mediratta
moved gallery module.
2009-05-27Fix up another place where we were incorrectly referencing the gallery module.Bharat Mediratta
2009-05-27Fix a typo in the class nameBharat Mediratta
2009-05-27Convert a few more references of APPPATH to MODPATH/galleryBharat Mediratta
2009-05-27Show the scaffolding link if the controller is around.Bharat Mediratta
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.