error_reporting(E_WARNING);
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
ob_start();
session_start(); //Initialize session data
$_SESSION['sessCorp']="pfc";
$_SESSION['sessPopup'] = false;
$lang = (isset($_GET['lang']))? $_GET['lang'] : "eng";
$comp = (isset($_GET['comp']))? $_GET['comp'] : "powerfinancial";
$page = (isset($_GET['page']))? $_GET['page'] : "profile";
if( !isset($_SESSION['sessDisclaimer']) )
{
$_SESSION['sessDisclaimer'] = false;
$_SESSION['sessIFrameRefresh'] = false;
$_SESSION['sessPopup'] = false;
}
else if( isset($_POST['btnOk']) )
{
if( $_POST['btnOk'] != "" )
{
$_SESSION['sessDisclaimer'] = true;
$_SESSION['sessIFrameRefresh'] = true;
}
}
$style = (isset($_GET['style']))? $_GET['style'] : "three";
$addr = explode(".",$_SERVER['REMOTE_ADDR']);
$md5 = md5($addr['0']."P".$addr['1']."C".$addr['2']."C".$addr['3']);
$cName = str_split($md5,strlen($md5)/2);
$cName = $cName['0'];
// url catcher for old site links
if ($comp == "power") { $comp="powerfinancial"; }
include("title.php");
if (!(eregi("msie", $_SERVER['HTTP_USER_AGENT']))) {
?>
} else {
?>
}
?>
include("bar.php"); ?>
" width="0" alt="" /> |
if( $_SESSION['sessDisclaimer'] || $page =="profile" || $page =="disclaimer" )
{
$page = str_replace("[]","",$page);
if ($page=="stock_quotes") {
include("stock_quotes.php");
}else{
if ($page == "dividends") {
header("Location: dividends.php?lang=" . ($lang == "eng" ? "en" : "fr") . "&share=1");
exit;
}
include("./".$comp."/".$page.".php");
}
}
else
{
if( !isset($_SESSION['sessURL']))
{
$_SESSION['sessURL'] = basename($_SERVER["SCRIPT_NAME"]) . "?lang=$lang&comp=$comp&page=$page";
}
else
{
$_SESSION['sessURL'] = basename($_SERVER["SCRIPT_NAME"]) . "?lang=$lang&comp=$comp&page=$page";
}
include("warning.php");
}
?>
|