forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changeEmail.php
158 lines (149 loc) · 6.53 KB
/
changeEmail.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin']==false)
{
header("location: signin.php");
}
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>E-mail Change</title>
<script type="text/javascript">
function alertPass(){
alert("Existing Incorrect Password.");
}
function alertSuccess(){
alert("Email Changed Successfully.")
}
window.onload = function(){
<?php
// if($_GET['status']=="success")
// {
// echo 'document.getElementById("error").innerHTML="Email Update Successfully" ';
// }
// else if($_GET['status']=="wrongpass")
// {
// echo 'document.getElementById("error").innerHTML="Wrong Credentials !" ';
// }
?>
}
</script>
<style>
body {
background: #EEFBFF;
background: url('img/bggg.png');
background-size: cover;
font-family: 'Montserrat' Semibold ;
}
@media screen and (max-width: 400px) {
#credit h1{
font-size: 20px;
}
}
</style>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/fontAwesome.css">
<link rel="stylesheet" href="css/light-box.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/templatemo-style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<link rel="stylesheet" href="css/findal.css">
<link rel="stylesheet" href="css/login.css">
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<header class="nav-down responsive-nav hidden-lg hidden-md">
<button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--/.navbar-header-->
<div id="main-nav" class="collapse navbar-collapse">
<nav>
<ul class="nav navbar-nav">
<li><form action="#" method="post" id="log">
<button class="btn" formaction="portal.php">Profile</button>
</form></li>
<li><form action="#" method="post" id="log">
<button class="btn" formaction="logout.php">Logout</button>
</form></li>
</ul>
</nav>
</div>
</header>
<div class="sidebar-navigation hidde-sm hidden-xs">
<div class="logo">
<img src="img/logo1.png" class="static">
</div>
<nav>
<ul>
<li>
<form action="#" method="post" id="log">
<button class="button" style="vertical-align:middle; width: 20px;" formaction="portal.php"><span>Profile</span></button>
</form>
</li>
<li>
<form action="#" method="post" id="log">
<button class="button" style="vertical-align:middle" formaction="logout.php"><span>Log out</span></button>
</form>
</li>
</ul>
</nav>
<ul class="social-icons">
<li><a href="https://www.facebook.com/saar.iitp" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
<div class="page-content">
<section id="credit" style="background: #003C4D; padding: 10px;">
<div style="text-align: center;margin-bottom: 10px;"><br><br><br><br>
<h1 id="error" style="color: #fff; text-decoration: underline; padding-left: 30px;">
<?php if(isset($_SESSION['error'])){
echo $_SESSION['error'];
unset($_SESSION['error']);
}
?>
</h1><br>
</div>
</section>
<!-- (ise kse arrange krna dekh liyo bhai )
<input name="email" hidden value=<?php //$_SESSION['email']?>>
-->
<section id="extra" style="padding: 0; background: url('./img/bggg.png');">
<h1>Change E-mail</h1><br>
<div class="container-login100">
<div class="wrap-login100">
<form class="login100-form validate-form" method="POST" action="emailchange.php">
<input name="email" hidden value=<?php echo $_SESSION['email']?> >
<div class="wrap-input100 validate-input" data-validate="Enter password">
<input class="input100" type="password" size="50" name="password" required>
<span class="focus-input100" data-placeholder="Enter your existing password"></span>
</div>
<div class="wrap-input100 validate-input" data-validate = "Valid email is: [email protected]">
<input class="input100" type="email" size="50" name="newEmail" required>
<span class="focus-input100" data-placeholder="Enter new Email"></span>
</div>
</div>
</div>
<button class="buton" type="submit">Update E-mail</button>
</form>
</section>
</div>
</body>
</html>