if ($_POST) {
$dark_mode = $byakman->guvenlik($_POST["dark_mode"]);
$color = $byakman->guvenlik($_POST["color"]);
$update = $byakman->pdo->prepare("UPDATE settings SET
dark_mode = :dark_mode,
color = :color
WHERE id = '1'");
$update->bindParam(":dark_mode", $dark_mode);
$update->bindParam(":color", $color);
$update->execute();
if ($update) {
$mesaj = '
';
header("REFRESH:1; url=themes.php");
} else {
$mesaj = '
';
}
}
echo $mesaj;
?>