From 9c4cfa21a5d947f40ce7aec2ea6f9a69857a9fcf Mon Sep 17 00:00:00 2001 From: paulr Date: Mon, 13 Sep 2010 14:43:16 +1000 Subject: [PATCH] made scan work... think i also have a solution for ipv6 sunetting... its pretty simple too... i like simple... simple is good.. --- lib/runscan.php | 1 - lib/www.php | 2 +- 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/runscan.php b/lib/runscan.php index ceb648b..c33c00e 100644 --- a/lib/runscan.php +++ b/lib/runscan.php @@ -63,7 +63,6 @@ foreach($sml as $row => $key) { echo "added, $ha, $hname\n"; } } - } unlink($fname); diff --git a/lib/www.php b/lib/www.php index 17140f5..f38f5e8 100644 --- a/lib/www.php +++ b/lib/www.php @@ -194,7 +194,7 @@ function www_ip_scansubReal() system("/usr/bin/php ../lib/runscan.php $id > /tmp/out.phpipman 2>&1 &"); error_log("would exec... nmap -sP -oX $fname $sn/$sm"); - header("Location: index.php"); + header("Location: index.php?notice=Scan Initiated"); } function www_ip_addSuperRange() -- 1.7.0.4