protected function __construct($dbh, $typeFilter, $loghostFilter, $networkFilter, $serviceFilter, $countFilter, $limitFilter) { parent::__construct($dbh); $this->tTypeFilterEnabled = $typeFilter; $this->tLoghostFilterEnabled = $loghostFilter; $this->tNetworkFilterEnabled = $networkFilter; $this->tServiceFilterEnabled = $serviceFilter; $this->tCountFilterEnabled = $countFilter; $this->tLimitFilterEnabled = $limitFilter; self::initSession(self::SESSION_TYPEFILTER, $this->tTypeFilterEnabled); self::initSession(self::SESSION_LOGHOSTFILTER, $this->tLoghostFilterEnabled); self::initSession(self::SESSION_NETWORKFILTER, $this->tNetworkFilterEnabled); self::initSession(self::SESSION_SERVICEFILTER, $this->tServiceFilterEnabled); self::initSession(self::SESSION_COUNTFILTER, $this->tCountFilterEnabled); self::initSession(self::SESSION_LIMITFILTER, $this->tLimitFilterEnabled); }
protected function __construct($dbh) { parent::__construct($dbh); }
$access = new WebViewUsers($dbh); break; case "viewuser": $access = new WebViewUser($dbh); break; case "viewevents": $access = new WebViewEvents($dbh); break; case "viewabout": $access = new WebViewAbout($dbh); break; case "streamlogs": $access = new WebStreamLogs($dbh); break; default: $access = new WebViewServices($dbh); } } catch (Exception $e) { Log::err($e); Log::close(); if (Options::debug()) { WebAccess::reportExceptionAndExit($e); } else { WebAccess::sendStatusAndExit(WebAccess::STATUS_SERVICE_UNAVAILABLE); } } $access->sendResponse(); if (isset($dbh)) { $dbh->close(); } Log::close();