-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_recovery_key.php
executable file
·159 lines (116 loc) · 6.5 KB
/
new_recovery_key.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
159
<?php
/* START THE USER SESSION IF NEED BE */
@session_start();
//IF THE USER IS AN ADMINISTRATOR LOG THEM IN AS ONE
if(@$_SESSION['154dm1n']){
include "redirect.php";
$go = new redirect("cpanel.php");
die();
}
//IF THE USER IS ALREADY LOGED IN, KEEP IT SO
if(@$_SESSION['l031n45'] != ''){
include 'redirect.php';
$logedin = new redirect('panel.php');
die();
//OTHERWISE KEEP A LOG OF THE CURRENT PAGE
}else if(!isset($_SESSION['currpage'])){
$_SESSION['currpage'] = 'login.php';
}
?>
<!DOCTYPE html>
<html lang="en" manifest="cache.appcache">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="University OF Eastern Africa Baraton Room Reservation, UEAB, RoomRes, The Cnnection, Iarasoft">
<meta name="keywords" content="UEAB Room Reservation, Room Reservation, Students Rooms, UEAB, Baraton">
<meta name="author" content="The Connection, Iarasoft">
<link rel="icon" href="favicon.ico">
<title>UEAB | Room Reservation - Activation Key Request</title>
<!-- BOOTSTRAP CSS (REQUIRED ALL PAGE)-->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- MAIN CSS (REQUIRED ALL PAGE)-->
<link href="assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/style-responsive.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="lock tooltips" style="min-height: 113px; background: rgb(55,53,191); /* Old browsers */
background: -moz-radial-gradient(center, ellipse cover, rgba(55,53,191,1) 0%, rgba(35,34,122,1) 100%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(55,53,191,1)), color-stop(100%,rgba(35,34,122,1))); /* Chrome,Safari4+ */
background: -webkit-radial-gradient(center, ellipse cover, rgba(55,53,191,1) 0%,rgba(35,34,122,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-radial-gradient(center, ellipse cover, rgba(55,53,191,1) 0%,rgba(35,34,122,1) 100%); /* Opera 12+ */
background: -ms-radial-gradient(center, ellipse cover, rgba(55,53,191,1) 0%,rgba(35,34,122,1) 100%); /* IE10+ */
background: radial-gradient(ellipse at center, rgba(55,53,191,1) 0%,rgba(35,34,122,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3735bf', endColorstr='#23227a',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */" >
<!--
===========================================================
BEGIN PAGE
===========================================================
--><div class="login-header text-center">
<img src="assets/img/logo-login.png" class="logo" alt="UEAB|Room Reservation">
</div>
<div class="login-wrapper" >
<div id="repondre"></div>
<div id="form">
<div class="form-group has-feedback lg left-feedback no-label">
<input type="text" class="form-control no-border input-lg rounded" id="username" required="required" placeholder="School ID" autofocus>
<span class="fa fa-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback lg left-feedback no-label">
<input type="email" class="form-control no-border input-lg rounded" id="email" required="required" placeholder="email">
<span class="fa fa-unlock-alt form-control-feedback"></span>
</div>
<input type="hidden" name="act" value="login" readonly />
<div class="form-group">
<button type="submit" id="verify" class="btn btn-success btn-lg btn-perspective btn-block">GET VERIFICATION KEY </button>
</div>
</div>
<p class="text-center"><strong><a href="new_password.php">Forgot your password?</a></strong></p>
<p class="text-center">or</p>
<p class="text-center"><strong><a href="new_reservant.php">Create new account</a></strong></p>
</div><!-- /.login-wrapper --><!-- /.login-wrapper -->
<!--
===========================================================
END PAGE
===========================================================
-->
<!--
===========================================================
Placed at the end of the document so the pages load faster
===========================================================
-->
<!-- MAIN JAVASRCIPT (REQUIRED ALL PAGE)-->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/plugins/retina/retina.min.js"></script>
<script>
$(function(){
$("#verify").click(function(){
usr = $("#username").val();
pas = $("#email").val();
if(usr.length < 5){
$("#username").focus();
$("#username").addClass("bg-warning")
}else if( pas.length == 0 ){
$("#email").focus().addClass("bg-warning")
}else{
$.post("proc_adds.php", {act: "request_activation", username: usr , email: pas},
function(data, status){
$("#repondre").html(data);
});
}
});
});
</script>
<!-- JQUERY BACKSTRETCH JS -->
<script src="assets/plugins/backstretch/jquery.backstretch.min.js"></script>
<script>
/* $.backstretch("", {speed: 500});*/
</script>
</body>
</html>