aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/functions.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-14Revert "make detail page accessible when using "canvas" graph_type"Peter Wu1-10/+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/+10
Closes #106
2014-07-23Remove from all files the ending php tagFrançois LASSERRE1-2/+0
2014-07-21Better x and y validation, report 400 on errorsPeter Wu1-1/+1
Report 400 Bad Request on query errors instead of reporting 200 OK (which can be cached). Add some additional validation for the 'x' and 'y' parameters, to catch underflow (test with `x=-10` for example). Also fix a typo in the error message and include more details (the actual error).
2014-07-21Fix overly permissive hostname validation, fix host checkPeter Wu1-2/+2
`[\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-03-23inc/functions.inc.php: rm trailing slash in base and resolve symlinkPim van den Berg1-0/+5
When there was a symlink in the path of $base, strpos($realpath, $base) would have always return false. Closes: https://github.com/pommi/CGP/pull/49
2013-05-18integrate jsrrdgraph in CGPPim van den Berg1-0/+15
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-04-21resolve php noticesKarol Nowacki1-0/+6
Including a lot of undefined $_GET values.
2010-06-05remove php gd dependencyPim van den Berg1-0/+6
Image error messages were shown using PHP GD. People who haven't installed PHP GD don't understand what is going on when an image is not shown. It is replaced by a static image referring to the error log for more information.
2010-02-16make rrdfiles using utf8 and spaces workJakob Haufe1-3/+6
2010-01-01better validation of possible user input (get)Pim van den Berg1-0/+27