/*
MGB 0.5.4.7
Copyright (C) 2004 - 2007 Juergen Grueneisl
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
require "settings.php";
require "language/lang_admin.php";
$post_pass = htmlspecialchars(stripslashes(strip_tags(trim($_POST[pass]))), ENT_QUOTES);
$pass = md5($post_pass);
$passwort = $settings['passwort'];
if($_POST[erstellen] == 1)
{
$post_pass = htmlspecialchars(stripslashes(strip_tags(trim($_POST[pass]))), ENT_QUOTES);
$passwort = md5($post_pass);
$sql="UPDATE `$db[settings]` SET `passwort` = '".$pass."' WHERE settings='1' LIMIT 1";
$link=mysql_connect($db[host], $db[user], $db[password]) or die ("Keine Verbindung zur Datenbank möglich. Prüfen Sie die Zugangsdaten.");
mysql_select_db($db[dbname], $link) or die ("Datenbankfehler");
$result=mysql_query($sql, $link) or die ("MySQL Fehler");
}
if($passwort == "")
{
$ausgabe.="
\n";
$ausgabe.="
\n";
$ausgabe.="