From: stronk7 Date: Tue, 29 Jul 2003 15:37:38 +0000 (+0000) Subject: Added and commented some debug lines. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2aa7d9247222c945b8374577db3a0133000ff08b;p=moodle.git Added and commented some debug lines. --- diff --git a/backup/backuplib.php b/backup/backuplib.php index 540b92bbaa..e176c204aa 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -859,6 +859,7 @@ $filelist = list_directories_and_files ($basedir); if (empty($CFG->zip)) { // Use built-in php-based zip function + //echo "
Using pclzip"; //Debug $files = array(); foreach ($filelist as $file) { //If directory, append "/" @@ -875,15 +876,18 @@ $status = false; } } else { // Use external zip program + //echo "
Using external zip"; //Debug $files = ""; foreach ($filelist as $file) { $files .= basename($file); $files .= " "; } $command = "cd $basedir ; $CFG->zip -r $name $files"; + //echo "
Executing command: ".$command; //Debug $status = Exec($command); } + //echo "
Status: ".$status; //Debug return $status; }