You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
863 B
PHP

<?php
$title = '访问记录';
include './head.php';
?>
<main class="lyear-layout-content">
<div class="container-fluid">
<div class="card">
<div class="card-header"><h4>当天访问记录:</h4></div>
<div class="card-body">
<?php
//<div class="lyear-layout-content" id="main">
$date = date("Y-m-d");
$iptxt = "../include/IP/IP_".$date.".txt";
//$about = 'about.txt';
//本页内容请修改about.txt文件防止更新后index.php文件被覆盖
if(file_exists($iptxt)){
//文件存在,直接输出文件内容
echo file_get_contents($iptxt);
}
else {
//文件不存在
@file_put_contents($iptxt,'<h1>404</h1>');
echo file_get_contents($iptxt);
}
?>
</div>
</div>
</div>
</div>
</main>
<center><p class="footer"><?php echo $conf['copyright']?></p></center>
<?php
include './footer.php';
?>