mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Added homedir lost reference to functions_html
This commit is contained in:
parent
dba263632b
commit
658ff78efb
@ -2304,10 +2304,9 @@ function progress_bar($progress, $width, $height, $title = '', $mode = 1, $value
|
|||||||
|
|
||||||
require_once("include_graph_dependencies.php");
|
require_once("include_graph_dependencies.php");
|
||||||
include_graphs_dependencies($config['homedir'].'/');
|
include_graphs_dependencies($config['homedir'].'/');
|
||||||
|
|
||||||
$src = ui_get_full_url(
|
$src = ui_get_full_url(
|
||||||
"/include/graphs/fgraph.php?homeurl=../../&graph_type=progressbar" .
|
"/include/graphs/fgraph.php?homeurl=../../&graph_type=progressbar" .
|
||||||
"&width=".$width."&height=".$height."&progress=".$progress.
|
"&width=".$width."&homedir=".$config['homedir']."&height=".$height."&progress=".$progress.
|
||||||
"&mode=" . $mode . "&out_of_lim_str=".$out_of_lim_str .
|
"&mode=" . $mode . "&out_of_lim_str=".$out_of_lim_str .
|
||||||
"&title=".$title."&font=".$config['fontpath']."&value_text=". $value_text .
|
"&title=".$title."&font=".$config['fontpath']."&value_text=". $value_text .
|
||||||
"&colorRGB=". $colorRGB, false, false, false
|
"&colorRGB=". $colorRGB, false, false, false
|
||||||
|
@ -40,6 +40,11 @@ else $graph_type = '';
|
|||||||
ob_start ();
|
ob_start ();
|
||||||
|
|
||||||
if (!empty($graph_type)) {
|
if (!empty($graph_type)) {
|
||||||
|
$homedir = $_GET['homedir'];
|
||||||
|
if ($homedir != null) {
|
||||||
|
$config['homedir'] = $homedir;
|
||||||
|
}
|
||||||
|
|
||||||
include_once($homeurl . 'include/functions.php');
|
include_once($homeurl . 'include/functions.php');
|
||||||
include_once($homeurl . 'include/functions_html.php');
|
include_once($homeurl . 'include/functions_html.php');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user