wantstolearncfm
IS-IT--Management
Hi,
I am using bullet proof FTP and want to write to the users.ini file when i add a new ftp user (or when they add there own user).
I found Which shows me this
So i need to pass a Form with the values in there etc i can do that but how do i write all that the ftp server needs and what do i need to adapt
For every user there is this
Cheers
I am using bullet proof FTP and want to write to the users.ini file when i add a new ftp user (or when they add there own user).
I found Which shows me this
Code:
<cfscript>
user = SetProfileString("C:\windows\settings.ini", "settings", "user", "#FORM.NEWUSERNAME#")
Pass = SetProfileString("C:\windows\settings.ini", "settings", "user", "#FORM.NEWPASSWORD#")
Path = SetProfileString("C:\windows\settings.ini", "settings", "user", "#FORM.NEWPATH#")
</cfscript>
For every user there is this
Code:
[userfrom form]
Login=user from for,
Pass=pass from form
Home-Ip=-= All IP Homes =-
RelativePath=1
TimeOut=600
MaxConPerIp=1
MaxUsers=0
RatioMethod=0
RatioUp=1
RatioDown=1
RatioCredit=0
MaxSpeedRcv=512
MaxSpeedSnd=512
QuotaCurrent=0
QuotaMax=0
Dir0=C:\directory will be spec by CF
Attr0=RWDAMLSK
Stat_Login=2
Stat_LastLogin=29/06/2004 17:34:14
Stat_LastIP=10.0.0.7
Stat_KBUp=0
Stat_KBDown=0
Stat_FilesUp=0
Stat_FilesDown=0
Stat_FailedUp=0
Stat_FailedDown=0