mikeyb
We have Mac users that user CyberDuck FTp program to automatically connect to a FTP site from a link onn a webpage. The link automatically generates a XML document of content-type application/cyberduck which automiatically brings up cyber duck and connect to the ftp site. Is this possible in Smart FTP?
Sorry for the bad English!
CyberDuck XML doc Generated from PHP
header('Content-Type: application/cyberduck; name="' . $article['Domain Name'] . '.duck"');
header ('Content-Disposition: attachment; filename="' . $article['Domain Name'] . '.duck"');
print '<?xml version="1.0" encoding="UTF-8"?>';
print '<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">';
print '<plist version="1.0">';
print '<dict>';
print '<key>Hostname</key>';
print '<string>' . $article['Domain Name'] . '</string>';
print '<key>Nickname</key>';
print '<string>' . $article['Domain Name'] . '</string>';
print '<key>Path</key>';
print '<string>/' . $article['Domain Name'] . '/htdocs</string>';
print '<key>Port</key>';
print '<string>21</string>';
print '<key>Protocol</key>';
print '<string>ftp</string>';
print '<key>Username</key>';
print '<string>' . $article['Client User'] . '</string>';
print '</dict>';
print '</plist>';
exit;
}
Sorry for the bad English!
CyberDuck XML doc Generated from PHP
header('Content-Type: application/cyberduck; name="' . $article['Domain Name'] . '.duck"');
header ('Content-Disposition: attachment; filename="' . $article['Domain Name'] . '.duck"');
print '<?xml version="1.0" encoding="UTF-8"?>';
print '<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">';
print '<plist version="1.0">';
print '<dict>';
print '<key>Hostname</key>';
print '<string>' . $article['Domain Name'] . '</string>';
print '<key>Nickname</key>';
print '<string>' . $article['Domain Name'] . '</string>';
print '<key>Path</key>';
print '<string>/' . $article['Domain Name'] . '/htdocs</string>';
print '<key>Port</key>';
print '<string>21</string>';
print '<key>Protocol</key>';
print '<string>ftp</string>';
print '<key>Username</key>';
print '<string>' . $article['Client User'] . '</string>';
print '</dict>';
print '</plist>';
exit;
}