aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-06-21responsive: introduce a hamburger navicon to toggle the menu on smaller devicesPim van den Berg1-0/+6
2015-05-25inc/functions: merge functions GET and validate_getPim van den Berg1-8/+9
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-6/+6
as $_GET value
2014-12-14Revert "make detail page accessible when using "canvas" graph_type"Peter Wu1-2/+0
This reverts commit 82d88098f4203cf7402d4faf5ad100cada70efaf. Breaks async rendering, see https://github.com/pommi/CGP/issues/106#issuecomment-66896905
2014-11-11make detail page accessible when using "canvas" graph_typePim van den Berg1-0/+2
Closes #106
2014-07-23Remove from all files the ending php tagFrançois LASSERRE1-2/+0
2014-07-20Defensive programming: more urlencode/htmlentitiesPeter Wu1-2/+7
Make build_url return an URL, not HTML. This separates presentation from data. plugin_header's return value is unused, remove the unnecessary return. At places where `printf("<tag att='%s'>", $x);` is used, it is now converted to `printf("<tag att=\"%s\">", htmlentities($x));` since the single quote is not escaped by default by htmlentities. In case the canvas style is used, JS should use `textContent` instead of `innerHTML` to avoid reading `&quot;` instead of `"`. Nobody (should) use(s) IE6 anymore, so it is a safe change. While at it, use the standard charset attribute of meta to specify the character set (UTF-8).
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-19detail.php: fix canvas graphsPim van den Berg1-1/+1
Include graph.php instead of non-existing plugin/$plugin.php. Closes #75
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-01-12add graph_type "hybrid" to show canvas on detail page, png on the othersPim van den Berg1-0/+4
2013-12-29fix heigth -> height typoPim van den Berg1-1/+1
2013-06-22start using fieldset + legend for showing dataPim van den Berg1-1/+3
2013-05-18integrate jsrrdgraph in CGPPim van den Berg1-1/+6
2013-05-13move width/heigth from plugins to type __constructPim van den Berg1-2/+0
2013-02-09detail.php: make terms configurablePim van den Berg1-11/+1
2012-12-28remove arguments overview_plugins and other_plugins from plugins_list functionPim van den Berg1-8/+2
Those can be gathered within the function.
2012-12-21remove in-html comments by xian310Pim van den Berg1-1/+1
2012-12-21replace the ajax expand system by a navigation menuxian3101-14/+26
Signed-off-by: Pim van den Berg <pim@nethuis.nl>
2012-09-07add support for varnish plugin categoriesPim van den Berg1-0/+1
Since commit collectd-4.10.0-88-g02e12db the varnish plugin groups collected values in categories. The collectd filestructure used for varnish is now: <plugin>-<category>-<plugin_instance>/<type>-<type_instance> Because this isn't distinguishable from a regular plugin like df, ... df-var-tmp/df_complex-free.rrd ("var" isn't the category here) ... the category is only set with the varnish plugin. Reported-by: Jonathan Huot <jonathan.huot@gmail.com>
2011-10-08include trailing slash in config weburl variablePim van den Berg1-3/+3
When running CGP in the root, the header didn't link to the overview page because the href was empty. Reported-by: Nikoli <Nikoli@lavabit.com>
2011-04-21resolve php noticesKarol Nowacki1-8/+8
Including a lot of undefined $_GET values.
2010-01-01better validation of possible user input (get)Pim van den Berg1-5/+6
2009-10-11change 6 hour link on detail page to 8 hourPim van den Berg1-1/+1
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-29make width and heigth of graphs configurablePim van den Berg1-0/+6
These configuration options have been added: - width - heigth - detail-width - detail-heigth
2009-09-29layout improvement based on daniel's patchPim van den Berg1-1/+1
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.
2009-09-20display term as a list on detail pagePim van den Berg1-3/+3