summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/combined.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-08-11the HTTP header Cache-Control must contain "public" in order to allow ↵Gerhard Schlager
caching of resources when HTTPS is used
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-11-24Move the Content-Length header into the main block, fix some formatting.Bharat Mediratta
Follow-on to 5b969fd069e239e4126b52377518ac98968b1aab which is a fix for #1802.
2011-10-29gzip stream problem on Google Chromeffchung
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-23Create a way for controllers to exempty themselves from maintenanceBharat Mediratta
mode and private gallery mode by setting the following constants in the controller to true. ALLOW_MAINTENANCE_MODE ALLOW_PRIVATE_GALLERY Fixes #1411 and the subsequent refactoring fixes #1551 as well.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-01-31Fix lots of warnings that pop up when we're in E_STRICT mode. They'reBharat Mediratta
mostly issues around uninitialized variables, calling non-static functions in a static context, calling Session functions directly instead of on its singleton, passing non-variables by reference, and subclasses not using the same interface as the parent class.
2009-11-25The html helpers no longer forces .js and .css suffixes to urls it generates ↵Bharat Mediratta
(yay!)
2009-11-25Kohana::show_404() -> throw new Kohana_404_Exception()Bharat Mediratta
2009-08-16In this patch, drag now works to the album tree, but the progress bar is notTim Almdal
showing. As well fixed a problem where selectable single clink no longer worked when the album was reloaded.
2009-07-17Don't send back the gzipped version if we're usingBharat Mediratta
zlib.output_compression in PHP, since that means that the stream is already compressed. Fixes ticket 555.
2009-06-29Use the appropriate content-type for javascript (application/javascript).Bharat Mediratta
2009-06-29Pass back Cache-Control and Expires headers when we send back a 304,Bharat Mediratta
otherwise some browsers (Firefox, at least) thinks that it needs to revalidate. At least in my case, it appears that my proxy tacks on restrictive Cache-Control headers if they aren't there.
2009-06-29Fix a few more issuesBharat Mediratta
1) Don't use $_SERVER, use Input::instance()->server(). This fixes the problem that when you use a browser that doesn't pass in an Accept-Encoding, we'd barf on a missing array key 2) Don't bother looking up the _gz key if we don't have gzencode, because we probably didn't store one. 3) Only emit the gzip Content-Encoding header if we're actually sending back gzipped data.
2009-06-29Refactor combine_xxx() functions together into combine_files() and useBharat Mediratta
html functions to generate the resulting elements. Add phpdoc.
2009-06-29Refactor combined controller a bitBharat Mediratta
1) Create public javascript() and css() functions and turn __call() into a private function to protect us against having some random type show up in there. Otherwise anything you put in the 2nd argument gets emitted in the header which is a security hole. 2) Fix a bug ("$key = $key[0]") which was breaking functionality. Eliminate the hex check, it's not really necessary in the majority case and doesn't hurt us in edge cases. 3) Convert some empty() calls to !, no need for a function call there. 4) Add phpDoc.
2009-06-29Combine the Combined::javascript and Combined::css into a single method ↵Tim Almdal
implemented by the magic method __call. The first parameter is the content type for text/xxxx and the 2nd parameter is the key of the combined file.
2009-06-29A Combined javascript seems to work.Tim Almdal
1) CSS files are added to the combined version by use of $theme->css() or $theme->css_theme() methods 2) url references in the css are converted to full paths as opposed to relative 3) @import statements in the css are resolved as well. 4) need to move the [if IE] statements into the css files so the will be honored in the browser. currently the ie fix css are always included.
2009-06-29*Note* work in progress.Tim Almdal
Implement the combined css functionality. Local url references and replace with absolute urls instead of relative.
2009-06-28Rename the combined javascript controller from javascript/combined to ↵Tim Almdal
combined/javascript.