Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
KLUGLUG
KL Hostel Outing Automation
Commits
aac9d462
Commit
aac9d462
authored
Dec 02, 2020
by
PALVADI HEMA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warden login page
parent
1b74e8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
213 additions
and
0 deletions
+213
-0
2.php
2.php
+213
-0
No files found.
2.php
0 → 100644
View file @
aac9d462
<html>
<head>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<style>
.container
{
position
:
relative
;
width
:
100%
;
}
.image
{
display
:
block
;
width
:
100%
;
height
:
auto
;
}
.overlay
{
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
100%
;
width
:
100%
;
opacity
:
0
;
transition
:
.5s
ease
;
background-color
:
#F3EBF6
;
}
.container
:hover
.overlay
{
opacity
:
1
;
}
.text
{
color
:
white
;
font-size
:
20px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
text-align
:
center
;
}
</style>
</head>
<body>
<div
class=
"container"
>
<br><br><br>
<img
src=
"klu.jpg"
alt=
"Avatar"
class=
"image"
>
<div
class=
"overlay"
>
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<link
href=
"
https://fonts.googleapis.com/css?family=Ubuntu
"
rel=
"stylesheet"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<link
rel=
"stylesheet"
href=
"path/to/font-awesome/css/font-awesome.min.css"
>
<title>
Log in
</title>
</head>
<style>
body
{
background-color
:
#F3EBF6
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
.main
{
background-color
:
#FFFFFF
;
width
:
400px
;
height
:
600px
;
margin
:
7em
auto
;
border-radius
:
1.5em
;
box-shadow
:
0px
11px
35px
2px
rgba
(
0
,
0
,
0
,
0.14
);
}
.sign
{
padding-top
:
40px
;
color
:
#8C55AA
;
font-family
:
'Ubuntu'
,
sans-serif
;
font-weight
:
bold
;
font-size
:
23px
;
}
.un
{
width
:
76%
;
color
:
rgb
(
38
,
50
,
56
);
font-weight
:
700
;
font-size
:
14px
;
letter-spacing
:
1px
;
background
:
rgba
(
136
,
126
,
126
,
0.04
);
padding
:
10px
20px
;
border
:
none
;
border-radius
:
20px
;
outline
:
none
;
box-sizing
:
border-box
;
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.02
);
margin-bottom
:
50px
;
margin-left
:
46px
;
text-align
:
center
;
margin-bottom
:
27px
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
form
.form1
{
padding-top
:
40px
;
}
.pass
{
width
:
76%
;
color
:
rgb
(
38
,
50
,
56
);
font-weight
:
700
;
font-size
:
14px
;
letter-spacing
:
1px
;
background
:
rgba
(
136
,
126
,
126
,
0.04
);
padding
:
10px
20px
;
border
:
none
;
border-radius
:
20px
;
outline
:
none
;
box-sizing
:
border-box
;
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.02
);
margin-bottom
:
50px
;
margin-left
:
46px
;
text-align
:
center
;
margin-bottom
:
27px
;
font-family
:
'Ubuntu'
,
sans-serif
;
}
.un
:focus
,
.pass
:focus
{
border
:
2px
solid
rgba
(
0
,
0
,
0
,
0.18
)
!important
;
}
.submit
{
cursor
:
pointer
;
border-radius
:
5em
;
color
:
#fff
;
background
:
linear-gradient
(
to
right
,
#9C27B0
,
#E040FB
);
border
:
0
;
padding-left
:
40px
;
padding-right
:
40px
;
padding-bottom
:
10px
;
padding-top
:
10px
;
font-family
:
'Ubuntu'
,
sans-serif
;
margin-left
:
35%
;
font-size
:
13px
;
box-shadow
:
0
0
20px
1px
rgba
(
0
,
0
,
0
,
0.04
);
}
.forgot
{
text-shadow
:
0px
0px
3px
rgba
(
117
,
117
,
117
,
0.12
);
color
:
#E1BEE7
;
padding-top
:
15px
;
}
a
{
text-shadow
:
0px
0px
3px
rgba
(
117
,
117
,
117
,
0.12
);
color
:
#E1BEE7
;
text-decoration
:
none
}
@media
(
max-width
:
600px
)
{
.main
{
border-radius
:
0px
;
}
</style>
<body>
<div
class=
"main"
>
<p
class=
"sign"
align=
"center"
>
Log in
</p>
<form
class=
"form1"
method=
"POST"
action=
""
>
<input
class=
"un "
type=
"text"
name=
"user_id"
align=
"center"
placeholder=
"Username"
required
><br>
<input
class=
"pass"
type=
"password"
name=
"user_pass"
align=
"center"
placeholder=
"Password"
required
>
<input
class=
"submit"
type=
"submit"
align=
"center"
type=
"submit"
name=
"search"
value=
"Sign up"
>
<p>
Don't have an account?
<a
href=
"registrer2.php"
>
Sign Up here
</a>
.
</p>
<center>
<img
src=
"kl.jpg"
alt=
"Snow"
style=
"width:228px;height:228px;"
>
</center>
</form>
</div>
<table>
<?php
$connection
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
$db
=
mysqli_select_db
(
$connection
,
'test'
);
if
(
isset
(
$_POST
[
'search'
]))
{
if
(
isset
(
$_POST
[
'user_id'
])
and
isset
(
$_POST
[
'user_pass'
])){
// Assigning POST values to variables.
$username
=
$_POST
[
'user_id'
];
$password
=
$_POST
[
'user_pass'
];
// CHECK FOR THE RECORD FROM TABLE
$query
=
"SELECT * FROM user_login WHERE username='
$username
' and Password='
$password
'"
;
$result
=
mysqli_query
(
$connection
,
$query
)
or
die
(
mysqli_error
(
$connection
));
$count
=
mysqli_num_rows
(
$result
);
if
(
$count
==
1
){
session_start
();
header
(
"Location😮k.php"
);
}
}
}
?>
</table></center></body>
</div>
</div>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment