mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Security fix: unauthorized access Affects nginx users: Moved php files outside of public html directory (Apache was protected by .htaccess) Affects all users: Some files did not check for authentication and could disclose some info. Better checks before including files from user input * git mv html/includes/ includes/html git mv html/pages/ includes/html/
41 lines
829 B
PHP
41 lines
829 B
PHP
<?php
|
|
|
|
$no_refresh = true;
|
|
|
|
$pagetitle[] = 'Tools';
|
|
|
|
$sections = array(
|
|
'oxidized-cfg-check' => 'Oxidized Config Checker',
|
|
);
|
|
|
|
print_optionbar_start('', '');
|
|
|
|
echo '<span style="font-weight: bold;">Tools</span> » ';
|
|
|
|
unset($sep);
|
|
foreach ($sections as $type => $texttype) {
|
|
echo $sep;
|
|
if ($vars['search'] == $type) {
|
|
echo "<span class='pagemenu-selected'>";
|
|
}
|
|
|
|
echo generate_link($texttype, array('page' => 'tools', 'tool' => $type));
|
|
|
|
if ($vars['search'] == $type) {
|
|
echo '</span>';
|
|
}
|
|
|
|
$sep = ' | ';
|
|
}
|
|
|
|
unset($sep);
|
|
|
|
print_optionbar_end();
|
|
|
|
$tools_type = basename($vars['tool']);
|
|
if (file_exists("includes/html/pages/tools/$tools_type.inc.php")) {
|
|
include "includes/html/pages/tools/$tools_type.inc.php";
|
|
} else {
|
|
echo report_this("Unknown tool type $tools_type");
|
|
}
|