...
【24h】

Pest control

机译:除害虫

获取原文
获取原文并翻译 | 示例
           

摘要

Matt Pritchard raised a query about the custom authentication script in the March issue, saying: 'Is there an exit(); omitted from the PHP code for the login? Otherwise the restricted pages just get served anyway.' Well spotted Matt! Yes, there should be an exit statement after the code for the page that tells people they're not authorised. The original version of the script, which was written for a site I host, used a redirection to a different page, offering subscription information, and when the script was simplified to put it in the magazine, I omitted the exit. Of course, it would have been good practice to include it anyway, even if the browser was being redirected elsewhere.
机译:马特·普里查德(Matt Pritchard)在3月号中提出了有关自定义身份验证脚本的查询,说:“是否存在exit();从PHP代码中省略登录?否则,受限页面还是会被送达。”很好发现马特!是的,页面代码后应该有一个退出语句,告诉人们未经授权。该脚本的原始版本是为我托管的网站编写的,它重定向到另一个页面,提供订阅信息,当简化脚本以将其放入杂志中时,我省略了该出口。当然,即使将浏览器重定向到其他位置,也无论如何都将其包含在内将是一个好习惯。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号