Ето ви функцията Change Password
function do_changepassword()
{
$acc = $_SESSION['dt_username'];
$passold = $_POST['passold'];
$passnew = $_POST['passnew'];
$repassnew = $_POST['repassnew'];
$show_msg=array(
'error'=>array()
);
if (empty($acc) OR empty($passold) OR empty($passnew) OR...