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="";} $tpl->set_file('menuinbox','menu_inbox.html'); $tpl->set_var('relative_path', $relative_path); $menuinbox=$tpl->process('out','menuinbox',0,1); 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('menulogin',$menu_login); $tpl->set_var('menuinbox',$menuinbox); $tpl->set_var('most_viewed',mostviewed_bit()); $left_content=$tpl->process('out','leftcontent',0,1); if (isset($_SESSION['topass']) && !empty($_SESSION['topass'])) { $topass=$_SESSION['topass']; $_SESSION['topass']=""; } $message=((isset($topass['message'])) ? ($topass['message']) : ("")); $subject=''; $body=''; $to=''; if (isset($topass['action'])) { $mail_id=$topass['mail_id']; $query="SELECT b.name,a.subject,a.body,DATE_FORMAT(a.date_sent,'%m-%d-%Y') FROM mail_inbox a,users b WHERE a.from_id=b.user_id AND a.mail_id='$mail_id' AND a.user_id='".$_SESSION['user_id']."'"; if (!($res=mysql_query($query))) {error(mysql_error(),__LINE__,__FILE__);} if (mysql_num_rows($res)) { list($from,$subject,$body,$date_sent)=mysql_fetch_row($res); if ($topass['action']=='reply') { $subject=htmlentities("Re: $subject"); $body=htmlentities("On $date_sent, $from wrote:\n".$body); $to=htmlentities($from); } if ($topass['action']=='forward') { $subject=htmlentities("$subject (fwd)"); $body=htmlentities("On $date_sent, $from wrote:\n".$body); $to=''; } } } elseif (isset($_GET['user_id']) && !empty($_GET['user_id'])) { $to=htmlentities(get_name(addslashes_mq($_GET['user_id']))); $subject=''; $body=''; } if (isset($topass['to'])) { $to=$topass['to']; } if (isset($topass['subject'])) { $subject=$topass['subject']; } if (isset($topass['body'])) { $body=$topass['body']; } $tpl->set_file('middlecontent','mail_send.html'); $tpl->set_var('message',$message); $tpl->set_var('to',stripslashes($to)); $tpl->set_var('subject',stripslashes($subject)); $tpl->set_var('body',stripslashes($body)); $middle_content=$tpl->process('out','middlecontent',0,1); $title="Send A Message"; include('block_main_frame.php'); ?>