1<?php
2/*
3 * e107 website system
4 *
5 * Copyright (C) 2008-2016 e107 Inc (e107.org)
6 * Released under the terms and conditions of the
7 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
8 *
9 *
10 *
11 * $Source: /cvs_backup/e107_0.8/e107_themes/templates/signup_template.php,v $
12 * $Revision: 12837 $
13 * $Date: 2012-06-19 11:08:41 +0200 (di, 19 jun 2012) $
14 * $Author: e107coders $
15 */
16
17if (!defined('e107_INIT')) { exit; }
18if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:100%"); }
19
20
21$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
22<tr>
23	<td class='forumheader3' style='width:30%;white-space:nowrap' ><label for='username'>"
24		.LAN_SIGNUP_89."{SIGNUP_IS_MANDATORY=true}<br /><span class='smalltext'>".LAN_SIGNUP_90."</span></label>
25	</td>
26	<td class='forumheader3' style='width:70%'>";
27$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
28	</td>
29</tr>";
30
31$sc_style['SIGNUP_REALNAME']['pre'] = "
32<tr>
33	<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='realname'>"
34		.LAN_SIGNUP_91."{SIGNUP_IS_MANDATORY=realname}</label>
35	</td>
36	<td class='forumheader3' style='width:70%' >";
37$sc_style['SIGNUP_REALNAME']['post'] = "
38	</td>
39</tr>";
40$sc_style['SIGNUP_GDPR_INFO']['pre'] = "<tr style='vertical-align:top'><td class='forumheader' colspan='2'  style='text-align:center'>";
41$sc_style['SIGNUP_GDPR_INFO']['post'] = "</td>
42		</tr>";
43
44
45
46if(!isset($SIGNUP_PASSWORD_LEN))
47{
48	$SIGNUP_PASSWORD_LEN = "
49	<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
50}
51
52if(!isset($SIGNUP_EXTENDED_USER_FIELDS))
53{
54	$SIGNUP_EXTENDED_USER_FIELDS	= "
55	<tr>
56		<td style='width:40%' class='forumheader3'>
57			<label>{EXTENDED_USER_FIELD_TEXT}
58			{EXTENDED_USER_FIELD_REQUIRED}</label>
59		</td>
60		<td style='width:60%' class='forumheader3'>
61			{EXTENDED_USER_FIELD_EDIT}
62		</td>
63	</tr>";
64}
65
66
67
68$sc_style['SIGNUP_SIGNATURE']['pre'] = "
69<tr>
70	<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' ><label for='signature'>".LAN_SIGNUP_93." {SIGNUP_IS_MANDATORY=signature}</label></td>
71	<td class='forumheader3' style='width:70%'>";
72
73$sc_style['SIGNUP_SIGNATURE']['post'] = "
74	</td>
75</tr>";
76
77$sc_style['SIGNUP_IMAGES']['pre'] = "
78<tr>
79	<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' ><label for='avatar'>".LAN_SIGNUP_94."{SIGNUP_IS_MANDATORY=avatar}</label></td>
80	<td class='forumheader3' style='width:70%;vertical-align:top'>";
81$sc_style['SIGNUP_IMAGES']['post'] = "
82	</td>
83</tr>";
84
85$sc_style['SIGNUP_IMAGECODE']['pre'] = "
86<tr>
87	<td class='forumheader3' style='width:30%'><label for='code-verify'>".e107::getSecureImg()->renderLabel()."{SIGNUP_IS_MANDATORY=true}</label></td>
88	<td class='forumheader3' style='width:70%'>";
89$sc_style['SIGNUP_IMAGECODE']['post'] = "
90	</td>
91</tr>";
92
93$sc_style['SIGNUP_LOGINNAME']['pre'] = "
94<tr>
95	<td class='forumheader3' style='width:30%'><label for='loginname'>".LAN_SIGNUP_81."{SIGNUP_IS_MANDATORY=true}</label></td>
96	<td class='forumheader3' style='width:70%'>";
97$sc_style['SIGNUP_LOGINNAME']['post'] = "
98	</td>
99</tr>";
100
101$sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "
102<tr>
103	<td class='forumheader3' style='width:30%;white-space:nowrap'><label>".LAN_USER_83."</label></td>
104	<td class='forumheader3' style='width:70%'>";
105$sc_style['SIGNUP_HIDE_EMAIL']['post'] = "
106	</td>
107</tr>";
108
109$sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "
110<tr>
111	<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email-confirm'>".LAN_SIGNUP_39."{SIGNUP_IS_MANDATORY=true}</label></td>
112	<td class='forumheader3' style='width:70%'>";
113$sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "
114	</td>
115</tr>";
116
117$sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>";
118$sc_style['SIGNUP_XUP']['post'] = "<h2 class='signup-divider'><span>".LAN_SIGNUP_120."</span></h2></div>";
119
120$sc_style['SIGNUP_PASSWORD1']['pre'] = "<tr>
121				<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password1'>".LAN_SIGNUP_83."{SIGNUP_IS_MANDATORY=true}</label></td>
122				<td class='forumheader3' style='width:70%'>";
123$sc_style['SIGNUP_PASSWORD1']['post'] = "</td>
124			</tr>";
125
126$sc_style['SIGNUP_PASSWORD2']['pre'] = "<tr>
127			<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='password2'>".LAN_SIGNUP_84."{SIGNUP_IS_MANDATORY=true}</label></td>
128			<td class='forumheader3' style='width:70%'>";
129$sc_style['SIGNUP_PASSWORD2']['post'] = "</td>
130		</tr>";
131
132$sc_style['SIGNUP_USERCLASS_SUBSCRIBE']['pre'] = "<tr>
133			<td class='forumheader3' style='width:30%;white-space:nowrap'><label>".LAN_SIGNUP_113."{SIGNUP_IS_MANDATORY=subscribe}</label></td>
134			<td class='forumheader3' style='width:70%'>";
135$sc_style['SIGNUP_USERCLASS_SUBSCRIBE']['post'] = "</td>
136		</tr>";
137
138
139if(!isset($COPPA_TEMPLATE))
140{
141	$COPPA_TEMPLATE =
142	LAN_SIGNUP_77." <a target='_blank' href='http://www.ftc.gov/privacy/coppafaqs.shtm'>".LAN_SIGNUP_14."</a>. "
143	.LAN_SIGNUP_15." ".e107::getParser()->emailObfuscate(SITEADMINEMAIL,LAN_SIGNUP_14)." ".LAN_SIGNUP_16."<br />
144	<br />
145	<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
146		{SIGNUP_COPPA_FORM}
147	</div>";
148}
149
150if(!isset($COPPA_FAIL))
151{
152	$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
153}
154
155//if(!defined($SIGNUP_TEXT))
156{
157	//$SIGNUP_TEXT =	$tp->parseTemplate("{SIGNUP_SIGNUP_TEXT}"); // .
158	//LAN_SIGNUP_80." <b>".LAN_SIGNUP_29."</b><br /><br />".
159	//LAN_SIGNUP_30."<br />".
160	//LAN_SIGNUP_85;
161}
162
163if(!isset($SIGNUP_BEGIN))
164{
165	$SIGNUP_BEGIN = "
166	{SIGNUP_FORM_OPEN} {SIGNUP_ADMINOPTIONS} {SIGNUP_SIGNUP_TEXT}";
167}
168
169if(!isset($SIGNUP_BODY))
170{
171	$SIGNUP_BODY = "
172	{SIGNUP_XUP}
173	<div id='default'>
174		{SIGNUP_XUP_ACTION}
175		<table class='table fborder' style='".USER_WIDTH."'>
176			{SIGNUP_DISPLAYNAME}
177			{SIGNUP_LOGINNAME}
178			{SIGNUP_REALNAME}
179			<tr>
180				<td class='forumheader3' style='width:30%;white-space:nowrap'><label for='email'>".LAN_USER_60."{SIGNUP_IS_MANDATORY=email}</label></td>
181				<td class='forumheader3' style='width:70%'>
182					{SIGNUP_EMAIL}
183				</td>
184			</tr>
185			{SIGNUP_EMAIL_CONFIRM}
186			{SIGNUP_PASSWORD1}
187			{SIGNUP_PASSWORD2}
188			{SIGNUP_HIDE_EMAIL}
189			{SIGNUP_USERCLASS_SUBSCRIBE}
190			{SIGNUP_EXTENDED_USER_FIELDS}
191			{SIGNUP_SIGNATURE}
192			{SIGNUP_IMAGES}
193			{SIGNUP_IMAGECODE}
194			{SIGNUP_GDPR_INFO}
195			<tr style='vertical-align:top'>
196				<td class='forumheader' colspan='2'  style='text-align:center'>
197					<input class='button btn btn-primary' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" />
198					<br />
199				</td>
200			</tr>
201		</table>
202	</div>
203	{SIGNUP_FORM_CLOSE}";
204}
205
206if(!isset($SIGNUP_EXTENDED_CAT))
207{
208	$SIGNUP_EXTENDED_CAT = "
209	<tr>
210		<td colspan='2' class='forumheader'>
211			{EXTENDED_CAT_TEXT}
212		</td>
213	</tr>";
214}
215
216if(!isset($SIGNUP_END))
217{
218	$SIGNUP_END = '';
219}
220
221
222
223
224// v2.x to-do
225
226$SIGNUP_TEMPLATE = array();
227$SIGNUP_TEMPLATE['start'] = $SIGNUP_BEGIN;
228$SIGNUP_TEMPLATE['end'] = $SIGNUP_END;
229$SIGNUP_TEMPLATE['body'] = $SIGNUP_BODY;
230$SIGNUP_TEMPLATE['extended-user-fields'] = $SIGNUP_EXTENDED_USER_FIELDS;
231$SIGNUP_TEMPLATE['coppa'] = '';
232$SIGNUP_TEMPLATE['coppa-fail'] = '';
233
234