guvenlik($_POST["username"]); $password = $byakman->guvenlik($_POST["pass"]); $e_pass = $byakman->guvenlik($_POST["e_pass"]); if ($password != "" AND md5($password) != $e_pass) { $pass = md5($password); } else { $pass = $e_pass; } $result = $byakman->pdo->prepare("UPDATE admins SET pass = :pass WHERE id = :id"); $result->bindParam(":pass", $pass, PDO::PARAM_STR); $result->bindParam(":id", $userInfo->id, PDO::PARAM_INT); $result->execute(); if ($result) { $mesaj = '
'.PANEL_ALERT_TITLE_2.'
'.PANEL_PROFILE_MESSAGE_1.'
'; header("Refresh: 1; URL=logout.php"); } else { $mesaj = '
'.PANEL_ALERT_TITLE_1.'
'.PANEL_PROFILE_MESSAGE_2.'
'; } } ?>