aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* support php versions without json support and show a warning messagePim van den Berg2014-07-251-0/+13
|
* Update html.inc.phpFrançois LASSERRE2014-07-231-6/+6
| | | Fix a link when no class selected.
* Defensive programming: more urlencode/htmlentitiesPeter Wu2014-07-201-47/+51
| | | | | | | | | | | | | | | | | | 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).
* Use config time_range for canvas graphsVincent Brillault2014-06-281-0/+1
|
* inc/html.inc.php: fix canvas graphsPim van den Berg2014-05-141-1/+1
| | | | Include graph.php instead of non-existing plugin/$plugin.php.
* move collectd_flush function to base classPim van den Berg2014-05-031-1/+5
|
* inc: mv graphs_from_plugin, build_url functions to html.inc.phpPim van den Berg2014-05-031-1/+68
| | | | They generate html.
* overview: disable showmem by default, add percent signPim van den Berg2014-04-151-25/+25
| | | | And change all spaces to tabs.
* overview: show used memory percentageBogdan Rădulescu2014-04-141-1/+25
|
* overview: only calculate cores when config option showload is enabledPim van den Berg2014-04-061-2/+2
| | | | Closes: https://github.com/pommi/CGP/issues/60
* use &amp; instead of & in htmlPim van den Berg2014-02-101-3/+3
|
* Add a configuration option for sync/async choice for the canvas graphsVincent Brillault2014-01-121-0/+11
|
* automatic page refresh support + config settingPim van den Berg2013-12-291-0/+6
| | | | Closes: https://github.com/pommi/CGP/pull/35
* add viewport meta tag for better experience on mobile devicesPim van den Berg2013-06-221-0/+1
|
* overview: add color to load averagesPim van den Berg2013-06-221-4/+11
| | | | | | | | | | The load average number turns: * orange When the load is higher than the number of cpu cores. * red When the load is more than twice as high as the number of cpu cores.
* start using fieldset + legend for showing dataPim van den Berg2013-06-221-3/+6
|
* integrate jsrrdgraph in CGPPim van den Berg2013-05-181-0/+31
|
* remove arguments overview_plugins and other_plugins from plugins_list functionPim van den Berg2012-12-281-11/+24
| | | | Those can be gathered within the function.
* don't show plugins the host doesn't havePim van den Berg2012-12-281-2/+4
|
* resolve php warning/notices when plugin doesn't existPim van den Berg2012-12-281-0/+4
| | | | | For example when a non existing plugin is defined in $CONFIG['overview'] it causes a lot of php warnings/notices.
* remove ajax js codePim van den Berg2012-12-211-1/+0
| | | | This isn't needed with the new navigation menu anymore.
* remove in-html comments by xian310Pim van den Berg2012-12-211-1/+1
|
* replace the ajax expand system by a navigation menuxian3102012-12-211-12/+47
| | | | Signed-off-by: Pim van den Berg <pim@nethuis.nl>
* include trailing slash in config weburl variablePim van den Berg2011-10-081-5/+5
| | | | | | | 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>
* resolve php noticesKarol Nowacki2011-04-211-10/+11
| | | | Including a lot of undefined $_GET values.
* fallback to non-annotated tags in version detectionPim van den Berg2011-03-101-1/+1
|
* add version information to footerPim van den Berg2011-03-091-1/+15
|
* add links to footerPim van den Berg2011-03-011-1/+2
|
* Define alternating odd/even css classes for rows in main summaryEdmondo Tommasina2010-05-291-1/+7
| | | | | | To select different background colors for the rows in the main summary page, just uncomment the tr.odd/tr.even background definition in layout/style.css and set the color.
* configuration option to show load averages on overview pagePim van den Berg2010-03-061-14/+16
|
* add compatibility if rrdinfo doesn't work as expectedPim van den Berg2010-01-121-3/+17
|
* make rrdtool executable configurablePim van den Berg2010-01-121-1/+1
|
* better validation of possible user input (get)Pim van den Berg2010-01-011-5/+8
|
* replace duplicate code by function plugin_headerPim van den Berg2009-12-281-0/+16
|
* load plugins on the host page via ajaxPim van den Berg2009-12-051-0/+1
|
* add unixsock flush supportPim van den Berg2009-11-041-0/+2
| | | | | | | | | | | | | | Via the UnixSock plugin of Collectd it is possible to send commands to the Collectd daemon. One of the commands is the FLUSH command, which you can use to let the daemon write cached data to the rrd files. CGP uses the FLUSH command before generating a graph and before showing the load information on the main page. In this case the information shown via CGP is always up-to-date. Also when you have configured the RRDTool plugin of Collectd with a CacheTimeout setting. This commit includes code based on functions collectd_identifier and collectd_flush from php-collection by Bruno Prémont.
* make dynamic title more detailedPim van den Berg2009-10-251-4/+17
| | | | | Include information in the title about the host, plugin, plugin instance, type and type instance.
* dynamic titlePim van den Berg2009-10-101-1/+7
| | | | Show the host and plugin in the title to have a better browsing history.
* layout improvement based on daniel's patchPim van den Berg2009-09-291-0/+9
| | | | | | | | 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
* change webdir/weburl and include/require usagePim van den Berg2009-09-281-3/+5
| | | | | | | | - 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.
* add a footer to each pagePim van den Berg2009-09-231-0/+1
|
* initial import of cgpPim van den Berg2009-09-201-0/+45
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.