uploaded contents to work).
23. TODO: Add support for metacourses in backup and restore. Show a new option
to decide what to do (ignore, process).
-
+24. DONE: Take out THEME from backup directory.
Eloy (stronk7)
23-01-2004
//Print form
print_heading("$strcoursebackup: $course->fullname ($course->shortname)");
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
//Adjust some php variables to the execution of this script
@ini_set("max_execution_time","3000");
$backup_user_files = 0;
$backup_logs = 0;
}
- print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", "$THEME->cellheading", "20", "noticebox");
+ print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", '', "20", "noticebox");
echo "<hr noshade size=\"1\">";
}
function backup_get_needed_users ($courseid) {
- global $CFG, $THEME;
+ global $CFG;
$result = false;
}
if ($oldversion < 2003082600 and $result) {
- print_simple_box("This is the first non-alpha release of the Backup/Restore module.<p>Thanks for upgrading!","center", "50%", "$THEME->cellheading", "20", "noticebox");
+ print_simple_box("This is the first non-alpha release of the Backup/Restore module.<p>Thanks for upgrading!","center", "50%", '', "20", "noticebox");
}
if ($oldversion < 2003112700 and $result) {
$strlogs);
print_heading($backuploglaststatus);
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start('center');
//Now, get every record from backup_courses
$courses = get_records("backup_courses");
$coursename = get_field("course","fullname","id","$courseid");
print_heading("$strcourse: $coursename");
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start('center');
//First, me get all the distinct backups for that course in backup_log
$executions = get_records_sql("SELECT DISTINCT laststarttime,laststarttime
}
//Print form
print_heading("$strcourserestore".((empty($to) ? ': '.basename($file) : '')));
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start('center');
//Adjust some php variables to the execution of this script
@ini_set("max_execution_time","3000");
$message->serverrelease = $CFG->release;
$message->backupversion = $info->backup_moodle_version;
$message->backuprelease = $info->backup_moodle_release;
- print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", "$THEME->cellheading2", "20", "noticebox");
+ print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", '', "20", "noticebox");
}