-
Notifications
You must be signed in to change notification settings - Fork 10
/
registration.php
91 lines (83 loc) · 3.84 KB
/
registration.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
<?php
/*
* This file is part of enviroCar.
*
* enviroCar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* enviroCar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with enviroCar. If not, see <http://www.gnu.org/licenses/>.
*/
require_once('./assets/includes/authentification.php');
$logged_in = false;
if(!is_logged_in()){
$logged_in = false;
include('header-start.php');
}else{
$logged_in = true;
include('header.php');
}
?>
<!-- Validate plugin -->
<script src="./assets/js/jquery.validate.min.js"></script>
<?
if(isset($_GET['name_taken'])){
?>
<div class="container alert alert-block alert-info fade in">
<a class="close" data-dismiss="alert">×</a>
<? echo $index_register_name_taken; ?>
</div>
<?
}
?>
<div class="container rightband">
<div class="row-fluid">
<div class="span6 offset2">
<form action="./assets/includes/authentification.php?registration" id="contact-form" class="form-horizontal" method="post">
<h3 class="form-signin-heading"><?php echo $reg_registration;?></h3>
<div class="control-group">
<label class="control-label" for="name">Nick-Name</label>
<div class="controls">
<input type="text" class="input-xlarge" name="name" id="name" placeholder="Nick-Name" required data-validation-ajax-ajax='./assets/includes/users.php?user-exists' data-validation-username-message="<?php echo $username_validation_message ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="registrationemail"><?php echo $reg_email;?></label>
<div class="controls">
<input type="email" class="input-xlarge" name="email" id="registrationemail" placeholder="<?php echo $reg_email;?>" required data-validation-required-message="<?php echo $required_validation_message ?>" aria-invalid="true" data-validation-email-message="<?php echo $email_validation_message ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password1"><?php echo $reg_password;?></label>
<div class="controls">
<input class="input-xlarge" name="password1" type="password" required data-validation-required-message="<?php echo $required_validation_message ?>" minlength="6" data-validation-minlength-message="<?php echo $password_validation_message ?>" id="password1" placeholder="<?php echo $reg_password;?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password2" ><?php echo $reg_repeat_password;?></label>
<div class="controls">
<input class="input-xlarge" name="password2" type="password" id="password2" placeholder="<?php echo $reg_repeat_password;?>" required data-validation-required-message="<?php echo $required_validation_message ?>" data-validation-match-match="password1" data-validation-match-message="<?php echo $password_match_validation_message ?>">
</div>
</div>
<div class="control-group">
<div class="controls">
<!-- <button class="btn btn-medium btn-primary" type="reset" value="Reset" onClick="window.location.reload()"><?php echo $reg_btn_reset;?></button> -->
<button type="submit" class="btn btn-medium btn-primary"><?php echo $reg_btn_register;?></button>
</div>
</div>
</form>
<!-- <input type="checkbox" id="accept_terms" name="accept_terms" value="accept_terms"> <?php echo $terms_check ?>-->
</div>
</div>
</div>
<script src="./assets/js/jqBootstrapValidation.js"></script>
<?
include('footer.php');
?>