<?php
if($o=="k") { $e_url=$_POST[e_url]."/"; $e_url=str_replace("http://","/",$e_url); $e_url=str_replace("//","/",$e_url); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_titel])."' WHERE vari='titel'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_subtitel])."' WHERE vari='subtitel'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($e_url)."' WHERE vari='url'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_email])."' WHERE vari='email'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_modrw])."' WHERE vari='modrw'"); mysql_query("UPDATE ".$dbx."_einstellungen SET wert='".addslashes($_POST[e_gmkey])."' WHERE vari='gmkey'");
echo genMsg('03/16/02','Die Дnderungen wurden erfolgreich gespeichert.'); } else { echo "<form action=index.php method=post><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;\">Общие настройки сайта.</td></tr>
<tr><td class=small>Название сайта:</td><td><input type=text name=e_titel style=width:450px value=\"".$cdb[titel]."\"></td></tr>
<tr><td class=small>Метки:</td><td><input type=text name=e_subtitel style=width:450px value=\"".$cdb[subtitel]."\"></td></tr>
<tr><td class=small>URL:</td><td><input type=text name=e_url style=width:450px value=\"".$cdb[url]."\"></td></tr>
<tr><td class=small>Е-Mail:</td><td><input type=text name=e_email style=width:450px value=\"".$cdb[email]."\"></td></tr>
<tr><td class=small colspan=2>&nbsp;</td></tr>
<tr><td valign=top style=\"border-bottom: 2px solid #ddd;\"><b>Mod-Rewrite:</b></td><td class=small style=\"border-bottom: 2px solid #ddd;\">Die <a href=http://de.wikipedia.org/wiki/Rewrite-Engine target=_blank class=small>Rewrite-Engine</a> ermцglicht suchmaschinenfreundliche URLs.</td></tr>
<tr><td class=small>Активировать?</td><td><input type=radio name=e_modrw value=ja"; if($cdb[modrw]=="ja") echo " checked"; echo ">Да &nbsp; &nbsp; <input type=radio name=e_modrw value=nein"; if($cdb[modrw]!="ja") echo " checked"; echo ">Нет</td></tr>
<tr><td class=small>&nbsp;</td></tr>
<tr><td valign=top style=\"border-bottom: 2px solid #ddd;\"><b>Google Maps:</b></td><td class=small style=\"border-bottom: 2px solid #ddd;\">Fьr die Karten wird ein Key fьr die Google Maps API benцtigt (<a href=http://code.google.com/apis/maps/signup.html target=_blank class=small>Key generieren</a>).</td></tr>
<tr><td class=small>API Key:</td><td><input type=text name=e_gmkey style=width:450px value=\"".$cdb[gmkey]."\"></td></tr>
<tr><td class=small>&nbsp;</td></tr>
<tr><td align=right colspan=2 style=\"border-top: 2px solid #ddd;\"><input type=submit value=\"Дnderungen speichern\" class=formbutton id=submit></td></tr></table></form>"; } ?>