mirror of
https://github.com/mrclay/minify.git
synced 2025-08-18 11:51:27 +02:00
Code clean
This commit is contained in:
@@ -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'])) {
|
||||
|
@@ -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'])) {
|
||||
|
@@ -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:
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -44,7 +44,7 @@ if (isset($_POST['method']) && $_POST['method'] === 'Minify and serve') {
|
||||
} catch (Exception $e) {
|
||||
echo h($e->getMessage());
|
||||
}
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
$tpl = array();
|
||||
|
Reference in New Issue
Block a user