]> git.mjollnir.org Git - moodle.git/commitdiff
Some debug info commented
authorstronk7 <stronk7>
Mon, 7 Jul 2003 19:20:52 +0000 (19:20 +0000)
committerstronk7 <stronk7>
Mon, 7 Jul 2003 19:20:52 +0000 (19:20 +0000)
backup/backuplib.php
backup/restorelib.php

index e17f5c25301b7f84c1160ba4c6e928501077065b..5fdba945103125b5b8da8fbb5d2e0af86cf6cc77 100644 (file)
         //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) {
index 8786c64ed7ef6a5a5c20ca46582f02a1a975d805..b7eec5e04ebbc973032c10218e3401671d57ad03 100644 (file)
             $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