<?php include_once "../constants/constants.php"; include_once $_SERVER['DOCUMENT_ROOT'] . DIRCLASS . "/user/UIuser.class.php"; if (isset($_GET['type'])) { switch ($_GET['type']) { case 'dni': UIuser::ajaxCheckDNI($_GET['id']); break; default: } }