1
0
Fork 0
php-coding/11.work1.main.php

25 lines
483 B
PHP

<?php
session_start();
$refresh_time = 30;
header("refresh:$refresh_time");
if (empty($_COOKIE['access'])) {
echo <<<EOL
<script>
alert("试用时间已到,请重新登录进行试用");
window.location.href="11.work1.login.php";
</script>
EOL;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>试用版学习资源网</title>
</head>
<body>
暂无学习内容,每次试用会在30s后失效,页面会在试用失效后跳转会登录
</body>