don't display six graphs if not in widescreen mode! duh!

git-svn-id: http://www.observium.org/svn/observer/trunk@2418 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-05 15:20:38 +00:00
parent 66678a4600
commit 020c782a8b

View File

@@ -5,15 +5,15 @@ global $config;
if($_SESSION['widescreen']) {
if(!$graph_array['height']) { $graph_array['height'] = "110"; }
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear');
} else {
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
$periods = array('day', 'week', 'month', 'year');
}
$graph_array['to'] = $config['time']['now'];
$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear');
foreach ($periods as $period)
{
$graph_array['from'] = $config['time'][$period];