2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-11-12 15:01:36 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-12 15:01:36 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/signup_template.php,v $
|
2012-11-23 05:27:06 -08:00
|
|
|
* $Revision: 12837 $
|
|
|
|
* $Date: 2012-06-19 11:08:41 +0200 (di, 19 jun 2012) $
|
|
|
|
* $Author: e107coders $
|
2009-11-12 15:01:36 +00:00
|
|
|
*/
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
2009-11-12 15:01:36 +00:00
|
|
|
if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:100%"); }
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2009-10-29 11:32:58 +00:00
|
|
|
define("REQUIRED_FIELD_MARKER", "<span class='required'> *</span>");
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
|
|
|
|
<tr>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap' >"
|
|
|
|
.LAN_SIGNUP_89."<span class='required'> *</span><br /><span class='smalltext'>".LAN_SIGNUP_90."</span>
|
|
|
|
</td>
|
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2006-12-02 04:36:16 +00:00
|
|
|
$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_REALNAME']['pre'] = "
|
|
|
|
<tr>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>"
|
|
|
|
.LAN_SIGNUP_91."".req($pref['signup_option_realname'])."
|
|
|
|
</td>
|
|
|
|
<td class='forumheader3' style='width:70%' >";
|
2006-12-02 04:36:16 +00:00
|
|
|
$sc_style['SIGNUP_REALNAME']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2009-10-29 11:32:58 +00:00
|
|
|
$sc_style['SIGNUP_IS_MANDATORY']['pre'] = "<span class='required'>";
|
2007-10-11 19:46:36 +00:00
|
|
|
$sc_style['SIGNUP_IS_MANDATORY']['post'] = "</span>";
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_START))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$USERCLASS_SUBSCRIBE_START = "
|
|
|
|
<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;vertical-align:top'>"
|
|
|
|
.LAN_USER_76." ".req($pref['signup_option_class'])."<br />
|
|
|
|
<span class='smalltext'>".LAN_USER_73."</span>
|
|
|
|
</td>
|
|
|
|
<td class='forumheader3' style='width:70%;margin-left:0px'>
|
|
|
|
<table style='".USER_WIDTH."'>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_ROW))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$USERCLASS_SUBSCRIBE_ROW = "
|
|
|
|
<tr>
|
|
|
|
<td class='defaulttext' style='width:10%;vertical-align:top'>
|
|
|
|
<div {USERCLASS_INDENT}>
|
|
|
|
<input type='checkbox' name='class[]' value='{USERCLASS_ID}' {USERCLASS_CHECKED} />
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class='defaulttext' style='text-align:left;margin-left:0px;width:90%;padding-top:3px;vertical-align:top'>
|
|
|
|
{USERCLASS_NAME}<br />
|
|
|
|
<span class='smalltext'>{USERCLASS_DESCRIPTION}</span>
|
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_END))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$USERCLASS_SUBSCRIBE_END = "
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_PASSWORD_LEN))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$SIGNUP_PASSWORD_LEN = "
|
|
|
|
<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_EXTENDED_USER_FIELDS))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
|
|
|
$SIGNUP_EXTENDED_USER_FIELDS = "
|
2012-11-23 05:27:06 -08:00
|
|
|
<tr>
|
|
|
|
<td style='width:40%' class='forumheader3'>
|
|
|
|
{EXTENDED_USER_FIELD_TEXT}
|
|
|
|
{EXTENDED_USER_FIELD_REQUIRED}
|
|
|
|
</td>
|
|
|
|
<td style='width:60%' class='forumheader3'>
|
|
|
|
{EXTENDED_USER_FIELD_EDIT}
|
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($EXTENDED_USER_FIELD_REQUIRED))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2009-10-29 11:32:58 +00:00
|
|
|
$EXTENDED_USER_FIELD_REQUIRED = "<span class='required'> *</span>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2012-06-02 08:12:16 +00:00
|
|
|
/* // DEPRECATED
|
2006-12-02 04:36:16 +00:00
|
|
|
$SIGNUP_SIGNATURE_START = "
|
|
|
|
<tr>
|
2008-12-21 22:17:05 +00:00
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_SIGNUP_93." ".req($pref['signup_option_signature'])."</td>
|
2006-12-02 04:36:16 +00:00
|
|
|
<td class='forumheader3' style='width:70%' >
|
|
|
|
<textarea class='tbox' style='width:99%' name='signature' cols='10' rows='4' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>";
|
|
|
|
|
|
|
|
$SIGNUP_SIGNATURE_END = "
|
|
|
|
</textarea><br />
|
|
|
|
<div style='".USER_WIDTH."'>{REN_HELP}</div>
|
|
|
|
</td></tr>
|
|
|
|
";
|
2012-06-02 08:12:16 +00:00
|
|
|
*/
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2012-11-23 05:27:06 -08:00
|
|
|
$sc_style['SIGNUP_SIGNATURE']['pre'] = "
|
|
|
|
<tr>
|
2012-06-02 08:12:16 +00:00
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_SIGNUP_93." ".req($pref['signup_option_signature'])."</td>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2012-06-02 08:12:16 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_SIGNATURE']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2012-06-02 08:12:16 +00:00
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
$sc_style['SIGNUP_IMAGES']['pre'] = "
|
|
|
|
<tr>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' >".LAN_SIGNUP_94.req($pref['signup_option_image'])."</td>
|
|
|
|
<td class='forumheader3' style='width:70%;vertical-align:top'>";
|
2006-12-02 04:36:16 +00:00
|
|
|
$sc_style['SIGNUP_IMAGES']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_IMAGECODE']['pre'] = "
|
|
|
|
<tr>
|
2012-06-13 04:58:43 +00:00
|
|
|
<td class='forumheader3' style='width:30%'>".e107::getSecureImg()->renderLabel().req(2)."</td>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2006-12-02 04:36:16 +00:00
|
|
|
$sc_style['SIGNUP_IMAGECODE']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2012-05-31 06:07:33 +00:00
|
|
|
$sc_style['SIGNUP_LOGINNAME']['pre'] = "
|
|
|
|
<tr>
|
|
|
|
<td class='forumheader3' style='width:30%'>".LAN_SIGNUP_81.req(2)."</td>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2012-05-31 06:07:33 +00:00
|
|
|
$sc_style['SIGNUP_LOGINNAME']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2012-05-31 06:07:33 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "
|
|
|
|
<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_83."</td>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2012-05-31 06:07:33 +00:00
|
|
|
$sc_style['SIGNUP_HIDE_EMAIL']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2012-05-31 06:07:33 +00:00
|
|
|
|
|
|
|
$sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "
|
|
|
|
<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_39."</td>
|
2012-11-23 05:27:06 -08:00
|
|
|
<td class='forumheader3' style='width:70%'>";
|
2012-05-31 06:07:33 +00:00
|
|
|
$sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "
|
2012-11-23 05:27:06 -08:00
|
|
|
</td>
|
|
|
|
</tr>";
|
2012-05-31 06:07:33 +00:00
|
|
|
|
2012-06-19 09:08:41 +00:00
|
|
|
$sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>";
|
2013-06-20 15:12:56 -07:00
|
|
|
$sc_style['SIGNUP_XUP']['post'] = "<h2 class='signup-divider'><span>OR</span></h2></div>";
|
2012-06-19 09:08:41 +00:00
|
|
|
|
2015-05-12 20:15:05 -07:00
|
|
|
$sc_style['SIGNUP_PASSWORD1']['pre'] = "<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_83."<span class='required'> *</span></td>
|
|
|
|
<td class='forumheader3' style='width:70%'>";
|
|
|
|
$sc_style['SIGNUP_PASSWORD1']['post'] = "</td>
|
|
|
|
</tr>";
|
|
|
|
|
|
|
|
$sc_style['SIGNUP_PASSWORD2']['pre'] = "<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_84."<span class='required'> *</span></td>
|
|
|
|
<td class='forumheader3' style='width:70%'>";
|
|
|
|
$sc_style['SIGNUP_PASSWORD2']['post'] = "</td>
|
|
|
|
</tr>";
|
|
|
|
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($COPPA_TEMPLATE))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$COPPA_TEMPLATE =
|
|
|
|
LAN_SIGNUP_77." <a href='http://www.ftc.gov/privacy/coppafaqs.shtm'>".LAN_SIGNUP_14."</a>. "
|
|
|
|
.LAN_SIGNUP_15." ".$tp->emailObfuscate(SITEADMINEMAIL,LAN_SIGNUP_14)." ".LAN_SIGNUP_16."<br />
|
|
|
|
<br />
|
|
|
|
<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
|
|
|
|
{SIGNUP_COPPA_FORM}
|
|
|
|
</div>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($COPPA_FAIL))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2012-11-28 19:07:08 -08:00
|
|
|
//if(!defined($SIGNUP_TEXT))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-28 19:07:08 -08:00
|
|
|
//$SIGNUP_TEXT = $tp->parseTemplate("{SIGNUP_SIGNUP_TEXT}"); // .
|
2012-11-28 18:56:52 -08:00
|
|
|
//LAN_SIGNUP_80." <b>".LAN_SIGNUP_29."</b><br /><br />".
|
|
|
|
//LAN_SIGNUP_30."<br />".
|
|
|
|
//LAN_SIGNUP_85;
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_BEGIN))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$SIGNUP_BEGIN = "
|
2015-05-16 19:17:24 -07:00
|
|
|
{SIGNUP_FORM_OPEN} {SIGNUP_ADMINOPTIONS} {SIGNUP_SIGNUP_TEXT}";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_BODY))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$SIGNUP_BODY = "
|
|
|
|
{SIGNUP_XUP}
|
|
|
|
<div id='default'>
|
|
|
|
{SIGNUP_XUP_ACTION}
|
2012-12-22 00:59:56 -08:00
|
|
|
<table class='table fborder' style='".USER_WIDTH."'>
|
2012-11-23 05:27:06 -08:00
|
|
|
{SIGNUP_DISPLAYNAME}
|
|
|
|
{SIGNUP_LOGINNAME}
|
|
|
|
{SIGNUP_REALNAME}
|
|
|
|
<tr>
|
|
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_USER_60."{SIGNUP_IS_MANDATORY=email}</td>
|
|
|
|
<td class='forumheader3' style='width:70%'>
|
|
|
|
{SIGNUP_EMAIL}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{SIGNUP_EMAIL_CONFIRM}
|
2015-05-12 20:15:05 -07:00
|
|
|
{SIGNUP_PASSWORD1}
|
|
|
|
{SIGNUP_PASSWORD2}
|
2012-11-23 05:27:06 -08:00
|
|
|
{SIGNUP_HIDE_EMAIL}
|
|
|
|
{SIGNUP_USERCLASS_SUBSCRIBE}
|
|
|
|
{SIGNUP_EXTENDED_USER_FIELDS}
|
|
|
|
{SIGNUP_SIGNATURE}
|
|
|
|
{SIGNUP_IMAGES}
|
|
|
|
{SIGNUP_IMAGECODE}
|
|
|
|
<tr style='vertical-align:top'>
|
|
|
|
<td class='forumheader' colspan='2' style='text-align:center'>
|
2013-02-07 09:49:48 -08:00
|
|
|
<input class='button btn btn-success' type='submit' name='register' value=\"".LAN_SIGNUP_79."\" />
|
2012-11-23 05:27:06 -08:00
|
|
|
<br />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{SIGNUP_FORM_CLOSE}";
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_EXTENDED_CAT))
|
2007-07-30 20:25:36 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$SIGNUP_EXTENDED_CAT = "
|
|
|
|
<tr>
|
|
|
|
<td colspan='2' class='forumheader'>
|
|
|
|
{EXTENDED_CAT_TEXT}
|
|
|
|
</td>
|
|
|
|
</tr>";
|
2007-07-30 20:25:36 +00:00
|
|
|
}
|
|
|
|
|
2008-01-09 22:44:19 +00:00
|
|
|
if(!defined($SIGNUP_END))
|
2006-12-02 04:36:16 +00:00
|
|
|
{
|
2012-11-23 05:27:06 -08:00
|
|
|
$SIGNUP_END = '';
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
?>
|