here is the full qooy script.. it is decoded and no expiry
decoded by me of course
decoded by me of course
decoded by me of course

decoded by me of course



decoded by me of course

function dotheshizzie()
{
$dir = "$outputdirectorylong"; //set your full path here, ie: /home/user/public_html/directory you gotta create the directory
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if(!is_dir($file))
{
ftpbackup($dir . $file);
}
}
closedir($dh);
}
}
}
function ftpbackup($source_file, $ftp_server, $ftp_user_name, $ftp_user_pass)
{
////////////destination for db backups
$timenow = time();
$destiny = basename($source_file);
$destination_file = "$destinationdirectory/$destiny"; // destination directory (no need for full path) just from starting directory... ie:public_html/backups
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result)) {
//echo "FTP connection has failed!"; // you can leave this out if you want
//echo "Attempted to connect to $ftp_server for user $ftp_user_name"; // you can leave this out if you want
exit;
} else {
//echo "Connected to $ftp_server, for user $ftp_user_name"; // you can leave this out if you want
}
// upload the file
$upload = ftp_put($conn_id, $destination_file, "$source_file", FTP_BINARY);
// check upload status
if (!$upload) {
//echo "FTP upload has failed!"; // you can leave this out if you want
} else {
//echo "Uploaded $source_file to $ftp_server as $destination_file"; // you can leave this out if you want
}
// close the FTP stream
ftp_close($conn_id);
}
Comment