$settings = array(
'host' => 'home.newserver.ru', // * the ftp-server hostname
'port' => 21, // * the ftp-server port (of type int)
'user' => 'user', // * ftp-user
'pass' => 'pass', // * ftp-password
'cdn' => 'home.newserver.ru', // * This have to be a pointed domain or subdomain to the root of the uploads
'path' => '/www/img', // - ftp-path, default is root (/). Change here and add the dir on the ftp-server,
'base' => $upload_dir['basedir'] // Basedir on local
);