2012-01-31, 01:20:01
it's the user_login plugin by Mike Henken.
this is the code:
Regards,
SlazZe.
this is the code:
Code:
function welcome_message_login()
{
global $welcome_box_css;
global $site_url;
global $the_page_slug;
if(isset($_SESSION['LoggedIn']))
{
//Get Username Of Logged In User
$the_username = $_SESSION['Username'];
$the_username = ucfirst($the_username);
//Display Welcome Message
$welcome_box = ' <div class="s_title">Sei gegrüßt, '.$the_username.'.</div>';
//Display Logout Link
$logout_link = '<ul class="subnav">
<li><a href="'.$site_url.'index.php?id='.$the_page_slug.'&logout=yes">Abmelden</a></li>
<li><a href="'.$site_url.'intern/">Interner Bereich</a></li>
<li><a href="'.$site_url.'admin/">Administration</a></li>
</ul>';
echo $welcome_box_css.$welcome_box.$logout_link;
echo '<div class="s_title" style="margin-top: 16px;">Navigation</div>';
echo '<ul class="subnav"><?php get_i18n_navigation(return_page_slug(),1,99); ?></ul>';
}
}
Regards,
SlazZe.