aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/host.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-06-21responsive: introduce a hamburger navicon to toggle the menu on smaller devicesPim van den Berg1-0/+5
2015-05-25inc/functions: merge functions GET and validate_getPim van den Berg1-2/+2
And make sure all input from $_GET variables are parsed and validated.
2015-05-25inc/functions: make type argument of validate_get function exactly the same ↵Pim van den Berg1-2/+2
as $_GET value
2014-07-23Remove from all files the ending php tagFrançois LASSERRE1-2/+0
2014-07-21Fix overly permissive hostname validation, fix host checkPeter Wu1-1/+1
`[\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...
2014-06-30Escape HTML in GET-provided hostnameNicolas Iooss1-2/+2
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.
2014-05-03inc/collectd: consistently return false instead of an empty array or falsePim van den Berg1-3/+1
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
2014-02-10host.php: remove immediate end tag in fieldsetPim van den Berg1-1/+1
2013-06-22start using fieldset + legend for showing dataPim van den Berg1-1/+4
2013-03-30rewrite some code of added overview_filter featurePim van den Berg1-3/+1
Use less variables, less code.
2013-03-30add feature to show a subset of graphs from a plugin on overview pageRohit Bhute1-1/+3
2012-12-28remove arguments overview_plugins and other_plugins from plugins_list functionPim van den Berg1-7/+2
Those can be gathered within the function.
2012-12-28don't show plugins the host doesn't havePim van den Berg1-2/+4
2012-12-21remove in-html comments by xian310Pim van den Berg1-1/+1
2012-12-21replace the ajax expand system by a navigation menuxian3101-22/+14
Signed-off-by: Pim van den Berg <pim@nethuis.nl>
2011-04-21resolve php noticesKarol Nowacki1-2/+2
Including a lot of undefined $_GET values.
2010-01-01better validation of possible user input (get)Pim van den Berg1-2/+2
2009-12-28replace duplicate code by function plugin_headerPim van den Berg1-3/+3
2009-12-05load plugins on the host page via ajaxPim van den Berg1-4/+7
2009-10-11replace plus and minus on host page by imagesPim van den Berg1-3/+3
2009-10-10remove laquo from navigationPim van den Berg1-1/+1
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.
2009-09-29layout improvement based on daniel's patchPim van den Berg1-4/+4
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
2009-09-28change webdir/weburl and include/require usagePim van den Berg1-0/+1
- 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.