-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage2.php
More file actions
61 lines (56 loc) · 2.31 KB
/
Copy pathpage2.php
File metadata and controls
61 lines (56 loc) · 2.31 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
<?php
session_start();
if(!isset($_SESSION['useremail']) || !isset($_SESSION['usertoken'])){
header('location:login.php');
}
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://kit.fontawesome.com/73c766774e.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" >
<link rel="stylesheet" href="stylesheet/style.css">
<title>Page 2</title>
</head>
<body>
<div class="container-fluid custom-bg">
<div class="container">
<div class="box-container">
<div class="login-con">
<h1 class="text-center text-cu-1">Page 2</h1>
<div class="email-show-b">
Your Id = <?php echo $_SESSION['useremail']; ?>
</div>
<div class="log-out-btn" id="log_out">
<i class="fas fa-power-off"></i>
<div class="log-out-btn-sub1"></div>
<div class="log-out-btn-sub2"></div>
<div class="log-out-btn-sub3"></div>
<div class="log-out-btn-sub4"></div>
</div>
<a href="page1.php"><i class="fas fa-arrow-circle-right text-cu-1 m-auto"></i></a>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" ></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" ></script>
<script>
$(document).ready(function () {
$('#log_out').click(function (){
$.ajax({
type : 'POST',
url : 'ajax-process/logout.php',
success : function(response){
window.location.href = "login.php";
console.log(response);
}
});
})
});
</script>
</body>
</html>