-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlogout.php
More file actions
66 lines (63 loc) · 1.87 KB
/
logout.php
File metadata and controls
66 lines (63 loc) · 1.87 KB
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
56
57
58
59
60
61
62
63
64
65
66
<?php
include_once 'phppagestart.php';
echo '<!DOCTYPE html>';
session_unset($_SESSION["loggedin"]);
session_unset($_SESSION["expire"]);
session_unset($_SESSION["username"]);
session_unset($_SESSION["password"]);
session_unset($_SESSION["userpath"]);
session_unset($_SESSION["scanneronline"]);
session_unset($_SESSION['fromuserfolder']);
session_unset($_SESSION['fromuserfilelister']);
session_destroy();
include_once('lang.php');
include_once('config.inc.php');
if ($_GET['sound']=='yes')
{
echo'<audio autoplay>
<source src="'.$soundfile.'">
</audio>';
$refreshurl='<meta HTTP-EQUIV="REFRESH" content="'.$logoutrefresh.'; url=login.php">';
}
else
{
$refreshurl='<meta HTTP-EQUIV="REFRESH" content="'.$loginrefresh.'; url=login.php">';
}
?>
<!DOCTYPE html>
<?php echo '<html lang="'.$lang.'">';
?>
<head>
<meta charset="UTF-8">
<?php echo $refreshurl;?>
<meta name="author" content="root">
<meta name="robots" content="noindex">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $pagetitle; ?></title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<table id='page_header'><tr><td>
<a href='airscan.php'>
<img id='logo' src='images/AirScan.png' alt='AirScan'>
</a></td>
</tr>
<tr><td><hr></td></tr>
</table>
<br/>
<br/>
<?php echo '<center><span style="color:#666; font-weight:bold">'.$goodbye.'</span></center>';
/*
echo ' Require auth? '.$requireauth;
echo '<br> logged in? '.$_SESSION['loggedin'];
echo '<br> expires at '.$_SESSION['expire'];
echo '<br> NOW is '.$now;
echo '<br> expires in '.($_SESSION['expire']-$now);
echo '<br> SessionID '.session_id();
*/
?>
</body>
</html>