1
0
mirror of https://github.com/mrclay/minify.git synced 2025-02-24 00:44:32 +01:00

builder : checks min/config.php for cache path and uploaderHoursBehind

This commit is contained in:
Steve Clay 2008-09-04 02:06:10 +00:00
parent 05b8462b59
commit d637083d57

View File

@ -1,10 +1,16 @@
<?php
require dirname(__FILE__) . '/../config.php';
set_include_path(dirname(__FILE__) . '/../lib' . PATH_SEPARATOR . get_include_path());
require 'Minify.php';
Minify::setCache();
if (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // we may be on IIS
}
Minify::setCache(isset($min_cachePath) ? $min_cachePath : null);
Minify::$uploaderHoursBehind = $min_uploaderHoursBehind;
Minify::serve('Page', array(
'file' => dirname(__FILE__) . '/_index.html'