摘要:
<?php if (!function_exists('remove_xss')) { //使用htmlpurifier防范xss攻击 function remove_xss($string){ //composer安装的,不需要此步骤。相对index.php入口文件,引入HTMLPurifier.auto.php核心文件 // require_once './plugins/htmlpurifi 阅读全文
posted @ 2019-08-12 00:31
凡斗
阅读(249)
评论(0)
推荐(0)
摘要:
//处理跨域Options预检请求 if($_SERVER['REQUEST_METHOD'] == 'OPTIONS'){ //允许的源域名 header("Access-Control-Allow-Origin: *"); //允许的请求头信息 header("Access-Control-Allow-Headers: Origin, X-Requested-... 阅读全文
posted @ 2019-08-12 00:27
凡斗
阅读(2203)
评论(0)
推荐(0)
摘要:
"; //关闭数据库连接 mysql_close(); ?> 阅读全文
posted @ 2019-08-12 00:24
凡斗
阅读(871)
评论(0)
推荐(0)
浙公网安备 33010602011771号