config.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php
  2. /**
  3. * Configuration for "min", the default application built with the Minify
  4. * library
  5. *
  6. * @package Minify
  7. */
  8. /**
  9. * Allow use of the Minify URI Builder app. Only set this to true while you need it.
  10. */
  11. $min_enableBuilder = false;
  12. /**
  13. * If non-empty, the Builder will be protected with HTTP Digest auth.
  14. * The username is "admin".
  15. */
  16. $min_builderPassword = 'admin';
  17. /**
  18. * Set to true to log messages to FirePHP (Firefox Firebug addon).
  19. * Set to false for no error logging (Minify may be slightly faster).
  20. * @link http://www.firephp.org/
  21. *
  22. * If you want to use a custom error logger, set this to your logger
  23. * instance. Your object should have a method log(string $message).
  24. */
  25. $min_errorLogger = false;
  26. /**
  27. * To allow debug mode output, you must set this option to true.
  28. *
  29. * Once true, you can send the cookie minDebug to request debug mode output. The
  30. * cookie value should match the URIs you'd like to debug. E.g. to debug
  31. * /min/f=file1.js send the cookie minDebug=file1.js
  32. * You can manually enable debugging by appending "&debug" to a URI.
  33. * E.g. /min/?f=script1.js,script2.js&debug
  34. *
  35. * In 'debug' mode, Minify combines files with no minification and adds comments
  36. * to indicate line #s of the original files.
  37. */
  38. $min_allowDebugFlag = false;
  39. /**
  40. * For best performance, specify your temp directory here. Otherwise Minify
  41. * will have to load extra code to guess. Some examples below:
  42. */
  43. //$min_cachePath = 'c:\\WINDOWS\\Temp';
  44. //$min_cachePath = '/tmp';
  45. //$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());
  46. /**
  47. * To use APC/Memcache/ZendPlatform for cache storage, require the class and
  48. * set $min_cachePath to an instance. Example below:
  49. */
  50. //require dirname(__FILE__) . '/lib/Minify/Cache/APC.php';
  51. //$min_cachePath = new Minify_Cache_APC();
  52. /**
  53. * Leave an empty string to use PHP's $_SERVER['DOCUMENT_ROOT'].
  54. *
  55. * On some servers, this value may be misconfigured or missing. If so, set this
  56. * to your full document root path with no trailing slash.
  57. * E.g. '/home/accountname/public_html' or 'c:\\xampp\\htdocs'
  58. *
  59. * If /min/ is directly inside your document root, just uncomment the
  60. * second line. The third line might work on some Apache servers.
  61. */
  62. $min_documentRoot = '';
  63. //$min_documentRoot = substr(__FILE__, 0, -15);
  64. //$min_documentRoot = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];
  65. /**
  66. * Cache file locking. Set to false if filesystem is NFS. On at least one
  67. * NFS system flock-ing attempts stalled PHP for 30 seconds!
  68. */
  69. $min_cacheFileLocking = true;
  70. /**
  71. * Combining multiple CSS files can place @import declarations after rules, which
  72. * is invalid. Minify will attempt to detect when this happens and place a
  73. * warning comment at the top of the CSS output. To resolve this you can either
  74. * move the @imports within your CSS files, or enable this option, which will
  75. * move all @imports to the top of the output. Note that moving @imports could
  76. * affect CSS values (which is why this option is disabled by default).
  77. */
  78. $min_serveOptions['bubbleCssImports'] = false;
  79. /**
  80. * Cache-Control: max-age value sent to browser (in seconds). After this period,
  81. * the browser will send another conditional GET. Use a longer period for lower
  82. * traffic but you may want to shorten this before making changes if it's crucial
  83. * those changes are seen immediately.
  84. *
  85. * Note: Despite this setting, if you include a number at the end of the
  86. * querystring, maxAge will be set to one year. E.g. /min/f=hello.css&123456
  87. */
  88. $min_serveOptions['maxAge'] = 1800;
  89. /**
  90. * To use CSSmin (Túbal Martín's port of the YUI CSS compressor), uncomment the following line:
  91. */
  92. //$min_serveOptions['minifiers']['text/css'] = array('Minify_CSSmin', 'minify');
  93. /**
  94. * To use Google's Closure Compiler API to minify Javascript (falling back to JSMin
  95. * on failure), uncomment the following line:
  96. */
  97. //$min_serveOptions['minifiers']['application/x-javascript'] = array('Minify_JS_ClosureCompiler', 'minify');
  98. /**
  99. * If you'd like to restrict the "f" option to files within/below
  100. * particular directories below DOCUMENT_ROOT, set this here.
  101. * You will still need to include the directory in the
  102. * f or b GET parameters.
  103. *
  104. * // = shortcut for DOCUMENT_ROOT
  105. */
  106. //$min_serveOptions['minApp']['allowDirs'] = array('//js', '//css');
  107. /**
  108. * Set to true to disable the "f" GET parameter for specifying files.
  109. * Only the "g" parameter will be considered.
  110. */
  111. $min_serveOptions['minApp']['groupsOnly'] = false;
  112. /**
  113. * By default, Minify will not minify files with names containing .min or -min
  114. * before the extension. E.g. myFile.min.js will not be processed by JSMin
  115. *
  116. * To minify all files, set this option to null. You could also specify your
  117. * own pattern that is matched against the filename.
  118. */
  119. //$min_serveOptions['minApp']['noMinPattern'] = '@[-\\.]min\\.(?:js|css)$@i';
  120. /**
  121. * If you minify CSS files stored in symlink-ed directories, the URI rewriting
  122. * algorithm can fail. To prevent this, provide an array of link paths to
  123. * target paths, where the link paths are within the document root.
  124. *
  125. * Because paths need to be normalized for this to work, use "//" to substitute
  126. * the doc root in the link paths (the array keys). E.g.:
  127. * <code>
  128. * array('//symlink' => '/real/target/path') // unix
  129. * array('//static' => 'D:\\staticStorage') // Windows
  130. * </code>
  131. */
  132. $min_symlinks = array();
  133. /**
  134. * If you upload files from Windows to a non-Windows server, Windows may report
  135. * incorrect mtimes for the files. This may cause Minify to keep serving stale
  136. * cache files when source file changes are made too frequently (e.g. more than
  137. * once an hour).
  138. *
  139. * Immediately after modifying and uploading a file, use the touch command to
  140. * update the mtime on the server. If the mtime jumps ahead by a number of hours,
  141. * set this variable to that number. If the mtime moves back, this should not be
  142. * needed.
  143. *
  144. * In the Windows SFTP client WinSCP, there's an option that may fix this
  145. * issue without changing the variable below. Under login > environment,
  146. * select the option "Adjust remote timestamp with DST".
  147. * @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time
  148. */
  149. $min_uploaderHoursBehind = 0;
  150. /**
  151. * Path to Minify's lib folder. If you happen to move it, change
  152. * this accordingly.
  153. */
  154. $min_libPath = dirname(__FILE__) . '/lib';
  155. // try to disable output_compression (may not have an effect)
  156. ini_set('zlib.output_compression', '0');