mirror of
https://github.com/e107inc/e107.git
synced 2025-05-03 10:49:12 +02:00
Create 'timezone' type of extended user field as predefined list. Move user timezone to extended user fields. Update routine only transfers existing data if its enabled in prefs. Delete the existing user_timezone, user_new fields from user table. Add timezone data file
331 lines
8.5 KiB
PHP
Executable File
331 lines
8.5 KiB
PHP
Executable File
<?php
|
|
/*
|
|
+ ----------------------------------------------------------------------------+
|
|
| e107 website system
|
|
|
|
|
| ©Steve Dunstan 2001-2002
|
|
| http://e107.org
|
|
| jalist@e107.org
|
|
|
|
|
| Released under the terms and conditions of the
|
|
| GNU General Public License (http://gnu.org).
|
|
|
|
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/signup_template.php,v $
|
|
| $Revision: 1.8 $
|
|
| $Date: 2008-01-15 21:57:52 $
|
|
| $Author: e107steved $
|
|
+----------------------------------------------------------------------------+
|
|
*/
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:100%"); }
|
|
|
|
|
|
define("REQUIRED_FIELD_MARKER", "<span style='text-align:right;font-size:15px; color:red'> *</span>");
|
|
|
|
$sc_style['SIGNUP_DISPLAYNAME']['pre'] = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap' >".LAN_7."<span style='font-size:15px; color:red'> *</span><br /><span class='smalltext'>".LAN_8."</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
";
|
|
$sc_style['SIGNUP_DISPLAYNAME']['post'] = "
|
|
</td>
|
|
</tr>
|
|
";
|
|
|
|
$sc_style['SIGNUP_REALNAME']['pre'] = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_308."".req($pref['signup_option_realname'])."<br /><span class='smalltext'>".LAN_310."</span></td>
|
|
<td class='forumheader3' style='width:70%' >
|
|
";
|
|
$sc_style['SIGNUP_REALNAME']['post'] = "
|
|
</td>
|
|
</tr>
|
|
";
|
|
|
|
$sc_style['SIGNUP_IS_MANDATORY']['pre'] = "<span style='font-size:15px; color:red'>";
|
|
$sc_style['SIGNUP_IS_MANDATORY']['post'] = "</span>";
|
|
|
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_START))
|
|
{
|
|
$USERCLASS_SUBSCRIBE_START = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;vertical-align:top'>".LAN_USET_5." ".req($pref['signup_option_class'])."
|
|
<br /><span class='smalltext'>".LAN_USET_6."</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
<table style='".USER_WIDTH."'>
|
|
";
|
|
}
|
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_ROW))
|
|
{
|
|
$USERCLASS_SUBSCRIBE_ROW = "
|
|
<tr>
|
|
<td class='defaulttext' style='width:10%;vertical-align:top'>
|
|
<div {USERCLASS_INDENT}>
|
|
<input type='checkbox' name='class[]' value='{USERCLASS_ID}' />
|
|
</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>
|
|
";
|
|
}
|
|
|
|
if(!defined($USERCLASS_SUBSCRIBE_END))
|
|
{
|
|
$USERCLASS_SUBSCRIBE_END = "
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
";
|
|
}
|
|
|
|
|
|
|
|
if(!defined($SIGNUP_PASSWORD_LEN))
|
|
{
|
|
$SIGNUP_PASSWORD_LEN = "<span class='smalltext'> (".LAN_SIGNUP_1." {$pref['signup_pass_len']} ".LAN_SIGNUP_2.")</span>";
|
|
}
|
|
|
|
|
|
if(!defined($SIGNUP_EXTENDED_USER_FIELDS))
|
|
{
|
|
$SIGNUP_EXTENDED_USER_FIELDS = "
|
|
<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>
|
|
";
|
|
}
|
|
|
|
if(!defined($EXTENDED_USER_FIELD_REQUIRED))
|
|
{
|
|
$EXTENDED_USER_FIELD_REQUIRED = "<span style='text-align:right;font-size:15px; color:red'> *</span>";
|
|
}
|
|
|
|
$SIGNUP_SIGNATURE_START = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_120." ".req($pref['signup_option_signature'])."</td>
|
|
<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>
|
|
";
|
|
|
|
|
|
$sc_style['SIGNUP_IMAGES']['pre'] = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' >".LAN_121.req($pref['signup_option_image'])."<br /><span class='smalltext'>(".LAN_SIGNUP_33.")</span></td>
|
|
<td class='forumheader3' style='width:70%;vertical-align:top' >
|
|
";
|
|
$sc_style['SIGNUP_IMAGES']['post'] = "
|
|
</td>
|
|
</tr>
|
|
";
|
|
|
|
|
|
$sc_style['SIGNUP_IMAGECODE']['pre'] = "
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%'>".LAN_410.req(2)."</td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
";
|
|
$sc_style['SIGNUP_IMAGECODE']['post'] = "
|
|
</td>
|
|
</tr>
|
|
";
|
|
|
|
|
|
if(!defined($COPPA_TEMPLATE))
|
|
{
|
|
$COPPA_TEMPLATE = LAN_109." <a href='http://www.cdt.org/legislation/105th/privacy/coppa.html'>".LAN_SIGNUP_14."</a>. ".LAN_SIGNUP_15." <a href='mailto:".SITEADMINEMAIL."'>".LAN_SIGNUP_14."</a> ".LAN_SIGNUP_16."
|
|
<br />
|
|
<br />
|
|
<div style='text-align:center'><b>".LAN_SIGNUP_17."</b>
|
|
{SIGNUP_COPPA_FORM}
|
|
</div>
|
|
";
|
|
}
|
|
|
|
if(!defined($COPPA_FAIL))
|
|
{
|
|
$COPPA_FAIL = "<div style='text-align:center'>".LAN_SIGNUP_9."</div>";
|
|
}
|
|
|
|
if(!defined($SIGNUP_TEXT))
|
|
{
|
|
$SIGNUP_TEXT =
|
|
LAN_309." <b>".LAN_SIGNUP_29."</b><br /><br />".LAN_SIGNUP_30."<br />
|
|
";
|
|
}
|
|
|
|
if(!defined($SIGNUP_XUP_FORM))
|
|
{
|
|
$SIGNUP_XUP_FORM = "
|
|
<div id='xup' style='display:none' >
|
|
|
|
<div style='padding:10px;text-align:center'>
|
|
<input class='button' type ='button' style='cursor:pointer' size='30' value=\"".LAN_SIGNUP_54."\" onclick=\"expandit('default');expandit('xup')\" />
|
|
</div>
|
|
|
|
<table style='".USER_WIDTH."'>
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_31."
|
|
</td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
<input class='tbox' type='text' name='xupexist' size='50' value='' maxlength='100' />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap' >".LAN_9."<span style='font-size:15px; color:red'> *</span><br /><span class='smalltext'>".LAN_10."</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_XUP_LOGINNAME}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_17."<span style='font-size:15px; color:red'> *</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_XUP_PASSWORD1}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_111."<span style='font-size:15px; color:red'> *</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_XUP_PASSWORD2}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' colspan='2' style='text-align:center'>
|
|
<span class='smalltext'><a href='http://e107.org/generate_xup.php' rel='external'>".LAN_SIGNUP_32."</a></span>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader' colspan='2' style='text-align:center'>
|
|
<input class='button' type='submit' name='register' value=\"".LAN_123."\" />
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
";
|
|
}
|
|
|
|
if (!defined($SIGNUP_XUP_BUTTON))
|
|
{
|
|
$SIGNUP_XUP_BUTTON = " <div style='padding:10px;text-align:center'>
|
|
<input class='button' type ='button' style='cursor:pointer' size='30' value=\"".LAN_SIGNUP_35."\" onclick=\"expandit('default');expandit('xup')\" />
|
|
</div>
|
|
";
|
|
}
|
|
|
|
|
|
if(!defined($SIGNUP_BEGIN))
|
|
{
|
|
$SIGNUP_BEGIN = "
|
|
{SIGNUP_FORM_OPEN}
|
|
<div style='text-align:center;".USER_WIDTH."'>
|
|
{SIGNUP_SIGNUP_TEXT}
|
|
<br />
|
|
".LAN_400."<br /><br /></div>";
|
|
}
|
|
|
|
if(!defined($SIGNUP_BODY))
|
|
{
|
|
$SIGNUP_BODY = "
|
|
{SIGNUP_XUP}
|
|
<div id='default'>
|
|
{SIGNUP_XUP_ACTION}
|
|
<table class='fborder' style='".USER_WIDTH."'>
|
|
{SIGNUP_DISPLAYNAME}
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap' >".LAN_9."<span style='font-size:15px; color:red'> *</span><br /><span class='smalltext'>".LAN_10."</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_LOGINNAME}
|
|
</td>
|
|
</tr>
|
|
{SIGNUP_REALNAME}
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_17."<span style='font-size:15px; color:red'> *</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_PASSWORD1}
|
|
{SIGNUP_PASSWORD_LEN}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_111."<span style='font-size:15px; color:red'> *</span></td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_PASSWORD2}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_112."{SIGNUP_IS_MANDATORY=email}</td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_EMAIL}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_SIGNUP_39."{SIGNUP_IS_MANDATORY=email}</td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_EMAIL_CONFIRM}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='forumheader3' style='width:30%;white-space:nowrap'>".LAN_113."</td>
|
|
<td class='forumheader3' style='width:70%'>
|
|
{SIGNUP_HIDE_EMAIL}
|
|
</td>
|
|
</tr>
|
|
{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'>
|
|
<input class='button' type='submit' name='register' value=\"".LAN_123."\" />
|
|
<br />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{SIGNUP_FORM_CLOSE}
|
|
";
|
|
}
|
|
|
|
|
|
if(!defined($SIGNUP_EXTENDED_CAT))
|
|
{
|
|
$SIGNUP_EXTENDED_CAT = "
|
|
<tr>
|
|
<td colspan='2' class='forumheader'>
|
|
{EXTENDED_CAT_TEXT}
|
|
</td>
|
|
</tr>
|
|
";
|
|
}
|
|
|
|
|
|
if(!defined($SIGNUP_END))
|
|
{
|
|
$SIGNUP_END = "
|
|
";
|
|
}
|
|
?>
|