diff --git a/app/admin/settings/index.php b/app/admin/settings/index.php index d29c52ecd9d68aeb53290fe40edaef015c49566d..7c8d95a123d3e545a66c8604a7df70f3fb8ece29 100755 --- a/app/admin/settings/index.php +++ b/app/admin/settings/index.php @@ -580,12 +580,7 @@ $(document).ready(function() { <!-- Ping path --> <tr> <td class="title"><?php print _('Ping path'); ?></td> - <?php - //verify that ping file exists! - if(!file_exists($settings['scanPingPath'])&&$settings['scanFPingType']=="ping") { $class="danger"; } - else { $class=""; } - ?> - <td class="<?php print $class; ?>"> + <td class="<?php print !file_exists($settings['scanPingPath']) ? 'danger' : ''; ?>"> <input type="text" class="form-control input-sm" name="scanPingPath" value="<?php print $settings['scanPingPath']; ?>"> </td> <td class="info2"> @@ -596,12 +591,7 @@ $(document).ready(function() { <!-- fping path --> <tr> <td class="title"><?php print _('FPing path'); ?></td> - <?php - //verify that ping file exists! - if(!file_exists($settings['scanFPingPath'])&&$settings['scanFPingType']=="fping") { $class="danger"; } - else { $class=""; } - ?> - <td class="<?php print $class; ?>"> + <td class="<?php print !file_exists($settings['scanFPingPath']) ? 'danger' : ''; ?>"> <input type="text" class="form-control input-sm" name="scanFPingPath" value="<?php print $settings['scanFPingPath']; ?>"> </td> <td class="info2"> diff --git a/css/bootstrap/bootstrap-custom.css b/css/bootstrap/bootstrap-custom.css index c0a8f2d78b501fea98a16ae26db0ef75f86c290b..0b7eed90574db914f3c872577af86f594527e863 100644 --- a/css/bootstrap/bootstrap-custom.css +++ b/css/bootstrap/bootstrap-custom.css @@ -264,6 +264,9 @@ table#zonesPrint tr.border-top td, table#mappingsPrint tr.border-top td { border-bottom: 1px solid #eee; } +html table.table td.danger { + background-color: rgba(230, 25, 25, 0.5) !important; +} diff --git a/functions/version.php b/functions/version.php index fbd408833d9c540a63a4a141ae98dd1e39964cc6..6a50285e4ca1250cabf00bd1833e3b255406972d 100644 --- a/functions/version.php +++ b/functions/version.php @@ -4,7 +4,7 @@ define("VERSION", "1.5"); //decimal release version e.g 1.32 /* set latest version */ define("VERSION_VISIBLE", "1.5.0"); //visible version in footer e.g 1.3.2 /* set latest revision */ -define("REVISION", "015"); //increment on static content changes (js/css) or point releases to avoid caching issues +define("REVISION", "016"); //increment on static content changes (js/css) or point releases to avoid caching issues /* set last possible upgrade */ define("LAST_POSSIBLE", "1.19"); //minimum required version to be able to upgrade /* set published - hide dbversion in footer */