mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-03 22:57:43 +02:00
creating bundles
This commit is contained in:
@@ -3817,7 +3817,7 @@ class CCache
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$version = "v0.7.9 (2015-12-07)";
|
$version = "v0.7.9* (2015-12-07)";
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||||
@@ -3847,16 +3847,16 @@ function errorPage($msg, $type = 500)
|
|||||||
$header = "500 Internal Server Error";
|
$header = "500 Internal Server Error";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mode == "strict") {
|
||||||
|
$header = "404 Not Found";
|
||||||
|
}
|
||||||
|
|
||||||
header("HTTP/1.0 $header");
|
header("HTTP/1.0 $header");
|
||||||
|
|
||||||
if ($mode == "development") {
|
if ($mode == "development") {
|
||||||
die("[img.php] $msg");
|
die("[img.php] $msg");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == "strict") {
|
|
||||||
$header = "404 Not Found";
|
|
||||||
}
|
|
||||||
|
|
||||||
error_log("[img.php] $msg");
|
error_log("[img.php] $msg");
|
||||||
die("HTTP/1.0 $header");
|
die("HTTP/1.0 $header");
|
||||||
}
|
}
|
||||||
|
@@ -3817,7 +3817,7 @@ class CCache
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$version = "v0.7.9 (2015-12-07)";
|
$version = "v0.7.9* (2015-12-07)";
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||||
@@ -3847,16 +3847,16 @@ function errorPage($msg, $type = 500)
|
|||||||
$header = "500 Internal Server Error";
|
$header = "500 Internal Server Error";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mode == "strict") {
|
||||||
|
$header = "404 Not Found";
|
||||||
|
}
|
||||||
|
|
||||||
header("HTTP/1.0 $header");
|
header("HTTP/1.0 $header");
|
||||||
|
|
||||||
if ($mode == "development") {
|
if ($mode == "development") {
|
||||||
die("[img.php] $msg");
|
die("[img.php] $msg");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == "strict") {
|
|
||||||
$header = "404 Not Found";
|
|
||||||
}
|
|
||||||
|
|
||||||
error_log("[img.php] $msg");
|
error_log("[img.php] $msg");
|
||||||
die("HTTP/1.0 $header");
|
die("HTTP/1.0 $header");
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user