<?php
// ////////////////////////////////////////////////////////////////////////// //
// //
// This file is part of IPv6 Logger Script by //
// technikblog.gerhard-kerner.at //
// //
// Version 1.1, August 2012 //
// //
// (c) technikblog.gerhard-kerner.at //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
// //
// Dieses Programm ist Freie Software: Sie können es unter den Bedingungen //
// der GNU General Public License, wie von der Free Software Foundation, //
// Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren //
// veröffentlichten Version, weiterverbreiten und/oder modifizieren. //
// //
// Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber //
// OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite //
// Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. //
// Siehe die GNU General Public License für weitere Details. //
// //
// Sie sollten eine Kopie der GNU General Public License zusammen mit diesem //
// Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>. //
// //
// ////////////////////////////////////////////////////////////////////////// //
error_reporting(0);
// language settings
$language = "en"; // set language - de=german, en=english
// ---------------- //
if ($language == "de")
include "lang/lang_de.php";
elseif ($language == "en")
include "lang/lang_en.php";
else
include "lang/lang_en.php";
$ipv4file = "data/ipv4data.txt";
$ipv4open = fopen($ipv4file,"r");
$ipv4counter = fread($ipv4open, 10);
fclose($ipv4open);
$ipv6file = "data/ipv6data.txt";
$ipv6open = fopen($ipv6file,"r");
$ipv6counter = fread($ipv6open, 10);
fclose($ipv6open);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>IPv6 Logger Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link href="graphicstyle/graphicstyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header"><div id="header_left"></div><div id="header_main"><?php echo $lang_header; ?></div><div id="header_right"></div></div>
<div id="main">
<?php
require_once('graphics.php');
$data[$lang_ipv4txt] = $ipv4counter;
$data[$lang_ipv6txt] = $ipv6counter;
$mc1 = new getChart($data);
$mc1->showChart($lang_title,520,100);
?>
</div>
<div id="footer"><a href="<?php echo $lang_popupfile; ?>" onclick="window.open('<?php echo $lang_popupfile; ?>','popup','scrollbars=no, toolbar=no,'+'locationbar=no,statusbar=no,'+'width=350,height=470,top=150,left=350'); return false;" target="_blank" class="link1"><?php echo $lang_footer; ?></a><a href="http://technikblog.gerhard-kerner.at" class="link2">technikblog.gerhard-kerner.at</a></div>
</div>
</body>
</html>