2 $sf = new ServiceFactory();
3 $userservice =& $sf->getServiceInstance('UserService');
4 if ($userservice->isLoggedOn()) {
5 $cUser = $userservice->getCurrentUser();
6 $cUsername = $cUser[$userservice->getFieldName('username')];
10 <li><a href="<?php echo createURL('bookmarks', $cUsername); ?>"><?php echo T_('Bookmarks'); ?></a></li>
11 <li><a href="<?php echo createURL('watchlist', $cUsername); ?>"><?php echo T_('Watchlist'); ?></a></li>
12 <li><a href="<?php echo createURL('bookmarks', $cUsername . '?action=add'); ?>"><?php echo T_('Add a Bookmark'); ?></a></li>
13 <li class="access"><a href="<?php echo $GLOBALS['root']; ?>?action=logout"><?php echo T_('Log Out'); ?></a></li>
14 <li class="access"><a href="<?php echo createURL('profile', $cUsername); ?>"><?php echo $cUsername; ?></a></li>
22 <li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
23 <li class="access"><a href="<?php echo createURL('login'); ?>"><?php echo T_('Log In'); ?></a></li>
24 <li class="access"><a href="<?php echo createURL('register'); ?>"><?php echo T_('Register'); ?></a></li>