1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-26 23:34:44 +02:00

+ memcached test (buggy on Windows at least)

all min_extras apps use the cache path and lib location specified in min/config.php
This commit is contained in:
Steve Clay
2008-09-04 20:50:28 +00:00
parent 1f66aefc4e
commit 66aba1fd2a
9 changed files with 62 additions and 29 deletions

View File

@@ -1,8 +1,10 @@
<?php
if (isset($_FILES['subject']['name'])) {
require '../config.php';
require '../../min/lib/HTTP/Encoder.php';
require 'HTTP/Encoder.php';
$he = new HTTP_Encoder(array(
'content' => file_get_contents($_FILES['subject']['tmp_name'])
,'method' => $_POST['method']

View File

@@ -3,12 +3,9 @@
if (isset($_FILES['subject']['name'])
&& preg_match('/\\.(js|css|x?html?)$/', $_FILES['subject']['name'], $m)
) {
ini_set('include_path',
dirname(__FILE__) . '/../../min/lib'
. PATH_SEPARATOR . ini_get('include_path')
);
// eh why not
require '../config.php';
// easier to just require them all
require 'Minify/HTML.php';
require 'Minify/CSS.php';
require 'Minify/Javascript.php';