Revision 1190
Added by Dietmar over 14 years ago
signup_form.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
*/ |
|
25 |
|
|
26 |
if(!defined('WB_URL')) { |
|
27 |
header('Location: ../index.php'); |
|
28 |
exit(0); |
|
29 |
} |
|
30 |
require_once(WB_PATH.'/include/captcha/captcha.php'); |
|
31 |
|
|
32 |
?> |
|
33 |
<style type="text/css"> |
|
34 |
.value_input input, .value_input text, .value_input select { |
|
35 |
width: 300px; |
|
36 |
} |
|
37 |
<?php if(ENABLED_ASP) { ?> |
|
38 |
.nixhier { display:none; } |
|
39 |
<?php } ?> |
|
40 |
</style> |
|
41 |
|
|
42 |
<h1> <?php echo $TEXT['SIGNUP']; ?></h1> |
|
43 |
|
|
44 |
<form name="user" action="<?php echo WB_URL.'/account/signup.php'; ?>" method="post"> |
|
45 |
|
|
46 |
<table cellpadding="5" cellspacing="0" border="0" width="90%"> |
|
47 |
<tr> |
|
48 |
<?php if(ENABLED_ASP) { // add some honeypot-fields |
|
49 |
?> |
|
50 |
<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" /> |
|
51 |
<p class="nixhier"> |
|
52 |
email-address: |
|
53 |
<label for="email-address">Leave this field email-address blank:</label> |
|
54 |
<input id="email-address" name="email-address" size="60" value="" /><br /> |
|
55 |
username (id): |
|
56 |
<label for="name">Leave this field name blank:</label> |
|
57 |
<input id="name" name="name" size="60" value="" /><br /> |
|
58 |
Full Name: |
|
59 |
<label for="full_name">Leave this field full_name blank:</label> |
|
60 |
<input id="full_name" name="full_name" size="60" value="" /><br /> |
|
61 |
</p> |
|
62 |
<?php } |
|
63 |
?> |
|
64 |
<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td> |
|
65 |
<td class="value_input"> |
|
66 |
<input type="text" name="username" maxlength="30" /> |
|
67 |
</td> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<td><?php echo $TEXT['DISPLAY_NAME']; ?> (<?php echo $TEXT['FULL_NAME']; ?>):</td> |
|
71 |
<td class="value_input"> |
|
72 |
<input type="text" name="display_name" maxlength="255" /> |
|
73 |
</td> |
|
74 |
</tr> |
|
75 |
<tr> |
|
76 |
<td><?php echo $TEXT['EMAIL']; ?>:</td> |
|
77 |
<td class="value_input"> |
|
78 |
<input type="text" name="email" maxlength="255" /> |
|
79 |
</td> |
|
80 |
</tr> |
|
81 |
<?php |
|
82 |
// Captcha |
|
83 |
if(ENABLED_CAPTCHA) { |
|
84 |
?><tr> |
|
85 |
<td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td> |
|
86 |
<td><?php call_captcha(); ?></td> |
|
87 |
</tr> |
|
88 |
<?php |
|
89 |
} |
|
90 |
?> |
|
91 |
<tr> |
|
92 |
<td> </td> |
|
93 |
<td> |
|
94 |
<input type="submit" name="submit" value="<?php echo $TEXT['SIGNUP']; ?>" /> |
|
95 |
<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>" /> |
|
96 |
</td> |
|
97 |
</tr> |
|
98 |
</table> |
|
99 |
|
|
100 |
</form> |
|
101 |
|
|
102 |
<br /> |
|
103 |
|
|
1 |
<?php + |
|
2 |
+ |
|
3 |
// $Id$ + |
|
4 |
+ |
|
5 |
/* + |
|
6 |
+ |
|
7 |
Website Baker Project <http://www.websitebaker.org/> + |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich + |
|
9 |
+ |
|
10 |
Website Baker is free software; you can redistribute it and/or modify + |
|
11 |
it under the terms of the GNU General Public License as published by + |
|
12 |
the Free Software Foundation; either version 2 of the License, or + |
|
13 |
(at your option) any later version. + |
|
14 |
+ |
|
15 |
Website Baker is distributed in the hope that it will be useful, + |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of + |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + |
|
18 |
GNU General Public License for more details. + |
|
19 |
+ |
|
20 |
You should have received a copy of the GNU General Public License + |
|
21 |
along with Website Baker; if not, write to the Free Software + |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + |
|
23 |
+ |
|
24 |
*/ + |
|
25 |
+ |
|
26 |
if(!defined('WB_URL')) { + |
|
27 |
header('Location: ../index.php'); + |
|
28 |
exit(0); + |
|
29 |
} + |
|
30 |
require_once(WB_PATH.'/include/captcha/captcha.php'); + |
|
31 |
+ |
|
32 |
?> + |
|
33 |
+ |
|
34 |
<h1> <?php echo $TEXT['SIGNUP']; ?></h1> + |
|
35 |
+ |
|
36 |
<form name="user" action="<?php echo WB_URL.'/account/signup.php'; ?>" method="post"> + |
|
37 |
+ |
|
38 |
<?php if(ENABLED_ASP) { // add some honeypot-fields + |
|
39 |
?> + |
|
40 |
<div style="display:none;"> + |
|
41 |
<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" /> + |
|
42 |
<p class="nixhier"> + |
|
43 |
email-address: + |
|
44 |
<label for="email-address">Leave this field email-address blank:</label> + |
|
45 |
<input id="email-address" name="email-address" size="60" value="" /><br /> + |
|
46 |
username (id): + |
|
47 |
<label for="name">Leave this field name blank:</label> + |
|
48 |
<input id="name" name="name" size="60" value="" /><br /> + |
|
49 |
Full Name: + |
|
50 |
<label for="full_name">Leave this field full_name blank:</label> + |
|
51 |
<input id="full_name" name="full_name" size="60" value="" /><br /> + |
|
52 |
</p> + |
|
53 |
<?php } + |
|
54 |
?> + |
|
55 |
</div> + |
|
56 |
<table cellpadding="5" cellspacing="0" border="0" width="90%"> + |
|
57 |
<tr> + |
|
58 |
<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td> + |
|
59 |
<td class="value_input"> + |
|
60 |
<input type="text" name="username" maxlength="30" style="width:300px;"/> + |
|
61 |
</td> + |
|
62 |
</tr> + |
|
63 |
<tr> + |
|
64 |
<td><?php echo $TEXT['DISPLAY_NAME']; ?> (<?php echo $TEXT['FULL_NAME']; ?>):</td> + |
|
65 |
<td class="value_input"> + |
|
66 |
<input type="text" name="display_name" maxlength="255" style="width:300px;" /> + |
|
67 |
</td> + |
|
68 |
</tr> + |
|
69 |
<tr> + |
|
70 |
<td><?php echo $TEXT['EMAIL']; ?>:</td> + |
|
71 |
<td class="value_input"> + |
|
72 |
<input type="text" name="email" maxlength="255" style="width:300px;"/> + |
|
73 |
</td> + |
|
74 |
</tr> + |
|
75 |
<?php + |
|
76 |
// Captcha + |
|
77 |
if(ENABLED_CAPTCHA) { + |
|
78 |
?><tr> + |
|
79 |
<td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td> + |
|
80 |
<td><?php call_captcha(); ?></td> + |
|
81 |
</tr> + |
|
82 |
<?php + |
|
83 |
} + |
|
84 |
?> + |
|
85 |
<tr> + |
|
86 |
<td> </td> + |
|
87 |
<td> + |
|
88 |
<input type="submit" name="submit" value="<?php echo $TEXT['SIGNUP']; ?>" /> + |
|
89 |
<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>" /> + |
|
90 |
</td> + |
|
91 |
</tr> + |
|
92 |
</table> + |
|
93 |
+ |
|
94 |
</form> + |
|
95 |
+ |
|
96 |
<br /> + |
|
97 |
+ |
Also available in: Unified diff
validate some output files