$error_message = $lang[$Language]['bad_values']; } } } // if no error, continue... if ($error_message == "") { // change password $result = $ladmin_conect->changepass($account, $new_pass); if ($result == false) { $error_message = $lang[$Language]['Maintenance']; } // else change is ok. } } } $ladmin_conect->close(); // close in all case (password can be incorrect and connection opened) } if ($result == true) { printf(' <h3>' . htmlspecialchars($lang[$Language]['Success'], ENT_QUOTES) . '</h3> '); } else { ?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <?php // Display title print '<h2>' . htmlspecialchars($lang[$Language]['Title'], ENT_QUOTES) . '</h2>' . "\n";