mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Changed max_execution_time and memory_limit php variables
to execute long and heavy scripts (restore and backup) :-) Only affects current script execution
This commit is contained in:
parent
f911710d0f
commit
55513d3ec5
@ -74,6 +74,11 @@
|
||||
//Print form
|
||||
print_heading("$strcoursebackup: $course->fullname ($course->shortname)");
|
||||
print_simple_box_start("center", "", "$THEME->cellheading");
|
||||
|
||||
//Adjust some php variables to the execution of this script
|
||||
ini_set("max_execution_time","300");
|
||||
ini_set("memory_limit","56M");
|
||||
|
||||
//Call the form, depending the step we are
|
||||
if (!$launch) {
|
||||
include_once("backup_form.html");
|
||||
@ -88,4 +93,3 @@
|
||||
print_footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -38,7 +38,12 @@
|
||||
}
|
||||
|
||||
//Check backup_version
|
||||
upgrade_backup_db($backup_version,$backup_release,"restore.php");
|
||||
if ($file) {
|
||||
$linkto = "restore.php?file=".$file;
|
||||
} else {
|
||||
$linkto = "restore.php";
|
||||
}
|
||||
upgrade_backup_db($backup_version,$backup_release,$linkto);
|
||||
|
||||
//Get strings
|
||||
$strcourserestore = get_string("courserestore");
|
||||
@ -72,6 +77,10 @@
|
||||
//Print form
|
||||
print_heading("$strcourserestore: ".basename($file));
|
||||
print_simple_box_start("center", "", "$THEME->cellheading");
|
||||
|
||||
//Adjust some php variables to the execution of this script
|
||||
ini_set("max_execution_time","300");
|
||||
ini_set("memory_limit","56M");
|
||||
|
||||
//Call the form, depending the step we are
|
||||
if (!$launch) {
|
||||
@ -89,4 +98,3 @@
|
||||
print_footer();
|
||||
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user