fixed deprecated functions. move /api/set_quiz.php to view/api/set_quiz.php