$image->clearData(); $image->setDiagramType("Line"); $image->setData(0, $j); $image->setData($i, $j); $image->setGraphcolor(222, 222, 222); $image->paintData(); } } $image->clearData(); $image->setDiagramType("Line"); # Balken for ($j = 0; $j < $i; $j++) { $image->setData($j, $data[$j]); } $image->setGraphcolor(100, 100, 200); $image->paintData(); # Should we display debug options if (isset($_GET['debug'])) { echo "If following array is empty your license utilization table is not\n being populated. Most common problem is that license_util.php script is not\n being run periodically ie. every 15 minutes.<p><PRE>"; print_r($image->m_data); exit; } else { # If not draw image Header("Content-type: image/png"); $image->show(); } # If there is no data an image should be created indicating the problem. } else { generate_error_image("No data available to display for " . $_GET['feature'] . ". license_util.php is not being run"); } $db->disconnect();