1<?php html_msgarea() ?>
2
3<?php
4global $conf;
5if ($conf['topbar'] == 'connected' && empty($_SERVER['REMOTE_USER'])) {
6    $top_bar = false;
7} else {
8    $top_bar = true;
9}
10?>
11
12<?php if (class_exists('Ld_Ui') && method_exists('Ld_Ui', 'topBar') && $top_bar) : ?>
13    <?php
14    $loginUrl = Ld_Ui::getAdminUrl(array(
15        'module' => 'default', 'controller' => 'auth', 'action' => 'login',
16    ));
17    if (empty($loginUrl)) {
18        $loginUrl = wl($ID,'do=login&amp;sectok='.getSecurityToken());
19    }
20    if (empty($logoutUrl)) {
21        $logoutUrl = wl($ID,'do=logout&amp;sectok='.getSecurityToken());
22    }
23    Ld_Ui::topBar(array('loginUrl' => $loginUrl, 'logoutUrl' => $logoutUrl));
24	?>
25<?php else : ?>
26  <div class="user-info">
27      <?php tpl_userinfo()?>
28      <?php tpl_actionlink('subscription') ?>
29      <?php tpl_actionlink('profile') ?>
30      <?php tpl_actionlink('admin') ?>
31      <?php tpl_actionlink('login'); ?>
32  </div>
33<?php endif ?>
34