/var/lib/graphdefang/index.php is in graphdefang 2.83-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!--
#
# GraphDefang - a set of tools to create graphs of your mimedefang
# spam and virus logs.
#
# Written by: John Kirkland
# jpk@bl.org
#
# Copyright (c) 2002-2003, John Kirkland
#
# 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 2 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#=============================================================================
-->
<?php
# CONFIGURE ME!!!
$OUTPUT_DIR = '/var/lib/graphdefang';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GraphDefang</title>
</head>
<body>
<center>
<table border="0" width="50%">
<tr align="center">
<td>
<a href="index.php?view=hourly">Hourly</a>
</td>
<td>
<a href="index.php?view=daily">Daily</a>
</td>
<td>
<a href="index.php?view=monthly">Monthly</a>
</td>
</tr>
</table>
<p />
<?php
$handle=opendir("$OUTPUT_DIR");
while ($filename = readdir($handle)) {
if ($filename != "." && $filename != ".." && $filename != "index.php" && $filename != ".index.php.swp") {
$filename_array[] = $filename;
}
}
closedir($handle);
$view = $_GET['view'];
if (!$view) $view="hourly";
foreach($filename_array as $value) {
if (ereg($view,$value)) {
$subvalue=explode($view,$value);
#print "$subvalue[1]";
print "<a href=\"index.php?view=$subvalue[1]\">";
print "<img src=\"./$value\" border=\"0\" alt=\"$value\" />";
print "</a>";
print "<p />";
}
}
?>
</center>
Graphs created with <a href="http://www.bl.org/~jpk/graphdefang">GraphDefang</a>.
<br/><br/>
Interactive CGI Version at: <a href="/cgi-bin/graphdefang.cgi">GraphDefang CGI</a>.
<p align="left">
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" border="0"/></a>
</p>
</body>
</html>
|