/usr/share/piwi/Templates/Links is in piwi 0.8+20041206-3.
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 | <?
if ( ! $cgi->param( 'mode' ) ) {$cgi->param( 'mode', '' );};
if ( $cgi->param( 'mode') ne 'edit' ) {print "<form action=\"Filters$conf{'extension'}\">";};
?>
<table width="95%" cellspacing="2" cellpadding="1" align="center" border="0">
<tr>
<td align="center" bgcolor="#4b4b71"><a href="Filters<?print $conf{'extension'}?>">Alert List</a></td>
<td align="center" bgcolor="#4b4b71"><a href="HeartBeat<?print $conf{'extension'}?>" target=_top>HeartBeat</a></td>
<td align="center" bgcolor="#4b4b71"><a href="TopAttackers<?print $conf{'extension'}?>" target=_top>Top <?print $conf{'nb_topattack*s'}?> Attackers</a></td>
<td align="center" bgcolor="#4b4b71"><a href="TopAttacks<?print $conf{'extension'}?>" target=_top>Top <?print $conf{'nb_topattack*s'}?> Attacks</a></td>
<td align="center" bgcolor="#4b4b71"><?Statistics_Link()?></td>
</tr>
<tr>
<td align="center" bgcolor="#4b4b71"><a href="FilterList<?print $conf{'extension'}?>" target=_top>Filter Factory</a></td>
<td align="center" bgcolor="#4b4b71"><?FilterEdit_Link()?></td>
<td align="center" bgcolor="#4b4b71" colspan="3">
<?
if ( $cgi->param( 'mode' ) ne 'edit' )
{
print "<select name=\"load\">";
print "<option value=\"\">None";
if ( ! defined( $cgi->param( 'load' ) ) ) {$cgi->param( 'load', '' );};
local *DIRECTORY;
opendir( DIRECTORY, 'generated/Filters/' );
foreach my $DirEntry ( sort readdir( DIRECTORY ) )
{
if ( $DirEntry =~ m/^(.*)\.flt$/ )
{
my $FilterName = $1;
print "<option value=\"$FilterName\"";
if ( $cgi->param( 'load' ) eq $FilterName ) {print ' selected';};
print ">$FilterName\n";
}
}
closedir( DIRECTORY );
print "</select>";
print "<input type=submit value=\"Load filter\">\n";
}
else
{
print ' ';
}
?>
</td>
</tr>
</table>
<? if ( $cgi->param( 'mode' ) ne 'edit' ) {print "</form>\n";}; ?>
|