Steve Clay
eadf601dbe
Cleanup index.php a bit
2014-02-04 11:00:25 -05:00
Steve Clay
30839ab5f0
Allow long expires with "v" query string param
2014-02-04 11:00:11 -05:00
Steve Clay
b4b8606dfd
Fix/simplify custom config paths implementation
2014-02-04 10:57:45 -05:00
Sam Bauers
8e74d727f0
Use base for main config key.
2014-02-05 00:59:21 +11:00
Sam Bauers
2c897a0b59
Fix index names on config paths array.
2014-02-05 00:57:18 +11:00
Sam Bauers
63519b55f6
Remove filenames from include statements.
2014-02-05 00:54:03 +11:00
Sam Bauers
b34d964e88
Allow full custom path including filename
2014-02-05 00:46:08 +11:00
Sam Bauers
ae70500a2d
Allow optional custom configs to be optional
...
This change tests first for the existence of the custom config variable and then the existence of each custom config file in turn. If found the directory path to append to that config file is changed to the custom path.
This allows fallback to the standard config when no custom config is present.
Maybe it would be even better to load both - the standard config, then the custom config, but this might be confusing for groupConfig.php. It could work using array merge, but it wouldn't be particularly clear or easy to explain.
2014-02-04 12:37:40 +11:00
Sam Bauers
719c22fca4
Include groupsConfig.php in MINIFY_CONFIG_DIR.
2014-02-03 18:19:46 +11:00
Sam Bauers
aceef480c3
Allow definition of custom config directory.
...
To allow "clean" checkouts of Minify we could use the possibility to define a custom config directory outside the minify directory.
Using this patch a user can define MINIFY_CUSTOM_CONFIG_DIR on a new page outside the minify directory and then include minify's index.php on that page and point their rewrites etc. there instead.
The config.php (and config-test.php) could be copied to the custom directory and edited without causing svn:external/git:submodule conflicts.
2014-02-03 18:19:00 +11:00
Steve Clay
c196dd39df
Replaced all class require's with autoloader
2012-09-30 17:51:34 -04:00
Steve Clay
f40f4e4f56
Easier config testing
2012-03-15 14:00:50 -04:00
Steve Clay
9a1f306305
no need for user to call setDocRoot()
2011-09-03 20:39:25 -04:00
Steve Clay
2f11b725b8
improved issue 170
2011-09-03 20:18:57 -04:00
Steve Clay
c6a2f87641
Minify_CSS : remove charset at-rules by default & options cleanup
...
Minify_HTML : speed patch (Issue 192)
Minify_Controller_MinApp : better error logging (Issue 193)
index.php : allow easier custom controller hacking
2010-09-30 04:31:58 +00:00
Steve Clay
19e79ff7fb
Fixed tests & classes in case of mbstring.func_overload & 2 (Issue 132)
...
Added ability to match multiple strings in URIs for debugging
2010-05-16 01:27:33 +00:00
Steve Clay
02dbf14c8e
Work on: Issue 120, Issue 170, Issue 152, Issue 125, Issue 134, Issue 143
...
Broke some tests
2010-05-10 07:44:40 +00:00
Steve Clay
f4c688b338
Work on: Issue 125, Issue 126, Issue 132, Issue 134, Issue 138, Issue 139, Issue 147, Issue 149, Issue 151, Issue 162, Issue 166
2010-05-09 16:43:47 +00:00
Steve Clay
03673e0928
Prep for 2.1.3
...
HTTP_ConditionalGet: no more "must-revalidate"
HTTP_Encoder: prefers gzip over deflate
Minify: no more deflate encoding
File cache works w/o setting $min_cachePath
Minify_Source: + public $contentType
2009-06-30 19:44:55 +00:00
Steve Clay
22ee97a934
CSS/UriRewriter.php : fixed expansion of docRoot in symlink links
...
min/index.php : removed expansion (unneeded)
2009-03-06 02:43:12 +00:00
Steve Clay
f694969342
min/index.php : fix Issue 92
2009-03-04 16:28:14 +00:00
Steve Clay
4c1fe68ab6
Minify.php : moved logging to Logger.php
...
Controller/Base.php : + log()
Changed controllers to use $this->log()
HTML.php : Issue 83 (preserve some WS around scripts)
CSS.php : + symlinks option to correct some rewritten URIs
min/config.php : + $min_symlinks
min/index.php : normalize symlinks and use Logger.php
min_unit_tests/_inc.php : default FirePHP logging, start output buffering
2009-01-28 20:02:25 +00:00
Steve Clay
53f39bc2ab
Separated logging option from debug option (allows custom logger injection).
...
Formalized setting document root (will no longer be overridden on IIS).
Rearranged options in config.php.
2009-01-26 00:44:43 +00:00
Steve Clay
e03c263d18
+ FirePHP error logging in Files, Groups, and MinApp controllers
2009-01-25 19:40:51 +00:00
Steve Clay
6ccdc5f253
min/index.php : Allow far-off expires on f= URIs
...
min/README.txt : + docs for far-off expires
2008-10-28 00:25:40 +00:00
Steve Clay
6dffb5e10e
+ unit tests for sensing server/PHP auto-HTTP-encoding and zlib.output_compression
...
moved ini_set('zlib.output_compression', '0') to config.php so extras and ab tests should work when this is set in php.ini/.htaccess.
builder/index.php : added escapes to JS strings for valid HTML
2008-10-07 20:47:15 +00:00
Steve Clay
6b2ecd4038
Issue 57 work. Min app sets "zlib.output_compression" to "0" in case it is "1". Builder doesn't encode is it senses this option set, and runs AJAX checks for the status of it and to check for double-encoded output.
2008-10-07 15:07:13 +00:00
Steve Clay
12ca7b470f
+ Controller/MinApp.php for min app
...
min/index.php : rewritten to use MinApp.php
Controller/Base.php : simplified _fileIsSafe()
min/config.php : + flock and maxFiles options
2008-09-18 01:56:29 +00:00
Steve Clay
12dc98c50a
Prep for 2.1
...
min/builder/ : enableBuilder option, better debug behavior
HTTP/Encoder.php : phpdoc fix
Minify.php : removed setServerCache()
Cache/Memcache.php : better docs
README : simplified
2008-09-05 04:22:57 +00:00
Steve Clay
86c09a1cd0
builder app improvements
...
Minify.php : + setDocRoot() for IIS (min only checks if on Windows)
Controller/Page.php : + 'file' option for simpler usage
2008-09-03 19:42:41 +00:00
Steve Clay
7b9fcb4dd6
crude builder app for generating URIs quickly
2008-09-03 05:13:52 +00:00
Steve Clay
79a4e17fb6
All PHP/doc files have Unix newlines w/ no BOM
2008-08-29 22:56:34 +00:00
Steve Clay
4b3e92ca91
min: + options for maxAge, uploaderHoursBehind, debug
...
Minify: better docblock for uploaderHoursBehind
2008-08-24 00:30:30 +00:00
Steve Clay
62d7c83d80
+ README.txt
...
min/config.php: removed $minifyAllowBase option and reorganized file
min/index.php: added option to send far-off expires if "&\d" matches query string
2008-08-19 21:01:05 +00:00
Steve Clay
348c838c8b
min/config.php: allows multiple allow directories
...
Controller/Version1.php: + option to specify multiple allow dirs
Minify_Controller_Base::_fileIsSafe() allows multiple safe dirs
Minify_CSS: shorter line length output
2008-08-16 15:25:27 +00:00
Steve Clay
961e04ca30
Created "min" = new default implementation as specified in Issue 45.
...
Minify: fixed default value in useServerCache(), + doc for 'contentType' serve() option
Minify_Controller_Base: added todo item
Minify_Controller_Version1: fixed default cache to '' (instead of null)
2008-08-12 01:55:35 +00:00