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 1673 2012-04-18 21:08:25Z Luisehahne $
14
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/signup_form.php $
15
 * @lastmodified    $Date: 2012-04-18 23:08:25 +0200 (Wed, 18 Apr 2012) $
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
// load module language file
23
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php';
24
require_once(!file_exists($lang) ? (dirname(__FILE__)) . '/languages/EN.php' : $lang );
25

    
26
require_once(WB_PATH.'/include/captcha/captcha.php');
27
$wb = new wb('Start', 'start', false, false);
28

    
29
include_once (WB_PATH.'/framework/functions.php');
30
require(WB_PATH.'/account/save_signup.php');
31
if($_SESSION['display_form']){
32
?><div style="margin: 1em auto;">
33
	<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button>
34
</div>
35
<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?></h1>
36

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

    
96
</form>
97

    
98
<br />
99
&nbsp; 
100
<?php
101

    
102
}
(17-17/17)