[Vtigercrm-commits] [vtiger-commits] r5548 - /vtigercrm/trunk/include/db_backup/ftp.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 23:36:54 EDT 2006
Author: saraj
Date: Thu Apr 27 21:36:51 2006
New Revision: 5548
Log:
logs entries inserted in all functions
Modified:
vtigercrm/trunk/include/db_backup/ftp.php
Modified: vtigercrm/trunk/include/db_backup/ftp.php
==============================================================================
--- vtigercrm/trunk/include/db_backup/ftp.php (original)
+++ vtigercrm/trunk/include/db_backup/ftp.php Thu Apr 27 21:36:51 2006
@@ -11,11 +11,13 @@
function ftpBackupFile($source_file, $ftpserver, $ftpuser, $ftppassword)
{
-
+ global $log;
+ $log->debug("Entering ftpBackupFile(".$source_file.", ".$ftpserver.", ".$ftpuser.", ".$ftppassword.") method ...");
// set up basic connection
$conn_id = @ftp_connect($ftpserver);
if(!$conn_id)
{
+ $log->debug("Exiting ftpBackupFile method ...");
return;
}
@@ -27,6 +29,7 @@
if(!$login_result)
{
ftp_close($conn_id);
+ $log->debug("Exiting ftpBackupFile method ...");
return;
}
@@ -47,6 +50,7 @@
// check upload status
if (!$upload) {
ftp_close($conn_id);
+ $log->debug("Exiting ftpBackupFile method ...");
return;
}
/*
@@ -56,5 +60,6 @@
// close the FTP stream
ftp_close($conn_id);
+ $log->debug("Exiting ftpBackupFile method ...");
}
?>
More information about the vtigercrm-commits
mailing list