1
0
mirror of https://github.com/mrclay/minify.git synced 2025-03-13 17:09:39 +01:00

Code clean

This commit is contained in:
acidvertigo 2014-09-20 10:47:59 +02:00 committed by Steve Clay
parent 54cec8b304
commit f29e1e6b06
6 changed files with 10 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php
/**
* AJAX checks for zlib.output_compression
*
@ -11,7 +11,7 @@ $_oc = ini_get('zlib.output_compression');
require dirname(__FILE__) . '/../config.php';
if (! $min_enableBuilder) {
header('Location: /');
exit();
exit;
}
if (isset($_GET['hello'])) {

View File

@ -1,5 +1,5 @@
<?php
exit();
exit;
/* currently unused.
// capture PHP's default setting (may get overridden in config
@ -8,7 +8,7 @@ $_oc = ini_get('zlib.output_compression');
// allow access only if builder is enabled
require dirname(__FILE__) . '/../config.php';
if (! $min_enableBuilder) {
exit();
exit;
}
if (isset($_GET['oc'])) {

View File

@ -52,6 +52,7 @@ $min_allowDebugFlag = false;
//$min_cachePath = 'c:\\WINDOWS\\Temp';
//$min_cachePath = '/tmp';
//$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());
/**
* To use APC/Memcache/ZendPlatform for cache storage, require the class and
* set $min_cachePath to an instance. Example below:

View File

@ -79,8 +79,8 @@ if (isset($_GET['f']) || isset($_GET['g'])) {
} elseif ($min_enableBuilder) {
header('Location: builder/');
exit();
exit;
} else {
header("Location: /");
exit();
header('Location: /');
exit;
}

View File

@ -430,7 +430,7 @@ class Minify {
header('Content-Type: text/html; charset=utf-8');
echo "<h1>$h1</h1>";
echo "<p>Please see <a href='$url'>$url</a>.</p>";
exit();
exit;
}
/**

View File

@ -44,7 +44,7 @@ if (isset($_POST['method']) && $_POST['method'] === 'Minify and serve') {
} catch (Exception $e) {
echo h($e->getMessage());
}
exit();
exit;
}
$tpl = array();