***********************
** FILE NAME : abuse.php
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.3 $
+** VERSION NUMBER : $Revision: 1.4 $
**
** DESCRIPTION : Abuse list page
**
/*****************************
$Log: abuse.php,v $
- Revision 1.3 2007-10-19 07:15:52 arjen
+ Revision 1.4 2007-11-21 14:38:06 arjen
+ The buttonbar at the top of each page is now a fixed 'div' element
+ instead of a framed page.
+ Contributed by Edwin Nadorp.
+
+ Revision 1.3 2007/10/19 07:15:52 arjen
In the abuse list, IP addresses can be whitelisted.
Revision 1.2 2007/01/11 13:44:29 arjen
******************************/
-// RCSID = "$Id: abuse.php,v 1.3 2007-10-19 07:15:52 arjen Exp $";
+// RCSID = "$Id: abuse.php,v 1.4 2007-11-21 14:38:06 arjen Exp $";
ini_set('include_path', '.:./classes:../phpclasses');
$res = pg_exec($this->database, "SELECT objectname FROM object
WHERE objectid=CAST('" . $_GET['oid']."' AS BIGINT)");
$obj = pg_fetch_object($res, 0);
- echo "<h1>Abuse List for " . $obj->objectname . "</h1><hr>";
+
+ echo "<script type='text/ecmascript'>";
+ echo "document.getElementById('menu_title').innerHTML =";
+ echo " '<h1>Abuse List for " . $obj->objectname . "<\/h1>'</script>";
if (!empty($_POST['ACTION']) && ($_POST['ACTION'] == 'Abuse'))
{
}
else
{
- echo "<form method='post'>";
+ echo "<form method='post' action='abuse.php'>";
echo "Report <input type='submit' name='ACTION' value='Abuse'>";
echo " for IP address <input type='text' name='source'>";
echo " or <input type='submit' name='ACTION' value='Whitelist'>";
echo " with status <input type='text' name='status'>";
echo "</form>";
- echo "<form method='post'>";
+ echo "<form method='post' action='abuse.php'>";
echo "<input type='submit' name='ACTION' value='Investigate'>";
echo " or <input type='submit' name='ACTION' value='Block'>";
echo " this subnet: <input type='text' name='subnet'>";