-
Notifications
You must be signed in to change notification settings - Fork 0
/
show_cv.php
87 lines (49 loc) · 1.45 KB
/
show_cv.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
include('functions.php');
session_start();
if(!isset($_SESSION['employer'])){
session_unset();
session_destroy();
header("Location:index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Employer Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style type="text/css">
table th,td,tr{
text-align: center;
}
.jumbotron{
min-height: 500px;
margin-bottom: 0px;
}
#bdy{
min-height: 550px;
}
</style>
</head>
<body>
<div id="bdy" class="container">
<?php
if(isset($_GET["cv_username"])) {
$cvUname=$_GET["cv_username"];
$Ext=".pdf";
$filename="uploads/".$cvUname.$Ext;
header('Content-type:application/pdf');
header('Content-disposition: inline; filename="'.$filename.'"');
header('content-Transfer-Encoding:binary');
header('Accept-Ranges:bytes');
@ readfile($filename);
}
?>
</div>
<?php include('footer.php') ?>
</body>
</html>