38 |
// Recupere root dolibarr |
// Recupere root dolibarr |
39 |
$path=eregi_replace('graph-solde.php','',$_SERVER["PHP_SELF"]); |
$path=eregi_replace('graph-solde.php','',$_SERVER["PHP_SELF"]); |
40 |
|
|
41 |
require ($path."../../htdocs/master.inc.php"); |
require_once($path."../../htdocs/master.inc.php"); |
42 |
|
|
43 |
// Vérifie que chemin vers JPGRAHP est connu et defini $jpgraph |
// Vérifie que chemin vers JPGRAHP est connu et defini $jpgraph |
44 |
if (! defined('JPGRAPH_DIR') && ! defined('JPGRAPH_PATH')) |
if (! defined('JPGRAPH_DIR') && ! defined('JPGRAPH_PATH')) |
51 |
if (! eregi('[\\\/]$',$jpgraphdir)) $jpgraphdir.='/'; |
if (! eregi('[\\\/]$',$jpgraphdir)) $jpgraphdir.='/'; |
52 |
|
|
53 |
|
|
54 |
include_once ($jpgraphdir."jpgraph.php"); |
include_once($jpgraphdir."jpgraph.php"); |
55 |
include_once ($jpgraphdir."jpgraph_line.php"); |
include_once($jpgraphdir."jpgraph_line.php"); |
56 |
include_once ($jpgraphdir."jpgraph_bar.php"); |
include_once($jpgraphdir."jpgraph_bar.php"); |
57 |
include_once ($jpgraphdir."jpgraph_pie.php"); |
include_once($jpgraphdir."jpgraph_pie.php"); |
58 |
include_once ($jpgraphdir."jpgraph_error.php"); |
include_once($jpgraphdir."jpgraph_error.php"); |
59 |
include_once ($jpgraphdir."jpgraph_canvas.php"); |
include_once($jpgraphdir."jpgraph_canvas.php"); |
60 |
|
|
61 |
$error = 0; |
$error = 0; |
62 |
|
|