"; if(isset($sess_mem_id)) { $top_logged_in == ""; if ($sess_usertype == "Member"){ $top_logged_in = 'My Profile: '. $_SESSION['vfirst_name']. " " .$_SESSION['vlast_name']. ' '; }elseif($sess_usertype=="ServiceProvider"){ //Added by AaronC $top_logged_in = 'My Profile: '. $_SESSION["sess_comp_title"].' '; } $top_logged_in .= 'Log Out '; $log_link2='LogOut'; $log_leftlink2="index.php?file=logout"; $log_lefttext2="Logout"; $login_image1 ="images/bt-lft-logout-o.gif"; $login_image2 ="images/bt-lft-logout.gif"; $logalt="Logout"; if($sess_usertype == "ServiceProvider") $reg_leftlink = "index.php?file=renewal_sp"; elseif($sess_usertype == "Member") $reg_leftlink = "index.php?file=renewal"; elseif($sess_usertype == "Visitor") $reg_leftlink = "index.php?file=step1"; $reg_image1 = "images/bt-lft-renewal.gif" ; $reg_image2 = "images/bt-lft-renewal-o.gif"; $regalt = "Renewal"; $logged=1; }else { $log_link='Log In'; $log_leftlink="index.php?file=login"; $log_lefttext="Login"; $login_image1 ="images/bt-lft-login-o.gif"; $login_image2 ="images/bt-lft-login.gif"; $logalt="Login"; $reg_leftlink = "index.php?file=step1"; $reg_image1 = "images/bt-lft-register.gif" ; $reg_image2 = "images/bt-lft-register-o.gif"; $regalt = "Register"; $logged=0; } $sql = "select * from admin_banners where enabled='1' and position='0' order by rand()"; $result = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($result)) { $imgpath = "./admin/banners/".mysql_result($result,0,"banner"); $imgurl =mysql_result($result,0,"bannerurl"); $width1=480; $height1=60; $inf = @GetImageSize($imgpath); $width2=$inf[0]; $height2= $inf[1]; $width=$width2; $height=$height2; if($width>$width1) { $factor=round(($width1/$width),2); $width=$width1; $height=$height * $factor; $changed=1; } if($height>$height1) { $factor1=round(($height1/$height),2); $height=$height1; $width=$width * $factor1; $changed=1; } $img = ""; } else { } $tpl->parse_if('default','logged'); $Todate = date('F d,Y'); $include_script = "script/". $file . ".php"; if(!file_exists($include_script)) $include_script = "script/error.php"; include_once($include_script); unset($tpl); unset($obj); //$include_script is varible for filename with path if (file_exists($include_script)) { //echo "
This file was last modified: " . date ("F d Y H:i:s.", filemtime($include_script))."
"; } echo "";