Add Json Response Header

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

Binary file not shown.

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

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

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

@ -1,7 +1,9 @@
<?php <?php
// 防止外部破解 // 防止外部破解
define('SYSTEM', TRUE); 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"); include ("config.php");
// 缓存用 // 缓存用
@ -40,9 +42,9 @@ if ($headerStringValue=="" && BILIROAMING==1) {
// 服务器锁区 // 服务器锁区
function lock_area() { function lock_area() {
if ( LOCK_AREA=="1" ) { if ( LOCK_AREA=="1" ) {
if ( !empty($SERVER_AREA) && !in_array(AREA, $SERVER_AREA)) { if ( !empty($SERVER_AREA) && !in_array(AREA, $SERVER_AREA)) {
exit(BLOCK_RETURN); exit(BLOCK_RETURN);
} }
} }
} }
// 鉴权 // 鉴权

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

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

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

Loading…
Cancel
Save