I have the same FTP script and have no need for the other but I would like to know the following:
1, How do I make the script hide the following so they can not be changed by the user:
(b) FTP Home Directory?
(c) FTP Quota?
2, I need the home directory at 1(b) to start at home/MYURL/public_ftp/ and then add the person's username automatically to the end so it makes their ftp folder there. How can this be done? (I have added the public_ftp/ to the value in that line then a statement at the end for the customer to add their username but it looks naff and unprofessional)
3, How can I make it check to see if the account already exists and, if it does, ask the user to try again with a different name?
At the moment, if the username is already being used, it will just update the password if it is different. So if user 1 is username = abc & password = 123 and user 2 is username = abc & password = 789 user 1 can no longer get access and user 2 can see all user 1's files! VERY BAD SECURITY FLAW!
4, When a successful account is created, it shows links to other stuff that are not on my site, nor do I want to actually add files for those links. How do I stop it from creating those links?
5, At the moment my script looks like this:
<tr><td>Domain:</td><td><input name="domain" size="30" value ="MYDOMAINNAME"></td><td>DO NOT CHANGE THIS SETTING!</td></tr>
<tr><td>FTP Username:</td><td><input name="fuser" size="30"></td><td>Please enter a Username</td></tr>
<tr><td>FTP Password:</td><td><input name="fpass" size="30"></td><td>Please enter a Password</td></tr>
<tr><td>FTP Home Directory:</td><td><input name="fhomedir" size="30" value="/public_ftp/"></td><td>Please add your Username to the end of /public_ftp/</td></tr>
<tr><td>FTP Quota:</td><td><input name="fquota" size="30" value="0"></td><td>DO NOT CHANGE THIS SETTING!<br></td></tr>
<tr><td colspan="3"><br /><input type="submit" value="Create FTP Account"></td></tr>
I have tried the following three things so far, all with different results, neither of which acceptable.
(a) Set the value to 0 but the text still shows in the input fields
(b) Deleted the value completely but same effect as 5(a)
(c) Deleted the selected lines completely but that way just keeps it going back to the same page without creating the account nor showing any errors.
6, I have also added the following to the bottom of the script, but before the ?>
$to = "myemail@mysite";
$subject = "FTP Account Created!";
$message = "Someone has created a FTP account via your site.";
$from = "myemail@mysite";
$headers = "From: $from";
This sends me an email when someone lands on the page but I need it to only send the email when they click on create account and the account is successful. How would I make it only send an email when the account has been made successfully?
Thanks in advance to anyone who can help with these issues!
Happy Hols and a GREAT New Year to ALL!