<?php
if($o=="k") { mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_mail_willkommen])."' WHERE vari='mail_willkommen'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_mail_empfehlung])."' WHERE vari='mail_empfehlung'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_mail_freunde])."' WHERE vari='mail_freunde'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_mail_nachricht])."' WHERE vari='mail_nachricht'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_mail_gaestebuch])."' WHERE vari='mail_gaestebuch'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_cont_impressum])."' WHERE vari='cont_impressum'"); echo genMsg('03/16/02','Die Дnderungen wurden erfolgreich gespeichert.'); } else { echo "<script type=text/javascript>
function insert(iTag, aTag, eTag) { var input = document.forms['edit'].elements[iTag]; input.focus();
if(typeof document.selection != 'undefined') {
var range = document.selection.createRange(); var insText = range.text;
range.text = aTag + insText + eTag; range = document.selection.createRange();
if (insText.length == 0) { range.move('character', -eTag.length); } else { range.moveStart('character', aTag.length + insText.length + eTag.length); }}
else if(typeof input.selectionStart != 'undefined') {
var start = input.selectionStart; var end = input.selectionEnd; var insText = input.value.substring(start, end);
input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);
var pos; if (insText.length == 0) { pos = start + aTag.length; } else { pos = start + aTag.length + insText.length + eTag.length; }}}
</script><form action=index.php method=post name=edit><input type=hidden name=d value=".$d."><input type=hidden name=o value=k><table border=0 cellspacing=0 cellpadding=5 width=100%>
<tr><td valign=top style=\"border-bottom: 2px solid #ddd;\"><b>	Веб-сайт:</b></td><td class=small style=\"border-bottom: 2px solid #ddd;width:400px;max-width:400px;\">Текст информации о сайте.</td></tr>
<tr><td class=small valign=top>Информация:</td><td><textarea name=e_cont_impressum style=width:400px;height:80px>".$cdb[cont_impressum]."</textarea></td></tr>
<tr><td class=small colspan=2>&nbsp;</td></tr>
<tr><td valign=top style=\"border-bottom: 2px solid #ddd;\"><b>E-Mails:</b></td><td class=small style=\"border-bottom: 2px solid #ddd;width:400px;max-width:400px;\">Тексты в сообщении электронной почты для пользователей.</td></tr>
<tr><td class=small valign=top>После регистрации:</td><td><textarea name=e_mail_willkommen style=width:400px;height:80px>".$cdb[mail_willkommen]."</textarea><div style=background-color:#f5f5f5;padding:3px class=small>Метки: <a href=# onClick=\"insert('e_mail_willkommen', '', '%uservorname%')\">Vorname</a>, <a href=# onClick=\"insert('e_mail_willkommen', '', '%usernachname%')\">Nachname</a>, <a href=# onClick=\"insert('e_mail_willkommen', '', '%username%')\">Benutzername</a>, <a href=# onClick=\"insert('e_mail_willkommen', '', '%userpass%')\">Passwort</a>, <a href=# onClick=\"insert('e_mail_willkommen', '', '%webtitel%')\">Titel</a>, <a href=# onClick=\"insert('e_mail_willkommen', '', '%weburl%')\">URL</a></div></td></tr>
<tr><td class=small valign=top>Рекомендация:</td><td><textarea name=e_mail_empfehlung style=width:400px;height:80px>".$cdb[mail_empfehlung]."</textarea><div style=background-color:#f5f5f5;padding:3px class=small>Метки: <a href=# onClick=\"insert('e_mail_empfehlung', '', '%weburl%')\">URL</a></div></td></tr>
<tr><td class=small valign=top>Новое сообщение:</td><td><textarea name=e_mail_nachricht style=width:400px;height:80px>".$cdb[mail_nachricht]."</textarea><div style=background-color:#f5f5f5;padding:3px class=small>Метки: <a href=# onClick=\"insert('e_mail_nachricht', '', '%uservorname%')\">Vorname</a>, <a href=# onClick=\"insert('e_mail_nachricht', '', '%usernachname%')\">Nachname</a>, <a href=# onClick=\"insert('e_mail_nachricht', '', '%absender%')\">Absender</a>, <a href=# onClick=\"insert('e_mail_nachricht', '', '%webtitel%')\">Titel</a>, <a href=# onClick=\"insert('e_mail_nachricht', '', '%weburl%')\">URL</a></div></td></tr>
<tr><td class=small valign=top>Gдstebucheintrag:</td><td><textarea name=e_mail_gaestebuch style=width:400px;height:80px>".$cdb[mail_gaestebuch]."</textarea><div style=background-color:#f5f5f5;padding:3px class=small>Метки: <a href=# onClick=\"insert('e_mail_gaestebuch', '', '%uservorname%')\">Vorname</a>, <a href=# onClick=\"insert('e_mail_gaestebuch', '', '%usernachname%')\">Nachname</a>, <a href=# onClick=\"insert('e_mail_gaestebuch', '', '%absender%')\">Absender</a>, <a href=# onClick=\"insert('e_mail_gaestebuch', '', '%webtitel%')\">Titel</a>, <a href=# onClick=\"insert('e_mail_gaestebuch', '', '%weburl%')\">URL</a></div></td></tr>
<tr><td class=small valign=top>Запрос на дружбу:</td><td><textarea name=e_mail_freunde style=width:400px;height:80px>".$cdb[mail_freunde]."</textarea><div style=background-color:#f5f5f5;padding:3px class=small>Метки: <a href=# onClick=\"insert('e_mail_freunde', '', '%uservorname%')\">Vorname</a>, <a href=# onClick=\"insert('e_mail_freunde', '', '%usernachname%')\">Nachname</a>, <a href=# onClick=\"insert('e_mail_freunde', '', '%absender%')\">Absender</a>, <a href=# onClick=\"insert('e_mail_freunde', '', '%webtitel%')\">Titel</a>, <a href=# onClick=\"insert('e_mail_freunde', '', '%weburl%')\">URL</a></div></td></tr>
<tr><td class=small colspan=2>&nbsp;</td></tr>
<tr><td align=right colspan=2 style=\"border-top: 2px solid #ddd;\"><input type=submit value=\"Обновить информацию\" class=formbutton id=submit></td></tr></table></form>"; } ?>