session_required(); Response::send(Database::remove_user($_SESSION['id'], Validation::format_text($_GET['id']))); break; // list of users who have added you // list of users who have added you case 'list-of-users-who-have-added-you': session_required(); Response::send(Database::get_list_of_users_who_have_added_user($_SESSION['id'])); break; // word lists // add word list // word lists // add word list case 'add-word-list': session_required(); Response::send(Database::add_word_list($_SESSION['id'], Validation::format_text($_GET['name']))); break; // list of word lists // list of word lists case 'list-of-word-lists': session_required(); Response::send(Database::get_word_lists_of_user($_SESSION['id'])); break; // list of shared word lists with user // list of shared word lists with user case 'list-of-shared-word-lists-with-user': session_required(); Response::send(Database::get_list_of_shared_word_lists_with_user($_SESSION['id'])); break; // get word list // get word list