功能说明,隐藏AppEn.php 访问,可以给文件改名字也可以
创建文件地址:LibBsphp/common/b.function.php
<?php
//后台地址 后台地址只可以 127.0.0.1进行访问,有端口加端口
if (BSPHP_SET == 'APPEN') {
//验证基本访问,随便打开入口屏蔽
if (Plug_Set_Get('m') == '' and Plug_Set_Get('appid') == '') {
#跳转百度
header("Location: http://www.baidu.com/");
header("HTTP/1.0 404 Not Found");
exit;
}
//验证数据包
if (Plug_Set_Get('parameter') == '' and Plug_Set_Post('parameter') == '' and Plug_Set_Get('api') == '' and Plug_Set_Post('api') == '') {
//header("Location: http://www.baidu.com/");
//header("HTTP/1.0 404 Not Found");
echo '没接收到参数';
exit;
}
}