if ($Section=='' || $Section=='3')
{
$Section=3 ;
$L3_Protected = 1;
}
else
{
$L3_Protected = 0;
}
$L3_SkipMainACL = 1;
include ("./header.php3");
/* -- initialise banner ads -- */
//include("../webtop/classes/BannerAdmin/banners.php3");
//$Ban = new Banners;
if ($Section == 1) :
$BannerFirstSection = $Ban->viewbanner("webtop_SuppliersDirectory0_1", $PHP_SELF);
$BannerSecondSection = $Ban->viewbanner("webtop_SuppliersDirectory0_2", $PHP_SELF);
elseif ($Section == 5) :
$BannerFirstSection = $Ban->viewbanner("webtop_ProdServDirectory0_1", $PHP_SELF);
$BannerSecondSection = $Ban->viewbanner("webtop_ProdServDirectory0_2", $PHP_SELF);
else :
$BannerFirstSection = $Ban->viewbanner("webtop_Index_1", $PHP_SELF);
$BannerSecondSection = $Ban->viewbanner("webtop_Index_2", $PHP_SELF);
endif ;
?>
if ($Login) :
$status = $L3->validate_Login($username, $password);
if ( eregi (":User", $status) && !empty($username) && !empty($password) ) :
$Login_Failed = false;
print "";
?>
else :
$Login_Failed = true;
endif;
endif;
if (($Login && $Login_Failed) || !$Login) :
?>
print $BannerFirstSection; ?>
print $BannerSecondSection; ?>
|
|
get_GlobalConfig("Portal_DocRoot") . "/webtop/common/templates/menu.phtml") ; ?>
|
" . $Section;
if ($Section==1) :
include ('mainpage_section_1.template') ;
elseif ($Section==3) :
include ('mainpage_section_3.template') ;
elseif ($Section==5) :
include ('mainpage_section_5.template') ;
else :
include ('mainpage_section_3.template') ;
endif;
?>
include("common/templates/bodyend.phtml") ;
?>
endif ; ?>
|