--- mrts-v0.1.1.php_old	2003-04-06 07:46:51.000000000 +0200
+++ mrts-v0.1.1.php	2007-08-05 14:29:37.000000000 +0200
@@ -26,6 +26,23 @@
 /* RRDtool path - where are the the executable located */
 $rrdcommand = '/usr/bin/rrdtool';
 
+/* Config structure for graphs */
+$graphConfig = array(
+		'width'		=> 510,
+		'options'	=> "-E",
+		'line'		=> "LINE1",
+		'colors'	=> array(
+				'BACK'		=> '#000000',
+				'CANVAS'	=> '#000000',
+				'ARROW'		=> '#006400',
+				'GRID'		=> '#90ee90',
+				'FONT'		=> '#008000',
+				'FRAME'		=> '#000000',
+				'SHADEA'	=> '#000000',
+				'SHADEB'	=> '#000000',
+			),
+	);
+
 
 
 /* Change this to get another top on the site */
@@ -422,7 +439,12 @@
 
 				header("content-type: image/png");
 
-				$rrdcommand = "$rrdcommand graph - -v 'Bytes/s' -b 1024 -w 390 DEF:avgin=$name:ds0:AVERAGE AREA:avgin#00CC00:'Traffic in' DEF:avgout=$name:ds1:AVERAGE LINE2:avgout#0000FF:'Traffic out'";
+				$colorOpts = "";
+				foreach ($graphConfig['colors'] as $key => $value) {
+					$colorOpts .= " -c $key$value ";
+				}
+
+				$rrdcommand = "$rrdcommand graph - {$graphConfig['options']} -v 'Bytes/s' -b 1024 -w {$graphConfig['width']} $colorOpts DEF:avgin=$name:ds0:AVERAGE AREA:avgin#00CC00:'Traffic in' DEF:avgout=$name:ds1:AVERAGE {$graphConfig['line']}:avgout#0000FF:'Traffic out'";
 
 				/* Last day */
 				if($_GET['period']=='day')

