-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.php
More file actions
169 lines (163 loc) · 5.2 KB
/
index.php
File metadata and controls
169 lines (163 loc) · 5.2 KB
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
160
161
162
163
164
165
166
167
168
169
<?php
include 'header.php';
?>
<meta name="google-signin-client_id" content="622737373928-51le5sshrtqgfjvb4u9lu69iqt0ck6s3.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<title>C A N V A S</title>
<body>
<div class="container-fluid" style="background-image:url(images/bg.gif); background-size:cover">
<div class="<?php $r=isset($_SESSION['id'])?'col-lg-12':'col-lg-8'; echo $r; ?>">
<p style="font-size:55px; font-family:Bahnschrift Light; color:black ;padding-top:40px" class="<?php $t=isset($_SESSION['id'])?'text-center':''; echo $t;?>"><strong>Take notes anywhere <br> Find information faster <br> Share ideas with anyone </strong></p>
</div>
<div class="col-lg-3">
<?php
$x=isset($_GET['signup'])?$_GET['signup']:'';
if($x=='1')
{
if(isset($_GET['msg1']))
{
$msg1=$_GET['msg1'];
}
else
{
$msg1='';
echo '<h1 class="text-center" style="color:black"><strong>SIGN UP</strong></h1>'.
'<h4 class="text-center">'.$msg1.'</h4>'
.'<form class="form-vertical" action="db.php" method="post">
<br>
<input type="text" class="form-control well1 if" name="name" placeholder="Enter Name" required>
<br><br>
<input type="text" class="form-control well1 if" name="email" placeholder="Enter Email" required>
<br><br>
<input type="text" class="form-control well1 if" name="mobile" placeholder="Enter Mobile" required>
<br><br>
<input type="password" class="form-control well1 if" name="pass" placeholder="Enter Password" required>
<br>
<label>Role :</label>
<br>
<label>Teacher :</label>
<input type="radio" name="p" value="teacher">
<br>
<label>Student :</label>
<input type="radio" name="p" value="student">
<br>
<div class="col-lg-6 col-lg-offset-4">
<input type="submit" class="btn btn_web btn-lg x" name="signup" value="Register">
<br>
<br>
</div>
<div class="col-lg-12">
<a href="index.php?signup=0" style="text-decoration:none" class="col-lg-offset-3">Already have an account?</a>
</div>
<br><br>
</form>';
}
}
if(isset($_GET['reset']))
{
if(isset($_GET['msg']))
{
$msg=$_GET['msg'];
}
else
{
$msg='';
echo '<h1 class="text-center" style="color:black"><strong>RESET PASSWORD</strong></h1>'.$msg.'
<form class="form-vertical" action="db.php" method="post">
<input type="text" class="form-control well1 if" name="email" placeholder="Enter Email" required>
<br><br>
<div class="col-lg-6 col-lg-offset-2 ">
<input type="submit" class="btn btn_web btn-lg x" align="center" name="resetpass" value="Reset Password">
</div>
</form>';
}
}
if(!isset($_SESSION['id']) and $x!=1 and !isset($_GET['reset']))
{
if(isset($_GET['msg']))
{
$msg=$_GET['msg'];
}
else
{
$msg='';
}
echo '<h1 class="text-center" style="color:black"><strong>LOGIN</strong></h1>'.
'<h4 class="text-center">'.$msg.'</h4>'
.'<form class="form-vertical" action="db.php" method="post">
<br>
<input type="text" class="form-control well1 if" name="email" title="Email is required" placeholder="Enter Email" required>
<br><br>
<input type="password" class="form-control well1 if" name="pass" title="Password is required" placeholder="Enter Password" required>
<br>
<div class="col-lg-6 col-lg-offset-4">
<input type="submit" class="btn btn_web btn-lg" name="login" value="Login">
<br>
<br>
</div>
<div class="col-lg-12">
<a href="index.php?reset=1" style="text-decoration:none" class="col-lg-offset-3 text-center">Forgot password?</a>
</div>
<br><br>
</form>';
}
?>
</div>
</div>
<br>
<br>
<br>
<!--<h1 class="text-center c"><strong>Features</strong></h1>
<hr>-->
<div class="container">
<div class="col-lg-5">
<img src="images/access.png" class="img-responsive img-rounded gif">
</div>
<div class="col-lg-6">
<p class="text-center home_p"><strong>"Get the required content anywhere, anytime!"</strong></p>
</div>
</div>
<hr>
<div class="container">
<div class="col-lg-6">
<p class="text-center home_p" style="color:purple"><strong>"Cloud based storage for easy access"</strong></p>
</div>
<div class="col-lg-5">
<img src="images/cs.jpg" class="img-responsive img-rounded gif">
</div>
</div>
<hr>
<div class="container">
<div class="col-lg-5">
<img src="images/discuss.png" class="img-responsive img-rounded gif">
</div>
<div class="col-lg-6">
<p class="text-center home_p" style="color:brown"><strong>"Share your ideas with people across world"</strong></p>
</div>
</div>
<hr>
<div class="container">
<div class="col-lg-6">
<p class="text-center home_p" style="color:grey"><strong>"Your data is safe with us"</strong></p>
</div>
<div class="col-lg-5">
<img src="images/secure.png" class="img-responsive img-rounded gif">
</div>
</div>
<hr>
<div class="container">
<div class="col-lg-5">
<img src="images/technical.jpg" class="img-responsive img-rounded gif">
</div>
<div class="col-lg-6">
<p class="text-center home_p" style="color:darkgreen"><strong>"Don't worry ,our support is online 24x7"</strong></p>
</div>
</div>
<br>
<br>
<!--footer-->
<?php
include 'footer.php';
?>
</body>
</html>