Location: PHPKode > projects > Kwalbum > kwalbum/pages/headerMenu.php
<?php

/**
 * @version 2.1.2
 * @since 2.0 Aug 19, 2008
 * @package kwalbum
 */
$extended_url = $URLP->GetExtendedURL();
$id = $URLP->GetId();
?>
<a href="<?=PAGE_URL.'">'.MAIN_TITLE?></a> - <a href="<?=$URLP->GetExtendedURL('Dates')?>p=Dates">Dates</a> - <a href="<?=$URLP->GetExtendedURL('Locations')?>p=Locations">Locations</a> - <a href="<?=$URLP->GetExtendedURL()?>p=Tags">Tags</a> - <a href="<?=$URLP->GetExtendedURL('Users')?>p=Contributors">Contributors</a>
&nbsp;|&nbsp;
<?php
echo (USER_ID
	? (USER_CAN_ADD
		? "<a href='" . $extended_url . "p=UploadItems'>Upload</a> - " ."<a href='" . $extended_url .
			(EDIT_MODE
				? "m=View".(($pageName = $URLP->GetPageName() and $pageName != 'Item') ? '&amp;p='.$pageName : null) . ($id ? '&amp;i='.$id : null)."'>View"
				: "m=Edit".(($pageName = $URLP->GetPageName() and $pageName != 'Item') ? '&amp;p='.$pageName : null) . ($id ? '&amp;i='.$id : null)."'>Edit"
				)."</a> - "
		: '') .
	  (USER_IS_ADMIN
		? "<a href='" . $extended_url . "p=Admin'>Admin</a> - "
		: '') .
		"<a href='" . $extended_url . "p=MyStuff'>My Stuff</a> - <a href='" . $extended_url . "p=Logout'>Logout</a>"
	: "<a href='" . $extended_url . "p=Login'>Login</a> - <a href='" . $extended_url . "p=Register'>Register</a>") .
"<br/>";
?>
Return current item: Kwalbum