$bottom = [];
+ if ($this->http_user()) {
+ $bottom[] = '<a href="/logout"'
+ .' style="background:url(\'/ldap/jpegPhoto.jpg?w=20\') right no-repeat;padding-right:22px"'
+ .'>Logout: '
+ .$this->http_user()
+ .' (can: '.$this->perm2h().')'
+ #.'<img src="/ldap/jpegPhoto.jpg?w=20" />'
+ .'</a>';
+ }
+
+
if ($this->perm >= self::ADMIN and !empty($this->db->pdo)) {
$r = [
'/(^|;)password=[^;]*/' => '',
$bottom[] = 'Database: '.preg_replace(array_keys($r),$r,$this->db->pdo);
}
- #debug($_SERVER);
- if ($this->http_user()) $bottom[] = '<a href="/logout">Logout: '
- .$this->http_user()
- .' (can: '.$this->perm2h().')'.'</a>';
-
- if ($this->perm >= self::READ) {
- #echo '<img src="/ldap/jpegPhoto.png?w=25" />';
- #$bottom[] = '<object type="image/jpeg" data="/ldap/jpegPhoto.bin"></object>';
- }
-
if ($bottom and $this->page->is('html')) echo $this->page->tag('div class="block" style="display:inline-block"',join('<br />'.NB_EOL,$bottom));
$this->page->end();