{$ubbt_lang['CH_LANG']}
EOF;
$query = "
SELECT L_Language,L_Description
FROM {$config['tbprefix']}Languages
WHERE L_Active='1'
ORDER BY L_Language
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
$languageoptions = "";
while(list($langdir,$langdesc) = $dbh -> fetch_array($sth)) {
$selected = "";
if ($langdir == $config['language']) {
$selected = "selected=\"selected\"";
}
$thisoption .= "$langdesc ";
}
$thisoption .= <<
EOF;
if (isset($regopt['U_Language']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Language']['show'])) {
$optionalfields .= $thisoption;
}
}
// END LANGUAGE SELECTION
// STYLESHEET SELECTION
if (isset($regopt['U_StyleSheet'])) {
$thisoption = <<
{$ubbt_lang['PROF_STYLE']}
EOF;
// -------------------------------
// Let's list out the style sheets
$defselected = "selected=\"selected\"";
$stylesheets = "{$ubbt_lang['DEFAULT_STYLE']} ";
$styles = split(",",$theme['availablestyles']);
$size = sizeof($styles);
for ($i=0;$i<$size;$i++) {
list($style,$desc) = split(":",$styles[$i]);
$style = trim($style);
$desc = trim($desc);
$extra = "";
$thisoption .= "$desc ";
}
$thisoption .= <<
EOF;
if (isset($regopt['U_StyleSheet']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_StyleSheet']['show'])) {
$optionalfields .= $thisoption;
}
}
// END STYLESHEET SELECTION
// FAKE EMAIL SELECTION
if (isset($regopt['U_Fakeemail'])) {
$thisoption = <<
{$ubbt_lang['FAKE_EMAIL']}
EOF;
if (isset($regopt['U_Fakeemail']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Fakeemail']['show'])) {
$optionalfields .= $thisoption;
}
}
// END FAKE EMAIL SELECTION
// FULL NAME SELECTION
if (isset($regopt['U_Name'])) {
$thisoption = <<
{$ubbt_lang['FULL_NAME']}
EOF;
if (isset($regopt['U_Name']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Name']['show'])) {
$optionalfields .= $thisoption;
}
}
// END FULL NAME SELECTION
// BIRTHDAY SELECTION
if ((isset($regopt['U_Birthday'])) && (!$config['checkage'])) {
$thisoption = <<
{$ubbt_lang['BIRTHDAY']}
EOF;
// -----------------------------------------
// Generate the birthday selection formboxes
$thisoption .= "";
$thisoption .= "{$ubbt_lang['MONTH']} ";
for ($i=1;$i<=12;$i++) {
$mname = "MONTH$i";
$mname = $ubbt_lang[$mname];
$thisoption .= "$mname ";
}
$thisoption .= " ";
$thisoption .= "";
$thisoption .= "{$ubbt_lang['DAY']} ";
for ($i=1;$i<=31;$i++) {
$thisoption .= "$i ";
}
$thisoption .= " ";
$thisoption .= "";
$thisoption .= "{$ubbt_lang['YEAR']} ";
$temp = getdate();
$thisyear = $temp["year"];
for ($i=$thisyear;$i>=1900;$i--) {
$thisoption .= "$i ";
}
$thisoption .= " ";
$thisoption .= <<
EOF;
$bday_text = $ubbt_lang['SHOWBDAY'];
if (!$config['cal_bday']) {
$bday_text = $ubbt_lang['SHOWBDAY2'];
}
$thisoption .= <<
$bday_text
EOF;
if (isset($regopt['U_Birthday']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Birthday']['show'])) {
$optionalfields .= $thisoption;
}
}
// END BIRTHDAY SELECTION
// PICTURE SELECTION
$allowpics = "";
if ($config['url_av']) {
$pictureview = "
{$ubbt_lang['UPLOAD_PIC_SHORT']}
";
$allowpics = 1;
$Picture ="http://";
$pictureview .= "
{$ubbt_lang['PROF_PIC_SHORT']}
";
$allowpics = 1;
}
$stockavatar = "";
if ($config['stockavatars']) {
$stockavatar = <<
{$ubbt_lang['PREDEF_PIC']}
{$ubbt_lang['PREDEF_CHOOSE']}
EOF;
}
$picchangetext = "";
$picchangeclose = "";
if ($allowpics) {
$PicWidth = $theme['PictureWidth'];
$PicHeight = $theme['PictureHeight'];
$picchangetext .= " {$ubbt_lang['NONE']} ";
}
$avatarscript = <<
EOF;
if (isset($regopt['U_Picture'])) {
$thisoption = <<
{$ubbt_lang['AVATAR']}
$picchangetext
$avatarscript
$pictureview
$stockavatar
$picchangeclose
EOF;
if (isset($regopt['U_Picture']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Picture']['show'])) {
$optionalfields .= $thisoption;
}
}
// END PICTURE SELECTION
// PRIVATE MESSAGE SELECTION
if (isset($regopt['U_AcceptPriv'])) {
$thisoption = <<
{$ubbt_lang['PROF_PRIV']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_AcceptPriv']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_AcceptPriv']['show'])) {
$optionalfields .= $thisoption;
}
}
// END PRIVATE MESSAGE SELECTION
// SIGNATURE SELECTION
if (isset($regopt['U_Signature'])) {
$thisoption = <<
{$ubbt_lang['PROF_SIG']}
EOF;
if (isset($regopt['U_Signature']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Signature']['show'])) {
$optionalfields .= $thisoption;
}
}
// END SIGNATURE SELECTION
// HOMEPAGE SELECTION
if (isset($regopt['U_Homepage'])) {
$thisoption = <<
{$ubbt_lang['PROF_HOME']}
EOF;
if (isset($regopt['U_Homepage']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Homepage']['show'])) {
$optionalfields .= $thisoption;
}
}
// END HOMEPAGE SELECTION
// OCCUPATION SELECTION
if (isset($regopt['U_Occupation'])) {
$thisoption = <<
{$ubbt_lang['PROF_OCC']}
EOF;
if (isset($regopt['U_Occupation']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Occupation']['show'])) {
$optionalfields .= $thisoption;
}
}
// END OCCUPATION SELECTION
// HOBBIES SELECTION
if (isset($regopt['U_Hobbies'])) {
$thisoption = <<
{$ubbt_lang['PROF_HOBB']}
EOF;
if (isset($regopt['U_Hobbies']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Hobbies']['show'])) {
$optionalfields .= $thisoption;
}
}
// END HOBBIES SELECTION
// LOCATION SELECTION
if (isset($regopt['U_Location'])) {
$thisoption = <<
{$ubbt_lang['PROF_LOC']}
EOF;
if (isset($regopt['U_Location']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Location']['show'])) {
$optionalfields .= $thisoption;
}
}
// END LOCATION SELECTION
// BIO SELECTION
if (isset($regopt['U_Bio'])) {
$thisoption = <<
{$ubbt_lang['PROF_BIO']}
EOF;
if (isset($regopt['U_Bio']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Bio']['show'])) {
$optionalfields .= $thisoption;
}
}
// END BIO SELECTION
// EXTRA1 SELECTION
if (isset($regopt['U_Extra1'])) {
$thisoption = <<
{$ubbt_lang['PROF_ICQ']}
EOF;
if (isset($regopt['U_Extra1']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Extra1']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EXTRA1 SELECTION
// EXTRA2 SELECTION
if (isset($regopt['U_Extra2'])) {
$thisoption = <<
{$config['extra2']}
EOF;
if (isset($regopt['U_Extra2']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Extra2']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EXTRA2 SELECTION
// EXTRA3 SELECTION
if (isset($regopt['U_Extra3'])) {
$thisoption = <<
{$config['extra3']}
EOF;
if (isset($regopt['U_Extra3']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Extra3']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EXTRA3 SELECTION
// EXTRA4 SELECTION
if (isset($regopt['U_Extra4'])) {
$thisoption = <<
{$config['extra4']}
EOF;
if (isset($regopt['U_Extra4']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Extra4']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EXTRA4 SELECTION
// EXTRA5 SELECTION
if (isset($regopt['U_Extra5'])) {
$thisoption = <<
{$config['extra5']}
EOF;
if (isset($regopt['U_Extra5']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Extra5']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EXTRA5 SELECTION
// VISIBLE SELECTION
if (isset($regopt['U_Visible'])) {
$thisoption = <<
{$ubbt_lang['PROF_VIS']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_Visible']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Visible']['show'])) {
$optionalfields .= $thisoption;
}
}
// END VISIBLE SELECTION
// ONLINE FORMAT SELECTION
if (isset($regopt['U_OnlineFormat'])) {
$thisoption = <<
{$ubbt_lang['AUX_ONLINE']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_OnlineFormat']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_OnlineFormat']['show'])) {
$optionalfields .= $thisoption;
}
}
// END ONLINE FORMAT SELECTION
// TIMEFORMAT SELECTION
if (isset($regopt['U_TimeFormat'])) {
$long="";$short1="";$short2="";$short3="";$short4="";$short5="";
$timeformat = $theme['timeformat'];
if ($timeformat == "long") {
$long = "SELECTED";
}
elseif ($timeformat == "short1") {
$short1 = "SELECTED";
}
elseif ($timeformat == "short2") {
$short2 = "SELECTED";
}
elseif ($timeformat == "short3") {
$short3 = "SELECTED";
}
elseif ($timeformat == "short4") {
$short4 = "SELECTED";
}
elseif ($timeformat == "short5") {
$short5 = "SELECTED";
}
$thisoption = <<
{$ubbt_lang['TIMEFORMAT']}
{$ubbt_lang['LONG']}
{$ubbt_lang['SHORT1']}
{$ubbt_lang['SHORT2']}
{$ubbt_lang['SHORT3']}
{$ubbt_lang['SHORT4']}
{$ubbt_lang['SHORT5']}
EOF;
if (isset($regopt['U_TimeFormat']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_TimeFormat']['show'])) {
$optionalfields .= $thisoption;
}
}
// END TIMEFORMAT SELECTION
// TIMEOFFSET SELECTION
if (isset($regopt['U_TimeOffset'])) {
$date = $html -> get_date();
$time = $html -> convert_time($date);
$thisoption = <<
{$ubbt_lang['YOUR_OFFSET']}
{$ubbt_lang['CURR_TIME']} $time
EOF;
if (isset($regopt['U_TimeOffset']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_TimeOffset']['show'])) {
$optionalfields .= $thisoption;
}
}
// END TIMEOFFSET SELECTION
// SHOW SIGS SELECTION
if (isset($regopt['U_ShowSigs'])) {
$thisoption = <<
{$ubbt_lang['VIEW_SIGS']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_ShowSigs']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_ShowSigs']['show'])) {
$optionalfields .= $thisoption;
}
}
// END SHOWSIGS SELECTION
// FRONTPAGE SELECTION
if (isset($regopt['U_FrontPage'])) {
$thisoption = <<
{$ubbt_lang['FRONTPAGE']}
{$ubbt_lang['CATEGORIES']}
{$ubbt_lang['LISTFORUMS']}
EOF;
if (isset($regopt['U_FrontPage']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_FrontPage']['show'])) {
$optionalfields .= $thisoption;
}
}
// END FRONTPAGE SELECTIOn
// DISPLAY SELECTION
if (isset($regopt['U_Display'])) {
$thisoption = <<
{$ubbt_lang['PROF_DISP']}
{$ubbt_lang['TEXT_THREAD']}
{$ubbt_lang['TEXT_FLAT']}
EOF;
if (isset($regopt['U_Display']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Display']['show'])) {
$optionalfields .= $thisoption;
}
}
// END DISPLAY SELECTION
// VIEW SELECTION
if (isset($regopt['U_View'])) {
$thisoption = <<
{$ubbt_lang['PROF_VIEW']}
{$ubbt_lang['TEXT_COLL']}
{$ubbt_lang['TEXT_EXP']}
EOF;
if (isset($regopt['U_View']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_View']['show'])) {
$optionalfields .= $thisoption;
}
}
// END VIEW SELECTION
// POSTSPER SELECTION
if (isset($regopt['U_PostsPer'])) {
$thisoption = <<
{$ubbt_lang['PROF_POSTS_SHORT']}
EOF;
if (isset($regopt['U_PostsPer']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_PostsPer']['show'])) {
$optionalfields .= $thisoption;
}
}
// END POSTSPER SELECTION
// FLATPOSTS SELECTION
if (isset($regopt['U_FlatPosts'])) {
$thisoption = <<
{$ubbt_lang['TOT_FLAT_SHORT']}
EOF;
if (isset($regopt['U_FlatPosts']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_FlatPosts']['show'])) {
$optionalfields .= $thisoption;
}
}
// END FLATPOSTS SELECTION
// PREVIEW SELECTION
if (isset($regopt['U_Preview'])) {
$thisoption = <<
{$ubbt_lang['PROF_PREVIEW']}
{$ubbt_lang['TEXT_ON']}
{$ubbt_lang['TEXT_OFF']}
EOF;
if (isset($regopt['U_Preview']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Preview']['show'])) {
$optionalfields .= $thisoption;
}
}
// END PREVIEW SELECTION
// TEXTROWS SELECTION
if (isset($regopt['U_TextRows'])) {
$thisoption = <<
{$ubbt_lang['PROF_ROWS']}
EOF;
if (isset($regopt['U_TextRows']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_TextRows']['show'])) {
$optionalfields .= $thisoption;
}
}
// END TEXTROWS SELECTION
// TEXTCOLS SELECTION
if (isset($regopt['U_TextCols'])) {
$thisoption = <<
{$ubbt_lang['PROF_COLS']}
EOF;
if (isset($regopt['U_TextCols']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_TextCols']['show'])) {
$optionalfields .= $thisoption;
}
}
// END TEXTCOLS SELECTION
// PICTUREVIEW SELECTION
if ((isset($regopt['U_PictureView'])) && ($theme['PictureView'])) {
$thisoption = <<
{$ubbt_lang['PROF_PICVIEW']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_PictureView']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_PictureView']['show'])) {
$optionalfields .= $thisoption;
}
}
// END PICTUREVIEW SELECTION
// PICTUREPOSTS SELECTION
if ((isset($regopt['U_PicturePosts'])) && ($theme['PictureView'])) {
$thisoption = <<
{$ubbt_lang['VIEW_PICS']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_PicturePosts']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_PicturePosts']['show'])) {
$optionalfields .= $thisoption;
}
}
// END PICTUREPOSTS SELECTION
// ADMIN EMAILS SELECTION
if (isset($regopt['U_AdminEmails'])) {
$thisoption = <<
{$ubbt_lang['ADMIN_EMAIL']}
{$ubbt_lang['SELECT']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_AdminEmails']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_AdminEmails']['show'])) {
$optionalfields .= $thisoption;
}
}
// END ADMIN EMAILS SELECTION
// EMAIL FORMAT SELECTION
if (isset($regopt['U_EmailFormat'])) {
$thisoption = <<
{$ubbt_lang['HTMLEMAIL']}
{$ubbt_lang['HTMLFORMAT']}
{$ubbt_lang['PLAINTEXT']}
EOF;
if (isset($regopt['U_EmailFormat']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_EmailFormat']['show'])) {
$optionalfields .= $thisoption;
}
}
// END EMAIL FORMAT SELECTION
// NOTIFY SELECTION
if (isset($regopt['U_Notify'])) {
$thisoption = <<
{$ubbt_lang['PROF_NOTIF']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_Notify']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_Notify']['show'])) {
$optionalfields .= $thisoption;
}
}
if (isset($regopt['U_EReplies'])) {
$thisoption = <<
{$ubbt_lang['PROF_REPLIES']}
{$ubbt_lang['TEXT_YES']}
{$ubbt_lang['TEXT_NO']}
EOF;
if (isset($regopt['U_EReplies']['require'])) {
$requiredfields .= $thisoption;
}
elseif (isset($regopt['U_EReplies']['show'])) {
$optionalfields .= $thisoption;
}
}
if ($optionalfields) {
$optionalfields = <<
$tbclose
$tbopen
$optionalfields
$tbclose
EOF;
}
// ---------------------
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();
// Setup the form type:
if ( ($config['uploadav']) && (ini_get('file_uploads')) ){
$enctype = "enctype=\"multipart/form-data\"";
}
else {
$enctype = "";
}
include("$thispath/templates/$tempstyle/newuser_signup.tmpl");
$html -> send_footer();
?>