Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
//
// PASSWORT ÄNDERN
//
if($_POST['seite'] == "passwort_aendern" && ($_SESSION['login'] == "superadmin" || $_SESSION['login'] == "admin"))
{
$user_id = $_POST['user_id'];
$user_pass = $_POST['user_pass'];
if($user_id == "superadmin")
{
$sql = "UPDATE user SET passwort = '".$user_pass."' WHERE superadmin = 1";
}
else
{
$sql = "UPDATE user SET passwort = '".$user_pass."' WHERE id = ".$user_id;
}
if(mysql_query($sql))
{
$ergebnis_text = "ja";
}
else
{
$ergebnis_text = "Fehler beim ändern des Passwortes aufgetreten!";
}
$ret = Array("seite" => $ergebnis_text, "status" => $user_id);
}