query_result('select `name` from `servers` where `id`='.$server); $tpl->output['server_name']= $server_name; $tpl->output['success_blok']='none'; if (isset($_SESSION['id'])) { $tpl->output['add_comment_blok']='block'; $tpl->output['deny_adding_blok']='display: none'; } else { $tpl->output['add_comment_blok']='none'; $tpl->output['deny_adding_blok']=''; $tpl->output['deny_adding_msg']= $text['deny_adding_comments']; } if ((isset($posted['text'])) AND (isset($_SESSION['id']))) { $db->insert('comments', array('server'=>$server, 'author'=>$_SESSION['id'], 'time'=>time('now'), 'text'=>$posted['text'])); $tpl->output['success_blok']='block'; $tpl->output['added_comment'] = $text['added_comment']; } $tpl->output['comment_h3'] = $text['comment_h3']; $tpl->output['add_comment'] = $text['add_comment']; ob_start(); $num = $db->query_result('select count(*) as pocet from `comments` where `server`='.$server); if ($num==0) { echo '