这句话的作用是啥

WBOY
Release: 2016-06-23 13:34:11
Original
989 people have browsed it

defined('InShopNC') or exit('Access Invalid!');


回复讨论(解决方案)

 强制入口,避免直接访问,算是权限控制吧。

如果没有定义defined('InShopNC'),就不能访问此页。

感觉if语句挺有意思,比如  如果当官,就有小三。完了。
计算机要是判断这句话会有两种结果,一种是前面说的,还有一种就是如果不当官就没有小三,但是现实生活中就不是这样的逻辑,所以计算机还是不怎么科学。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template