Add ability to disable adding attachments by section in overrides.inc.php.

This commit is contained in:
Retro_Guy 2024-04-15 03:47:44 -07:00
parent 886c68b764
commit e5ff52f299
2 changed files with 15 additions and 12 deletions

View File

@ -493,15 +493,13 @@ function quoten() {
onclick="quoten(); this.style.visibility= 'hidden';">
 
<?php } ?>
&nbsp;
<input type="file" name="photo" id="fileSelect" value="fileSelect"
accept="image/*,audio/*,text/*,application/pdf">
</td>
</tr>
<?php
}
if (! in_array($config_name, $OVERRIDES['disable_attach'], true)) {
echo '&nbsp;';
echo '<input type="file" name="photo" id="fileSelect" value="fileSelect" accept="image/*,audio/*,text/*,application/pdf">';
echo '</td></tr>';
}
if ($post_captcha) {
echo '<tr><td>';
echo captcha::form($text_post["captchainfo1"], $text_post["captchainfo2"]);

View File

@ -42,6 +42,11 @@ return [
// Disable display of X-Face
'disable_xface' => false,
// Disable posting attachments by section
// List section names to disable:
// array("sectionONE", "sectionTWO", "sectionETC"),
'disable_attach' => array("section"),
// Just leave this here to avoid comma errors
'comma' => true
];