1
|
<?php
|
2
|
|
3
|
// $Id: signup_form.php 286 2006-01-23 21:15:10Z stefan $
|
4
|
|
5
|
/*
|
6
|
|
7
|
Website Baker Project <http://www.websitebaker.org/>
|
8
|
Copyright (C) 2004-2005, 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
|
|
31
|
?>
|
32
|
|
33
|
<style>
|
34
|
.value_input input, .value_input text, .value_input select {
|
35
|
width: 300px;
|
36
|
}
|
37
|
</style>
|
38
|
|
39
|
<h1> <?php echo $TEXT['SIGNUP']; ?></h1>
|
40
|
|
41
|
<form name="user" action="<?php echo WB_URL.'/account/signup'.PAGE_EXTENSION; ?>" method="post">
|
42
|
|
43
|
<table cellpadding="5" cellspacing="0" border="0" width="90%">
|
44
|
<tr>
|
45
|
<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td>
|
46
|
<td class="value_input">
|
47
|
<input type="text" name="username" maxlength="30" />
|
48
|
</td>
|
49
|
</tr>
|
50
|
<tr>
|
51
|
<td><?php echo $TEXT['DISPLAY_NAME']; ?> (<?php echo $TEXT['FULL_NAME']; ?>):</td>
|
52
|
<td class="value_input">
|
53
|
<input type="text" name="display_name" maxlength="255" />
|
54
|
</td>
|
55
|
</tr>
|
56
|
<tr>
|
57
|
<td><?php echo $TEXT['EMAIL']; ?>:</td>
|
58
|
<td class="value_input">
|
59
|
<input type="text" name="email" maxlength="255" />
|
60
|
</td>
|
61
|
</tr>
|
62
|
<?php
|
63
|
// Captcha
|
64
|
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
|
65
|
if(CAPTCHA_VERIFICATION == true) {
|
66
|
$_SESSION['captcha'] = '';
|
67
|
for($i = 0; $i < 5; $i++) {
|
68
|
$_SESSION['captcha'] .= rand(0,9);
|
69
|
}
|
70
|
?><tr><td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td><td>
|
71
|
<table cellpadding="2" cellspacing="0" border="0">
|
72
|
<tr><td><img src="<?php echo WB_URL; ?>/include/captcha.php" alt="Captcha" /></td>
|
73
|
<td><input type="text" name="captcha" maxlength="5" /></td>
|
74
|
</tr></table>
|
75
|
</td></tr>
|
76
|
<?php
|
77
|
}
|
78
|
}
|
79
|
?>
|
80
|
<tr>
|
81
|
<td> </td>
|
82
|
<td>
|
83
|
<input type="submit" name="submit" value="<?php echo $TEXT['SIGNUP']; ?>" />
|
84
|
<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>" />
|
85
|
</td>
|
86
|
</tr>
|
87
|
</table>
|
88
|
|
89
|
</form>
|
90
|
|
91
|
<br />
|
92
|
|