config.php 6.5 KB

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