2009-06-30 Ramon Novoa <rnovoa@artica.es>
* include/functions_fsgraph.php: Truncate long names for flash charts. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1781 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f66b01f11d
commit
6956f70677
|
@ -1,3 +1,7 @@
|
|||
2009-06-30 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/functions_fsgraph.php: Truncate long names for flash charts.
|
||||
|
||||
2009-06-30 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/fgraph.php: Added support for mixing flash/image charts.
|
||||
|
|
|
@ -274,9 +274,10 @@ function fs_agent_event_chart ($data, $width, $height, $step = 1) {
|
|||
// Clean FLASH string strips non-valid characters for flashchart
|
||||
function clean_flash_string ($string) {
|
||||
$string = html_entity_decode ($string, ENT_QUOTES, "UTF-8");
|
||||
$temp = str_replace('&', '', $string);
|
||||
$temp = str_replace(' ', '', $string);
|
||||
return str_replace ('"', '', $temp);
|
||||
$string = str_replace('&', '', $string);
|
||||
$string = str_replace(' ', '', $string);
|
||||
$string = str_replace ('"', '', $string);
|
||||
return substr ($string, 0, 20);
|
||||
}
|
||||
|
||||
// Prints an error image
|
||||
|
|
Loading…
Reference in New Issue