".$_messages['core'][271].""; $editlink_photo="".$_messages['core'][207].""; $editlink_general="".$_messages['core'][271].""; $editlink_physical="".$_messages['core'][271].""; $editlink_social="".$_messages['core'][271].""; $editlink_you="".$_messages['core'][271].""; $links_menu="".$_messages['core'][208].""; } else { $titlename=$name."'s"; $editlink_basic=""; $editlink_photo=""; $editlink_general=""; $editlink_physical=""; $editlink_social=""; $editlink_you=""; $links_menu=""; if (isset($_SESSION['user_id'])) { $links_menu.="".$_messages['core'][209]." "; if (!is_empty_album2($user_id)) { $links_menu.="".$_messages['core'][208]." "; } $links_menu.="".$_messages['core'][210].""; } } $tpl=new phemplate(_TPLPATH_.get_my_template().'/','remove_nonjs'); $field_state=""; if ($fields['users_state'][0] && isset($accepted_states[$country][$state])) { $tpl->set_file('temp','bits/field_state_show.html'); $tpl->set_var('state',$accepted_states[$country][$state]); $field_state=$tpl->process('','temp',TPL_FINISH); } $field_city=""; if ($fields['users_city'][0]) { $tpl->set_file('temp','bits/field_city_show.html'); $tpl->set_var('city',htmlentities(stripslashes($city))); $field_city=$tpl->process('','temp',TPL_FINISH); } $field_addr=""; if ($fields['users_addr'][0]) { $tpl->set_file('temp','bits/field_addr_show.html'); $tpl->set_var('addr',htmlentities(stripslashes($addr))); $field_addr=$tpl->process('','temp',TPL_FINISH); } $field_zip=""; if ($fields['users_zip'][0]) { $tpl->set_file('temp','bits/field_zip_show.html'); $tpl->set_var('zip',htmlentities(stripslashes($zip))); $field_zip=$tpl->process('','temp',TPL_FINISH); } $field_mydiz=""; if ($fields['users_my_diz'][0]) { $tpl->set_file('temp','bits/field_mydiz_show.html'); $tpl->set_var('my_diz',wordwrap(nl2br(htmlentities(stripslashes($my_diz))),80,'
',1)); $field_mydiz=$tpl->process('','temp',TPL_FINISH); } $field_lookingfor=""; if ($fields['users_looking_for'][0]) { $tpl->set_file('temp','bits/field_lookingfor_show.html'); $tpl->set_var('looking_for',$accepted_genders[$looking_for]); $field_lookingfor=$tpl->process('','temp',TPL_FINISH); } $field_connection=""; if ($fields['users_connection'][0]) { $tpl->set_file('temp','bits/field_connection_show.html'); $tpl->set_var('connection',$accepted_connections[$connection]); $field_connection=$tpl->process('','temp',TPL_FINISH); } $field_yourdiz=""; if ($fields['users_your_diz'][0]) { $tpl->set_file('temp','bits/field_yourdiz_show.html'); $tpl->set_var('your_diz',wordwrap(nl2br(htmlentities(stripslashes($your_diz))),80,'
',1)); $tpl->set_var('editlink_you',$editlink_you); $field_yourdiz=$tpl->process('','temp',TPL_FINISH); } $field_ethnic=""; if ($fields['users_ethnic'][0]) { $tpl->set_file('temp','bits/field_ethnic_show.html'); $tpl->set_var('ethnic',$accepted_ethnics[$ethnic]); $field_ethnic=$tpl->process('','temp',TPL_FINISH); } $field_looks=""; if ($fields['users_looks'][0]) { $tpl->set_file('temp','bits/field_looks_show.html'); $tpl->set_var('looks',$accepted_looks[$looks]); $field_looks=$tpl->process('','temp',TPL_FINISH); } $field_body=""; if ($fields['users_body'][0]) { $tpl->set_file('temp','bits/field_body_show.html'); $tpl->set_var('body',$accepted_bodies[$body]); $field_body=$tpl->process('','temp',TPL_FINISH); } $field_height=""; if ($fields['users_height'][0]) { $tpl->set_file('temp','bits/field_height_show.html'); $tpl->set_var('height',$accepted_heights[$height]); $field_height=$tpl->process('','temp',TPL_FINISH); } $field_weight=""; if ($fields['users_weight'][0]) { $tpl->set_file('temp','bits/field_weight_show.html'); $tpl->set_var('weight',$accepted_weights[$weight]); $field_weight=$tpl->process('','temp',TPL_FINISH); } $field_hair=""; if ($fields['users_hair'][0]) { $tpl->set_file('temp','bits/field_hair_show.html'); $tpl->set_var('hair',$accepted_hair[$hair]); $field_hair=$tpl->process('','temp',TPL_FINISH); } $field_eyes=""; if ($fields['users_eyes'][0]) { $tpl->set_file('temp','bits/field_eyes_show.html'); $tpl->set_var('eyes',$accepted_eyes[$eyes]); $field_eyes=$tpl->process('','temp',TPL_FINISH); } $field_smoking=""; if ($fields['users_smoking'][0]) { $tpl->set_file('temp','bits/field_smoking_show.html'); $tpl->set_var('smoking',$accepted_smoking[$smoking]); $field_smoking=$tpl->process('','temp',TPL_FINISH); } $field_drinking=""; if ($fields['users_drinking'][0]) { $tpl->set_file('temp','bits/field_drinking_show.html'); $tpl->set_var('drinking',$accepted_drinking[$drinking]); $field_drinking=$tpl->process('','temp',TPL_FINISH); } $field_partying=""; if ($fields['users_partying'][0]) { $tpl->set_file('temp','bits/field_partying_show.html'); $tpl->set_var('partying',$accepted_partying[$partying]); $field_partying=$tpl->process('','temp',TPL_FINISH); } $field_sexpractices=""; if ($fields['users_sexpractices'][0]) { $tpl->set_file('temp','bits/field_sexpractices_show.html'); $tpl->set_var('sexpractices',$accepted_sexpractices[$sexpractices]); $field_sexpractices=$tpl->process('','temp',TPL_FINISH); } $field_maritalstatus=""; if ($fields['users_maritalstatus'][0]) { $tpl->set_file('temp','bits/field_maritalstatus_show.html'); $tpl->set_var('marital',$accepted_marital[$marital]); $field_maritalstatus=$tpl->process('','temp',TPL_FINISH); } $field_children=""; if ($fields['users_children'][0]) { $tpl->set_file('temp','bits/field_children_show.html'); $tpl->set_var('children',$accepted_children[$children]); $field_children=$tpl->process('','temp',TPL_FINISH); } $field_profession=""; if ($fields['users_profession'][0]) { $tpl->set_file('temp','bits/field_profession_show.html'); $tpl->set_var('profession',$accepted_professions[$profession]); $field_profession=$tpl->process('','temp',TPL_FINISH); } $field_education=""; if ($fields['users_education'][0]) { $tpl->set_file('temp','bits/field_education_show.html'); $tpl->set_var('education',$accepted_educations[$education]); $field_education=$tpl->process('','temp',TPL_FINISH); } $field_religion=""; if ($fields['users_religion'][0]) { $tpl->set_file('temp','bits/field_religion_show.html'); $tpl->set_var('religion',$accepted_religions[$religion]); $field_religion=$tpl->process('','temp',TPL_FINISH); } $field_reading=""; if ($fields['users_reading'][0]) { $tpl->set_file('temp','bits/field_reading_show.html'); $tpl->set_var('reading',$accepted_reading[$reading]); $field_reading=$tpl->process('','temp',TPL_FINISH); } $field_sleptwith=""; if ($fields['users_sleptwith'][0]) { $tpl->set_file('temp','bits/field_sleptwith_show.html'); $tpl->set_var('sleptwith',$accepted_sleptwith[$sleptwith]); $field_sleptwith=$tpl->process('','temp',TPL_FINISH); } $field_rellength=""; if ($fields['users_rellength'][0]) { $tpl->set_file('temp','bits/field_rellength_show.html'); $tpl->set_var('rellength',$accepted_rellengths[$rellength]); $field_rellength=$tpl->process('','temp',TPL_FINISH); } $field_seriousrel=""; if ($fields['users_seriousrel'][0]) { $tpl->set_file('temp','bits/field_seriousrel_show.html'); $tpl->set_var('seriousrel',$accepted_seriousrels[$seriousrel]); $field_seriousrel=$tpl->process('','temp',TPL_FINISH); } $field_drugviews=""; if ($fields['users_drugviews'][0]) { $tpl->set_file('temp','bits/field_drugs_show.html'); $tpl->set_var('drugviews',$accepted_drugviews[$drugviews]); $field_drugviews=$tpl->process('','temp',TPL_FINISH); } $field_marriageviews=""; if ($fields['users_marriageviews'][0]) { $tpl->set_file('temp','bits/field_marriage_show.html'); $tpl->set_var('marriageviews',$accepted_marriageviews[$marriageviews]); $field_marriageviews=$tpl->process('','temp',TPL_FINISH); } $tpl->set_file('middlecontent','profile_view.html'); $tpl->set_var('titlename',htmlentities(stripslashes($titlename))); $tpl->set_var('editlink_basic',$editlink_basic); $tpl->set_var('editlink_photo',$editlink_photo); $tpl->set_var('editlink_general',$editlink_general); $tpl->set_var('editlink_physical',$editlink_physical); $tpl->set_var('editlink_social',$editlink_social); $tpl->set_var('editlink_you',$editlink_you); $link_back=""; if (isset($_SESSION['link_back']) && !empty($_SESSION['link_back'])) { $link_back="".$_messages['core'][211].""; $_SESSION['link_back']=""; } $tpl->set_var('link_back',$link_back); $tpl->set_var('links_menu',$links_menu); $tpl->set_var('name',htmlentities(stripslashes($name))); $tpl->set_var('user_id',$user_id); $tpl->set_var('bigphoto',$bigphoto); $tpl->set_var('photo',$photo); $tpl->set_var('mtype',$accepted_memberships[$membership]); $tpl->set_var('gender',$accepted_genders[$gender]); $tpl->set_var('age',$accepted_ages[$age]); $tpl->set_var('zodiac',$zodiac_signs[$zodiac_days[$zodiac]]); $tpl->set_var('country',$accepted_countries[$country]); $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('field_mydiz',$field_mydiz); $tpl->set_var('field_lookingfor',$field_lookingfor); $tpl->set_var('field_connection',$field_connection); $tpl->set_var('field_yourdiz',$field_yourdiz); $tpl->set_var('field_ethnic',$field_ethnic); $tpl->set_var('field_looks',$field_looks); $tpl->set_var('field_body',$field_body); $tpl->set_var('field_height',$field_height); $tpl->set_var('field_weight',$field_weight); $tpl->set_var('field_hair',$field_hair); $tpl->set_var('field_eyes',$field_eyes); $tpl->set_var('field_smoking',$field_smoking); $tpl->set_var('field_drinking',$field_drinking); $tpl->set_var('field_partying',$field_partying); $tpl->set_var('field_sexpractices',$field_sexpractices); $tpl->set_var('field_maritalstatus',$field_maritalstatus); $tpl->set_var('field_children',$field_children); $tpl->set_var('field_profession',$field_profession); $tpl->set_var('field_education',$field_education); $tpl->set_var('field_religion',$field_religion); $tpl->set_var('field_reading',$field_reading); $tpl->set_var('field_marriageviews',$field_marriageviews); $tpl->set_var('field_drugviews',$field_drugviews); $tpl->set_var('field_seriousrel',$field_seriousrel); $tpl->set_var('field_rellength',$field_rellength); $tpl->set_var('field_sleptwith',$field_sleptwith); $tpl->set_var('q5',wordwrap(nl2br(htmlentities(stripslashes($q5))),80,'
',1)); $tpl->set_var('q6',wordwrap(nl2br(htmlentities(stripslashes($q6))),80,'
',1)); $tpl->set_var('q7',wordwrap(nl2br(htmlentities(stripslashes($q7))),80,'
',1)); $tpl->set_var('q8',wordwrap(nl2br(htmlentities(stripslashes($q8))),80,'
',1)); $tpl->set_var('q9',wordwrap(nl2br(htmlentities(stripslashes($q9))),80,'
',1)); $tpl->set_var('q10',wordwrap(nl2br(htmlentities(stripslashes($q10))),80,'
',1)); $tpl->set_var('q11',wordwrap(nl2br(htmlentities(stripslashes($q11))),80,'
',1)); if (is_online($user_id)) { $showonline="\"".$_messages['core'][278]."\"/".$_messages['core'][278].""; } else { $showonline="\"".$_messages['core'][279]."\"/".$_messages['core'][279].""; } $tpl->set_var('onlineico',$showonline); $my_membership=_GUESTLEVEL_; if (isset($_SESSION['membership'])) { $my_membership=$_SESSION['membership']; } if ($fields['othercontact'][0] && $my_membership>=$access_matrix['otherinfo_view'][0]) { $tpl->set_var('othercontact',show_othercontact_bit($user_id)); } if (!isset($_SESSION['user_id']) || $_SESSION['user_id']!=$user_id) { $query="UPDATE accounts SET views=views+1 WHERE user_id='$user_id'"; @mysql_query($query); } $middle_content=$tpl->process('','middlecontent',TPL_FINISH | TPL_INCLUDE); $title=$_messages['core'][229]; include('content_left.php'); include('content_right.php'); include('content_frame.php'); ?>