mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 06:39:04 +01:00
4909e17632
1) There is a new site-wide configuration variable called maxbytes, which provides an upper filesize limit for all (student) uploads. 2) There is a new course-level variable called maxbytes, which further limits uploads within a course. 3) There is a new maxbytes field for forums, which further restricts the size allowed in a particular forum. There is also a new config variable in the module configuration to specify a default size to use when defining a new forum. 4) Assignments already had a limit, but this is now aware of the other limits, and like forums there is now a settable default value. 5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable in the language packs.
59 lines
1.5 KiB
HTML
59 lines
1.5 KiB
HTML
<form method="post" action="module.php" name="form">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
|
<tr valign=top>
|
|
<td align=right><p>forum_displaymode:</td>
|
|
<td>
|
|
<?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configdisplaymode", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>forum_shortpost:</td>
|
|
<td>
|
|
<input name=forum_shortpost type=text size=5 value="<?php p($CFG->forum_shortpost) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configshortpost", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>forum_longpost:</td>
|
|
<td>
|
|
<input name=forum_longpost type=text size=5 value="<?php p($CFG->forum_longpost) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configlongpost", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>forum_manydiscussions:</td>
|
|
<td>
|
|
<input name=forum_manydiscussions type=text size=5 value="<?php p($CFG->forum_manydiscussions) ?>">
|
|
</td>
|
|
<td>
|
|
<?php print_string("configmanydiscussions", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p>forum_maxbytes:</td>
|
|
<td><?php
|
|
$choices = get_max_upload_sizes($CFG->maxbytes);
|
|
choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configmaxbytes", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan=3 align=center>
|
|
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|