82 lines
4 KiB
PHP
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> Einstellungen für Anhä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änge erlauben:</th>
|
|
<td>
|
|
<input type="checkbox" name="allow_attachments" <?=$config['allow_attachments'] ?'checked':''?>><b>Erlaube Anhänge</b>
|
|
(<i>Globale Einstellung</i>)
|
|
<font class="error"> <?=$errors['allow_attachments']?></font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Gemailte Anhänge:</th>
|
|
<td>
|
|
<input type="checkbox" name="allow_email_attachments" <?=$config['allow_email_attachments'] ? 'checked':''?> > Akzeptiere gemailte Dateien
|
|
<font class="warn"> <?=$warn['allow_email_attachments']?></font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Online Anhänge:</th>
|
|
<td>
|
|
<input type="checkbox" name="allow_online_attachments" <?=$config['allow_online_attachments'] ?'checked':''?> >
|
|
Erlaube den Upload von Anhängen<br/>
|
|
<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"> <?=$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änge an den Kunde
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th nowrap>Maximale Dateigröβe:</th>
|
|
<td>
|
|
<input type="text" name="max_file_size" value="<?=$config['max_file_size']?>"> <i>bytes</i>
|
|
<font class="error"> <?=$errors['max_file_size']?></font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Ordner für Anhänge:</th>
|
|
<td>
|
|
Web-Nutzer (z.Bsp. apache) müssen Schreibrechte auf dem Ordner besitzen. <font class="error"> <?=$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> 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="Änderung speichern">
|
|
<input class="button" type="reset" name="reset" value="Änderung verwerfen">
|
|
</td></tr>
|
|
</form>
|
|
</table>
|