75 lines
3.9 KiB
PHP
75 lines
3.9 KiB
PHP
|
|
<?php
|
||
|
|
if(!defined('OSTADMININC') || basename($_SERVER['SCRIPT_NAME'])==basename(__FILE__)) die('Habari/Jambo rafiki? '); //Say hi to our friend..
|
||
|
|
if(!$thisuser || !$thisuser->isadmin()) die('Zugriff verweigert');
|
||
|
|
|
||
|
|
$info=($_POST && $errors)?Format::input($_POST):Format::htmlchars($cfg->getSMTPInfo());
|
||
|
|
?>
|
||
|
|
<div class="msg"><?=$title?></div>
|
||
|
|
<table width="98%" border="0" cellspacing=0 cellpadding=0>
|
||
|
|
<form action="admin.php?t=smtp" method="post">
|
||
|
|
<input type="hidden" name="do" value="save">
|
||
|
|
<input type="hidden" name="t" value="smtp">
|
||
|
|
<tr><td>
|
||
|
|
<table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
|
||
|
|
<tr class="header"><td colspan=2>SMTP Server Einstellungen (Optional)</b></td></tr>
|
||
|
|
<tr class="subheader"><td colspan=2>
|
||
|
|
Wenn diese Option aktiviert ist, wird das System einen SMTP-Server für ausgehende E-Mails verwenden, und nicht die interne PHP-Mail-Funktion.<br> Lassen Sie den Nutzernamen und das Passwort leer, falls der SMTP-Server keine Authentifizierung erfordert<br/>
|
||
|
|
<b>Bitte haben Sie Geduld, das System wird versuchen sich am SMTP-Server anzumelden, um die eingegebenen Login-Informationen zu überprüfen.</b></td></tr>
|
||
|
|
<tr><th>SMTP aktivieren</th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="isenabled" value="1" <?=$info['isenabled']?'checked':''?> /><b>Ja</b>
|
||
|
|
<input type="radio" name="isenabled" value="0" <?=!$info['isenabled']?'checked':''?> />Nein
|
||
|
|
<font class="error"> <?=$errors['isenabled']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>SMTP Host</th>
|
||
|
|
<td><input type="text" name="host" size=35 value="<?=$info['host']?>">
|
||
|
|
<font class="error">* <?=$errors['host']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>SMTP Port</th>
|
||
|
|
<td><input type="text" name="port" size=6 value="<?=$info['port']?>">
|
||
|
|
<font class="error">* <?=$errors['port']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Verschlüsselung</th>
|
||
|
|
<td>
|
||
|
|
<input type="radio" name="issecure" value="0"
|
||
|
|
<?=!$info['issecure']?'checked':''?> />keine
|
||
|
|
<input type="radio" name="issecure" value="1"
|
||
|
|
<?=$info['issecure']?'checked':''?> />TLS (sicher)
|
||
|
|
<font class="error"> <?=$errors['issecure']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Nutzername</th>
|
||
|
|
<td class="mainTableAlt"><input type="text" name="userid" size=35 value="<?=$info['userid']?>" autocomplete='off' >
|
||
|
|
<font class="error">* <?=$errors['userid']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Passwort</th>
|
||
|
|
<td><input type="password" name="userpass" size=35 value="<?=$info['userpass']?>" autocomplete='off'>
|
||
|
|
<font class="error">* <?=$errors['userpass']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Email-Adresse</th>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="fromaddress" size=30 value="<?=$info['fromaddress']?>">
|
||
|
|
<font class="error">* <?=$errors['fromaddress']?></font>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><th>Email-Name:</th>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="fromname" size=30 value="<?=$info['fromname']?>"> <font class="error"> <?=$errors['fromname']?></font>
|
||
|
|
(<i>Optionaler Absendername.</i>)
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</td></tr>
|
||
|
|
<tr><td style="padding:10px 0 10px 220px;">
|
||
|
|
<input class="button" type="submit" name="submit" value="Bestätigen">
|
||
|
|
<input class="button" type="reset" name="reset" value="Zurücksetzen">
|
||
|
|
<input class="button" type="button" name="cancel" value="Abbrechen" onClick='window.location.href="admin.php?t=email"'>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</form>
|
||
|
|
</table>
|