change ncftpput to use the -f config option for ftp info

Version 1.315


in the script: /usr/local/directadmin/scripts/ftp_upload.php I've change the way the user login info is passed to ncftpput. The "-f config" method is now used so as to prevent people seeing the login info from a process list output: CFG=${ftp_local_file}.cfg rm -f $CFG touch $CFG chmod 600 $CFG echo "host $ftp_ip" >> $CFG echo "user $ftp_username" >> $CFG echo "pass $ftp_password" >> $CFG $FTPPUT -f $CFG -t 25 -m "$ftp_path" "$ftp_local_file" 2>&1 RET=$?

Interested to try DirectAdmin? Get a 30-day Free Trial!