help.verua.ch/include/staff/attachment.inc.php
2026-01-05 08:46:20 +01:00

82 lines
4 KiB
PHP

<?php
if(!defined('OSTADMININC') || !$thisuser->isadmin()) die('Zugriff verweigert');
//Get the config info.
$config=($errors && $_POST)?Format::input($_POST):$cfg->getConfig();
?>
<table width="100%" border="0" cellspacing=0 cellpadding=0>
<form action="admin.php?t=attach" method="post">
<input type="hidden" name="t" value="attach">
<tr>
<td>
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
<tr class="header">
<td colspan=2>&nbsp;Einstellungen f&uuml;r Anh&auml;nge</td>
</tr>
<tr class="subheader">
<td colspan=2">
Stellen Sie vor der Aktivierung der Anlagen sicher, dass Sie die Sicherheitseinstellungen und Fragen im Zusammenhang mit den Datei-Uploads verstanden haben.</td>
</tr>
<tr>
<th width="165">Anh&auml;nge erlauben:</th>
<td>
<input type="checkbox" name="allow_attachments" <?=$config['allow_attachments'] ?'checked':''?>><b>Erlaube Anh&auml;nge</b>
&nbsp; (<i>Globale Einstellung</i>)
&nbsp;<font class="error">&nbsp;<?=$errors['allow_attachments']?></font>
</td>
</tr>
<tr>
<th>Gemailte Anh&auml;nge:</th>
<td>
<input type="checkbox" name="allow_email_attachments" <?=$config['allow_email_attachments'] ? 'checked':''?> > Akzeptiere gemailte Dateien
&nbsp;<font class="warn">&nbsp;<?=$warn['allow_email_attachments']?></font>
</td>
</tr>
<tr>
<th>Online Anh&auml;nge:</th>
<td>
<input type="checkbox" name="allow_online_attachments" <?=$config['allow_online_attachments'] ?'checked':''?> >
Erlaube den Upload von Anh&auml;ngen<br/>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="allow_online_attachments_onlogin" <?=$config['allow_online_attachments_onlogin'] ?'checked':''?> >
nur angemeldete Nutzer. (<i>Nutzer muss zum Hochladen angemeldet sein </i>)
<font class="warn">&nbsp;<?=$warn['allow_online_attachments']?></font>
</td>
</tr>
<tr>
<th>Mitabeiter Antwort-Dateien:</th>
<td>
<input type="checkbox" name="email_attachments" <?=$config['email_attachments']?'checked':''?> >Email-Anh&auml;nge an den Kunde
</td>
</tr>
<tr>
<th nowrap>Maximale Dateigr&ouml;&beta;e:</th>
<td>
<input type="text" name="max_file_size" value="<?=$config['max_file_size']?>"> <i>bytes</i>
<font class="error">&nbsp;<?=$errors['max_file_size']?></font>
</td>
</tr>
<tr>
<th>Ordner f&uuml;r Anh&auml;nge:</th>
<td>
Web-Nutzer (z.Bsp. apache) m&uuml;ssen Schreibrechte auf dem Ordner besitzen. &nbsp;<font class="error">&nbsp;<?=$errors['upload_dir']?></font><br>
<input type="text" size=60 name="upload_dir" value="<?=$config['upload_dir']?>">
<font color=red>
<?=$attwarn?>
</font>
</td>
</tr>
<tr>
<th valign="top"><br/>Akzeptierte Dateitypen:</th>
<td>
Geben Sie erlaubte Dateierweiterungen, durch ein Komma getrennt, ein. Z.Bsp. <i>.doc, .pdf, </i> <br>
um alle Typen zu akzeptieren, nutzen Sie Platzhalter <b><i>.*</i></b>&nbsp;&nbsp;z.Bsp. Stern (Nicht empfohlen).
<textarea name="allowed_filetypes" cols="21" rows="4" style="width: 65%;" wrap=HARD ><?=$config['allowed_filetypes']?></textarea>
</td>
</tr>
</table>
</td></tr>
<tr><td style="padding:10px 0 10px 200px">
<input class="button" type="submit" name="submit" value="&Auml;nderung speichern">
<input class="button" type="reset" name="reset" value="&Auml;nderung verwerfen">
</td></tr>
</form>
</table>