HasAccess($page, 'c')) {
if($GLOBALS['user']->GetLoginType() == 'url')
return 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey();
return 'index.php?page=' . $page;
}
return '';
}
function GetExternalLink($link) {
return $link;
}
function GetMailtoLink($address) {
return 'mailto:' . $address;
}
function GetNavPage($page) {
if($GLOBALS['pages']->HasAccess($page, 'n')) {
$page = $GLOBALS['pages']->Get($page, 'n');
return $page['content'];
}
return '';
}
function ParseNavLink($text, $link) {
if(!$link) return $text;
switch($link[0]) {
case ':':
$ret = $this->GetNeonLink(substr($link, 1));
if($ret)
return '' . $text . '';
return $text;
case '@':
return '' . $text . '';
case '!':
$ret = $this->GetNavPage(substr($link, 1));
if($ret)
return $ret;
return $text;
default:
return '' . $text . '';
}
}
}
$GLOBALS['links'] = new Links;
?>