forked from hackerfrog/Face-Detect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (138 loc) · 3.13 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Kaushan+Script|Indie+Flower" rel="stylesheet">
<style>
* {
font-family: 'Indie Flower', cursive;
color: #FFF;
font-size: 20px;
}
input {
background: transparent;
color: #FFF;
border: 1px solid #FFF;
padding: 6px 12px;
border-radius: 4px;
}
input[type="submit"] {
background: rgba(256, 256, 256, 0.2);
padding: 6px 24px;
}
input[type="submit"]:hover {
background: rgba(256, 256, 256, 0.1);
}
body {
padding: 0px;
margin: 0px;
background-color: #184890;
background: linear-gradient(145deg, #4878A8 0%, #184890 40%, #142A69 85%);
}
span.error {
border-radius: 4px;
background: #FCC;
color: #142A69;
font-weight: bold;
font-size: 80%;
display: inline-block;
padding: 2px 24px;
margin-bottom: 10px;
border: 1px solid #FF4444;
}
.logo-bar {
display: inline-block;
background-color: #333;
width: 33%;
border-bottom: 4px solid #666;
outline: 1px solid #FFF;
}
.logo-bar img {
height: 80px;
padding: 10px;
}
.work {
margin-top: -50px;
width: 90%;
border: 1px solid #FFF;
padding: 100px 20px 60px 20px;
background: url('img/bg.png');
background-color: rgba(0, 0, 0, 0.2);
}
.work .by .left, .work .by .right {
bottom: 0px;
display: inline-block;
padding: 0 20px;
}
.work .by .left {
float: left;
left: 0px;
}
.work .by .right {
float: right;
right: 0px;
}
.work .title {
margin-bottom: 30px;
font-family: 'Kaushan Script', cursive;
font-size: 42px;
}
</style>
</head>
<body>
<center>
<div class="logo-bar">
<img src="img/YV-LOGO.png">
</div>
<div class="work">
<div class="title">
Face Detect
</div>
<?php
if(@$_GET['error'] == 'empty') {
?>
<span class="error">Error : Please select image...!</span>
<?php
} elseif (@$_GET['error'] == 'no') {
?>
<span class="error">Error : Uploaded but can't process..!</span>
<?php
} elseif (@$_GET['error'] == 'fail') {
?>
<span class="error">Error : Upload fail..!</span>
<?php
} elseif (@$_GET['error'] == 'detect') {
?>
<span class="error">Error : Sorry can't detect face..!</span>
<?php
}
?>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="image" id="select">
<input type="submit" name="upload" value="Upload">
</form>
<h3><tt>- OR -</tt></h3>
<?php
if (@$_GET['error'] == 'wrong') {
?>
<span class="error">Error : You have entered Wrong Image URL..!</span>
<?php
}
?>
<form action="data.php" method="get">
<label for="url">Insert URL : </label>
<input type="url" name="link" id="url">
<input type="submit" value="Submit URL">
</form>
<div class="by">
<div class="left">
Lovepreet Singh<br />
YV-16-10285
</div>
<div class="right">
Ashish Kaktan<br />
YV-16-10252
</div>
</div>
</div>
</center>
</body>
</html>