| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Closes #128
|
| |
|
|
|
|
| |
And make sure all input from $_GET variables are parsed and validated.
|
|
|
|
| |
as $_GET value
|
| |
|
|
|
|
|
|
|
|
|
| |
`[\w\W]` matches EVERYTHING. Validation failed. Also remove `\d` as that
`\w` is a superset of it.
Also check that the host parameter is actually non-empty, otherwise
`collectd_plugins` will happily return results as the directory
`$CONFIG['datadir'] . '/' . ''` trivially exists...
|
|
|
|
|
|
|
| |
A malicious user can enter javascript code in "h" GET parameter and this
code gets executed because this parameter is copied in the HTML output
without any escaping. This patch escape the output before it is checked
it is valid.
|
|
|
|
|
|
|
|
|
| |
This means we have to check the return value of these functions for
example before doing a foreach. We can't just do a foreach and assume the
return value of a function is an array, while it can be false and results
in a PHP warning.
Closes: https://github.com/pommi/CGP/pull/68
|
| |
|
| |
|
|
|
|
| |
Use less variables, less code.
|
| |
|
|
|
|
| |
Those can be gathered within the function.
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Pim van den Berg <pim@nethuis.nl>
|
|
|
|
| |
Including a lot of undefined $_GET values.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
You can always return to the main page via the header. From the detail
page you can return to the host page by clicking the hostname.
|
|
|
|
|
|
|
|
| |
The page is divided into a header, content and footer.
It is styled better and the header links to the main page.
Patch from Daniel von Fange (Leancoder):
http://pommi.nethuis.nl/storage/software/cgp/leancoder-css.cgp-v-0-1.patch
|
|
|
|
|
|
|
|
| |
- Don't depend on includes from files that are included.
- Don't use webdir with includes/requires (also because webdir couldn't
be available in some cases).
- Use common.inc.php instead of config.php in all plugins to have all
configuration settings available.
|
|
Collectd Graph Panel is a frontend for Collectd written in PHP.
The goal of CGP is to provide an easy-to-use frontend for Collectd,
starting with page that shows an overview of all the hosts you are
managing with Collectd.
In this initial import there is support for the plugins that are default
enabled in Collectd. The supported plugins are located in the plugin
directory.
|