Files
librenms-librenms/html/pages/purgeports.inc.php
T

11 lines
258 B
PHP
Raw Normal View History

2009-05-11 13:58:05 +00:00
<?php
2011-05-13 13:52:01 +00:00
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `deleted` = '1'") as $port)
{
echo("<div style='font-weight: bold;'>Deleting port " . $port['interface_id'] . " - " . $port['ifDescr']);
delete_port($port['interface_id']);
echo("</div>");
}
2009-05-11 13:58:05 +00:00
2011-05-13 13:52:01 +00:00
?>