initial widescreen version :)

git-svn-id: http://www.observium.org/svn/observer/trunk@2412 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-04 21:50:48 +00:00
parent 1c65e69268
commit f096b307c4
4 changed files with 31 additions and 4 deletions
+8 -3
View File
@@ -2,12 +2,17 @@
global $config;
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
if($_SESSION['widescreen']) {
if(!$graph_array['height']) { $graph_array['height'] = "110"; }
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
} else {
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
}
$graph_array['to'] = $config['time']['now'];
$periods = array('day', 'week', 'month', 'year');
$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear');
foreach ($periods as $period)
{