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_var('relative_path', $relative_path); $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); $tpl->set_file('menucnotices','menu_casting_notices.html'); $tpl->set_var('relative_path', $relative_path); $menucnotices=$tpl->process('out','menucnotices',0,1); if(!isset($myuser_id) || empty ($myuser_id)){ $tpl->set_file('menu_home_join','menu_home_join.html'); $tpl->set_var('relative_path', $relative_path); $menu_home_join=$tpl->process('out','menu_home_join',0,1);} else{$menu_home_join="";} if(!isset($myuser_id) || empty ($myuser_id)){ $tpl->set_file('menu_login','menu_login.html'); $menu_login=$tpl->process('out','menu_login',0,1);} else{$tpl->set_file('menu_login','menu_logout.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('most_viewed',mostviewed_bit()); $tpl->set_var('menulogin',$menu_login); $tpl->set_var('menucnotices',$menucnotices); $left_content=$tpl->process('out','leftcontent',0,1); unset($_SESSION['foundcomments']); if (isset($_GET['user_id']) && !empty($_GET['user_id'])) { $user_id=addslashes_mq($_GET['user_id']); } else {$user_id="";} $query="SELECT fk_user_id,comment_id,poster_id,comment,date_posted FROM profile_comments WHERE fk_user_id='$user_id' ORDER BY comment_id DESC"; if (!($res=mysql_query($query))) {error(mysql_error(),__LINE__,__FILE__);} if (mysql_num_rows($res)) { $foundcomments=array(); $i=0; while ($rsrow=mysql_fetch_row($res)) { //mod november 2005 //mod start -- get the name of the person who posted the ad. Also get the profession and set the correct profile url $poster=get_name($rsrow[2]); if(!isset($poster) || empty($poster)){ $foundcomments[$i]['postername']="Anonymous"; } else { $foundcomments[$i]['postername']=$poster; } $pprofession=get_profession($rsrow[2]); if($pprofession == "1"){ $foundcomments[$i]['whichprofile']="profile_view.php"; }elseif($pprofession == "2"){ $foundcomments[$i]['whichprofile']="album_view.php"; }else { $foundcomments[$i]['whichprofile']="general_view.php"; } //mod end $foundcomments[$i]['user_id']=$rsrow[0]; $foundcomments[$i]['poster_id']=$rsrow[2]; $foundcomments[$i]['comment_id']=$rsrow[1]; $foundcomments[$i]['comment']=$rsrow[3]; $foundcomments[$i]['postdate']=$rsrow[4]; $ownerid=$rsrow[0]; $dellink=''; if(isset($_SESSION['user_id']) && !empty($_SESSION['user_id'])){ if($_SESSION['user_id'] == $ownerid){ $dellink="Delete comment";} else{$dellink="";} } $foundcomments[$i]['delete']=$dellink; $i++; } $_SESSION['foundcomments']=$foundcomments; } $tpl->set_file('middlecontent','comments_view.html'); $tpl->set_var('user_id',$user_id); $middle_content=$tpl->process('out','middlecontent',0,1); if(!isset($myuser_id) || empty ($myuser_id)){ $tpl->set_file('outmenu','bits/outmenu.html'); $tpl->set_var('relative_path', $relative_path); $outmenu=$tpl->process('out','outmenu',0,1); } else { $tpl->set_file('outmenu','bits/outmenu_in.html'); $tpl->set_var('relative_path', $relative_path); $outmenu=$tpl->process('out','outmenu',0,1); } $tpl->set_file('frame','frame.html'); $tpl->set_var('title',"Casting Notices"); $tpl->set_var('baseurl',_BASEURL_); $tpl->set_var('sitename',_SITENAME_); $tpl->set_var('relative_path', $relative_path); if(!isset($myuser_id) || empty ($myuser_id)){ $tpl->set_var('top_content',"");} else{ $tpl->set_var('top_content',display_extrainfo_bit()); } $tpl->set_var('outmenu',$outmenu); $tpl->set_var('left_content',$left_content); $tpl->set_var('middle_content',$middle_content); print $tpl->process('out','frame',0,1); ?>