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:
stronk7 2003-06-11 19:13:07 +00:00
parent f911710d0f
commit 55513d3ec5
2 changed files with 15 additions and 3 deletions

View File

@ -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();
?>

View File

@ -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();
?>