set_file('temp','bits/field_state.html'); $tpl->set_var('state_options',vector2options($accepted_states[$country],$state,array(_ANY_))); $field_state=$tpl->process('','temp',TPL_FINISH); } $field_city=""; if ($fields['users_city'][0]) { $tpl->set_file('temp','bits/field_city.html'); $tpl->set_var('city',htmlentities(stripslashes($city))); $field_city=$tpl->process('','temp',TPL_FINISH); } $field_zip=""; if ($fields['users_zip'][0]) { $tpl->set_file('temp','bits/field_zip.html'); $tpl->set_var('zip',htmlentities(stripslashes($zip))); $field_zip=$tpl->process('','temp',TPL_FINISH); } $field_addr=""; if ($fields['users_addr'][0]) { $tpl->set_file('temp','bits/field_addr.html'); $tpl->set_var('addr',htmlentities(stripslashes($addr))); $field_addr=$tpl->process('','temp',TPL_FINISH); } $field_mydiz=""; if ($fields['users_my_diz'][0]) { $tpl->set_file('temp','bits/field_mydiz.html'); $tpl->set_var('max_text_length',get_site_option('max_text_length')); $tpl->set_var('my_diz',htmlentities(stripslashes($my_diz))); $field_mydiz=$tpl->process('','temp',TPL_FINISH); } $tpl->set_file('leftcontent','register_left.html'); $tpl->set_var('tplurl',_TPLURL_.'/'.get_my_template()); $left_content=$tpl->process('','leftcontent',TPL_FINISH | TPL_INCLUDE); $tpl->set_file('middlecontent','register1.html'); $tpl->set_var('name',htmlentities(stripslashes($name))); $tpl->set_var('username',htmlentities(stripslashes($username))); $tpl->set_var('password',htmlentities(stripslashes($password))); $tpl->set_var('password2',htmlentities(stripslashes($password2))); $tpl->set_var('email',htmlentities(stripslashes($email))); $tpl->set_var('email2',htmlentities(stripslashes($email2))); $tpl->set_var('gender_options',vector2options($accepted_genders,$gender,array(_ANY_,_NDISCLOSED_,_CHOOSE_))); $tpl->set_var('country_options',vector2options($accepted_countries,$country,array(_ANY_))); $tpl->set_var('field_state',$field_state); $tpl->set_var('field_city',$field_city); $tpl->set_var('field_zip',$field_zip); $tpl->set_var('field_addr',$field_addr); $tpl->set_var('birthday_options',vector2options($days,$birthday)); $tpl->set_var('birthmonth_options',vector2options($accepted_months,$birthmonth)); $accepted_birthdate_years=create_birthdate_years(); $tpl->set_var('birthyear_options',vector2options($accepted_birthdate_years,$birthyear)); $tpl->set_var('field_mydiz',$field_mydiz); $tpl->set_var('referrer',$referrer); $middle_content=$tpl->process('','middlecontent',TPL_FINISH | TPL_INCLUDE); $tpl->set_file('rightcontent','register_right.html'); $tpl->set_var('tplurl',_TPLURL_.'/'.get_my_template()); $right_content=$tpl->process('','rightcontent',TPL_FINISH | TPL_INCLUDE); $title=$_messages['core'][171]; include('content_frame.php'); ?>