[Vtigercrm-commits] [vtiger-commits] r5547 - /vtigercrm/trunk/include/db_backup/backup.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 23:36:13 EDT 2006
Author: saraj
Date: Thu Apr 27 21:36:10 2006
New Revision: 5547
Log:
logs entries inserted in all functions
Modified:
vtigercrm/trunk/include/db_backup/backup.php
Modified: vtigercrm/trunk/include/db_backup/backup.php
==============================================================================
--- vtigercrm/trunk/include/db_backup/backup.php (original)
+++ vtigercrm/trunk/include/db_backup/backup.php Thu Apr 27 21:36:10 2006
@@ -18,6 +18,8 @@
function get_structure()
{
+ global $log;
+ $log->debug("Entering get_structure() method ...");
mysql_connect(dbserver, dbuser, dbpass);
mysql_select_db(dbname);
$tables = mysql_list_tables(dbname);
@@ -47,16 +49,20 @@
}
}
}
+ $log->debug("Exiting get_structure method ...");
return $SQL;
}
function save_structure($filename, $root_directory)
{
+ global $log;
+ $log->debug("Entering save_structure(".$filename.",".$root_directory.") method ...");
$sql = get_structure();
$sql = implode("\r", $sql);
$handle = fopen($root_directory.'/'.$filename,"wb") ;
fwrite($handle,$sql,9999999999);
fclose($handle);
+ $log->debug("Exiting save_structure method ...");
}
?>
More information about the vtigercrm-commits
mailing list