-
Notifications
You must be signed in to change notification settings - Fork 0
/
exit.php
55 lines (52 loc) · 1.44 KB
/
exit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!--
文件描述 :登出
copyright (C) 2021 pengzekai
请尊重版权,本文件遵守何乐开源协议
-->
<html lang="CN">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php
$title=@file_get_contents("./config/title.txt");
echo $title.'- Powered by HeloCloud';
?></title>
<link rel="Shortcut Icon" href="./image/title.ico" type="image/x-icon" />
<link rel="stylesheet" href="./css/bootstrap.min.css">
<script src="./js/sweetalert.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
</head>
<body>
</body>
</html>
<?php
//----------------------
//版权所有,侵权必究
//copyright (C) 2022 pengzekai
//----------------------
setcookie("key"/*cookie的名称*/,""/*cookie的值*/,""/*cookie的生效时间*/);
setcookie("password"/*cookie的名称*/,""/*cookie的值*/,""/*cookie的生效时间*/);
$install_file = "./config/install.ok";
if(is_file($install_file))
{}else{
header('Location: install/install.php');
exit;
}
if($user==""){
echo '<script language="JavaScript">
swal({
title: "已经退出登录",
text: "已经退出登录!只有您登录后您才能使用网盘",
icon: "error",
button: "确定",
})
.then((willDelete) => {
location.href="./index.php";
}
);
</script>';
}
exit();
?>