Commit Graph
13 Commits
Author SHA1 Message Date
cigamit b523f1dea5 remove addslashes, prepared statements, wc3 validation, double to single quote
this is required for preparation of magic_quotes_gpc.
2016-08-28 15:27:48 -05:00
cigamit c59b0a7e12 add theme support to reports 2016-02-14 12:12:25 -06:00
cigamit 22478523f3 default the graph type and remove developer mode log messages. 2016-02-13 09:28:44 -06:00
cigamit bf33b51819 more request variable debug
no need for developer log messages under some circumstances
2016-02-13 09:14:46 -06:00
cigamit 2387bd4a08 removing many $_GET, $_REQUEST, and $_POST variable usage
There are still three steps to go in this overall.  The first is to
replace all the page filtering session storing and validation functions
and the second is to propagate those changes into various areas of the
lib directory that include the use of the various variables, lastly,
developer mode will have to be enable to see if there are any variables
used in the code that have not been sanitized.  Note, at this point the
develop branch should be thought of as slightly unstable
2016-02-07 12:51:49 -06:00
Andreas Braun 1a3812cfd8 Merge pull request #9 from micke2k/features/jsongraph
Fixed while loop when graph is not created.
2016-02-05 16:35:09 +01:00
cigamit da34108e21 remove use of deprecated function get_request_var_request(). replace it with get_request_var()
this is part three of project to remove the use of $_GET, $_REQUEST, and
$_POST in the code.  Parts one and two have already been completed.
Part one was to remove the use of $_GET throughout the code, part two
was the incorporation of wrapper functions to handle specific
validation, verification and sanitization cases.  This third part will
remove the use of the get_request_var_request() from the code.  Part
four, and beyond will include the removal of both $_REQUEST and $_POST
super globals from the code.
2016-01-30 15:53:08 -06:00
Micke2k ff681cecdb Fixed while loop when graph is not created.
When creating new graphs graph_json throws an error and spikes CPU.

[Sat Jan 30 00:06:27.947764 2016] [:error] [pid 44971] [client :64833] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/cacti/graph_json.php on line 143, referer: http:///cacti/graph_view.php

This is until the graph has been created and can be found.

Changed it to check for a RRD and if not found set a placeholder image. Code doesn't loop anymore.
2016-01-30 15:09:48 +04:00
Micke2k d188f1631d Change Copyright year 2015 -> 2016 2016-01-29 21:46:02 +04:00
cigamit d2ab6ff1b3 properly render svg in reports output
properly parse $_REQUEST['image_format'] and properly force to 'png' for
reports.
2015-04-25 09:57:27 -05:00
cigamit 3913c7fa98 Graph View Cog works and more
Graph View Cog works
CSV Output from Cog View
Render SVG Correctly
Properly Save Cookie in all pages
2015-03-01 20:34:48 -06:00
cigamit fa232bded8 Double to single quotes
Swap to using a few prepared statements also
2015-02-05 23:42:13 -06:00
browniebraun 3684e7ab8b - make use of rrdtool graphv
- a few bug fixes for JQueryZoom are still required to get it working again. :/
2015-02-06 00:06:15 +01:00