Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id: signup_form.php 1508 2011-09-07 18:51:47Z Luisehahne $
14
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/signup_form.php $
15
 * @lastmodified    $Date: 2011-09-07 20:51:47 +0200 (Wed, 07 Sep 2011) $
16
 *
17
 */
18

    
19
// Must include code to stop this file being access directly
20
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); }
21

    
22
require_once(WB_PATH.'/include/captcha/captcha.php');
23

    
24
$_SESSION['PAGE_LINK'] = get_page_link( $_SESSION['PAGE_ID'] );
25
$_SESSION['HTTP_REFERER'] = page_link($_SESSION['PAGE_LINK']);
26

    
27
?>
28
<div style="margin: 1em auto;">
29
	<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button>
30
</div>
31
<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?></h1>
32

    
33
<form name="user" action="<?php echo WB_URL.'/account/signup.php'; ?>" method="post">
34
	<?php echo $admin->getFTAN(); ?>
35
	<?php if(ENABLED_ASP) { // add some honeypot-fields
36
	?>
37
    <div style="display:none;">
38
	<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" />
39
	<p class="nixhier">
40
	email-address:
41
	<label for="email-address">Leave this field email-address blank:</label>
42
	<input id="email-address" name="email-address" size="60" value="" /><br />
43
	username (id):
44
	<label for="name">Leave this field name blank:</label>
45
	<input id="name" name="name" size="60" value="" /><br />
46
	Full Name:
47
	<label for="full_name">Leave this field full_name blank:</label>
48
	<input id="full_name" name="full_name" size="60" value="" /><br />
49
	</p>
50
	<?php }
51
	?>
52
    </div>
53
<table cellpadding="5" cellspacing="0" border="0" width="90%">
54
<tr>
55
	<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td>
56
	<td class="value_input">
57
		<input type="text" name="username" maxlength="30" style="width:300px;"/>
58
	</td>
59
</tr>
60
<tr>
61
	<td><?php echo $TEXT['DISPLAY_NAME']; ?> (<?php echo $TEXT['FULL_NAME']; ?>):</td>
62
	<td class="value_input">
63
		<input type="text" name="display_name" maxlength="255" style="width:300px;" />
64
	</td>
65
</tr>
66
<tr>
67
	<td><?php echo $TEXT['EMAIL']; ?>:</td>
68
	<td class="value_input">
69
		<input type="text" name="email" maxlength="255" style="width:300px;"/>
70
	</td>
71
</tr>
72
<?php
73
// Captcha
74
if(ENABLED_CAPTCHA) {
75
	?><tr>
76
		<td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td>
77
		<td><?php call_captcha(); ?></td>
78
		</tr>
79
	<?php
80
}
81
?>
82
<tr>
83
	<td>&nbsp;</td>
84
	<td>
85
		<input type="submit" name="submit" value="<?php echo $TEXT['SIGNUP']; ?>" />
86
		<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>" />
87
	</td>
88
</tr>
89
</table>
90

    
91
</form>
92

    
93
<br />
94
&nbsp; 
(15-15/16)