1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-18 11:51:27 +02: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

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

View File

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

View File

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

View File

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

View File

@@ -430,7 +430,7 @@ class Minify {
header('Content-Type: text/html; charset=utf-8'); header('Content-Type: text/html; charset=utf-8');
echo "<h1>$h1</h1>"; echo "<h1>$h1</h1>";
echo "<p>Please see <a href='$url'>$url</a>.</p>"; 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) { } catch (Exception $e) {
echo h($e->getMessage()); echo h($e->getMessage());
} }
exit(); exit;
} }
$tpl = array(); $tpl = array();