public function sendData()
 {
     if (!Options::kioskMode()) {
         $this->sendContentType(self::CONTENT_TYPE_TEXT_PLAIN);
         $download = $this->getRequestDownload() != 0;
         if ($download) {
             $this->sendContentDisposition("logs.txt");
         }
         $this->sendLogs();
     } else {
         $this->sendStatusAndExit(self::STATUS_FORBIDDEN, "Kiosk mode enabled");
     }
 }
 private function printUserDetails()
 {
     $dbh = $this->dbh();
     $typeId = $this->getSessionTypeFilter();
     $loghostId = $this->getSessionLoghostFilter();
     $networkId = $this->getSessionNetworkFilter();
     $serviceId = $this->getSessionServiceFilter();
     $userId = $this->getRequestUser();
     $select = $dbh->prepare("SELECT a.id, a.user, a.statusid " . "FROM user a " . "WHERE a.id = ?");
     $select->bindParam(1, $userId, PDO::PARAM_STR);
     $select->execute();
     $select->bindColumn(1, $userId, PDO::PARAM_STR);
     $select->bindColumn(2, $user, PDO::PARAM_STR);
     $select->bindColumn(3, $statusId, PDO::PARAM_STR);
     if ($select->fetch(PDO::FETCH_BOUND) !== false) {
         $l12n = $this->l12n();
         $this->beginDetailsSection();
         $this->beginDetails1();
         $this->printImgUserStatus("icon128", $statusId);
         $this->endDetails1();
         $this->beginDetails2();
         $this->beginDetailsTable();
         $this->beginDetailsTableElement($l12n->t("User"));
         if (!Options::kioskMode()) {
             Html::out($user);
         } else {
             Html::out("********");
         }
         $this->endDetailsTableElement();
         $this->beginDetailsTableElement($l12n->t("Logs"));
         $this->printLogLinks("icon16", $typeId, $loghostId, $networkId, $serviceId, "*", "*", $userId);
         $this->endDetailsTableElement();
         $this->endDetailsTable();
         $this->endDetails2();
         $this->endDetailsSection();
     }
 }
 protected function printEventUser($userId, $user, $statusId, $typeId, $loghostId, $networkId, $serviceId)
 {
     if ($user != "") {
         print "<td><a href=\"?cmd=viewuser&amp;user={$userId}&amp;typefilter={$typeId}&amp;loghostfilter={$loghostId}&amp;networkfilter={$networkId}&amp;servicefilter={$serviceId}\">";
         $this->printImgUserStatus("icon16", $statusId);
         if (!Options::kioskMode()) {
             Html::out(" {$user}");
         } else {
             Html::out(" ********");
         }
         print "</a></td>";
     } else {
         print "<td class=\"center\">";
         Html::out("-");
         print "</td>";
     }
 }