下面代码的注释?

来源:百度知道 编辑:UC知道 时间:2024/05/19 09:57:29
<?php
if(file_exists('install/index.php') && file_exists('install.lock')==FALSE)
{
echo "<div align=center>您还没有进行安装,请先运行安装程序。<a href=install/>点这里安装系统</a></div>";
exit;
}
require_once("lib/config.inc.php");
if($showlink==1){
header("location:index/index.html");
}else{
header("location:index/index.php");
}
?>

if(file_exists('install/index.php') && file_exists('install.lock')==FALSE) ’判断index.php是否存在 'install.lock'是否消失。我估计前面的是安装生成的文件,后面的文件安装之后会被删除
{
echo "<div align=center>您还没有进行安装,请先运行安装程序。<a href=install/>点这里安装系统</a></div>";
exit;
} ‘这里应该就不用说啦,判断不符要求之后就进行操作。

require_once("lib/config.inc.php"); ’打开指定文件
if($showlink==1){
header("location:index/index.html"); ‘浏览器地址打开指定地址的文件
}else{
header("location:index/index.php");
}