Subversion Repositories ALCASAR

Rev

Rev 1675 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1675 Rev 2527
Line 166... Line 166...
166
    //
166
    //
167
    // html start
167
    // html start
168
    //
168
    //
169
    header('Content-type: text/html; charset=utf-8');
169
    header('Content-type: text/html; charset=utf-8');
170
    print '<?xml version="1.0"?>';
170
    print '<?xml version="1.0"?>';
-
 
171
 
-
 
172
    # Choice of language
-
 
173
    $Language = 'en';
-
 
174
    if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
-
 
175
    {
-
 
176
        $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
-
 
177
        $Language = strtolower(substr(chop($Langue[0]),0,2)); 
-
 
178
    }
-
 
179
    if($Language == 'fr')
-
 
180
    {
-
 
181
        $l_Pagename = "Traffic Global";
-
 
182
    }
-
 
183
    else
-
 
184
    {
-
 
185
        $l_Pagename = "Global Traffic";
-
 
186
    }
171
?>
187
?>
172
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
188
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
173
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
189
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
174
<head>
190
<head>
175
  <title>vnStat - PHP frontend</title>
191
    <title>vnStat - PHP frontend</title>
176
  <link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/>
192
    <link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/>
-
 
193
    <link rel="stylesheet" href="../../manager/htdocs/style.css">
177
</head>
194
</head>
178
<body>
195
<body>
179
 
196
 
-
 
197
<table class="tableTop" border="0" cellspacing="0" cellpadding="0" >
-
 
198
    <tbody>     
-
 
199
        <tr>
-
 
200
            <th class="thBasicACC" >
-
 
201
                <?echo "$l_Pagename";?>
-
 
202
            </th>
-
 
203
        </tr>
-
 
204
    </tbody>
-
 
205
    <tr bgcolor="#FFCC66" class="trSizeACC">
-
 
206
        <td class="tdSizeACC">
-
 
207
            <img src="/images/pix.gif" width="1" height="2">
-
 
208
        </td>
-
 
209
    </tr>
-
 
210
</table>
-
 
211
 
-
 
212
<div class="frameBorderACC test">
-
 
213
    
180
<div id="wrap">
214
<div  id="wrap" >
181
  <div id="sidebar"><?php write_side_bar(); ?></div>
215
  <div  id="sidebar"><?php write_side_bar(); ?></div>
182
   <div id="content">
216
   <div id="content" style="width: 70%">
183
    <div id="header"><?php print T('Traffic data for').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div>
217
    <div id="header" ><?php print T('Traffic data for ').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div>
184
    <div id="main">
218
    <div id="main" ">
185
    <?php
219
    <?php
186
    $graph_params = "if=$iface&amp;page=$page&amp;style=$style";
220
    $graph_params = "if=$iface&amp;page=$page&amp;style=$style";
187
    if ($page != 's')
221
    if ($page != 's')
188
        if ($graph_format == 'svg') {
222
        if ($graph_format == 'svg') {
189
	     print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n";
223
         print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n";
190
        } else {
224
        } else {
191
	     print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n";
225
         print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n";
192
        }
226
        }
193
 
227
 
194
    if ($page == 's')
228
    if ($page == 's')
195
    {
229
    {
196
        write_summary();
230
        write_summary();
Line 210... Line 244...
210
    ?>
244
    ?>
211
    </div>
245
    </div>
212
    <div id="footer"><a href="http://www.sqweek.com/">vnStat PHP frontend</a> 1.5.2 - &copy;2006-2011 Bjorge Dijkstra (bjd _at_ jooz.net)</div>
246
    <div id="footer"><a href="http://www.sqweek.com/">vnStat PHP frontend</a> 1.5.2 - &copy;2006-2011 Bjorge Dijkstra (bjd _at_ jooz.net)</div>
213
  </div>
247
  </div>
214
</div>
248
</div>
-
 
249
</div>
215
 
250
 
216
</body></html>
251
</body></html>