-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.php
52 lines (45 loc) · 1.72 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
<?php
include_once "common/base.php";
$pageTitle = "Register";
include_once "common/header.php";
define('PATH', dirname(__FILE__));
if(!empty($_POST['username'])):
include_once "inc/class.users.php";
$users = new Users($db);
echo $users->createAccount();
else:
?>
<!--Registration form-->
<div class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<form class="form-horizontal" action="signup.php" method="POST" id="registerform">
<fieldset>
<div id="legend">
<legend class="">Register</legend>
</div>
<div class="control-group">
<label class="control-label" for="username">E-mail</label>
<div class="controls">
<input type="email" id="username" name="username" placeholder="" class="form-control input-lg">
<p class="help-block">Please provide your E-mail</p>
</div>
</div>
<div class="control-group">
<!-- Button -->
<div class="controls">
<button class="btn btn-success pull-right" type="submit" name="signup" id="signup" value="Login">Register</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div style="clear: both;"></div>
<div class="push"></div>
<?php
endif;
include_once 'common/footer.php';
?>