From b8fbd7338c1cc917770ea106cbc23839da6f3eb2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Dec 2004 23:08:09 +0000 Subject: Update nmap. Update pure-ftpd --- packages/ntop/ntop.xml | 4 ++-- packages/pure-ftpd.xml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml index 23175507..57156d71 100644 --- a/packages/ntop/ntop.xml +++ b/packages/ntop/ntop.xml @@ -23,7 +23,7 @@ NTOP Admin Password AGAIN passwordagain input - + if($_POST['password'] == $_POST['passwordagain']) { @@ -37,7 +37,7 @@ mwexec("/usr/bin/killall ntop"); - + system("rm /usr/local/etc/rc.d/ntop.sh"); $fout = fopen("/usr/local/etc/rc.d/ntop.sh","w"); diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml index 6a873d79..3711829e 100644 --- a/packages/pure-ftpd.xml +++ b/packages/pure-ftpd.xml @@ -15,7 +15,7 @@ Username - graphname + username Description @@ -63,6 +63,7 @@ mwexec("/usr/bin/killall pure-ftpd"); + $expires = ""; if($_POST['expiration']) $expires = " -e " . $_POST['expiration']; mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -k /home/ " . $_POST['username'] . " -s /usr/sbin/nologin"); $fd = popen("/usr/sbin/pw usermod -n " . $_POST['username'] . " -H 0", "w"); @@ -73,6 +74,6 @@ $savemsg = "User has been added."; - mwexec("/usr/sbin/pw userdel " . $_POST['username']); + system("/usr/sbin/pw userdel " . $username); -- cgit v1.2.3