forked from msaad1999/PHP-Login-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
478 additions
and
244 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>New Contact Form Entry</title> | ||
<style type="text/css"> | ||
body { | ||
width: 100%; | ||
background-color: #ffffff; | ||
margin: 0; | ||
margin-top: 70px; | ||
padding: 0; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
p, | ||
h1, | ||
h2, | ||
h3, | ||
h4 { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
} | ||
span.preheader { | ||
display: none; | ||
font-size: 1px; | ||
} | ||
html { | ||
width: 100%; | ||
} | ||
table { | ||
font-size: 14px; | ||
border: 0; | ||
} | ||
/* ----------- responsivity ----------- */ | ||
@media only screen and (max-width: 640px) { | ||
/*------ top header ------ */ | ||
.main-header { | ||
font-size: 20px !important; | ||
} | ||
.main-section-header { | ||
font-size: 28px !important; | ||
} | ||
.show { | ||
display: block !important; | ||
} | ||
.hide { | ||
display: none !important; | ||
} | ||
.align-center { | ||
text-align: center !important; | ||
} | ||
.no-bg { | ||
background: none !important; | ||
} | ||
/*----- main image -------*/ | ||
.main-image img { | ||
width: 440px !important; | ||
height: auto !important; | ||
} | ||
/* ====== divider ====== */ | ||
.divider img { | ||
width: 440px !important; | ||
} | ||
/*-------- container --------*/ | ||
.container590 { | ||
width: 440px !important; | ||
} | ||
.container580 { | ||
width: 400px !important; | ||
} | ||
.main-button { | ||
width: 220px !important; | ||
} | ||
/*-------- secions ----------*/ | ||
.section-img img { | ||
width: 320px !important; | ||
height: auto !important; | ||
} | ||
.team-img img { | ||
width: 100% !important; | ||
height: auto !important; | ||
} | ||
} | ||
@media only screen and (max-width: 479px) { | ||
/*------ top header ------ */ | ||
.main-header { | ||
font-size: 18px !important; | ||
} | ||
.main-section-header { | ||
font-size: 26px !important; | ||
} | ||
/* ====== divider ====== */ | ||
.divider img { | ||
width: 280px !important; | ||
} | ||
/*-------- container --------*/ | ||
.container590 { | ||
width: 280px !important; | ||
} | ||
.container590 { | ||
width: 280px !important; | ||
} | ||
.container580 { | ||
width: 260px !important; | ||
} | ||
/*-------- secions ----------*/ | ||
.section-img img { | ||
width: 280px !important; | ||
height: auto !important; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body class="respond" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | ||
<table border="0" width="100%" cellpadding="0" cellspacing="0" bgcolor="ffffff" class="bg_color"> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" align="center" width="590" cellpadding="0" cellspacing="0" class="container590"> | ||
<tr> | ||
<td height="20" style="font-size: 20px; line-height: 20px;"> </td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="color: #343434; font-size: 24px; font-family: Quicksand, Calibri, sans-serif; font-weight:700;letter-spacing: 3px; line-height: 35px;" | ||
class="main-header"> | ||
<div style="line-height: 35px"> | ||
<span style="color: #5caad2;">{{ APP_NAME }}:</span> New Contact Form Entry | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="10" style="font-size: 10px; line-height: 10px;"> </td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" width="40" align="center" cellpadding="0" cellspacing="0" bgcolor="eeeeee"> | ||
<tr> | ||
<td height="2" style="font-size: 2px; line-height: 2px;"> </td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="70" style="font-size: 20px; line-height: 20px;"> </td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" width="400" align="center" cellpadding="0" cellspacing="0" class="container590"> | ||
<tr> | ||
<td align="left" style="color: #888888; font-size: 16px; font-family: 'Work Sans', Calibri, sans-serif; line-height: 24px;"> | ||
<div style="line-height: 24px"> | ||
Name: {{ username }} <br> | ||
Email: {{ email }} <br> | ||
Message: | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="25" style="font-size: 25px; line-height: 25px;"> </td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" width="400" align="center" cellpadding="0" cellspacing="0" class="container590"> | ||
<tr> | ||
<td align="left" style="color: #888888; font-size: 16px; font-family: 'Work Sans', Calibri, sans-serif; line-height: 24px;"> | ||
<div style="line-height: 24px"> | ||
{{ message }} | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="25" style="font-size: 25px; line-height: 25px;"> </td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr class="hide"> | ||
<td height="25" style="font-size: 25px; line-height: 25px;"> </td> | ||
</tr> | ||
<tr> | ||
<td height="40" style="font-size: 40px; line-height: 40px;"> </td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<?php | ||
|
||
include 'assets/setup/db.inc.php'; | ||
if (isset($_SESSION['auth'])) { | ||
|
||
if (isset($_SESSION['userId'])) { | ||
|
||
header("Location: ./home"); | ||
header("Location: home"); | ||
exit(); | ||
} | ||
else { | ||
|
||
header("Location: ./login"); | ||
header("Location: login"); | ||
exit(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters