'; Session::set_alert($_LANG['USERNAME_HAS_BEEN_CHANGED_SUCCESSFULLY']); } // Change password else { $new_salt = Text::random_text(11); $new_hash = Crypt::get_hash($_POST['pw_new'],$new_salt); $text = ''; Session::set_alert($_LANG['PASSWORD_HAS_BEEN_CHANGED_SUCCESSFULLY']); } $file = fopen( FILE_SHADOW, 'w'); fputs($file, $text); fclose($file); } else { Session::set_alert($_LANG['CURRENT_PASSWORD_INCORRECT']); } } // ============================================================================ // VARIABLES // ============================================================================ include( FILE_SHADOW ); ?>