Add Json Response Header

pull/5/head
david082321 4 years ago
parent 5bc6714852
commit 189a8ae705

Binary file not shown.

@ -1,7 +1,6 @@
<?php
// 防止外部破解
if(!defined('SYSTEM')){
header('HTTP/1.1 404 Not Found');
exit(BLOCK_RETURN);
}

@ -1,7 +1,6 @@
<?php
// 防止外部破解
if(!defined('SYSTEM')){
header('HTTP/1.1 404 Not Found');
exit(BLOCK_RETURN);
}

@ -1,5 +1,5 @@
<?php
if(!defined('SYSTEM')){header('HTTP/1.1 404 Not Found');} // 防止外部破解,不可以改
if(!defined('SYSTEM')){exit(BLOCK_RETURN);} // 防止外部破解,不可以改
// 封锁
define('BLOCK_TYPE','blacklist'); // 封锁类型none 不封锁, blacklist 黑名单, whitelist 本地白名单

@ -1,7 +1,9 @@
<?php
// 防止外部破解
define('SYSTEM', TRUE);
define('VERSION', '2.9.1');
define('VERSION', '2.9.3');
// 加上json的Header
header('Content-Type: application/json; charset=utf-8');
// 加载配置
include ("config.php");
// 缓存用

@ -1,7 +1,6 @@
<?php
// 防止外部破解
if(!defined('SYSTEM')){
header('HTTP/1.1 404 Not Found');
exit(BLOCK_RETURN);
}

@ -1,7 +1,6 @@
<?php
// 防止外部破解
if(!defined('SYSTEM')){
header('HTTP/1.1 404 Not Found');
exit(BLOCK_RETURN);
}
@ -102,7 +101,6 @@ function replace(){
}
// 发送内容
header('Content-Type: application/json; charset=utf-8');
$output3 = json_encode($array2);
$output3 = str_replace("\/","/",$output3);
print($output3);

@ -1,7 +1,6 @@
<?php
// 防止外部破解
if(!defined('SYSTEM')){
header('HTTP/1.1 404 Not Found');
exit(BLOCK_RETURN);
}

Loading…
Cancel
Save