mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -5,15 +5,15 @@ global $config;
|
|||||||
if($_SESSION['widescreen']) {
|
if($_SESSION['widescreen']) {
|
||||||
if(!$graph_array['height']) { $graph_array['height'] = "110"; }
|
if(!$graph_array['height']) { $graph_array['height'] = "110"; }
|
||||||
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
|
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
|
||||||
|
$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear');
|
||||||
} else {
|
} else {
|
||||||
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
|
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
|
||||||
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
|
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
|
||||||
|
$periods = array('day', 'week', 'month', 'year');
|
||||||
}
|
}
|
||||||
|
|
||||||
$graph_array['to'] = $config['time']['now'];
|
$graph_array['to'] = $config['time']['now'];
|
||||||
|
|
||||||
$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear');
|
|
||||||
|
|
||||||
foreach ($periods as $period)
|
foreach ($periods as $period)
|
||||||
{
|
{
|
||||||
$graph_array['from'] = $config['time'][$period];
|
$graph_array['from'] = $config['time'][$period];
|
||||||
|
Reference in New Issue
Block a user