../../../pages/system/config.php";
goto Ix858;
Ip3LV: require_once "../../../pages/system/seguranca.php";
goto wZ3NC;
COi35: if (isset($_POST["senha"])) {
$SQLUser = "select * from admin where id_administrador = '" . $_SESSION["usuarioID"] . "' ";
$SQLUser = $conn->prepare($SQLUser);
$SQLUser->execute();
if ($SQLUser->rowCount() > 0) {
$SQLUser = "update admin set senha='" . $_POST["senha"] . "' WHERE id_administrador = '" . $_SESSION["usuarioID"] . "' ";
$SQLUser = $conn->prepare($SQLUser);
$SQLUser->execute();
echo "<script type="text/javascript">";
echo "alert("Alterado com sucesso!");
";
echo "window.location="../../home.php?page=admin/dados";
";
echo "</script>";
}
else {
echo "<script type="text/javascript">";
echo "alert("Nao permitido!");
";
echo "window.location="../../home.php?page=admin/dados";
";
echo "</script>";
}
}
else {
echo "<script type="text/javascript">";
echo "alert("Preencha!");
";
echo "window.location="../../home.php?page=admin/dados";
© 2023 Quttera Ltd. All rights reserved.