168,27 → 168,61 |
// |
header('Content-type: text/html; charset=utf-8'); |
print '<?xml version="1.0"?>'; |
|
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) |
{ |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); |
} |
if($Language == 'fr') |
{ |
$l_Pagename = "Traffic Global"; |
} |
else |
{ |
$l_Pagename = "Global Traffic"; |
} |
?> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
<head> |
<title>vnStat - PHP frontend</title> |
<link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/> |
<title>vnStat - PHP frontend</title> |
<link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/> |
<link rel="stylesheet" href="../../manager/htdocs/style.css"> |
</head> |
<body> |
|
<div id="wrap"> |
<div id="sidebar"><?php write_side_bar(); ?></div> |
<div id="content"> |
<div id="header"><?php print T('Traffic data for').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div> |
<div id="main"> |
<table class="tableTop" border="0" cellspacing="0" cellpadding="0" > |
<tbody> |
<tr> |
<th class="thBasicACC" > |
<?echo "$l_Pagename";?> |
</th> |
</tr> |
</tbody> |
<tr bgcolor="#FFCC66" class="trSizeACC"> |
<td class="tdSizeACC"> |
<img src="/images/pix.gif" width="1" height="2"> |
</td> |
</tr> |
</table> |
|
<div class="frameBorderACC test"> |
|
<div id="wrap" > |
<div id="sidebar"><?php write_side_bar(); ?></div> |
<div id="content" style="width: 70%"> |
<div id="header" ><?php print T('Traffic data for ').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div> |
<div id="main" "> |
<?php |
$graph_params = "if=$iface&page=$page&style=$style"; |
if ($page != 's') |
if ($graph_format == 'svg') { |
print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n"; |
print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n"; |
} else { |
print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n"; |
print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n"; |
} |
|
if ($page == 's') |
212,5 → 246,6 |
<div id="footer"><a href="http://www.sqweek.com/">vnStat PHP frontend</a> 1.5.2 - ©2006-2011 Bjorge Dijkstra (bjd _at_ jooz.net)</div> |
</div> |
</div> |
</div> |
|
</body></html> |