$file) { $hostname = str_ireplace('app-shoutcast-'.$app['app_id'].'-', '', $file); $hostname = str_ireplace('.rrd', '', $hostname); list($host, $port) = explode('_', $hostname, 2); $rrd_filenames[] = $rrddir.'/'.$file; $rrd_list[$i]['filename'] = $rrddir.'/'.$file; $rrd_list[$i]['descr'] = $host.':'.$port; $rrd_list[$i]['ds_in'] = $ds_in; $rrd_list[$i]['ds_out'] = $ds_out; $i++; } require 'includes/graphs/generic_multi_bits_separated.inc.php';