header("HTTP/1.1 301 Moved Permanently");
header("Location: http://internationalpress.org/");
die();
ob_start();
session_start();
include_once('lib/class.template.inc');
include_once('lib/configuration.php');
include_once('lib/myclass.php');
include_once('lib/forum.php');
// include_once('lib/functions.php');
//Affiliate code
include "affiliate.php";
if ($HTTP_POST_VARS)
{
$vars = $HTTP_POST_VARS;
}
elseif ($HTTP_GET_VARS)
{
$vars = $HTTP_GET_VARS;
}
if(!isset($obj))$obj=new myclass;
if(!isset($tpl)) $tpl = new template;
//added by aaron to get around the register_globals issue
$file = $_GET['file'];
if(isset($file) && !empty($file))
$template_file = TEMPLATE_DIR."inner.html";
else
$template_file = TEMPLATE_DIR."index.html";
// $sessionid = $_COOKIE["fud_session_1107853901"];
// $id = user_login("2", $sessionid, true);
$testvar = "top";
if(!isset($top)) $top = TOP_DIR."top.html";
if(!isset($left)) $left = LEFT_DIR."left.html";
if(!isset($bottom)) $bottom = BOTTOM_DIR."bottom.html";
if(!isset($middlebottom)) $middlebottom = MIDDLE_DIR."middle.html";
if(!isset($home_middle)) $home_middle = MIDDLE_DIR."home-middle.html";
if(!isset($file) || $file == "") {
$file = "default";
}
if(isset($sess_usertype)&& $sess_usertype=="Member")
$myaccount = "index.php?file=myaccount";
elseif(isset($sess_usertype)&& $sess_usertype=="ServiceProvider")
$myaccount = "index.php?file=sp_myaccount";
else
$myaccount = "index.php?file=myaccount";
if(isset($sess_usertype)&& $sess_usertype=="Member")
$forum_link = "forum_list.php";
elseif(isset($sess_usertype)&& $sess_usertype=="ServiceProvider")
$forum_link = "forum_list.php";
else
$forum_link = "visitors_forum.php";
//Removed by AaronC
//echo "";
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 "";