//Define zip destination (course dir)
$to_zip_file = $CFG->dataroot."/".$preferences->backup_course;
- echo "<p>From: ".$from_zip_file."<br>"; //Debug
+ //echo "<p>From: ".$from_zip_file."<br>"; //Debug
- echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
+ //echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
//Checks course dir exists
$status = check_dir_exists($to_zip_file,true);
//Define zip destination (backup dir)
$to_zip_file = $to_zip_file."/".get_string("backupdir");
- echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
+ //echo "<p>Checking: ".$to_zip_file."<br>"; //Debug
//Checks backup dir exists
$status = check_dir_exists($to_zip_file,true);
//Define zip destination (zip file)
$to_zip_file = $to_zip_file."/".$preferences->backup_name;
- echo "<p>To: ".$to_zip_file."<br>"; //Debug
+ //echo "<p>To: ".$to_zip_file."<br>"; //Debug
//Copy zip file
if ($status) {
$this->level++;
$this->tree[$this->level] = $tagName;
- if ($tagName == "MOD" && $this->tree[3] == "MODULES") { //Debug
- echo "<P>MOD: ".strftime ("%X",time()),"-"; //Debug
- } //Debug
+ //if ($tagName == "MOD" && $this->tree[3] == "MODULES") { //Debug
+ // echo "<P>MOD: ".strftime ("%X",time()),"-"; //Debug
+ //} //Debug
//Output something to avoid browser timeouts...
backup_flush();
//Prepend XML standard header to info gathered
$xml_data = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n".$this->temp;
//Call to xmlize for this portion of xml data (one MOD)
- echo "-XMLIZE: ".strftime ("%X",time()),"-"; //Debug
+ //echo "-XMLIZE: ".strftime ("%X",time()),"-"; //Debug
$data = xmlize($xml_data,0);
- echo strftime ("%X",time())."<p>"; //Debug
+ //echo strftime ("%X",time())."<p>"; //Debug
//traverse_xmlize($data); //Debug
//print_object ($GLOBALS['traverse_array']); //Debug
//$GLOBALS['traverse_array']=""; //Debug