@ -222,4 +222,20 @@ class SessionxDAO extends ModlSQL {
return $this->run('Sessionx');
}
function getConnected() {
$this->_sql = '
select count(*) from sessionx';
$this->prepare(
'Sessionx',
array(
)
);
$results = $this->run(null, 'array');
return (int)$results[0]['count(*)'];
@ -50,6 +50,11 @@ class Login extends WidgetBase {
$pop++;
$this->view->assign('pop', $pop-2);
$sd = new modl\SessionxDAO();
$connected = $sd->getConnected();
$this->view->assign('connected', $connected);
$this->view->assign('gmail',
t('%sGmail accounts are also compatible%s but are not fully supported',
@ -82,7 +82,7 @@
{/if}
<div class="admin">
{$c->t('Population')} {$pop} •
{$c->t('Connected')} {$connected} • {$c->t('Population')} {$pop} •
<a href="{$c->route('admin')}">
{$c->t('Administration')}
</a>
@ -3,9 +3,8 @@
<div class="comment">
<a
class="getcomments icon chat"
onclick="{$getcomments} this.innerHTML = '{$c->t('Loading comments ...')}'">
{$c->t('Get the comments')}
onclick="{$getcomments} this.innerHTML = '{$c->t('Loading comments ...')}'"
>{$c->t('Get the comments')}</a>
</div>
<div class="comments">
@ -201,11 +201,13 @@
.post .getcomments:before {
padding: 1em;
background-color: #FC8F12;
content: "";
.post .addcomment:before {
background-color: #6FCC43;
.post .avatar {
@ -261,6 +263,11 @@
display: inline-block;
height: auto;
width: auto;
line-height: 1.5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.post a.imglink img {