whitespace + removed end php tag
Added option to use ftps for file upload
added option to use ftp in passive mode