Project

General

Profile

1
<?php
2

    
3
// $Id: signup_form.php 253 2005-11-27 12:43:22Z ryan $
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
}
29

    
30
?>
31

    
32
<style>
33
.value_input input, .value_input text, .value_input select {
34
	width: 300px;
35
}
36
</style>
37

    
38
<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?></h1>
39

    
40
<form name="user" action="<?php echo WB_URL.'/account/signup'.PAGE_EXTENSION; ?>" method="post">
41

    
42
<table cellpadding="5" cellspacing="0" border="0" width="90%">
43
<tr>
44
	<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td>
45
	<td class="value_input">
46
		<input type="text" name="username" maxlength="30" />
47
	</td>
48
</tr>
49
<tr>
50
	<td><?php echo $TEXT['DISPLAY_NAME']; ?> (<?php echo $TEXT['FULL_NAME']; ?>):</td>
51
	<td class="value_input">
52
		<input type="text" name="display_name" maxlength="255" />
53
	</td>
54
</tr>
55
<tr>
56
	<td><?php echo $TEXT['EMAIL']; ?>:</td>
57
	<td class="value_input">
58
		<input type="text" name="email" maxlength="255" />
59
	</td>
60
</tr>
61
<?php
62
// Captcha
63
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
64
	if(CAPTCHA_VERIFICATION == true) {
65
		$_SESSION['captcha'] = '';
66
		for($i = 0; $i < 5; $i++) {
67
			$_SESSION['captcha'] .= rand(0,9);
68
		}
69
		?><tr><td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td><td>
70
		<table cellpadding="2" cellspacing="0" border="0">
71
		<tr><td><img src="<?php echo WB_URL; ?>/include/captcha.php" alt="Captcha" /></td>
72
		<td><input type="text" name="captcha" maxlength="5" /></td>
73
		</tr></table>
74
		</td></tr>
75
		<?php
76
	}
77
}
78
?>
79
<tr>
80
	<td>&nbsp;</td>
81
	<td>
82
		<input type="submit" name="submit" value="<?php echo $TEXT['SIGNUP']; ?>" />
83
		<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>" />
84
	</td>
85
</tr>
86
</table>
87

    
88
</form>
89

    
90
<br />
91
&nbsp; 
(14-14/15)