-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
187 lines (157 loc) · 6.64 KB
/
signup.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php
// Inialize session
session_start();
// Check, if user is already login, then jump to secured page
if (isset($_SESSION['username']) || isset($_COOKIE['username']) ) {
header('Location: /');
}
/* UNSETTING COOKIES */
/*
if (isset($_SERVER['HTTP_COOKIE'])) {
$cookies = explode(';', $_SERVER['HTTP_COOKIE']);
foreach($cookies as $cookie) {
$parts = explode('=', $cookie);
$name = trim($parts[0]);
setcookie($name, '', time()-1000);
setcookie($name, '', time()-1000, '/');
}
}
*/
$app_name = "Closerly";
$nav_bar_class = "navbar navbar-inverse navbar-fixed-top";
$boot_style = "css/bootstrap.min.css";
$body_style = "css/bodyStyle.css";
$form_style = "css/signin-form.css";
if(!isset($_COOKIE['theme'])) {
setcookie('theme',"light",time()+60*60*24*30,"/");
}
$theme = $_COOKIE['theme'];
if ($theme == "dark") {
$nav_bar_class = "navbar navbar-fixed-top";
$boot_style = "css/bootstrap.cyborg.css";
$body_style = "css/bodyStyle.cyborg.css";
$form_style = "css/signin-form.cyborg.css";
}
?>
<!DOCTYPE html>
<!--
______ __ ______ _______. _______ .______ __ ____ ____
/ || | / __ \ / || ____|| _ \ | | \ \ / /
| ,----'| | | | | | | (----`| |__ | |_) | | | \ \/ /
| | | | | | | | \ \ | __| | / | | \_ _/
| `----.| `----.| `--' | .----) | | |____ | |\ \----.| `----. | |
\______||_______| \______/ |_______/ |_______|| _| `._____||_______| |__|
Copyrights of Closerly.
Developed by Ali Asgar K.N. and Harshit Jain.
Thanks for being interested in our source code.
If you have any suggestions send them to [email protected]
-->
<html lang="en">
<head>
<meta name="google-site-verification" content="MXGtplCoVWZPjW9N_c05GikqC82dH1dzk9HyHNKNsrU" />
<meta charset="utf-8">
<title>Sign up · Closerly</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Login Form for WebText">
<meta name="author" content="Ali">
<!-- Le styles -->
<link href=<?php echo $boot_style;?> rel="stylesheet">
<link href=<?php echo $body_style;?> rel="stylesheet">
<link href=<?php echo $form_style;?> rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<script src="js/cookie.js"></script>
<?php include_once("backend/analyticstracking.php"); ?>
</head>
<body>
<div class="navbar navbar-fixed-top" id = "navbar_top">
<script>
setTheme();
</script>
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="http://closerly.com" style="height: 40px; padding-top: 0; padding-bottom: 0;">
<img id="logo" alt="Closerly Logo" width = "33px" height = "33px" src="images/closerly-logo-navbar.png" style="padding: 0; border: 0; vertical-align: middle;" />
<span style="line-height: 40px;">Closerly</span>
</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="login.php">Sign In</a></li>
<li class="active"><a href="#">Sign Up</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!--
<header class="jumbotron subhead" id="overview">
<img src = "images/banner1.png"/>
</header>
-->
<div class = "row" style = "margin-top:1em;">
</div>
<div class="container">
<div class = "row-fluid">
<div class = "span12">
<div class="well well-large page-header">
<h1>
<img id="logo" alt="Closerly Logo" width = "60" height = "60" src="images/closerly-logo.png" style="padding: 0; border: 0; vertical-align: middle;" />
Closerly<small> Stay Connected! Always!</small>
</h1>
</div>
</div>
</div>
<div class = "row-fluid">
<div class = "span8">
<div class="well well-large">
<p class="lead">Welcome to our Sign Up Page!</p>
<div class = "row-fluid span12 header-underline" style = "margin-left: 0px; margin-top: 0px; padding-top:0px; padding-left:0px; margin-right: 10px;"></div>
<p> </p>
<p class = "closerly-text">Thank you for your interest! Closerly is in closed beta right now.
Please sign yourself up for our mailing list by entering your Email ID on the right.
We'll send you your key during the next round of invites! :D
</p>
<p> </p>
<p class = "closerly-text">Our app can be downloaded from the
<a href="https://play.google.com/store/apps/details?id=com.insignia.web.sms">Google Play Store</a>.</p>
<p class = "closerly-text">In case of any queries, do get back to us at <a href="mailto:[email protected]?subject=Bug Report">[email protected]</a>.</p>
<p class = "closerly-text">Cheers!</p>
</div>
</div>
<div class = "span4">
<section id ="form">
<form class="form-signin" method = "post" action = "signup.php" target="passwordIframe" onsubmit = "return check(this);">
<h2 class="form-signin-heading">Sign up</h2><br/>
<input type="email" name="username" id="email" class="input-block-level" placeholder="Email address">
<p id = "result" class = "text-error"></p>
<button class="btn btn-large btn-primary" type="submit">Sign up</button>
</form>
<iframe id="passwordIframe" src="blank.html" name="passwordIframe" style='display:none'></iframe>
</div>
</div>
</div>
<hr/>
<footer>
<center><p>© <a href="http://closerly.com">Closerly</a> | Developed by: <a href="mailto:[email protected]?subject=Closerly Support">Ali Asgar</a> and <a href="mailto:[email protected]?subject=Closerly Support">Harshit Jain</a></p></center>
</footer>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="js/sessionHandler.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/signup.js"></script>
<script src="js/sha256.js"></script>
</body>
</html>