$sValue){ // if displaying the current (last) month, change the color if ($i==1) $class = "bar_last"; else $class = "bar"; echo '
'; $i++; } } try { // construct the class $oAnalytics = new analytics('your_analytics_username', 'your_password'); // set it up to use caching $oAnalytics->useCache(); // get all profiles $all_profiles = $oAnalytics->getProfileList(); // sort profiles array asort($all_profiles); // check for excluded profiles foreach ($all_profiles as $key => $profile) { if (!in_array($key, $ignore_profiles)) $profiles[$key] = $profile; } // set the desired date range (maximum results is set in profile_repeater.php) $oAnalytics->setDateRange('2008-01-01', date('Y-m-d', time())); } catch (Exception $e) { echo 'Caught exception: ' . $e->getMessage(); } ?>