Add ability to disable adding attachments by section in overrides.inc.php.
This commit is contained in:
parent
886c68b764
commit
e5ff52f299
|
@ -95,7 +95,7 @@ global $synchro_user, $synchro_pass;
|
|||
$thisgroup = _rawurldecode($_REQUEST['group']);
|
||||
|
||||
// Is this a reply to an article containing Followup-To?
|
||||
if(isset($_REQUEST['fgroups'])) {
|
||||
if (isset($_REQUEST['fgroups'])) {
|
||||
$thisgroup = $_REQUEST['fgroups'];
|
||||
}
|
||||
|
||||
|
@ -382,8 +382,8 @@ if ($show == 1) {
|
|||
echo 'value="' . htmlspecialchars($subject) . '" ';
|
||||
echo 'size="40" maxlength="' . $thread_maxSubject . '"></td>';
|
||||
echo '</tr><tr>';
|
||||
|
||||
if($has_followup) {
|
||||
|
||||
if ($has_followup) {
|
||||
echo '<td align="right">';
|
||||
echo '<input type="radio" id="hasfollowup" name="fgroups" value="' . $head->followup . '" checked>';
|
||||
echo '</td><td>';
|
||||
|
@ -395,7 +395,7 @@ if ($show == 1) {
|
|||
echo '<label for="newsgroups">' . $head->newsgroups . '</label>';
|
||||
echo '</tr><tr>';
|
||||
}
|
||||
|
||||
|
||||
echo '<td align="right"><b>' . $text_post["name"] . '</b></td>';
|
||||
echo '<td align="left">';
|
||||
if (! isset($name) && $CONFIG['anonuser'])
|
||||
|
@ -493,15 +493,13 @@ function quoten() {
|
|||
onclick="quoten(); this.style.visibility= 'hidden';">
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<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 ' ';
|
||||
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"]);
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue