set_file('menu1file',$menu1file); $tpl->set_var('relative_path', $relative_path); $menu1file=$tpl->process('out','menu1file',0,1); $tpl->set_file('menu2file','menu_newestmodels.html'); $tpl->set_var('relative_path', $relative_path); $tpl->set_var('latestmembers',latestmembers_bit()); $tpl->set_var('most_viewed',mostviewed_bit()); $menu2file=$tpl->process('out','menu2file',0,1); $tpl->set_file('menu3file','menu_mostviewed.html'); $tpl->set_var('relative_path', $relative_path); $tpl->set_var('latestmembers',latestmembers_bit()); $tpl->set_var('most_viewed',mostviewed_bit()); $menu3file=$tpl->process('out','menu3file',0,1); if (get_site_option('use_ratings')) { $tpl->set_file('menu4file','menu_toprated.html'); $tpl->set_var('relative_path', $relative_path); $menu4file=$tpl->process('out','menu4file',0,1); } $tpl->set_file('menu5file','menu_lookupmodel.html'); $tpl->set_var('relative_path', $relative_path); $menu5file=$tpl->process('out','menu5file',0,1); if(!isset($myuser_id) || empty ($myuser_id)){ $tpl->set_file('menu_home_join','menu_home_join.html'); $menu_home_join=$tpl->process('out','menu_home_join',0,1);} else{$menu_home_join="";} if(isset($_SESSION['user_id']) && !empty ($_SESSION['user_id'])){ $tpl->set_file('menu_login','menu_logout.html'); $menu_login=$tpl->process('out','menu_login',0,1);} else{$tpl->set_file('menu_login','menu_login.html'); $menu_login=$tpl->process('out','menu_login',0,1);} $tpl->set_file('leftcontent',$theleftframe); $tpl->set_var('relative_path', $relative_path); $tpl->set_var('menu_home_join',$menu_home_join); $tpl->set_var('menu1file',$menu1file); $tpl->set_var('menu2file',$menu2file); $tpl->set_var('menu3file',$menu3file); if (get_site_option('use_ratings')) { $tpl->set_var('menu4file',$menu4file);} $tpl->set_var('menu5file',$menu5file); $tpl->set_var('menulogin',$menu_login); $tpl->set_var('most_viewed',mostviewed_bit()); $left_content=$tpl->process('out','leftcontent',0,1); $query="SELECT firstname,lastname,name,gender,DATE_FORMAT(NOW(),'%Y')-DATE_FORMAT(birthdate,'%Y')-(DATE_FORMAT(NOW(),'00-%m-%d')\n"; $i=1; while (list($k,$v)=each($photos)) { if (($i%$table_cols)==1) {$picstable.="\n";} $picstable.="\t\n"; $picstable.="\t\t"; $picstable.="\t\n"; if ($i%$table_cols==0) {$picstable.="\n";} $i++; } $rest=($i-1)%$table_cols; if ($rest!=0) { $colspan=$table_cols-$rest; $picstable.="\t\n\n"; } $picstable.="\n"; } if (isset($_GET['thismain']) && !empty($_GET['thismain'])) { $photo2show=addslashes_mq($_GET['thismain']); $mainphoto=$photos[$photo2show]; }elseif(empty($photos)){ $mainphoto="no-pict.gif";} else{ $randmain=getrandphum($user_id); $mainphoto=$photos[$randmain]; } $imginfo=getimagesize(_IMAGESPATH_."/$mainphoto"); $mpwidth=$imginfo[0]; $mpheight=$imginfo[1]; if($mpwidth > 300){ $mpwidth=300;} elseif(!isset($mpwidth) || empty($mpwidth)){ $mpwidth="300"; } if ($country_residing!=1) { $us_state="N/A"; } else {$us_state = $accepted_states[$us_state];} $links_menu=""; if ($user_id==$myuser_id) { $titlename="my"; $editlink_mydetails="Edit"; $links_menu.=""; } else { $titlename=$name."'s"; $editlink_mydetails=""; $links_menu.=""; if(is_buddy($user_id)){ $links_menu.=""; }else {$links_menu.="";} } $links_menu.="
 
\"ContactContact $name
\"LeaveLeave $titlename fan club
\"JoinJoin $titlename fan club
"; $tpl->set_file('middlecontent','profile_view.html'); $tpl->set_var('titlename',htmlentities(stripslashes($titlename))); $tpl->set_var('editlink_mydetails',$editlink_mydetails); $tpl->set_var('links_menu',$links_menu); $tpl->set_var('relative_path',$relative_path); $link_back=""; if (isset($_SESSION['link_back']) && !empty($_SESSION['link_back'])) { $link_back="Back to results"; $_SESSION['link_back']=""; } $tpl->set_var('link_back',$link_back); $tpl->set_var('name',htmlentities(stripslashes($name))); $tpl->set_var('city',$city); if (isset($_GET['offset']) && !empty($_GET['offset'])) { $offset=addslashes_mq($_GET['offset'],true); } else { $offset=0; } if (isset($_GET['backto']) && !empty($_GET['backto'])) { $backto=addslashes_mq($_GET['backto'],true); } else { $backto='browse.php'; } // Is admin logged in? Display link to admin to add or remove user from random showcase if($admin == 1){ if(($showinrand == 0)||(empty($showinrand))){ $addtrl="Add to random showcase";} elseif($showinrand == 1){ $addtrl="Remove from random showcase";} } else{$addtrl="";} $tpl->set_var('addtrl',$addtrl); // end add to random showcase/remove from random showcase links // add link for viewing comments if check_allow_comments returns true for user if(get_site_option('use_comments_portfolios') && (check_allow_portfolio_comments($user_id))){ $total_comments=count_comments($user_id); $commentslink="Viewer Feedback (${total_comments})";} else {$commentslink="";} $tpl->set_var('comments',$commentslink); // end add link for viewing comments //add table for viewing/adding per photo comment if(get_site_option('use_comments_photos') && (check_allow_photo_comments($user_id)) && (!empty($photos))){ $total_photo_comments=count_photo_comments($user_id,$mainphoto); $table_photo_comments="
View Photo Comments (${total_photo_comments} total)Add a comment
"; } else {$table_photo_comments="";} $tpl->set_var('photocomment_table',$table_photo_comments); $tpl->set_var('state',$us_state); $tpl->set_var('picstable',$picstable); $tpl->set_var('mainphoto',$mainphoto); $tpl->set_var('my_diz',nl2br($my_diz)); $tpl->set_var('mpwidth',$mpwidth); $tpl->set_var('user_id',$user_id); $tpl->set_var('pic_count',count($photos)); $tpl->set_var('visibility',get_visibility($user_id)); $tpl->set_var('popularity',get_popularity($user_id)); if(!isset($gender)||empty($gender)){ $tpl->set_var('gender',"Unknown"); }else { $tpl->set_var('gender',$accepted_genders[$gender]); } if(($age <= 0)||($age >100)){ $age='0';} if(!isset($age)||empty($age)||(!$accepted_ages[$age])||($age <= 0)){ $tpl->set_var('age',"Unknown"); } else { $age=round($age); $tpl->set_var('age',$accepted_ages[$age]); } if(!isset($hairlength)||empty($hairlength)||(!$accepted_hairlength[$hairlength])||($hairlength == 0)){ $tpl->set_var('hairlength',"Unknown"); }else { $tpl->set_var('hairlength',$accepted_hairlength[$hairlength]); } if(!isset($hairtype)||empty($hairtype)||(!$accepted_hairtypes[$hairtype])||($hairtype == 0)){ $tpl->set_var('hairtype',"Unknown"); }else { $tpl->set_var('hairtype',$accepted_hairtypes[$hairtype]); } if(!isset($haircolor)||empty($haircolor)||(!$accepted_hair[$haircolor])||($haircolor == 0)){ $tpl->set_var('haircolor',"Unknown"); }else { $tpl->set_var('haircolor',$accepted_hair[$haircolor]); } $tpl->set_var('hairpiece',array2string($accepted_hairpieces,$hairpiece)); if(!isset($eyecolor)||empty($eyecolor)||(!$accepted_eyes[$eyecolor])||($eyecolor == 0)){ $tpl->set_var('eyecolor',"Unknown"); }else { $tpl->set_var('eyecolor',$accepted_eyes[$eyecolor]); } if(!isset($eyeshape)||empty($eyeshape)||(!$accepted_eyeshapes[$eyeshape])||($eyeshape == 0)){ $tpl->set_var('eyeshape',"Unknown"); }else { $tpl->set_var('eyeshape',$accepted_eyeshapes[$eyeshape]); } if(!isset($eyebrows)||empty($eyebrows)||(!$accepted_eyebrows[$eyebrows])||($eyebrows == 0)){ $tpl->set_var('eyebrows',"Unknown"); }else { $tpl->set_var('eyebrows',$accepted_eyebrows[$eyebrows]); } if(!isset($eyelashes)||empty($eyelashes)||(!$accepted_eyelashes[$eyelashes])||($eyelashes == 0)){ $tpl->set_var('eyelashes',"Unknown"); }else { $tpl->set_var('eyelashes',$accepted_eyelashes[$eyelashes]); } if(!isset($eyewear)||empty($eyewear)||($eyewear == 0)){ $tpl->set_var('eyewear',"Unknown"); }else { $tpl->set_var('eyewear',array2string($accepted_eyewear,$eyewear)); } if(!isset($country)||empty($country)||(!$accepted_countries[$country])||($country == 0)){ $tpl->set_var('country',"Unknown"); } else { $tpl->set_var('country',$accepted_countries[$country]); } if(!isset($country_residing)||empty($country_residing)||(!$accepted_countries[$country_residing])||($country_residing == 0)){ $tpl->set_var('country_residing',"Unknown"); } else { $tpl->set_var('country_residing',$accepted_countries[$country_residing]); } if(!isset($ethnicity)||empty($ethnicity)||($ethnicity == 0)){ $tpl->set_var('ethnicity',"Unknown"); }else { $tpl->set_var('ethnicity',array2string($accepted_ethnics,$ethnic)); } if(!isset($height)||empty($height)||(!$accepted_heights[$height])||($height == 0)){ $tpl->set_var('height',"Unknown"); }else { $tpl->set_var('height',$accepted_heights[$height]); } if(!isset($weight)||empty($weight)||(!$accepted_weights[$weight])||($weight == 0)){ $tpl->set_var('weight',"Unknown"); }else { $tpl->set_var('weight',$accepted_weights[$weight]); } if(!isset($waist)||empty($waist)||(!$accepted_waists[$waist])||($waist == 0)){ $tpl->set_var('waist',"Unknown"); }else { $tpl->set_var('waist',$accepted_waists[$waist]); } if(!isset($shoes)||empty($shoes)||(!$accepted_shoes[$shoes])||($shoes == 0)){ $tpl->set_var('shoes',"Unknown"); }else { $tpl->set_var('shoes',$accepted_shoes[$shoes]); } if(!isset($hips_inseam)||empty($hips_inseam)||(!$accepted_hips_inseam[$hips_inseam])||($hips_inseam == 0)){ $tpl->set_var('hips_inseam',"Unknown"); }else { $tpl->set_var('hips_inseam',$accepted_hips_inseam[$hips_inseam]); } if(!isset($chest)||empty($chest)||(!$accepted_chests[$chest])||($chest == 0)){ $tpl->set_var('chest',"Unknown"); }else { $tpl->set_var('chest',$accepted_chests[$chest]); } if(!isset($faceshape)||empty($faceshape)||(!$accepted_faceshapes[$faceshape])||($faceshape == 0)){ $tpl->set_var('faceshape',"Unknown"); }else { $tpl->set_var('faceshape',$accepted_faceshapes[$faceshape]); } if(!isset($dress_shirt)||empty($dress_shirt)||(!$accepted_dress_shirt[$dress_shirt])||($dress_shirt == 0)){ $tpl->set_var('dress_shirt',"Unknown"); }else { $tpl->set_var('dress_shirt',$accepted_dress_shirt[$dress_shirt]); } if(!isset($bodytype)||empty($bodytype)||(!$accepted_bodies[$bodytype])||($bodytype == 0)){ $tpl->set_var('bodytype',"Unknown"); }else { $tpl->set_var('bodytype',$accepted_bodies[$bodytype]); } global $accepted_profstats; global $accepted_experiencelevs; global $accepted_workstatus; global $accepted_skills; global $accepted_affiliations; global $accepted_prefwork; global $accepted_availability; global $accepted_areasofinterests; global $accepted_otherworktypes; global $accepted_travel; if(!isset($profstat)||empty($profstat)||(!$accepted_profstats[$profstat])||($profstat == 0)){ $tpl->set_var('profstat',"No Answer");} else { $tpl->set_var('profstat',$accepted_profstats[$profstat]);} if(!isset($explev)||empty($explev)||(!$accepted_experiencelevs[$explev])||($explev == 0)){ $tpl->set_var('explev',"No Answer");} else { $tpl->set_var('explev',$accepted_experiencelevs[$explev]);} if(!isset($work_status)||empty($work_status)||(!$accepted_workstatus[$work_status])||($work_status == 0)){ $tpl->set_var('work_status',"No Answer");} else { $tpl->set_var('work_status',$accepted_workstatus[$work_status]);} if(!isset($skills)||empty($skills)||($skills == 0)){ $tpl->set_var('skills',"No Answer");} else { $tpl->set_var('skills',array2string($accepted_skills,$skills));} if(!isset($affiliations)||empty($affiliations)||($affiliations == 0)){ $tpl->set_var('affiliations',"No Answer");} else { $tpl->set_var('affiliations',array2string($accepted_affiliations,$affiliations));} if(!isset($workinterests)||empty($workinterests)||($workinterests == 0)){ $tpl->set_var('workinterests',"No Answer");} else { $tpl->set_var('workinterests',array2string($accepted_prefwork,$workinterests));} if(!isset($jobtypes)||empty($jobtypes)||($jobtypes == 0)){ $tpl->set_var('jobtypes',"No Answer");} else { $tpl->set_var('jobtypes',array2string($accepted_availability,$jobtypes));} if(!isset($areasofinterests)||empty($areasofinterests)||($areasofinterests == 0)){ $tpl->set_var('areasofinterests',"No Answer");} else { $tpl->set_var('areasofinterests',array2string($accepted_areasofinterests,$areasofinterests));} if(!isset($otherinterests)||empty($otherinterests)||($otherinterests == 0)){ $tpl->set_var('otherinterests',"No Answer");} else { $tpl->set_var('otherinterests',array2string($accepted_otherworktypes,$otherinterests));} if(!isset($travel)||empty($travel)||($travel == 0)){ $tpl->set_var('travel',"No Answer");} else { $tpl->set_var('travel',array2string($accepted_travel,$travel));} $tpl->set_var('year1',$year1); $tpl->set_var('year2',$year2); $tpl->set_var('year3',$year3); $tpl->set_var('year4',$year4); $tpl->set_var('year5',$year5); $tpl->set_var('year6',$year6); $tpl->set_var('year7',$year7); $tpl->set_var('year8',$year8); $tpl->set_var('year9',$year9); $tpl->set_var('year10',$year10); $tpl->set_var('year11',$year11); $tpl->set_var('year12',$year12); $tpl->set_var('year13',$year13); $tpl->set_var('year14',$year14); $tpl->set_var('year15',$year15); $tpl->set_var('year16',$year16); $tpl->set_var('year17',$year17); $tpl->set_var('year18',$year18); $tpl->set_var('year19',$year19); $tpl->set_var('year20',$year20); $tpl->set_var('year21',$year21); $tpl->set_var('year22',$year22); $tpl->set_var('year23',$year23); $tpl->set_var('year24',$year24); $tpl->set_var('year25',$year25); $tpl->set_var('what1',htmlentities(stripslashes($what1))); $tpl->set_var('what2',htmlentities(stripslashes($what2))); $tpl->set_var('what3',htmlentities(stripslashes($what3))); $tpl->set_var('what4',htmlentities(stripslashes($what4))); $tpl->set_var('what5',htmlentities(stripslashes($what5))); $tpl->set_var('what6',htmlentities(stripslashes($what6))); $tpl->set_var('what7',htmlentities(stripslashes($what7))); $tpl->set_var('what8',htmlentities(stripslashes($what8))); $tpl->set_var('what9',htmlentities(stripslashes($what9))); $tpl->set_var('what10',htmlentities(stripslashes($what10))); $tpl->set_var('what11',htmlentities(stripslashes($what11))); $tpl->set_var('what12',htmlentities(stripslashes($what12))); $tpl->set_var('what13',htmlentities(stripslashes($what13))); $tpl->set_var('what14',htmlentities(stripslashes($what14))); $tpl->set_var('what15',htmlentities(stripslashes($what15))); $tpl->set_var('what16',htmlentities(stripslashes($what16))); $tpl->set_var('what17',htmlentities(stripslashes($what17))); $tpl->set_var('what18',htmlentities(stripslashes($what18))); $tpl->set_var('what19',htmlentities(stripslashes($what19))); $tpl->set_var('what20',htmlentities(stripslashes($what20))); $tpl->set_var('what21',htmlentities(stripslashes($what21))); $tpl->set_var('what22',htmlentities(stripslashes($what22))); $tpl->set_var('what23',htmlentities(stripslashes($what23))); $tpl->set_var('what24',htmlentities(stripslashes($what24))); $tpl->set_var('what25',htmlentities(stripslashes($what25))); $title="Viewing Profile: $titlename"; $tpl->set_var('title',$title); if ($myuser_id!=$user_id) { $tpl->set_var('views',"Viewed: $views times"); $query="UPDATE users SET views=views+1 WHERE user_id='$user_id'"; @mysql_query($query); } $middle_content=$tpl->process('out','middlecontent',0,true); $title="Portfolio Viewer"; include('block_main_frame.php'); ?>