Пример #1
0
	$baseDir = $bvsSiteIni['ENVIRONMENT']['DATABASE_PATH'];
}

$site = parse_ini_file($baseDir."ini/" . $lang . "/bvs.ini", true);

$ini = parse_ini_file(dirname(__FILE__)."/../scielo.def", true);
$home = $ini['this']['url'];

//ob_start("ob_gzhandler");
//session_start();

if(isset($_COOKIE['userID']))
{
	$link = new links();
	$link->setUser_id($_COOKIE['userID']);
	$linkList = $link->getInHomeLinks();
	if (count($linkList) > 0){
	?><ul><?
		for($i = 0; $i < count($linkList); $i++)
		{
			$link_id = $linkList[$i]->getLink_id();
			$name = $linkList[$i]->getName();
			$description = $linkList[$i]->getDescription();
			$rate = $linkList[$i]->getRate();
			$url = $linkList[$i]->getUrl();
?>
		<li>
			<a href="<?=$url?>" target="_blank"><?=$name?></a>
		</li>
		<?}?>
		</ul>