Browse Source

cleanup sonarqube warnings

master
Kai Kretschmann 1 year ago
parent
commit
2e0563ea8b

+ 33
- 0
.project View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Lggr</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.php.composer.core.builder.buildPathManagementBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>

+ 2
- 0
.settings/org.eclipse.php.core.prefs View File

@@ -0,0 +1,2 @@
eclipse.preferences.version=1
include_path=0;/Lggr

+ 7
- 0
.settings/org.eclipse.php.debug.core.Debug_Process_Preferences.prefs View File

@@ -0,0 +1,7 @@
DefaultProjectBasePath=/Lggr
eclipse.preferences.version=1
org.eclipse.php.debug.core.use-project-settings=true
org.eclipse.php.debug.coredefaultPHP=PHP 7.2.0 (CLI)
org.eclipse.php.debug.coreoutput_encoding=UTF-8
org.eclipse.php.debug.corestop_at_first_line_string=true
org.eclipse.php.debug.coretransfer_encoding=UTF-8

+ 2
- 0
.settings/org.eclipse.php.server.core.phpServersPrefs.prefs View File

@@ -0,0 +1,2 @@
defaultPHPServer=Default PHP Web Server
eclipse.preferences.version=1

+ 2
- 0
.settings/org.eclipse.php.ui.prefs View File

@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.php.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>

+ 8
- 0
.settings/org.eclipse.wst.common.project.facet.core.xml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="php.core.component"/>
<fixed facet="php.component"/>
<installed facet="php.core.component" version="1"/>
<installed facet="php.component" version="7.1"/>
<installed facet="php.composer.component" version="1"/>
</faceted-project>

+ 6
- 0
.settings/org.sonarlint.eclipse.core.prefs View File

@@ -0,0 +1,6 @@
autoEnabled=true
eclipse.preferences.version=1
extraProperties=
moduleKey=lggr
projectKey=lggr
serverId=sona.myocastor.de

+ 1
- 1
archived.php View File

@@ -39,7 +39,7 @@ require 'tpl/nav.inc.php';
<div class="container" id="infoheader">
<?= _('Archived') ?>, <a href="./do.php?a=exportarchive"
target="_blank">export</a> to csv.
target="_blank">export</a> to csv.
</div>
<div class="container">

+ 42
- 29
css/lggr.css View File

@@ -1,79 +1,92 @@
div#infoheader, div#liveheader, div#statsheader {
margin-top: 5em;
margin-top: 5em;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
@-moz-keyframes spin { 100% {
-moz-transform: rotate(360deg);
}}

@-webkit-keyframes spin { 100% {
-webkit-transform: rotate(360deg);
}}

@keyframes spin { 100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}}

div#liveheader h2 span.glyphicon-refresh {
-webkit-animation: spin 4s linear infinite;
-moz-animation: spin 4s linear infinite;
animation: spin 4s linear infinite;
-webkit-animation: spin 4s linear infinite;
-moz-animation: spin 4s linear infinite;
animation: spin 4s linear infinite;
}

.navbar-brand img {
height: 25px;
height: 25px;
}

p.lggr-level-buttons {
line-height: 250%;
line-height: 250%;
}

#tsfromto {
display: none;
display: none;
}

input.tspick {
width: 9em;
width: 9em;
}

.datarow div {
white-space: nowrap;
overflow: hidden;
white-space: nowrap;
overflow: hidden;
}

.datatitle {
font-weight: bold;
background-color: #a0a0a0;
font-weight: bold;
background-color: #a0a0a0;
}

.datarow:nth-child(even) {
background-color: #e0e0e0;
background-color: #e0e0e0;
}

.datarow:nth-child(odd) {
background-color: #c0c0c0;
background-color: #c0c0c0;
}

.datarow.freshrow {
display: none;
display: none;
}

.datarow .newlog-msg {
cursor: zoom-in;
cursor: zoom-in;
}

span.lggr-notarchived, span.lggr-archived {
cursor: pointer;
cursor: pointer;
}

span.lggr-archived {
color: #f00;
color: #f00;
}

#dialog {
max-height: 500px !important;
overflow: auto;
max-height: 500px !important;
overflow: auto;
}

h4.panel-title span {
float: right;
float: right;
}

#cloudcontainer {
width: 100%;
height: 250px;
width: 100%;
height: 250px;
}

p.debugfooter {
float: right;
color: #999999;
font-size: 75%;
float: right;
color: #999999;
font-size: 75%;
}

+ 16
- 13
css/lggr_print.css View File

@@ -1,33 +1,36 @@
body {
color: #000;
font-family: Verdana, Arial, sans-serif;
color: #000;
font-family: "Verdana", "Arial", sans-serif;
}

a {
color: #000;
color: #000;
}

nav.navbar, #infoheader, ul.pagination {
display: none;
display: none;
}

footer {
font-size: 10px;
font-size: 10px;
}

div.datarow {
border-bottom: 1px solid #999;
margin-bottom: 0.5em;
padding-bottom: 0.5em;
font-size: 10px;
border-bottom: 1px solid #999;
margin-bottom: .5em;
padding-bottom: .5em;
font-size: 10px;
}

code {
font-size: 10px;
font-size: 10px;
}

div.col-md-1, div.col-md-2 {
float: left;
padding-right: 2em;
float: left;
padding-right: 2em;
}

div.col-md-5 {
clear: left;
clear: left;
}

+ 7
- 7
ids.php View File

@@ -6,16 +6,16 @@
<meta name="robots" content="noindex">
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: Verdana, Arial, sans-serif;
background-color: #000;
color: #f00;
margin: 0;
padding: 0;
font-family: Verdana, Arial, sans-serif;
background-color: #000;
color: #f00;
}

#wrapper {
width: 500px;
margin: 0 auto;
width: 500px;
margin: 0 auto;
}
</style>
</head>

+ 14
- 16
index.php View File

@@ -392,26 +392,24 @@ foreach ($aEvents as $event) {
<div class="col-md-2 col-xs-12">$program</div>
<div class="col-md-5 col-xs-12 newlog-msg" title="$msg"><tt>{$msg}</tt></div>
</div><!-- row -->
EOL;

} // foreach

if(0 < count($aEvents)) {
include 'tpl/containerhead.inc.php';
}

EOL;
} // foreach
if (0 < count($aEvents)) {
include 'tpl/containerhead.inc.php';
}
?>
<div id="dialog" title="Details">I'm a dialog</div>

<?php
if(!$isSearch && (0 < count($aEvents))) {
include 'tpl/paginate.inc.php';
}
<?php
if (! $isSearch && (0 < count($aEvents))) {
include 'tpl/paginate.inc.php';
}
?>

</div>
<?php
$aPerf = $l->getPerf();
require 'tpl/foot.inc.php'
?>
<?php
$aPerf = $l->getPerf();
require 'tpl/foot.inc.php'?>

+ 5
- 3
js/lggr_stat_data.php View File

@@ -9,6 +9,8 @@ $searchvalue = '';
session_start();
define('COLORALERT', 'd9534f');
if (isset($_SESSION[LggrState::SESSIONNAME])) {
$state = $_SESSION[LggrState::SESSIONNAME];
} else {
@@ -16,9 +18,9 @@ if (isset($_SESSION[LggrState::SESSIONNAME])) {
} // if
$aColors = array(
'emerg' => '#d9534f',
'crit' => '#d9534f',
'err' => '#d9534f',
'emerg' => COLORALERT,
'crit' => COLORALERT,
'err' => COLORALERT,
'warning' => '#f0ad4e',
'notice' => '#337ab7',
'info' => '#5cb85c'

+ 7
- 8
live.php View File

@@ -89,12 +89,12 @@ foreach ($aEvents as $event) {
echo <<<EOL
<div class="row datarow $rowclass" data-id="{$event->id}">
<div class="col-md-2 col-xs-6 newlog-date">{$event->date}</div>
<div class="col-md-1 col-xs-2">{$event->facility}</div>
<div class="col-md-1 col-xs-2">$label</div>
<div class="col-md-1 col-xs-2">$host</div>
<div class="col-md-2 col-xs-12">$program</div>
<div class="col-md-5 col-xs-12 newlog-msg" title="$msg"><tt>{$msg}</tt></div>
<div class="col-md-2 col-xs-6 newlog-date">{$event->date}</div>
<div class="col-md-1 col-xs-2">{$event->facility}</div>
<div class="col-md-1 col-xs-2">$label</div>
<div class="col-md-1 col-xs-2">$host</div>
<div class="col-md-2 col-xs-12">$program</div>
<div class="col-md-5 col-xs-12 newlog-msg" title="$msg"><tt>{$msg}</tt></div>
</div><!-- row -->
EOL;
} // foreach
@@ -105,5 +105,4 @@ EOL;
<?php
$aPerf = $l->getPerf();
require 'tpl/foot.inc.php'
?>
require 'tpl/foot.inc.php'?>

+ 20
- 20
tpl/head.inc.php View File

@@ -14,15 +14,15 @@ if (defined('TITLE')) {
<title>Lggr.io <?= $title ?></title>
<!-- Bootstrap -->
<link href="<?= $config->getUrlBootstrap() ?>css/bootstrap.min.css"
rel="stylesheet" media="screen">
rel="stylesheet" media="screen">
<link rel="stylesheet"
href="<?= $config->getUrlJqueryui() ?>themes/smoothness/jquery-ui.css"
media="screen">
href="<?= $config->getUrlJqueryui() ?>themes/smoothness/jquery-ui.css"
media="screen">
<link rel="stylesheet"
href="<?= $config->getUrlJAtimepicker() ?>jquery-ui-timepicker-addon.min.css"
media="screen">
href="<?= $config->getUrlJAtimepicker() ?>jquery-ui-timepicker-addon.min.css"
media="screen">
<link rel="stylesheet"
href="<?= $config->getUrlJQCloud() ?>jqcloud.min.css" media="screen">
href="<?= $config->getUrlJQCloud() ?>jqcloud.min.css" media="screen">
<link href="css/lggr.css" rel="stylesheet" media="screen">
<link href="css/lggr_print.css" rel="stylesheet" media="print">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
@@ -32,33 +32,33 @@ if (defined('TITLE')) {
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="apple-touch-icon" sizes="57x57"
href="/icos/apple-touch-icon-57x57.png">
href="/icos/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60"
href="/icos/apple-touch-icon-60x60.png">
href="/icos/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72"
href="/icos/apple-touch-icon-72x72.png">
href="/icos/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76"
href="/icos/apple-touch-icon-76x76.png">
href="/icos/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114"
href="/icos/apple-touch-icon-114x114.png">
href="/icos/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120"
href="/icos/apple-touch-icon-120x120.png">
href="/icos/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144"
href="/icos/apple-touch-icon-144x144.png">
href="/icos/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152"
href="/icos/apple-touch-icon-152x152.png">
href="/icos/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180"
href="/icos/apple-touch-icon-180x180.png">
href="/icos/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/icos/favicon-32x32.png"
sizes="32x32">
sizes="32x32">
<link rel="icon" type="image/png" href="/icos/favicon-194x194.png"
sizes="194x194">
sizes="194x194">
<link rel="icon" type="image/png" href="/icos/favicon-96x96.png"
sizes="96x96">
sizes="96x96">
<link rel="icon" type="image/png"
href="/icos/android-chrome-192x192.png" sizes="192x192">
href="/icos/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/icos/favicon-16x16.png"
sizes="16x16">
sizes="16x16">
<link rel="manifest" href="/icos/manifest.json">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="msapplication-TileImage" content="/icos/mstile-144x144.png">

Loading…
Cancel
Save
Social stuff:
Mastodon