From: stronk7 Date: Sat, 5 Feb 2005 01:00:33 +0000 (+0000) Subject: Now manual backups are XHTML 1.0 Transitional. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f2d57378257916e98a227eea87608974014dedb0;p=moodle.git Now manual backups are XHTML 1.0 Transitional. And version bump! --- diff --git a/backup/CHANGES_14_15.txt b/backup/CHANGES_14_15.txt index 5f9f1d258b..4ddc232a15 100644 --- a/backup/CHANGES_14_15.txt +++ b/backup/CHANGES_14_15.txt @@ -41,5 +41,7 @@ Now I show the specific detailed status of every item in the process: 24. DONE: Take out THEME from backup directory. 25. TODO: Add support for forum_read table in backup and restore. 26. DONE: chat_users->course and chat_users->lang. No changes required! +27. PROG: Make the backup/restore/scheduled/logs XHTML 1.0 Transitional. + Done in manual backups. Eloy (stronk7) 23-01-2004 diff --git a/backup/backup_check.html b/backup/backup_check.html index 525585188f..861a18c33f 100644 --- a/backup/backup_check.html +++ b/backup/backup_check.html @@ -126,28 +126,26 @@ //Calculate the backup unique code to allow simultaneus backups (to define //the temp-directory name and records in backup temp tables $backup_unique_code = time(); - //Add as hidden name - echo ""; if (empty($to)) { //Now print the Backup Name tr echo ""; - echo "

"; + echo ""; echo get_string("name").":"; - echo ""; + echo ""; //Add as text field - echo ""; + echo ""; echo ""; //Line - echo "


"; + echo "
"; //Now print the To Do list echo ""; - echo "

"; + echo ""; } else { - echo ''; + echo ''; } @@ -173,12 +171,12 @@ $backup_logs = 0; } print_simple_box("".get_string("backupnoneusersinfo")."","center", "70%", '', "20", "noticebox"); - echo "


"; + echo "
"; } if (empty($to)) { echo get_string("backupdetails").":"; - echo ""; + echo "
"; } //This is tha align to every ingo table @@ -191,25 +189,25 @@ //If exists the lib & function $var = "exists_".$modname; if (isset($$var) && $$var) { - //Add hidden fields - $var = "backup_".$modname; - echo ""; - $var = "backup_user_info_".$modname; - echo ""; $var = "backup_".$modname; //Only if selected if ($$var == 1) { //Print the full tr echo ""; - echo "

"; + echo ""; + //Add hidden fields + $var = "backup_".$modname; + echo ""; + $var = "backup_user_info_".$modname; + echo ""; //Print the mod name - echo "

  • ".get_string("include")." ".get_string("modulenameplural",$modname)." "; + echo "".get_string("include")." ".get_string("modulenameplural",$modname)." "; //Now look for user-data status $backup_user_options[0] = get_string("withoutuserdata"); $backup_user_options[1] = get_string("withuserdata"); $var = "backup_user_info_".$modname; //Print the user info - echo $backup_user_options[$$var]."

    "; + echo $backup_user_options[$$var].""; //Call the check function to show more info $modcheckbackup = $modname."_check_backup_mods"; $table->data = $modcheckbackup($id,$$var,$backup_unique_code); @@ -219,72 +217,68 @@ } } - //Write metacourse hidden field - echo ""; if (empty($to)) { //Line - echo "


    "; + echo "
    "; //Now print the Users tr echo ""; - echo "

    "; + echo ""; $user_options[0] = get_string("includeallusers"); $user_options[1] = get_string("includecourseusers"); $user_options[2] = get_string("includenoneusers"); - echo "

  • ".$user_options[$backup_users]."

    "; + echo $user_options[$backup_users].''; //Print info $table->data = user_check_backup($id,$backup_unique_code,$backup_users); print_table($table); echo ""; } - //Add as hidden name - echo ""; //Now print the Logs tr conditionally if ($backup_logs && empty($to)) { echo ""; - echo "

    "; - echo "

  • ".get_string("includelogentries")."

    "; + echo ""; + echo get_string("includelogentries").''; //Print info $table->data = log_check_backup($id); print_table($table); echo ""; } - //Add as hidden name - echo ""; //Now print the User Files tr conditionally if ($backup_user_files) { echo ""; - echo "

    "; - echo "

  • ".get_string("includeuserfiles")."

    "; + echo ""; + echo get_string("includeuserfiles").''; //Print info $table->data = user_files_check_backup($id,$backup_unique_code); print_table($table); echo ""; } - //Add as hidden name - echo ""; //Now print the Course Files tr conditionally if ($backup_course_files) { echo ""; - echo "

    "; - echo "

  • ".get_string("includecoursefiles")."

    "; + echo ""; + echo get_string("includecoursefiles").''; //Print info $table->data = course_files_check_backup($id,$backup_unique_code); print_table($table); echo ""; } - //Add as hidden name - echo ""; } ?>

    + + + + + + diff --git a/backup/backup_execute.html b/backup/backup_execute.html index 41fb9a1d45..9573bb4ef1 100644 --- a/backup/backup_execute.html +++ b/backup/backup_execute.html @@ -120,11 +120,11 @@ if (empty($to)) { //Start the main table - echo ""; + echo "
    "; //Now print the Backup Name tr echo ""; - echo ""; - echo ""; + echo ""; if (empty($to)) { //Now print the Metacourse tr echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo "

    "; + echo "

    "; echo get_string("name").":"; echo ""; echo $preferences->backup_name; @@ -139,7 +139,7 @@ } //Check for temp and backup and backup_unique_code directory //Create them as needed - echo "
  • ".get_string("creatingtemporarystructures"); + echo "
  • ".get_string("creatingtemporarystructures").'
  • '; $status = check_and_create_backup_dir($backup_unique_code); //Empty dir if ($status) { @@ -147,7 +147,7 @@ } //Delete old_entries from backup tables - echo "
  • ".get_string("deletingolddata"); + echo "
  • ".get_string("deletingolddata").'
  • '; $status = backup_delete_old_data(); if (!$status) { error ("An error occurred deleting old backup data"); @@ -158,10 +158,10 @@ echo "
  • ".get_string("creatingxmlfile"); //Begin a new list to xml contents echo "
      "; - echo "
    • ".get_string("writingheader"); + echo "
    • ".get_string("writingheader").'
    • '; //Obtain the xml file (create and open) and print prolog information $backup_file = backup_open_xml($backup_unique_code); - echo "
    • ".get_string("writinggeneralinfo");; + echo "
    • ".get_string("writinggeneralinfo").'
    • '; //Prints general info about backup to file if ($backup_file) { if (!$status = backup_general_info($backup_file,$preferences)) { @@ -173,7 +173,7 @@ //Start new ul (for course) echo "
        "; - echo "
      • ".get_string("courseinfo"); + echo "
      • ".get_string("courseinfo").'
      • '; //Prints course start (tag and general info) if ($status) { if (!$status = backup_course_start($backup_file,$preferences)) { @@ -182,19 +182,19 @@ } //Metacourse information if ($status && $preferences->backup_metacourse) { - echo "
      • ".get_string("metacourse"); + echo "
      • ".get_string("metacourse").'
      • '; if (!$status = backup_course_metacourse($backup_file,$preferences)) { notify("An error occurred while backing up metacourse info"); } } - echo "
      • ".get_string("blocks"); + echo "
      • ".get_string("blocks").'
      • '; //Blocks information if ($status) { if (!$status = backup_course_blocks($backup_file,$preferences)) { notify("An error occurred while backing up course blocks"); } } - echo "
      • ".get_string("sections"); + echo "
      • ".get_string("sections").'
      • '; //Section info if ($status) { if (!$status = backup_course_sections($backup_file,$preferences)) { @@ -203,11 +203,11 @@ } //End course contents (close ul) - echo "
      "; + echo "
  • "; //User info if ($status && $preferences->backup_users) { - echo "
  • ".get_string("writinguserinfo"); + echo "
  • ".get_string("writinguserinfo").'
  • '; if (!$status = backup_user_info($backup_file,$preferences)) { notify("An error occurred while backing up user info"); } @@ -216,7 +216,7 @@ //If we have selected to backup quizzes, backup categories and //questions structure (step 1). See notes on mod/quiz/backuplib.php if ($status and $preferences->mods['quiz']->backup) { - echo "
  • ".get_string("writingcategoriesandquestions"); + echo "
  • ".get_string("writingcategoriesandquestions").'
  • '; if (!$status = quiz_backup_question_categories($backup_file,$preferences)) { notify("An error occurred while backing up quiz categories"); } @@ -225,7 +225,7 @@ //Print logs if selected if ($status) { if ($preferences->backup_logs) { - echo "
  • ".get_string("writingloginfo"); + echo "
  • ".get_string("writingloginfo").'
  • '; if (!$status = backup_log_info($backup_file,$preferences)) { notify("An error occurred while backing up log info"); } @@ -234,7 +234,7 @@ //Print scales info if ($status) { - echo "
  • ".get_string("writingscalesinfo"); + echo "
  • ".get_string("writingscalesinfo").'
  • '; if (!$status = backup_scales_info($backup_file,$preferences)) { notify("An error occurred while backing up scales"); } @@ -242,7 +242,7 @@ //Print groups info if ($status) { - echo "
  • ".get_string("writinggroupsinfo"); + echo "
  • ".get_string("writinggroupsinfo").'
  • '; if (!$status = backup_groups_info($backup_file,$preferences)) { notify("An error occurred while backing up groups"); } @@ -250,7 +250,7 @@ //Print events info if ($status) { - echo "
  • ".get_string("writingeventsinfo"); + echo "
  • ".get_string("writingeventsinfo").'
  • '; if (!$status = backup_events_info($backup_file,$preferences)) { notify("An error occurred while backing up events"); } @@ -278,14 +278,14 @@ //Iterate over modules and call backup foreach ($preferences->mods as $module) { if ($module->backup and $status) { - echo "
  • ".get_string("modulenameplural",$module->name); + echo "
  • ".get_string("modulenameplural",$module->name).'
  • '; if (!$status = backup_module($backup_file,$preferences,$module->name)) { notify("An error occurred while backing up '$module->name'"); } } } //Close ul for module list - echo ""; + echo ""; //Close modules tag if (!$status = backup_modules_end ($backup_file,$preferences)) { notify("An error occurred while finishing the module backups"); @@ -305,13 +305,13 @@ } //End xml contents (close ul) - echo ""; + echo ""; } //Now, if selected, copy user files if ($status) { if ($preferences->backup_user_files) { - echo "
  • ".get_string("copyinguserfiles"); + echo "
  • ".get_string("copyinguserfiles").'
  • '; if (!$status = backup_copy_user_files ($preferences)) { notify("An error occurred while copying user files"); } @@ -321,7 +321,7 @@ //Now, if selected, copy course files if ($status) { if ($preferences->backup_course_files) { - echo "
  • ".get_string("copyingcoursefiles"); + echo "
  • ".get_string("copyingcoursefiles").'
  • '; if (!$status = backup_copy_course_files ($preferences)) { notify("An error occurred while copying course files"); } @@ -330,7 +330,7 @@ //Now, zip all the backup directory contents if ($status) { - echo "
  • ".get_string("zippingbackup"); + echo "
  • ".get_string("zippingbackup").'
  • '; if (!$status = backup_zip ($preferences)) { notify("An error occurred while zipping the backup"); } @@ -338,7 +338,7 @@ //Now, copy the zip file to course directory if ($status) { - echo "
  • ".get_string("copyingzipfile"); + echo "
  • ".get_string("copyingzipfile").'
  • '; if (!$status = copy_zip_to_course_dir ($preferences)) { notify("An error occurred while copying the zip file to the course directory"); } @@ -346,7 +346,7 @@ //Now, clean temporary data (db and filesystem) if ($status) { - echo "
  • ".get_string("cleaningtempdata"); + echo "
  • ".get_string("cleaningtempdata").'
  • '; if (!$status = clean_temp_data ($preferences)) { notify("An error occurred while cleaning up temporary data"); } @@ -369,7 +369,7 @@ if (empty($to)) { //Print final message print_simple_box(get_string("backupfinished"),"center"); - print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/backupdata"); + print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/backupdata"); } else { print_simple_box(get_string('importdataexported'),"CENTER"); if (!empty($preferences->backup_destination)) { diff --git a/backup/backup_form.html b/backup/backup_form.html index 23b54cab25..b0480a6342 100644 --- a/backup/backup_form.html +++ b/backup/backup_form.html @@ -95,9 +95,9 @@ if (isset($$var) && $$var) { //Print the full tr echo "

    "; + echo "

    "; echo get_string("include")." ". get_string("modulenameplural",$modname).":"; - echo ""; + echo ""; $backup_options[0] = get_string("no"); $backup_options[1] = get_string("yes"); $var = "backup_".$modname; @@ -115,14 +115,14 @@ } } //Line - echo "


    "; + echo "

    "; echo get_string ("metacourse").":"; - echo ""; + echo ""; $meta_options[0] = get_string("no"); $meta_options[1] = get_string("yes"); choose_from_menu($meta_options, "backup_metacourse", $backup_metacourse, ""); @@ -135,9 +135,9 @@ if (empty($to)) { //Now print the Users tr echo "

    "; + echo "

    "; echo get_string("users").":"; - echo ""; + echo ""; $user_options[0] = get_string("all"); $user_options[1] = get_string("course"); $user_options[2] = get_string("none"); @@ -151,9 +151,9 @@ if (empty($to)) { //Now print the Logs tr echo "

    "; + echo "

    "; echo get_string("logs").":"; - echo ""; + echo ""; $log_options[0] = get_string("no"); $log_options[1] = get_string("yes"); choose_from_menu($log_options, "backup_logs", $backup_logs, ""); @@ -166,9 +166,9 @@ if (empty($to)) { //Now print the User Files tr echo "

    "; + echo "

    "; echo get_string ("userfiles").":"; - echo ""; + echo ""; $user_file_options[0] = get_string("no"); $user_file_options[1] = get_string("yes"); choose_from_menu($user_file_options, "backup_user_files", $backup_user_files, ""); @@ -179,9 +179,9 @@ } //Now print the Course Files tr echo "

    "; + echo "

    "; echo get_string ("coursefiles").":"; - echo ""; + echo ""; $course_file_options[0] = get_string("no"); $course_file_options[1] = get_string("yes"); choose_from_menu($course_file_options, "backup_course_files", $backup_course_files, ""); diff --git a/backup/version.php b/backup/version.php index b639643afc..1bef28d481 100644 --- a/backup/version.php +++ b/backup/version.php @@ -5,6 +5,6 @@ // database (backup_version) to determine whether upgrades should // be performed (see db/backup_*.php) -$backup_version = 2004102900; // The current version is a date (YYYYMMDDXX) +$backup_version = 2005020500; // The current version is a date (YYYYMMDDXX) $backup_release = "1.5 development"; // User-friendly version number