-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlog.php
More file actions
36 lines (36 loc) · 775 Bytes
/
Copy pathlog.php
File metadata and controls
36 lines (36 loc) · 775 Bytes
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
<?php
if (isset($_GET['in'])) {
# code...
$email = $_GET['in'];
setcookie('email',$email,time()+86400,'/');
?>
<script>
window.location.assign("dashboard.php");
</script>
<?php
}elseif (isset($_GET['te'])) {
$email = $_GET['te'];
setcookie('temail',$email,time()+86400,'/');
?>
<script type="text/javascript">
window.location.assign("teacher_dashboard.php");
</script>
}
<?php
}elseif (isset($_GET['out'])) {
# code...
setcookie('temail','',time()-86400,'/');
setcookie('email','',time()-86400,'/');
?>
<script>
window.location.assign("index.php");
</script>
<?php
}else {
?>
<script>
window.location.assign("index.php");
</script>
<?php
}
?>