diff options
Diffstat (limited to 'code/links.inc.php')
-rw-r--r-- | code/links.inc.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/code/links.inc.php b/code/links.inc.php index e118160..9fbaae3 100644 --- a/code/links.inc.php +++ b/code/links.inc.php @@ -2,12 +2,17 @@ require_once('code/user.inc.php'); class Links { - function GetNeonLink($page) { + function GetNeonLink($page, $extra = '', $html = true) { if($GLOBALS['pages']->HasAccess($page, 'c')) { if($GLOBALS['user']->GetLoginType() == 'url') - return 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey(); + $ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->GetLoginKey() + . ($extra ? '&' . $extra : ''); - return 'index.php?page=' . $page; + else + $ret = 'index.php?page=' . $page . ($extra ? '&' . $extra : ''); + + if($html) return htmlspecialchars($ret); + else return $ret; } return ''; |